Class PrincipalAccessBoundaryPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PrincipalAccessBoundaryPolicy.Builder>
com.google.iam.v3beta.PrincipalAccessBoundaryPolicy.Builder
All Implemented Interfaces:
PrincipalAccessBoundaryPolicyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PrincipalAccessBoundaryPolicy

public static final class PrincipalAccessBoundaryPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<PrincipalAccessBoundaryPolicy.Builder> implements PrincipalAccessBoundaryPolicyOrBuilder
 An IAM principal access boundary policy resource.
 
Protobuf type google.iam.v3beta.PrincipalAccessBoundaryPolicy
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<PrincipalAccessBoundaryPolicy.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<PrincipalAccessBoundaryPolicy.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PrincipalAccessBoundaryPolicy.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<PrincipalAccessBoundaryPolicy.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<PrincipalAccessBoundaryPolicy.Builder>
    • getDefaultInstanceForType

      public PrincipalAccessBoundaryPolicy 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 PrincipalAccessBoundaryPolicy buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PrincipalAccessBoundaryPolicy.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<PrincipalAccessBoundaryPolicy.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<PrincipalAccessBoundaryPolicy.Builder>
    • mergeFrom

      public PrincipalAccessBoundaryPolicy.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<PrincipalAccessBoundaryPolicy.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. The resource name of the principal access boundary policy.
      
       The following format is supported:
       `organizations/{organization_id}/locations/{location}/principalAccessBoundaryPolicies/{policy_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface PrincipalAccessBoundaryPolicyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name of the principal access boundary policy.
      
       The following format is supported:
       `organizations/{organization_id}/locations/{location}/principalAccessBoundaryPolicies/{policy_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface PrincipalAccessBoundaryPolicyOrBuilder
      Returns:
      The bytes for name.
    • setName

       Identifier. The resource name of the principal access boundary policy.
      
       The following format is supported:
       `organizations/{organization_id}/locations/{location}/principalAccessBoundaryPolicies/{policy_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Identifier. The resource name of the principal access boundary policy.
      
       The following format is supported:
       `organizations/{organization_id}/locations/{location}/principalAccessBoundaryPolicies/{policy_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public PrincipalAccessBoundaryPolicy.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The resource name of the principal access boundary policy.
      
       The following format is supported:
       `organizations/{organization_id}/locations/{location}/principalAccessBoundaryPolicies/{policy_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getUid

      public String getUid()
       Output only. The globally unique ID of the principal access boundary
       policy.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUid in interface PrincipalAccessBoundaryPolicyOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. The globally unique ID of the principal access boundary
       policy.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUidBytes in interface PrincipalAccessBoundaryPolicyOrBuilder
      Returns:
      The bytes for uid.
    • setUid

       Output only. The globally unique ID of the principal access boundary
       policy.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

       Output only. The globally unique ID of the principal access boundary
       policy.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setUidBytes

      public PrincipalAccessBoundaryPolicy.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. The globally unique ID of the principal access boundary
       policy.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • getEtag

      public String getEtag()
       Optional. The etag for the principal access boundary.
       If this is provided on update, it must match the server's etag.
       
      string etag = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtag in interface PrincipalAccessBoundaryPolicyOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Optional. The etag for the principal access boundary.
       If this is provided on update, it must match the server's etag.
       
      string etag = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtagBytes in interface PrincipalAccessBoundaryPolicyOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

       Optional. The etag for the principal access boundary.
       If this is provided on update, it must match the server's etag.
       
      string etag = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

       Optional. The etag for the principal access boundary.
       If this is provided on update, it must match the server's etag.
       
      string etag = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEtagBytes

      public PrincipalAccessBoundaryPolicy.Builder setEtagBytes(com.google.protobuf.ByteString value)
       Optional. The etag for the principal access boundary.
       If this is provided on update, it must match the server's etag.
       
      string etag = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Optional. The description of the principal access boundary policy. Must be
       less than or equal to 63 characters.
       
      string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface PrincipalAccessBoundaryPolicyOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Optional. The description of the principal access boundary policy. Must be
       less than or equal to 63 characters.
       
      string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayNameBytes in interface PrincipalAccessBoundaryPolicyOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public PrincipalAccessBoundaryPolicy.Builder setDisplayName(String value)
       Optional. The description of the principal access boundary policy. Must be
       less than or equal to 63 characters.
       
      string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public PrincipalAccessBoundaryPolicy.Builder clearDisplayName()
       Optional. The description of the principal access boundary policy. Must be
       less than or equal to 63 characters.
       
      string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public PrincipalAccessBoundaryPolicy.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Optional. The description of the principal access boundary policy. Must be
       less than or equal to 63 characters.
       
      string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: PrincipalAccessBoundaryPolicyOrBuilder
       Optional. User defined annotations. See
       https://google.aip.dev/148#annotations for more details such as format and
       size limitations
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsCount in interface PrincipalAccessBoundaryPolicyOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Optional. User defined annotations. See
       https://google.aip.dev/148#annotations for more details such as format and
       size limitations
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAnnotations in interface PrincipalAccessBoundaryPolicyOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface PrincipalAccessBoundaryPolicyOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Optional. User defined annotations. See
       https://google.aip.dev/148#annotations for more details such as format and
       size limitations
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsMap in interface PrincipalAccessBoundaryPolicyOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Optional. User defined annotations. See
       https://google.aip.dev/148#annotations for more details such as format and
       size limitations
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrDefault in interface PrincipalAccessBoundaryPolicyOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Optional. User defined annotations. See
       https://google.aip.dev/148#annotations for more details such as format and
       size limitations
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrThrow in interface PrincipalAccessBoundaryPolicyOrBuilder
    • clearAnnotations

      public PrincipalAccessBoundaryPolicy.Builder clearAnnotations()
    • removeAnnotations

      public PrincipalAccessBoundaryPolicy.Builder removeAnnotations(String key)
       Optional. User defined annotations. See
       https://google.aip.dev/148#annotations for more details such as format and
       size limitations
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableAnnotations

      @Deprecated public Map<String,String> getMutableAnnotations()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAnnotations

      public PrincipalAccessBoundaryPolicy.Builder putAnnotations(String key, String value)
       Optional. User defined annotations. See
       https://google.aip.dev/148#annotations for more details such as format and
       size limitations
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
    • putAllAnnotations

      public PrincipalAccessBoundaryPolicy.Builder putAllAnnotations(Map<String,String> values)
       Optional. User defined annotations. See
       https://google.aip.dev/148#annotations for more details such as format and
       size limitations
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time when the principal access boundary policy was
       created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface PrincipalAccessBoundaryPolicyOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time when the principal access boundary policy was
       created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface PrincipalAccessBoundaryPolicyOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public PrincipalAccessBoundaryPolicy.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the principal access boundary policy was
       created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public PrincipalAccessBoundaryPolicy.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the principal access boundary policy was
       created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public PrincipalAccessBoundaryPolicy.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the principal access boundary policy was
       created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public PrincipalAccessBoundaryPolicy.Builder clearCreateTime()
       Output only. The time when the principal access boundary policy was
       created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time when the principal access boundary policy was
       created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time when the principal access boundary policy was
       created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface PrincipalAccessBoundaryPolicyOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The time when the principal access boundary policy was most
       recently updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface PrincipalAccessBoundaryPolicyOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The time when the principal access boundary policy was most
       recently updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface PrincipalAccessBoundaryPolicyOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public PrincipalAccessBoundaryPolicy.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the principal access boundary policy was most
       recently updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public PrincipalAccessBoundaryPolicy.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the principal access boundary policy was most
       recently updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public PrincipalAccessBoundaryPolicy.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the principal access boundary policy was most
       recently updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public PrincipalAccessBoundaryPolicy.Builder clearUpdateTime()
       Output only. The time when the principal access boundary policy was most
       recently updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The time when the principal access boundary policy was most
       recently updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The time when the principal access boundary policy was most
       recently updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface PrincipalAccessBoundaryPolicyOrBuilder
    • hasDetails

      public boolean hasDetails()
       Optional. The details for the principal access boundary policy.
       
      .google.iam.v3beta.PrincipalAccessBoundaryPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDetails in interface PrincipalAccessBoundaryPolicyOrBuilder
      Returns:
      Whether the details field is set.
    • getDetails

       Optional. The details for the principal access boundary policy.
       
      .google.iam.v3beta.PrincipalAccessBoundaryPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDetails in interface PrincipalAccessBoundaryPolicyOrBuilder
      Returns:
      The details.
    • setDetails

       Optional. The details for the principal access boundary policy.
       
      .google.iam.v3beta.PrincipalAccessBoundaryPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL];
    • setDetails

       Optional. The details for the principal access boundary policy.
       
      .google.iam.v3beta.PrincipalAccessBoundaryPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL];
    • mergeDetails

       Optional. The details for the principal access boundary policy.
       
      .google.iam.v3beta.PrincipalAccessBoundaryPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL];
    • clearDetails

       Optional. The details for the principal access boundary policy.
       
      .google.iam.v3beta.PrincipalAccessBoundaryPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getDetailsBuilder

       Optional. The details for the principal access boundary policy.
       
      .google.iam.v3beta.PrincipalAccessBoundaryPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getDetailsOrBuilder

      public PrincipalAccessBoundaryPolicyDetailsOrBuilder getDetailsOrBuilder()
       Optional. The details for the principal access boundary policy.
       
      .google.iam.v3beta.PrincipalAccessBoundaryPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDetailsOrBuilder in interface PrincipalAccessBoundaryPolicyOrBuilder