Class BigQuerySource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BigQuerySource.Builder>
com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder
All Implemented Interfaces:
BigQuerySourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BigQuerySource

public static final class BigQuerySource.Builder extends com.google.protobuf.GeneratedMessage.Builder<BigQuerySource.Builder> implements BigQuerySourceOrBuilder
 BigQuery source import data from.
 
Protobuf type google.cloud.discoveryengine.v1beta.BigQuerySource
  • 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<BigQuerySource.Builder>
    • clear

      public BigQuerySource.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<BigQuerySource.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<BigQuerySource.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public BigQuerySource.Builder mergeFrom(BigQuerySource other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<BigQuerySource.Builder>
    • mergeFrom

      public BigQuerySource.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<BigQuerySource.Builder>
      Throws:
      IOException
    • getPartitionCase

      public BigQuerySource.PartitionCase getPartitionCase()
      Specified by:
      getPartitionCase in interface BigQuerySourceOrBuilder
    • clearPartition

      public BigQuerySource.Builder clearPartition()
    • hasPartitionDate

      public boolean hasPartitionDate()
       BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
       
      .google.type.Date partition_date = 5;
      Specified by:
      hasPartitionDate in interface BigQuerySourceOrBuilder
      Returns:
      Whether the partitionDate field is set.
    • getPartitionDate

      public Date getPartitionDate()
       BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
       
      .google.type.Date partition_date = 5;
      Specified by:
      getPartitionDate in interface BigQuerySourceOrBuilder
      Returns:
      The partitionDate.
    • setPartitionDate

      public BigQuerySource.Builder setPartitionDate(Date value)
       BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
       
      .google.type.Date partition_date = 5;
    • setPartitionDate

      public BigQuerySource.Builder setPartitionDate(Date.Builder builderForValue)
       BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
       
      .google.type.Date partition_date = 5;
    • mergePartitionDate

      public BigQuerySource.Builder mergePartitionDate(Date value)
       BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
       
      .google.type.Date partition_date = 5;
    • clearPartitionDate

      public BigQuerySource.Builder clearPartitionDate()
       BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
       
      .google.type.Date partition_date = 5;
    • getPartitionDateBuilder

      public Date.Builder getPartitionDateBuilder()
       BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
       
      .google.type.Date partition_date = 5;
    • getPartitionDateOrBuilder

      public DateOrBuilder getPartitionDateOrBuilder()
       BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
       
      .google.type.Date partition_date = 5;
      Specified by:
      getPartitionDateOrBuilder in interface BigQuerySourceOrBuilder
    • getProjectId

      public String getProjectId()
       The project ID or the project number that contains the BigQuery source. Has
       a length limit of 128 characters. If not specified, inherits the project
       ID from the parent request.
       
      string project_id = 1;
      Specified by:
      getProjectId in interface BigQuerySourceOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       The project ID or the project number that contains the BigQuery source. Has
       a length limit of 128 characters. If not specified, inherits the project
       ID from the parent request.
       
      string project_id = 1;
      Specified by:
      getProjectIdBytes in interface BigQuerySourceOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public BigQuerySource.Builder setProjectId(String value)
       The project ID or the project number that contains the BigQuery source. Has
       a length limit of 128 characters. If not specified, inherits the project
       ID from the parent request.
       
      string project_id = 1;
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      public BigQuerySource.Builder clearProjectId()
       The project ID or the project number that contains the BigQuery source. Has
       a length limit of 128 characters. If not specified, inherits the project
       ID from the parent request.
       
      string project_id = 1;
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public BigQuerySource.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       The project ID or the project number that contains the BigQuery source. Has
       a length limit of 128 characters. If not specified, inherits the project
       ID from the parent request.
       
      string project_id = 1;
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • getDatasetId

      public String getDatasetId()
       Required. The BigQuery data set to copy the data from with a length limit
       of 1,024 characters.
       
      string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDatasetId in interface BigQuerySourceOrBuilder
      Returns:
      The datasetId.
    • getDatasetIdBytes

      public com.google.protobuf.ByteString getDatasetIdBytes()
       Required. The BigQuery data set to copy the data from with a length limit
       of 1,024 characters.
       
      string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDatasetIdBytes in interface BigQuerySourceOrBuilder
      Returns:
      The bytes for datasetId.
    • setDatasetId

      public BigQuerySource.Builder setDatasetId(String value)
       Required. The BigQuery data set to copy the data from with a length limit
       of 1,024 characters.
       
      string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The datasetId to set.
      Returns:
      This builder for chaining.
    • clearDatasetId

      public BigQuerySource.Builder clearDatasetId()
       Required. The BigQuery data set to copy the data from with a length limit
       of 1,024 characters.
       
      string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDatasetIdBytes

      public BigQuerySource.Builder setDatasetIdBytes(com.google.protobuf.ByteString value)
       Required. The BigQuery data set to copy the data from with a length limit
       of 1,024 characters.
       
      string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for datasetId to set.
      Returns:
      This builder for chaining.
    • getTableId

      public String getTableId()
       Required. The BigQuery table to copy the data from with a length limit of
       1,024 characters.
       
      string table_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTableId in interface BigQuerySourceOrBuilder
      Returns:
      The tableId.
    • getTableIdBytes

      public com.google.protobuf.ByteString getTableIdBytes()
       Required. The BigQuery table to copy the data from with a length limit of
       1,024 characters.
       
      string table_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTableIdBytes in interface BigQuerySourceOrBuilder
      Returns:
      The bytes for tableId.
    • setTableId

      public BigQuerySource.Builder setTableId(String value)
       Required. The BigQuery table to copy the data from with a length limit of
       1,024 characters.
       
      string table_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The tableId to set.
      Returns:
      This builder for chaining.
    • clearTableId

      public BigQuerySource.Builder clearTableId()
       Required. The BigQuery table to copy the data from with a length limit of
       1,024 characters.
       
      string table_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTableIdBytes

      public BigQuerySource.Builder setTableIdBytes(com.google.protobuf.ByteString value)
       Required. The BigQuery table to copy the data from with a length limit of
       1,024 characters.
       
      string table_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for tableId to set.
      Returns:
      This builder for chaining.
    • getGcsStagingDir

      public String getGcsStagingDir()
       Intermediate Cloud Storage directory used for the import with a length
       limit of 2,000 characters. Can be specified if one wants to have the
       BigQuery export to a specific Cloud Storage directory.
       
      string gcs_staging_dir = 4;
      Specified by:
      getGcsStagingDir in interface BigQuerySourceOrBuilder
      Returns:
      The gcsStagingDir.
    • getGcsStagingDirBytes

      public com.google.protobuf.ByteString getGcsStagingDirBytes()
       Intermediate Cloud Storage directory used for the import with a length
       limit of 2,000 characters. Can be specified if one wants to have the
       BigQuery export to a specific Cloud Storage directory.
       
      string gcs_staging_dir = 4;
      Specified by:
      getGcsStagingDirBytes in interface BigQuerySourceOrBuilder
      Returns:
      The bytes for gcsStagingDir.
    • setGcsStagingDir

      public BigQuerySource.Builder setGcsStagingDir(String value)
       Intermediate Cloud Storage directory used for the import with a length
       limit of 2,000 characters. Can be specified if one wants to have the
       BigQuery export to a specific Cloud Storage directory.
       
      string gcs_staging_dir = 4;
      Parameters:
      value - The gcsStagingDir to set.
      Returns:
      This builder for chaining.
    • clearGcsStagingDir

      public BigQuerySource.Builder clearGcsStagingDir()
       Intermediate Cloud Storage directory used for the import with a length
       limit of 2,000 characters. Can be specified if one wants to have the
       BigQuery export to a specific Cloud Storage directory.
       
      string gcs_staging_dir = 4;
      Returns:
      This builder for chaining.
    • setGcsStagingDirBytes

      public BigQuerySource.Builder setGcsStagingDirBytes(com.google.protobuf.ByteString value)
       Intermediate Cloud Storage directory used for the import with a length
       limit of 2,000 characters. Can be specified if one wants to have the
       BigQuery export to a specific Cloud Storage directory.
       
      string gcs_staging_dir = 4;
      Parameters:
      value - The bytes for gcsStagingDir to set.
      Returns:
      This builder for chaining.
    • getDataSchema

      public String getDataSchema()
       The schema to use when parsing the data from the source.
      
       Supported values for user event imports:
      
       * `user_event` (default): One
       [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] per row.
      
       Supported values for document imports:
      
       * `document` (default): One
       [Document][google.cloud.discoveryengine.v1beta.Document] format per
       row. Each document must have a valid
       [Document.id][google.cloud.discoveryengine.v1beta.Document.id] and one of
       [Document.json_data][google.cloud.discoveryengine.v1beta.Document.json_data]
       or
       [Document.struct_data][google.cloud.discoveryengine.v1beta.Document.struct_data].
       * `custom`: One custom data per row in arbitrary format that conforms to
       the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
       data store. This can only be used by the GENERIC Data Store vertical.
       
      string data_schema = 6;
      Specified by:
      getDataSchema in interface BigQuerySourceOrBuilder
      Returns:
      The dataSchema.
    • getDataSchemaBytes

      public com.google.protobuf.ByteString getDataSchemaBytes()
       The schema to use when parsing the data from the source.
      
       Supported values for user event imports:
      
       * `user_event` (default): One
       [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] per row.
      
       Supported values for document imports:
      
       * `document` (default): One
       [Document][google.cloud.discoveryengine.v1beta.Document] format per
       row. Each document must have a valid
       [Document.id][google.cloud.discoveryengine.v1beta.Document.id] and one of
       [Document.json_data][google.cloud.discoveryengine.v1beta.Document.json_data]
       or
       [Document.struct_data][google.cloud.discoveryengine.v1beta.Document.struct_data].
       * `custom`: One custom data per row in arbitrary format that conforms to
       the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
       data store. This can only be used by the GENERIC Data Store vertical.
       
      string data_schema = 6;
      Specified by:
      getDataSchemaBytes in interface BigQuerySourceOrBuilder
      Returns:
      The bytes for dataSchema.
    • setDataSchema

      public BigQuerySource.Builder setDataSchema(String value)
       The schema to use when parsing the data from the source.
      
       Supported values for user event imports:
      
       * `user_event` (default): One
       [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] per row.
      
       Supported values for document imports:
      
       * `document` (default): One
       [Document][google.cloud.discoveryengine.v1beta.Document] format per
       row. Each document must have a valid
       [Document.id][google.cloud.discoveryengine.v1beta.Document.id] and one of
       [Document.json_data][google.cloud.discoveryengine.v1beta.Document.json_data]
       or
       [Document.struct_data][google.cloud.discoveryengine.v1beta.Document.struct_data].
       * `custom`: One custom data per row in arbitrary format that conforms to
       the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
       data store. This can only be used by the GENERIC Data Store vertical.
       
      string data_schema = 6;
      Parameters:
      value - The dataSchema to set.
      Returns:
      This builder for chaining.
    • clearDataSchema

      public BigQuerySource.Builder clearDataSchema()
       The schema to use when parsing the data from the source.
      
       Supported values for user event imports:
      
       * `user_event` (default): One
       [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] per row.
      
       Supported values for document imports:
      
       * `document` (default): One
       [Document][google.cloud.discoveryengine.v1beta.Document] format per
       row. Each document must have a valid
       [Document.id][google.cloud.discoveryengine.v1beta.Document.id] and one of
       [Document.json_data][google.cloud.discoveryengine.v1beta.Document.json_data]
       or
       [Document.struct_data][google.cloud.discoveryengine.v1beta.Document.struct_data].
       * `custom`: One custom data per row in arbitrary format that conforms to
       the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
       data store. This can only be used by the GENERIC Data Store vertical.
       
      string data_schema = 6;
      Returns:
      This builder for chaining.
    • setDataSchemaBytes

      public BigQuerySource.Builder setDataSchemaBytes(com.google.protobuf.ByteString value)
       The schema to use when parsing the data from the source.
      
       Supported values for user event imports:
      
       * `user_event` (default): One
       [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] per row.
      
       Supported values for document imports:
      
       * `document` (default): One
       [Document][google.cloud.discoveryengine.v1beta.Document] format per
       row. Each document must have a valid
       [Document.id][google.cloud.discoveryengine.v1beta.Document.id] and one of
       [Document.json_data][google.cloud.discoveryengine.v1beta.Document.json_data]
       or
       [Document.struct_data][google.cloud.discoveryengine.v1beta.Document.struct_data].
       * `custom`: One custom data per row in arbitrary format that conforms to
       the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
       data store. This can only be used by the GENERIC Data Store vertical.
       
      string data_schema = 6;
      Parameters:
      value - The bytes for dataSchema to set.
      Returns:
      This builder for chaining.