Package com.google.cloud.retail.v2alpha
Class BigQuerySource
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.retail.v2alpha.BigQuerySource
-
- All Implemented Interfaces:
BigQuerySourceOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class BigQuerySource extends com.google.protobuf.GeneratedMessageV3 implements BigQuerySourceOrBuilder
BigQuery source import data from.
Protobuf typegoogle.cloud.retail.v2alpha.BigQuerySource- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBigQuerySource.BuilderBigQuery source import data from.static classBigQuerySource.PartitionCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDATA_SCHEMA_FIELD_NUMBERstatic intDATASET_ID_FIELD_NUMBERstatic intGCS_STAGING_DIR_FIELD_NUMBERstatic intPARTITION_DATE_FIELD_NUMBERstatic intPROJECT_ID_FIELD_NUMBERstatic intTABLE_ID_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)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.static BigQuerySourcegetDefaultInstance()BigQuerySourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()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.com.google.protobuf.Parser<BigQuerySource>getParserForType()BigQuerySource.PartitionCasegetPartitionCase()com.google.type.DategetPartitionDate()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.intgetSerializedSize()StringgetTableId()Required.com.google.protobuf.ByteStringgetTableIdBytes()Required.inthashCode()booleanhasPartitionDate()BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static BigQuerySource.BuildernewBuilder()static BigQuerySource.BuildernewBuilder(BigQuerySource prototype)BigQuerySource.BuildernewBuilderForType()protected BigQuerySource.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static BigQuerySourceparseDelimitedFrom(InputStream input)static BigQuerySourceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BigQuerySourceparseFrom(byte[] data)static BigQuerySourceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BigQuerySourceparseFrom(com.google.protobuf.ByteString data)static BigQuerySourceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BigQuerySourceparseFrom(com.google.protobuf.CodedInputStream input)static BigQuerySourceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BigQuerySourceparseFrom(InputStream input)static BigQuerySourceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BigQuerySourceparseFrom(ByteBuffer data)static BigQuerySourceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<BigQuerySource>parser()BigQuerySource.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PARTITION_DATE_FIELD_NUMBER
public static final int PARTITION_DATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROJECT_ID_FIELD_NUMBER
public static final int PROJECT_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATASET_ID_FIELD_NUMBER
public static final int DATASET_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TABLE_ID_FIELD_NUMBER
public static final int TABLE_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GCS_STAGING_DIR_FIELD_NUMBER
public static final int GCS_STAGING_DIR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATA_SCHEMA_FIELD_NUMBER
public static final int DATA_SCHEMA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
getPartitionCase
public BigQuerySource.PartitionCase getPartitionCase()
- Specified by:
getPartitionCasein interfaceBigQuerySourceOrBuilder
-
hasPartitionDate
public boolean hasPartitionDate()
BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. Only supported in [ImportProductsRequest][google.cloud.retail.v2alpha.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.v2alpha.ImportProductsRequest].
.google.type.Date partition_date = 6;- Specified by:
getPartitionDatein interfaceBigQuerySourceOrBuilder- Returns:
- The partitionDate.
-
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.v2alpha.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.
-
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.
-
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.
-
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.
-
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.v2alpha.Product] per line. Each product must have a valid [Product.id][google.cloud.retail.v2alpha.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.v2alpha.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.v2alpha.Product] per line. Each product must have a valid [Product.id][google.cloud.retail.v2alpha.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.v2alpha.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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static BigQuerySource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BigQuerySource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BigQuerySource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BigQuerySource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BigQuerySource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BigQuerySource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BigQuerySource parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static BigQuerySource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static BigQuerySource parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static BigQuerySource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static BigQuerySource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static BigQuerySource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public BigQuerySource.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static BigQuerySource.Builder newBuilder()
-
newBuilder
public static BigQuerySource.Builder newBuilder(BigQuerySource prototype)
-
toBuilder
public BigQuerySource.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BigQuerySource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static BigQuerySource getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<BigQuerySource> parser()
-
getParserForType
public com.google.protobuf.Parser<BigQuerySource> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public BigQuerySource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-