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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PrincipalAccessBoundaryPolicyRule.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PrincipalAccessBoundaryPolicyRule.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PrincipalAccessBoundaryPolicyRule.Builder>
    • getDefaultInstanceForType

      public PrincipalAccessBoundaryPolicyRule getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PrincipalAccessBoundaryPolicyRule buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PrincipalAccessBoundaryPolicyRule.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PrincipalAccessBoundaryPolicyRule.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PrincipalAccessBoundaryPolicyRule.Builder>
      Throws:
      IOException
    • getDescription

      public String 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:
      getDescription in interface PrincipalAccessBoundaryPolicyRuleOrBuilder
      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:
      getDescriptionBytes in interface PrincipalAccessBoundaryPolicyRuleOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public PrincipalAccessBoundaryPolicyRule.Builder setDescription(String 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 description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public PrincipalAccessBoundaryPolicyRule.Builder 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:
      getResourcesList in interface PrincipalAccessBoundaryPolicyRuleOrBuilder
      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:
      getResourcesCount in interface PrincipalAccessBoundaryPolicyRuleOrBuilder
      Returns:
      The count of resources.
    • getResources

      public String getResources(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:
      getResources in interface PrincipalAccessBoundaryPolicyRuleOrBuilder
      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:
      getResourcesBytes in interface PrincipalAccessBoundaryPolicyRuleOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the resources at the given index.
    • setResources

      public PrincipalAccessBoundaryPolicyRule.Builder setResources(int index, String 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:
      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

      public PrincipalAccessBoundaryPolicyRule.Builder addAllResources(Iterable<String> values)
       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:
      getEffectValue in interface PrincipalAccessBoundaryPolicyRuleOrBuilder
      Returns:
      The enum numeric value on the wire for effect.
    • setEffectValue

      public PrincipalAccessBoundaryPolicyRule.Builder setEffectValue(int 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 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:
      getEffect in interface PrincipalAccessBoundaryPolicyRuleOrBuilder
      Returns:
      The effect.
    • setEffect

       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.