Package com.google.cloud.retail.v2
Class BigQuerySource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BigQuerySource.Builder>
-
- com.google.cloud.retail.v2.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.GeneratedMessageV3.Builder<BigQuerySource.Builder> implements BigQuerySourceOrBuilder
BigQuery source import data from.
Protobuf typegoogle.cloud.retail.v2.BigQuerySource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BigQuerySource.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BigQuerySourcebuild()BigQuerySourcebuildPartial()BigQuerySource.Builderclear()BigQuerySource.BuilderclearDataSchema()The schema to use when parsing the data from the source.BigQuerySource.BuilderclearDatasetId()Required.BigQuerySource.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BigQuerySource.BuilderclearGcsStagingDir()Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters.BigQuerySource.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BigQuerySource.BuilderclearPartition()BigQuerySource.BuilderclearPartitionDate()BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.BigQuerySource.BuilderclearProjectId()The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters.BigQuerySource.BuilderclearTableId()Required.BigQuerySource.Builderclone()StringgetDataSchema()The schema to use when parsing the data from the source.com.google.protobuf.ByteStringgetDataSchemaBytes()The schema to use when parsing the data from the source.StringgetDatasetId()Required.com.google.protobuf.ByteStringgetDatasetIdBytes()Required.BigQuerySourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetGcsStagingDir()Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters.com.google.protobuf.ByteStringgetGcsStagingDirBytes()Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters.BigQuerySource.PartitionCasegetPartitionCase()com.google.type.DategetPartitionDate()BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.com.google.type.Date.BuildergetPartitionDateBuilder()BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.com.google.type.DateOrBuildergetPartitionDateOrBuilder()BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.StringgetProjectId()The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters.com.google.protobuf.ByteStringgetProjectIdBytes()The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters.StringgetTableId()Required.com.google.protobuf.ByteStringgetTableIdBytes()Required.booleanhasPartitionDate()BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()BigQuerySource.BuildermergeFrom(BigQuerySource other)BigQuerySource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BigQuerySource.BuildermergeFrom(com.google.protobuf.Message other)BigQuerySource.BuildermergePartitionDate(com.google.type.Date value)BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.BigQuerySource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BigQuerySource.BuildersetDataSchema(String value)The schema to use when parsing the data from the source.BigQuerySource.BuildersetDataSchemaBytes(com.google.protobuf.ByteString value)The schema to use when parsing the data from the source.BigQuerySource.BuildersetDatasetId(String value)Required.BigQuerySource.BuildersetDatasetIdBytes(com.google.protobuf.ByteString value)Required.BigQuerySource.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BigQuerySource.BuildersetGcsStagingDir(String value)Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters.BigQuerySource.BuildersetGcsStagingDirBytes(com.google.protobuf.ByteString value)Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters.BigQuerySource.BuildersetPartitionDate(com.google.type.Date value)BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.BigQuerySource.BuildersetPartitionDate(com.google.type.Date.Builder builderForValue)BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.BigQuerySource.BuildersetProjectId(String value)The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters.BigQuerySource.BuildersetProjectIdBytes(com.google.protobuf.ByteString value)The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters.BigQuerySource.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)BigQuerySource.BuildersetTableId(String value)Required.BigQuerySource.BuildersetTableIdBytes(com.google.protobuf.ByteString value)Required.BigQuerySource.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BigQuerySource.Builder>
-
clear
public BigQuerySource.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<BigQuerySource.Builder>
-
getDefaultInstanceForType
public BigQuerySource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BigQuerySource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BigQuerySource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BigQuerySource.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BigQuerySource.Builder>
-
setField
public BigQuerySource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BigQuerySource.Builder>
-
clearField
public BigQuerySource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BigQuerySource.Builder>
-
clearOneof
public BigQuerySource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BigQuerySource.Builder>
-
setRepeatedField
public BigQuerySource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BigQuerySource.Builder>
-
addRepeatedField
public BigQuerySource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BigQuerySource.Builder>
-
mergeFrom
public BigQuerySource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BigQuerySource.Builder>
-
mergeFrom
public BigQuerySource.Builder mergeFrom(BigQuerySource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public BigQuerySource.PartitionCase getPartitionCase()
- Specified by:
getPartitionCasein interfaceBigQuerySourceOrBuilder
-
clearPartition
public BigQuerySource.Builder clearPartition()
-
hasPartitionDate
public boolean hasPartitionDate()
BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. Only supported in [ImportProductsRequest][google.cloud.retail.v2.ImportProductsRequest].
.google.type.Date partition_date = 6;- Specified by:
hasPartitionDatein interfaceBigQuerySourceOrBuilder- Returns:
- Whether the partitionDate field is set.
-
getPartitionDate
public com.google.type.Date getPartitionDate()
BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. Only supported in [ImportProductsRequest][google.cloud.retail.v2.ImportProductsRequest].
.google.type.Date partition_date = 6;- Specified by:
getPartitionDatein interfaceBigQuerySourceOrBuilder- Returns:
- The partitionDate.
-
setPartitionDate
public BigQuerySource.Builder setPartitionDate(com.google.type.Date value)
BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. Only supported in [ImportProductsRequest][google.cloud.retail.v2.ImportProductsRequest].
.google.type.Date partition_date = 6;
-
setPartitionDate
public BigQuerySource.Builder setPartitionDate(com.google.type.Date.Builder builderForValue)
BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. Only supported in [ImportProductsRequest][google.cloud.retail.v2.ImportProductsRequest].
.google.type.Date partition_date = 6;
-
mergePartitionDate
public BigQuerySource.Builder mergePartitionDate(com.google.type.Date value)
BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. Only supported in [ImportProductsRequest][google.cloud.retail.v2.ImportProductsRequest].
.google.type.Date partition_date = 6;
-
clearPartitionDate
public BigQuerySource.Builder clearPartitionDate()
BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. Only supported in [ImportProductsRequest][google.cloud.retail.v2.ImportProductsRequest].
.google.type.Date partition_date = 6;
-
getPartitionDateBuilder
public com.google.type.Date.Builder getPartitionDateBuilder()
BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. Only supported in [ImportProductsRequest][google.cloud.retail.v2.ImportProductsRequest].
.google.type.Date partition_date = 6;
-
getPartitionDateOrBuilder
public com.google.type.DateOrBuilder getPartitionDateOrBuilder()
BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. Only supported in [ImportProductsRequest][google.cloud.retail.v2.ImportProductsRequest].
.google.type.Date partition_date = 6;- Specified by:
getPartitionDateOrBuilderin interfaceBigQuerySourceOrBuilder
-
getProjectId
public String getProjectId()
The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
string project_id = 5;- Specified by:
getProjectIdin interfaceBigQuerySourceOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()
The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
string project_id = 5;- Specified by:
getProjectIdBytesin interfaceBigQuerySourceOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
public BigQuerySource.Builder setProjectId(String value)
The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
string project_id = 5;- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
public BigQuerySource.Builder clearProjectId()
The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
string project_id = 5;- Returns:
- This builder for chaining.
-
setProjectIdBytes
public BigQuerySource.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
string project_id = 5;- 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 = 1 [(.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 = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDatasetIdBytesin interfaceBigQuerySourceOrBuilder- 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 = 1 [(.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 = 1 [(.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 = 1 [(.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 = 2 [(.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 = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTableIdBytesin interfaceBigQuerySourceOrBuilder- 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 = 2 [(.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 = 2 [(.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 = 2 [(.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 = 3;- 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 = 3;- Specified by:
getGcsStagingDirBytesin interfaceBigQuerySourceOrBuilder- 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 = 3;- 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 = 3;- 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 = 3;- 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 product imports: * `product` (default): One JSON [Product][google.cloud.retail.v2.Product] per line. Each product must have a valid [Product.id][google.cloud.retail.v2.Product.id]. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON [UserEvent][google.cloud.retail.v2.UserEvent] per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for autocomplete imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.
string data_schema = 4;- 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 product imports: * `product` (default): One JSON [Product][google.cloud.retail.v2.Product] per line. Each product must have a valid [Product.id][google.cloud.retail.v2.Product.id]. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON [UserEvent][google.cloud.retail.v2.UserEvent] per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for autocomplete imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.
string data_schema = 4;- Specified by:
getDataSchemaBytesin interfaceBigQuerySourceOrBuilder- 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 product imports: * `product` (default): One JSON [Product][google.cloud.retail.v2.Product] per line. Each product must have a valid [Product.id][google.cloud.retail.v2.Product.id]. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON [UserEvent][google.cloud.retail.v2.UserEvent] per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for autocomplete imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.
string data_schema = 4;- 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 product imports: * `product` (default): One JSON [Product][google.cloud.retail.v2.Product] per line. Each product must have a valid [Product.id][google.cloud.retail.v2.Product.id]. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON [UserEvent][google.cloud.retail.v2.UserEvent] per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for autocomplete imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.
string data_schema = 4;- 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 product imports: * `product` (default): One JSON [Product][google.cloud.retail.v2.Product] per line. Each product must have a valid [Product.id][google.cloud.retail.v2.Product.id]. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON [UserEvent][google.cloud.retail.v2.UserEvent] per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for autocomplete imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.
string data_schema = 4;- Parameters:
value- The bytes for dataSchema to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final BigQuerySource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BigQuerySource.Builder>
-
mergeUnknownFields
public final BigQuerySource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BigQuerySource.Builder>
-
-