Class DataProduct.AccessGroup.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataProduct.AccessGroup.Builder>
com.google.cloud.dataplex.v1.DataProduct.AccessGroup.Builder
All Implemented Interfaces:
DataProduct.AccessGroupOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DataProduct.AccessGroup

public static final class DataProduct.AccessGroup.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataProduct.AccessGroup.Builder> implements DataProduct.AccessGroupOrBuilder
 Custom user defined access groups at the data product level. These are used
 for granting different levels of access (IAM roles) on the individual data
 product's data assets.
 
Protobuf type google.cloud.dataplex.v1.DataProduct.AccessGroup
  • 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<DataProduct.AccessGroup.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<DataProduct.AccessGroup.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<DataProduct.AccessGroup.Builder>
    • getDefaultInstanceForType

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

      public DataProduct.AccessGroup build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public DataProduct.AccessGroup.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<DataProduct.AccessGroup.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       Required. Unique identifier of the access group within the data product.
       User defined. Eg. "analyst", "developer", etc.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getId in interface DataProduct.AccessGroupOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Required. Unique identifier of the access group within the data product.
       User defined. Eg. "analyst", "developer", etc.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIdBytes in interface DataProduct.AccessGroupOrBuilder
      Returns:
      The bytes for id.
    • setId

       Required. Unique identifier of the access group within the data product.
       User defined. Eg. "analyst", "developer", etc.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

       Required. Unique identifier of the access group within the data product.
       User defined. Eg. "analyst", "developer", etc.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setIdBytes

      public DataProduct.AccessGroup.Builder setIdBytes(com.google.protobuf.ByteString value)
       Required. Unique identifier of the access group within the data product.
       User defined. Eg. "analyst", "developer", etc.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Required. User friendly display name of the access group.
       Eg. "Analyst", "Developer", etc.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface DataProduct.AccessGroupOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. User friendly display name of the access group.
       Eg. "Analyst", "Developer", etc.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface DataProduct.AccessGroupOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public DataProduct.AccessGroup.Builder setDisplayName(String value)
       Required. User friendly display name of the access group.
       Eg. "Analyst", "Developer", etc.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public DataProduct.AccessGroup.Builder clearDisplayName()
       Required. User friendly display name of the access group.
       Eg. "Analyst", "Developer", etc.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public DataProduct.AccessGroup.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. User friendly display name of the access group.
       Eg. "Analyst", "Developer", etc.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. Description of the access group.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface DataProduct.AccessGroupOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Description of the access group.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface DataProduct.AccessGroupOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public DataProduct.AccessGroup.Builder setDescription(String value)
       Optional. Description of the access group.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public DataProduct.AccessGroup.Builder clearDescription()
       Optional. Description of the access group.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public DataProduct.AccessGroup.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. Description of the access group.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasPrincipal

      public boolean hasPrincipal()
       Required. The principal entity associated with this access group.
       
      .google.cloud.dataplex.v1.DataProduct.Principal principal = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasPrincipal in interface DataProduct.AccessGroupOrBuilder
      Returns:
      Whether the principal field is set.
    • getPrincipal

      public DataProduct.Principal getPrincipal()
       Required. The principal entity associated with this access group.
       
      .google.cloud.dataplex.v1.DataProduct.Principal principal = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPrincipal in interface DataProduct.AccessGroupOrBuilder
      Returns:
      The principal.
    • setPrincipal

       Required. The principal entity associated with this access group.
       
      .google.cloud.dataplex.v1.DataProduct.Principal principal = 4 [(.google.api.field_behavior) = REQUIRED];
    • setPrincipal

      public DataProduct.AccessGroup.Builder setPrincipal(DataProduct.Principal.Builder builderForValue)
       Required. The principal entity associated with this access group.
       
      .google.cloud.dataplex.v1.DataProduct.Principal principal = 4 [(.google.api.field_behavior) = REQUIRED];
    • mergePrincipal

       Required. The principal entity associated with this access group.
       
      .google.cloud.dataplex.v1.DataProduct.Principal principal = 4 [(.google.api.field_behavior) = REQUIRED];
    • clearPrincipal

      public DataProduct.AccessGroup.Builder clearPrincipal()
       Required. The principal entity associated with this access group.
       
      .google.cloud.dataplex.v1.DataProduct.Principal principal = 4 [(.google.api.field_behavior) = REQUIRED];
    • getPrincipalBuilder

      public DataProduct.Principal.Builder getPrincipalBuilder()
       Required. The principal entity associated with this access group.
       
      .google.cloud.dataplex.v1.DataProduct.Principal principal = 4 [(.google.api.field_behavior) = REQUIRED];
    • getPrincipalOrBuilder

      public DataProduct.PrincipalOrBuilder getPrincipalOrBuilder()
       Required. The principal entity associated with this access group.
       
      .google.cloud.dataplex.v1.DataProduct.Principal principal = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPrincipalOrBuilder in interface DataProduct.AccessGroupOrBuilder