Class CreateDataAttributeRequest.Builder

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

public static final class CreateDataAttributeRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateDataAttributeRequest.Builder> implements CreateDataAttributeRequestOrBuilder
 Create DataAttribute request.
 
Protobuf type google.cloud.dataplex.v1.CreateDataAttributeRequest
  • 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<CreateDataAttributeRequest.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<CreateDataAttributeRequest.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<CreateDataAttributeRequest.Builder>
    • getDefaultInstanceForType

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

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

      public CreateDataAttributeRequest.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<CreateDataAttributeRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The resource name of the parent data taxonomy
       projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateDataAttributeRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The resource name of the parent data taxonomy
       projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateDataAttributeRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateDataAttributeRequest.Builder setParent(String value)
       Required. The resource name of the parent data taxonomy
       projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateDataAttributeRequest.Builder clearParent()
       Required. The resource name of the parent data taxonomy
       projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateDataAttributeRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the parent data taxonomy
       projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getDataAttributeId

      public String getDataAttributeId()
       Required. DataAttribute identifier.
       * Must contain only lowercase letters, numbers and hyphens.
       * Must start with a letter.
       * Must be between 1-63 characters.
       * Must end with a number or a letter.
       * Must be unique within the DataTaxonomy.
       
      string data_attribute_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataAttributeId in interface CreateDataAttributeRequestOrBuilder
      Returns:
      The dataAttributeId.
    • getDataAttributeIdBytes

      public com.google.protobuf.ByteString getDataAttributeIdBytes()
       Required. DataAttribute identifier.
       * Must contain only lowercase letters, numbers and hyphens.
       * Must start with a letter.
       * Must be between 1-63 characters.
       * Must end with a number or a letter.
       * Must be unique within the DataTaxonomy.
       
      string data_attribute_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataAttributeIdBytes in interface CreateDataAttributeRequestOrBuilder
      Returns:
      The bytes for dataAttributeId.
    • setDataAttributeId

      public CreateDataAttributeRequest.Builder setDataAttributeId(String value)
       Required. DataAttribute identifier.
       * Must contain only lowercase letters, numbers and hyphens.
       * Must start with a letter.
       * Must be between 1-63 characters.
       * Must end with a number or a letter.
       * Must be unique within the DataTaxonomy.
       
      string data_attribute_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The dataAttributeId to set.
      Returns:
      This builder for chaining.
    • clearDataAttributeId

      public CreateDataAttributeRequest.Builder clearDataAttributeId()
       Required. DataAttribute identifier.
       * Must contain only lowercase letters, numbers and hyphens.
       * Must start with a letter.
       * Must be between 1-63 characters.
       * Must end with a number or a letter.
       * Must be unique within the DataTaxonomy.
       
      string data_attribute_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDataAttributeIdBytes

      public CreateDataAttributeRequest.Builder setDataAttributeIdBytes(com.google.protobuf.ByteString value)
       Required. DataAttribute identifier.
       * Must contain only lowercase letters, numbers and hyphens.
       * Must start with a letter.
       * Must be between 1-63 characters.
       * Must end with a number or a letter.
       * Must be unique within the DataTaxonomy.
       
      string data_attribute_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for dataAttributeId to set.
      Returns:
      This builder for chaining.
    • hasDataAttribute

      public boolean hasDataAttribute()
       Required. DataAttribute resource.
       
      .google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasDataAttribute in interface CreateDataAttributeRequestOrBuilder
      Returns:
      Whether the dataAttribute field is set.
    • getDataAttribute

      public DataAttribute getDataAttribute()
       Required. DataAttribute resource.
       
      .google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataAttribute in interface CreateDataAttributeRequestOrBuilder
      Returns:
      The dataAttribute.
    • setDataAttribute

      public CreateDataAttributeRequest.Builder setDataAttribute(DataAttribute value)
       Required. DataAttribute resource.
       
      .google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED];
    • setDataAttribute

      public CreateDataAttributeRequest.Builder setDataAttribute(DataAttribute.Builder builderForValue)
       Required. DataAttribute resource.
       
      .google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeDataAttribute

      public CreateDataAttributeRequest.Builder mergeDataAttribute(DataAttribute value)
       Required. DataAttribute resource.
       
      .google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearDataAttribute

      public CreateDataAttributeRequest.Builder clearDataAttribute()
       Required. DataAttribute resource.
       
      .google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED];
    • getDataAttributeBuilder

      public DataAttribute.Builder getDataAttributeBuilder()
       Required. DataAttribute resource.
       
      .google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED];
    • getDataAttributeOrBuilder

      public DataAttributeOrBuilder getDataAttributeOrBuilder()
       Required. DataAttribute resource.
       
      .google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataAttributeOrBuilder in interface CreateDataAttributeRequestOrBuilder
    • getValidateOnly

      public boolean getValidateOnly()
       Optional. Only validate the request, but do not perform mutations.
       The default is false.
       
      bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidateOnly in interface CreateDataAttributeRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public CreateDataAttributeRequest.Builder setValidateOnly(boolean value)
       Optional. Only validate the request, but do not perform mutations.
       The default is false.
       
      bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public CreateDataAttributeRequest.Builder clearValidateOnly()
       Optional. Only validate the request, but do not perform mutations.
       The default is false.
       
      bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.