Class CreateDataProductRequest.Builder

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

public static final class CreateDataProductRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateDataProductRequest.Builder> implements CreateDataProductRequestOrBuilder
 Request message for creating a data product.
 
Protobuf type google.cloud.dataplex.v1.CreateDataProductRequest
  • 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<CreateDataProductRequest.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<CreateDataProductRequest.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<CreateDataProductRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getParent()
       Required. The parent resource where this data product will be created.
       Format: projects/{project_id_or_number}/locations/{location_id}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateDataProductRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource where this data product will be created.
       Format: projects/{project_id_or_number}/locations/{location_id}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateDataProductRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateDataProductRequest.Builder setParent(String value)
       Required. The parent resource where this data product will be created.
       Format: projects/{project_id_or_number}/locations/{location_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 CreateDataProductRequest.Builder clearParent()
       Required. The parent resource where this data product will be created.
       Format: projects/{project_id_or_number}/locations/{location_id}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateDataProductRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource where this data product will be created.
       Format: projects/{project_id_or_number}/locations/{location_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.
    • getDataProductId

      public String getDataProductId()
       Optional. The ID of the data product to create.
      
       The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
       numbers (0-9), or hyphens, with the first character a letter, the last a
       letter or a number, and a 63 character maximum. Characters outside of
       ASCII are not permitted.
       Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`
       If not provided, a system generated ID will be used.
       
      string data_product_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataProductId in interface CreateDataProductRequestOrBuilder
      Returns:
      The dataProductId.
    • getDataProductIdBytes

      public com.google.protobuf.ByteString getDataProductIdBytes()
       Optional. The ID of the data product to create.
      
       The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
       numbers (0-9), or hyphens, with the first character a letter, the last a
       letter or a number, and a 63 character maximum. Characters outside of
       ASCII are not permitted.
       Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`
       If not provided, a system generated ID will be used.
       
      string data_product_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataProductIdBytes in interface CreateDataProductRequestOrBuilder
      Returns:
      The bytes for dataProductId.
    • setDataProductId

      public CreateDataProductRequest.Builder setDataProductId(String value)
       Optional. The ID of the data product to create.
      
       The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
       numbers (0-9), or hyphens, with the first character a letter, the last a
       letter or a number, and a 63 character maximum. Characters outside of
       ASCII are not permitted.
       Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`
       If not provided, a system generated ID will be used.
       
      string data_product_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The dataProductId to set.
      Returns:
      This builder for chaining.
    • clearDataProductId

      public CreateDataProductRequest.Builder clearDataProductId()
       Optional. The ID of the data product to create.
      
       The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
       numbers (0-9), or hyphens, with the first character a letter, the last a
       letter or a number, and a 63 character maximum. Characters outside of
       ASCII are not permitted.
       Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`
       If not provided, a system generated ID will be used.
       
      string data_product_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDataProductIdBytes

      public CreateDataProductRequest.Builder setDataProductIdBytes(com.google.protobuf.ByteString value)
       Optional. The ID of the data product to create.
      
       The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
       numbers (0-9), or hyphens, with the first character a letter, the last a
       letter or a number, and a 63 character maximum. Characters outside of
       ASCII are not permitted.
       Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`
       If not provided, a system generated ID will be used.
       
      string data_product_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for dataProductId to set.
      Returns:
      This builder for chaining.
    • hasDataProduct

      public boolean hasDataProduct()
       Required. The data product to create.
       
      .google.cloud.dataplex.v1.DataProduct data_product = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasDataProduct in interface CreateDataProductRequestOrBuilder
      Returns:
      Whether the dataProduct field is set.
    • getDataProduct

      public DataProduct getDataProduct()
       Required. The data product to create.
       
      .google.cloud.dataplex.v1.DataProduct data_product = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataProduct in interface CreateDataProductRequestOrBuilder
      Returns:
      The dataProduct.
    • setDataProduct

      public CreateDataProductRequest.Builder setDataProduct(DataProduct value)
       Required. The data product to create.
       
      .google.cloud.dataplex.v1.DataProduct data_product = 3 [(.google.api.field_behavior) = REQUIRED];
    • setDataProduct

      public CreateDataProductRequest.Builder setDataProduct(DataProduct.Builder builderForValue)
       Required. The data product to create.
       
      .google.cloud.dataplex.v1.DataProduct data_product = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeDataProduct

      public CreateDataProductRequest.Builder mergeDataProduct(DataProduct value)
       Required. The data product to create.
       
      .google.cloud.dataplex.v1.DataProduct data_product = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearDataProduct

      public CreateDataProductRequest.Builder clearDataProduct()
       Required. The data product to create.
       
      .google.cloud.dataplex.v1.DataProduct data_product = 3 [(.google.api.field_behavior) = REQUIRED];
    • getDataProductBuilder

      public DataProduct.Builder getDataProductBuilder()
       Required. The data product to create.
       
      .google.cloud.dataplex.v1.DataProduct data_product = 3 [(.google.api.field_behavior) = REQUIRED];
    • getDataProductOrBuilder

      public DataProductOrBuilder getDataProductOrBuilder()
       Required. The data product to create.
       
      .google.cloud.dataplex.v1.DataProduct data_product = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataProductOrBuilder in interface CreateDataProductRequestOrBuilder
    • getValidateOnly

      public boolean getValidateOnly()
       Optional. Validates the request without actually creating the data product.
       Default: false.
       
      bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidateOnly in interface CreateDataProductRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public CreateDataProductRequest.Builder setValidateOnly(boolean value)
       Optional. Validates the request without actually creating the data product.
       Default: false.
       
      bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public CreateDataProductRequest.Builder clearValidateOnly()
       Optional. Validates the request without actually creating the data product.
       Default: false.
       
      bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.