Package com.google.iam.v3beta
Class PrincipalAccessBoundaryPolicyRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PrincipalAccessBoundaryPolicyRule.Builder>
com.google.iam.v3beta.PrincipalAccessBoundaryPolicyRule.Builder
- All Implemented Interfaces:
PrincipalAccessBoundaryPolicyRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PrincipalAccessBoundaryPolicyRule
public static final class PrincipalAccessBoundaryPolicyRule.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PrincipalAccessBoundaryPolicyRule.Builder>
implements PrincipalAccessBoundaryPolicyRuleOrBuilder
Principal access boundary policy rule that defines the resource boundary.Protobuf type
google.iam.v3beta.PrincipalAccessBoundaryPolicyRule-
Method Summary
Modifier and TypeMethodDescriptionaddAllResources(Iterable<String> values) Required.addResources(String value) Required.addResourcesBytes(com.google.protobuf.ByteString value) Required.build()clear()Optional.Required.Required.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.intRequired.getResources(int index) Required.com.google.protobuf.ByteStringgetResourcesBytes(int index) Required.intRequired.com.google.protobuf.ProtocolStringListRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDescription(String value) Optional.setDescriptionBytes(com.google.protobuf.ByteString value) Optional.Required.setEffectValue(int value) Required.setResources(int index, String value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PrincipalAccessBoundaryPolicyRule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PrincipalAccessBoundaryPolicyRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PrincipalAccessBoundaryPolicyRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PrincipalAccessBoundaryPolicyRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PrincipalAccessBoundaryPolicyRule.Builder>
-
mergeFrom
public PrincipalAccessBoundaryPolicyRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PrincipalAccessBoundaryPolicyRule.Builder>- Throws:
IOException
-
getDescription
Optional. The description of the principal access boundary policy rule. Must be less than or equal to 256 characters.
string description = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionin interfacePrincipalAccessBoundaryPolicyRuleOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional. The description of the principal access boundary policy rule. Must be less than or equal to 256 characters.
string description = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionBytesin interfacePrincipalAccessBoundaryPolicyRuleOrBuilder- Returns:
- The bytes for description.
-
setDescription
Optional. The description of the principal access boundary policy rule. Must be less than or equal to 256 characters.
string description = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional. The description of the principal access boundary policy rule. Must be less than or equal to 256 characters.
string description = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDescriptionBytes
public PrincipalAccessBoundaryPolicyRule.Builder setDescriptionBytes(com.google.protobuf.ByteString value) Optional. The description of the principal access boundary policy rule. Must be less than or equal to 256 characters.
string description = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getResourcesList
public com.google.protobuf.ProtocolStringList getResourcesList()Required. A list of Resource Manager resources. If a resource is listed in the rule, then the rule applies for that resource and its descendants. The number of resources in a policy is limited to 500 across all rules in the policy. The following resource types are supported: * Organizations, such as `//cloudresourcemanager.googleapis.com/organizations/123`. * Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`. * Projects, such as `//cloudresourcemanager.googleapis.com/projects/123` or `//cloudresourcemanager.googleapis.com/projects/my-project-id`.
repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getResourcesListin interfacePrincipalAccessBoundaryPolicyRuleOrBuilder- Returns:
- A list containing the resources.
-
getResourcesCount
public int getResourcesCount()Required. A list of Resource Manager resources. If a resource is listed in the rule, then the rule applies for that resource and its descendants. The number of resources in a policy is limited to 500 across all rules in the policy. The following resource types are supported: * Organizations, such as `//cloudresourcemanager.googleapis.com/organizations/123`. * Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`. * Projects, such as `//cloudresourcemanager.googleapis.com/projects/123` or `//cloudresourcemanager.googleapis.com/projects/my-project-id`.
repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getResourcesCountin interfacePrincipalAccessBoundaryPolicyRuleOrBuilder- Returns:
- The count of resources.
-
getResources
Required. A list of Resource Manager resources. If a resource is listed in the rule, then the rule applies for that resource and its descendants. The number of resources in a policy is limited to 500 across all rules in the policy. The following resource types are supported: * Organizations, such as `//cloudresourcemanager.googleapis.com/organizations/123`. * Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`. * Projects, such as `//cloudresourcemanager.googleapis.com/projects/123` or `//cloudresourcemanager.googleapis.com/projects/my-project-id`.
repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getResourcesin interfacePrincipalAccessBoundaryPolicyRuleOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The resources at the given index.
-
getResourcesBytes
public com.google.protobuf.ByteString getResourcesBytes(int index) Required. A list of Resource Manager resources. If a resource is listed in the rule, then the rule applies for that resource and its descendants. The number of resources in a policy is limited to 500 across all rules in the policy. The following resource types are supported: * Organizations, such as `//cloudresourcemanager.googleapis.com/organizations/123`. * Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`. * Projects, such as `//cloudresourcemanager.googleapis.com/projects/123` or `//cloudresourcemanager.googleapis.com/projects/my-project-id`.
repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getResourcesBytesin interfacePrincipalAccessBoundaryPolicyRuleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the resources at the given index.
-
setResources
Required. A list of Resource Manager resources. If a resource is listed in the rule, then the rule applies for that resource and its descendants. The number of resources in a policy is limited to 500 across all rules in the policy. The following resource types are supported: * Organizations, such as `//cloudresourcemanager.googleapis.com/organizations/123`. * Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`. * Projects, such as `//cloudresourcemanager.googleapis.com/projects/123` or `//cloudresourcemanager.googleapis.com/projects/my-project-id`.
repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The resources to set.- Returns:
- This builder for chaining.
-
addResources
Required. A list of Resource Manager resources. If a resource is listed in the rule, then the rule applies for that resource and its descendants. The number of resources in a policy is limited to 500 across all rules in the policy. The following resource types are supported: * Organizations, such as `//cloudresourcemanager.googleapis.com/organizations/123`. * Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`. * Projects, such as `//cloudresourcemanager.googleapis.com/projects/123` or `//cloudresourcemanager.googleapis.com/projects/my-project-id`.
repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The resources to add.- Returns:
- This builder for chaining.
-
addAllResources
Required. A list of Resource Manager resources. If a resource is listed in the rule, then the rule applies for that resource and its descendants. The number of resources in a policy is limited to 500 across all rules in the policy. The following resource types are supported: * Organizations, such as `//cloudresourcemanager.googleapis.com/organizations/123`. * Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`. * Projects, such as `//cloudresourcemanager.googleapis.com/projects/123` or `//cloudresourcemanager.googleapis.com/projects/my-project-id`.
repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The resources to add.- Returns:
- This builder for chaining.
-
clearResources
Required. A list of Resource Manager resources. If a resource is listed in the rule, then the rule applies for that resource and its descendants. The number of resources in a policy is limited to 500 across all rules in the policy. The following resource types are supported: * Organizations, such as `//cloudresourcemanager.googleapis.com/organizations/123`. * Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`. * Projects, such as `//cloudresourcemanager.googleapis.com/projects/123` or `//cloudresourcemanager.googleapis.com/projects/my-project-id`.
repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
addResourcesBytes
public PrincipalAccessBoundaryPolicyRule.Builder addResourcesBytes(com.google.protobuf.ByteString value) Required. A list of Resource Manager resources. If a resource is listed in the rule, then the rule applies for that resource and its descendants. The number of resources in a policy is limited to 500 across all rules in the policy. The following resource types are supported: * Organizations, such as `//cloudresourcemanager.googleapis.com/organizations/123`. * Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`. * Projects, such as `//cloudresourcemanager.googleapis.com/projects/123` or `//cloudresourcemanager.googleapis.com/projects/my-project-id`.
repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes of the resources to add.- Returns:
- This builder for chaining.
-
getEffectValue
public int getEffectValue()Required. The access relationship of principals to the resources in this rule.
.google.iam.v3beta.PrincipalAccessBoundaryPolicyRule.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEffectValuein interfacePrincipalAccessBoundaryPolicyRuleOrBuilder- Returns:
- The enum numeric value on the wire for effect.
-
setEffectValue
Required. The access relationship of principals to the resources in this rule.
.google.iam.v3beta.PrincipalAccessBoundaryPolicyRule.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for effect to set.- Returns:
- This builder for chaining.
-
getEffect
Required. The access relationship of principals to the resources in this rule.
.google.iam.v3beta.PrincipalAccessBoundaryPolicyRule.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEffectin interfacePrincipalAccessBoundaryPolicyRuleOrBuilder- Returns:
- The effect.
-
setEffect
public PrincipalAccessBoundaryPolicyRule.Builder setEffect(PrincipalAccessBoundaryPolicyRule.Effect value) Required. The access relationship of principals to the resources in this rule.
.google.iam.v3beta.PrincipalAccessBoundaryPolicyRule.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The effect to set.- Returns:
- This builder for chaining.
-
clearEffect
Required. The access relationship of principals to the resources in this rule.
.google.iam.v3beta.PrincipalAccessBoundaryPolicyRule.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-