Class DataDiscoverySpec.BigQueryPublishingConfig.Builder

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

public static final class DataDiscoverySpec.BigQueryPublishingConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataDiscoverySpec.BigQueryPublishingConfig.Builder> implements DataDiscoverySpec.BigQueryPublishingConfigOrBuilder
 Describes BigQuery publishing configurations.
 
Protobuf type google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig
  • 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<DataDiscoverySpec.BigQueryPublishingConfig.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<DataDiscoverySpec.BigQueryPublishingConfig.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<DataDiscoverySpec.BigQueryPublishingConfig.Builder>
    • getDefaultInstanceForType

      public DataDiscoverySpec.BigQueryPublishingConfig 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

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

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

      public DataDiscoverySpec.BigQueryPublishingConfig.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<DataDiscoverySpec.BigQueryPublishingConfig.Builder>
      Throws:
      IOException
    • getTableTypeValue

      public int getTableTypeValue()
       Optional. Determines whether to  publish discovered tables as BigLake
       external tables or non-BigLake external tables.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig.TableType table_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTableTypeValue in interface DataDiscoverySpec.BigQueryPublishingConfigOrBuilder
      Returns:
      The enum numeric value on the wire for tableType.
    • setTableTypeValue

      public DataDiscoverySpec.BigQueryPublishingConfig.Builder setTableTypeValue(int value)
       Optional. Determines whether to  publish discovered tables as BigLake
       external tables or non-BigLake external tables.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig.TableType table_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for tableType to set.
      Returns:
      This builder for chaining.
    • getTableType

       Optional. Determines whether to  publish discovered tables as BigLake
       external tables or non-BigLake external tables.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig.TableType table_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTableType in interface DataDiscoverySpec.BigQueryPublishingConfigOrBuilder
      Returns:
      The tableType.
    • setTableType

       Optional. Determines whether to  publish discovered tables as BigLake
       external tables or non-BigLake external tables.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig.TableType table_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The tableType to set.
      Returns:
      This builder for chaining.
    • clearTableType

       Optional. Determines whether to  publish discovered tables as BigLake
       external tables or non-BigLake external tables.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig.TableType table_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getConnection

      public String getConnection()
       Optional. The BigQuery connection used to create BigLake tables.
       Must be in the form
       `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
       
      string connection = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getConnection in interface DataDiscoverySpec.BigQueryPublishingConfigOrBuilder
      Returns:
      The connection.
    • getConnectionBytes

      public com.google.protobuf.ByteString getConnectionBytes()
       Optional. The BigQuery connection used to create BigLake tables.
       Must be in the form
       `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
       
      string connection = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getConnectionBytes in interface DataDiscoverySpec.BigQueryPublishingConfigOrBuilder
      Returns:
      The bytes for connection.
    • setConnection

       Optional. The BigQuery connection used to create BigLake tables.
       Must be in the form
       `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
       
      string connection = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The connection to set.
      Returns:
      This builder for chaining.
    • clearConnection

       Optional. The BigQuery connection used to create BigLake tables.
       Must be in the form
       `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
       
      string connection = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setConnectionBytes

      public DataDiscoverySpec.BigQueryPublishingConfig.Builder setConnectionBytes(com.google.protobuf.ByteString value)
       Optional. The BigQuery connection used to create BigLake tables.
       Must be in the form
       `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
       
      string connection = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for connection to set.
      Returns:
      This builder for chaining.
    • getLocation

      public String getLocation()
       Optional. The location of the BigQuery dataset to publish BigLake
       external or non-BigLake external tables to.
       1. If the Cloud Storage bucket is located in a multi-region bucket, then
       BigQuery dataset can be in the same multi-region bucket or any single
       region that is included in the same multi-region bucket. The datascan can
       be created in any single region that is included in the same multi-region
       bucket
       2. If the Cloud Storage bucket is located in a dual-region bucket, then
       BigQuery dataset can be located in regions that are included in the
       dual-region bucket, or in a multi-region that includes the dual-region.
       The datascan can be created in any single region that is included in the
       same dual-region bucket.
       3. If the Cloud Storage bucket is located in a single region, then
       BigQuery dataset can be in the same single region or any multi-region
       bucket that includes the same single region. The datascan will be created
       in the same single region as the bucket.
       4. If the BigQuery dataset is in single region, it must be in the same
       single region as the datascan.
      
       For supported values, refer to
       https://cloud.google.com/bigquery/docs/locations#supported_locations.
       
      string location = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLocation in interface DataDiscoverySpec.BigQueryPublishingConfigOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       Optional. The location of the BigQuery dataset to publish BigLake
       external or non-BigLake external tables to.
       1. If the Cloud Storage bucket is located in a multi-region bucket, then
       BigQuery dataset can be in the same multi-region bucket or any single
       region that is included in the same multi-region bucket. The datascan can
       be created in any single region that is included in the same multi-region
       bucket
       2. If the Cloud Storage bucket is located in a dual-region bucket, then
       BigQuery dataset can be located in regions that are included in the
       dual-region bucket, or in a multi-region that includes the dual-region.
       The datascan can be created in any single region that is included in the
       same dual-region bucket.
       3. If the Cloud Storage bucket is located in a single region, then
       BigQuery dataset can be in the same single region or any multi-region
       bucket that includes the same single region. The datascan will be created
       in the same single region as the bucket.
       4. If the BigQuery dataset is in single region, it must be in the same
       single region as the datascan.
      
       For supported values, refer to
       https://cloud.google.com/bigquery/docs/locations#supported_locations.
       
      string location = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLocationBytes in interface DataDiscoverySpec.BigQueryPublishingConfigOrBuilder
      Returns:
      The bytes for location.
    • setLocation

       Optional. The location of the BigQuery dataset to publish BigLake
       external or non-BigLake external tables to.
       1. If the Cloud Storage bucket is located in a multi-region bucket, then
       BigQuery dataset can be in the same multi-region bucket or any single
       region that is included in the same multi-region bucket. The datascan can
       be created in any single region that is included in the same multi-region
       bucket
       2. If the Cloud Storage bucket is located in a dual-region bucket, then
       BigQuery dataset can be located in regions that are included in the
       dual-region bucket, or in a multi-region that includes the dual-region.
       The datascan can be created in any single region that is included in the
       same dual-region bucket.
       3. If the Cloud Storage bucket is located in a single region, then
       BigQuery dataset can be in the same single region or any multi-region
       bucket that includes the same single region. The datascan will be created
       in the same single region as the bucket.
       4. If the BigQuery dataset is in single region, it must be in the same
       single region as the datascan.
      
       For supported values, refer to
       https://cloud.google.com/bigquery/docs/locations#supported_locations.
       
      string location = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

       Optional. The location of the BigQuery dataset to publish BigLake
       external or non-BigLake external tables to.
       1. If the Cloud Storage bucket is located in a multi-region bucket, then
       BigQuery dataset can be in the same multi-region bucket or any single
       region that is included in the same multi-region bucket. The datascan can
       be created in any single region that is included in the same multi-region
       bucket
       2. If the Cloud Storage bucket is located in a dual-region bucket, then
       BigQuery dataset can be located in regions that are included in the
       dual-region bucket, or in a multi-region that includes the dual-region.
       The datascan can be created in any single region that is included in the
       same dual-region bucket.
       3. If the Cloud Storage bucket is located in a single region, then
       BigQuery dataset can be in the same single region or any multi-region
       bucket that includes the same single region. The datascan will be created
       in the same single region as the bucket.
       4. If the BigQuery dataset is in single region, it must be in the same
       single region as the datascan.
      
       For supported values, refer to
       https://cloud.google.com/bigquery/docs/locations#supported_locations.
       
      string location = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setLocationBytes

      public DataDiscoverySpec.BigQueryPublishingConfig.Builder setLocationBytes(com.google.protobuf.ByteString value)
       Optional. The location of the BigQuery dataset to publish BigLake
       external or non-BigLake external tables to.
       1. If the Cloud Storage bucket is located in a multi-region bucket, then
       BigQuery dataset can be in the same multi-region bucket or any single
       region that is included in the same multi-region bucket. The datascan can
       be created in any single region that is included in the same multi-region
       bucket
       2. If the Cloud Storage bucket is located in a dual-region bucket, then
       BigQuery dataset can be located in regions that are included in the
       dual-region bucket, or in a multi-region that includes the dual-region.
       The datascan can be created in any single region that is included in the
       same dual-region bucket.
       3. If the Cloud Storage bucket is located in a single region, then
       BigQuery dataset can be in the same single region or any multi-region
       bucket that includes the same single region. The datascan will be created
       in the same single region as the bucket.
       4. If the BigQuery dataset is in single region, it must be in the same
       single region as the datascan.
      
       For supported values, refer to
       https://cloud.google.com/bigquery/docs/locations#supported_locations.
       
      string location = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • getProject

      public String getProject()
       Optional. The project of the BigQuery dataset to publish BigLake external
       or non-BigLake external tables to. If not specified, the project of the
       Cloud Storage bucket will be used. The format is
       "projects/{project_id_or_number}".
       
      string project = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getProject in interface DataDiscoverySpec.BigQueryPublishingConfigOrBuilder
      Returns:
      The project.
    • getProjectBytes

      public com.google.protobuf.ByteString getProjectBytes()
       Optional. The project of the BigQuery dataset to publish BigLake external
       or non-BigLake external tables to. If not specified, the project of the
       Cloud Storage bucket will be used. The format is
       "projects/{project_id_or_number}".
       
      string project = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getProjectBytes in interface DataDiscoverySpec.BigQueryPublishingConfigOrBuilder
      Returns:
      The bytes for project.
    • setProject

       Optional. The project of the BigQuery dataset to publish BigLake external
       or non-BigLake external tables to. If not specified, the project of the
       Cloud Storage bucket will be used. The format is
       "projects/{project_id_or_number}".
       
      string project = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The project to set.
      Returns:
      This builder for chaining.
    • clearProject

       Optional. The project of the BigQuery dataset to publish BigLake external
       or non-BigLake external tables to. If not specified, the project of the
       Cloud Storage bucket will be used. The format is
       "projects/{project_id_or_number}".
       
      string project = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setProjectBytes

      public DataDiscoverySpec.BigQueryPublishingConfig.Builder setProjectBytes(com.google.protobuf.ByteString value)
       Optional. The project of the BigQuery dataset to publish BigLake external
       or non-BigLake external tables to. If not specified, the project of the
       Cloud Storage bucket will be used. The format is
       "projects/{project_id_or_number}".
       
      string project = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for project to set.
      Returns:
      This builder for chaining.