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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The schema to use when parsing the data from the source.Required.Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters.BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.The project ID or the project number that contains the BigQuery source.Required.The schema to use when parsing the data from the source.com.google.protobuf.ByteStringThe schema to use when parsing the data from the source.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIntermediate Cloud Storage directory used for the import with a length limit of 2,000 characters.com.google.protobuf.ByteStringIntermediate Cloud Storage directory used for the import with a length limit of 2,000 characters.BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.The project ID or the project number that contains the BigQuery source.com.google.protobuf.ByteStringThe project ID or the project number that contains the BigQuery source.Required.com.google.protobuf.ByteStringRequired.booleanBigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(BigQuerySource other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePartitionDate(Date value) BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.setDataSchema(String value) The schema to use when parsing the data from the source.setDataSchemaBytes(com.google.protobuf.ByteString value) The schema to use when parsing the data from the source.setDatasetId(String value) Required.setDatasetIdBytes(com.google.protobuf.ByteString value) Required.setGcsStagingDir(String value) Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters.setGcsStagingDirBytes(com.google.protobuf.ByteString value) Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters.setPartitionDate(Date value) BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.setPartitionDate(Date.Builder builderForValue) BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.setProjectId(String value) The project ID or the project number that contains the BigQuery source.setProjectIdBytes(com.google.protobuf.ByteString value) The project ID or the project number that contains the BigQuery source.setTableId(String value) Required.setTableIdBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BigQuerySource.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BigQuerySource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BigQuerySource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BigQuerySource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BigQuerySource.Builder>- Throws:
IOException
-
getPartitionCase
- Specified by:
getPartitionCasein interfaceBigQuerySourceOrBuilder
-
clearPartition
-
hasPartitionDate
public boolean hasPartitionDate()BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
.google.type.Date partition_date = 5;- Specified by:
hasPartitionDatein interfaceBigQuerySourceOrBuilder- Returns:
- Whether the partitionDate field is set.
-
getPartitionDate
BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
.google.type.Date partition_date = 5;- Specified by:
getPartitionDatein interfaceBigQuerySourceOrBuilder- Returns:
- The partitionDate.
-
setPartitionDate
BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
.google.type.Date partition_date = 5; -
setPartitionDate
BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
.google.type.Date partition_date = 5; -
mergePartitionDate
BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
.google.type.Date partition_date = 5; -
clearPartitionDate
BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
.google.type.Date partition_date = 5; -
getPartitionDateBuilder
BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
.google.type.Date partition_date = 5; -
getPartitionDateOrBuilder
BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.
.google.type.Date partition_date = 5;- Specified by:
getPartitionDateOrBuilderin interfaceBigQuerySourceOrBuilder
-
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:
getProjectIdin interfaceBigQuerySourceOrBuilder- 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:
getProjectIdBytesin interfaceBigQuerySourceOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
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
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
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
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:
getDatasetIdin interfaceBigQuerySourceOrBuilder- 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:
getDatasetIdBytesin interfaceBigQuerySourceOrBuilder- Returns:
- The bytes for datasetId.
-
setDatasetId
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
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
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
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:
getTableIdin interfaceBigQuerySourceOrBuilder- 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:
getTableIdBytesin interfaceBigQuerySourceOrBuilder- Returns:
- The bytes for tableId.
-
setTableId
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
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
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
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:
getGcsStagingDirin interfaceBigQuerySourceOrBuilder- 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:
getGcsStagingDirBytesin interfaceBigQuerySourceOrBuilder- Returns:
- The bytes for gcsStagingDir.
-
setGcsStagingDir
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
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
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
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:
getDataSchemain interfaceBigQuerySourceOrBuilder- 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:
getDataSchemaBytesin interfaceBigQuerySourceOrBuilder- Returns:
- The bytes for dataSchema.
-
setDataSchema
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
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
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.
-