Package com.google.cloud.retail.v2alpha
Class GcsSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GcsSource.Builder>
com.google.cloud.retail.v2alpha.GcsSource.Builder
- All Implemented Interfaces:
GcsSourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GcsSource
public static final class GcsSource.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GcsSource.Builder>
implements GcsSourceOrBuilder
Google Cloud Storage location for input content.Protobuf type
google.cloud.retail.v2alpha.GcsSource-
Method Summary
Modifier and TypeMethodDescriptionaddAllInputUris(Iterable<String> values) Required.addInputUris(String value) Required.addInputUrisBytes(com.google.protobuf.ByteString value) Required.build()clear()The schema to use when parsing the data from the 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.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetInputUris(int index) Required.com.google.protobuf.ByteStringgetInputUrisBytes(int index) Required.intRequired.com.google.protobuf.ProtocolStringListRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.setInputUris(int index, String 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<GcsSource.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<GcsSource.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<GcsSource.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<GcsSource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GcsSource.Builder>
-
mergeFrom
public GcsSource.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<GcsSource.Builder>- Throws:
IOException
-
getInputUrisList
public com.google.protobuf.ProtocolStringList getInputUrisList()Required. Google Cloud Storage URIs to input files. URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files, and each file can be up to 2 GB. See [Importing product information](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog) for the expected file format and setup instructions.
repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInputUrisListin interfaceGcsSourceOrBuilder- Returns:
- A list containing the inputUris.
-
getInputUrisCount
public int getInputUrisCount()Required. Google Cloud Storage URIs to input files. URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files, and each file can be up to 2 GB. See [Importing product information](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog) for the expected file format and setup instructions.
repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInputUrisCountin interfaceGcsSourceOrBuilder- Returns:
- The count of inputUris.
-
getInputUris
Required. Google Cloud Storage URIs to input files. URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files, and each file can be up to 2 GB. See [Importing product information](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog) for the expected file format and setup instructions.
repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInputUrisin interfaceGcsSourceOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The inputUris at the given index.
-
getInputUrisBytes
public com.google.protobuf.ByteString getInputUrisBytes(int index) Required. Google Cloud Storage URIs to input files. URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files, and each file can be up to 2 GB. See [Importing product information](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog) for the expected file format and setup instructions.
repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInputUrisBytesin interfaceGcsSourceOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the inputUris at the given index.
-
setInputUris
Required. Google Cloud Storage URIs to input files. URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files, and each file can be up to 2 GB. See [Importing product information](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog) for the expected file format and setup instructions.
repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The inputUris to set.- Returns:
- This builder for chaining.
-
addInputUris
Required. Google Cloud Storage URIs to input files. URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files, and each file can be up to 2 GB. See [Importing product information](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog) for the expected file format and setup instructions.
repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The inputUris to add.- Returns:
- This builder for chaining.
-
addAllInputUris
Required. Google Cloud Storage URIs to input files. URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files, and each file can be up to 2 GB. See [Importing product information](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog) for the expected file format and setup instructions.
repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The inputUris to add.- Returns:
- This builder for chaining.
-
clearInputUris
Required. Google Cloud Storage URIs to input files. URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files, and each file can be up to 2 GB. See [Importing product information](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog) for the expected file format and setup instructions.
repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
addInputUrisBytes
Required. Google Cloud Storage URIs to input files. URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files, and each file can be up to 2 GB. See [Importing product information](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog) for the expected file format and setup instructions.
repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes of the inputUris to add.- Returns:
- This builder for chaining.
-
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`: Using https://support.google.com/analytics/answer/3437719. Supported values for control imports: * `control` (default): One JSON [Control][google.cloud.retail.v2alpha.Control] per line. Supported values for catalog attribute imports: * `catalog_attribute` (default): One CSV [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] per line.
string data_schema = 2;- Specified by:
getDataSchemain interfaceGcsSourceOrBuilder- 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`: Using https://support.google.com/analytics/answer/3437719. Supported values for control imports: * `control` (default): One JSON [Control][google.cloud.retail.v2alpha.Control] per line. Supported values for catalog attribute imports: * `catalog_attribute` (default): One CSV [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] per line.
string data_schema = 2;- Specified by:
getDataSchemaBytesin interfaceGcsSourceOrBuilder- Returns:
- The bytes for dataSchema.
-
setDataSchema
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`: Using https://support.google.com/analytics/answer/3437719. Supported values for control imports: * `control` (default): One JSON [Control][google.cloud.retail.v2alpha.Control] per line. Supported values for catalog attribute imports: * `catalog_attribute` (default): One CSV [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] per line.
string data_schema = 2;- 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 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`: Using https://support.google.com/analytics/answer/3437719. Supported values for control imports: * `control` (default): One JSON [Control][google.cloud.retail.v2alpha.Control] per line. Supported values for catalog attribute imports: * `catalog_attribute` (default): One CSV [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] per line.
string data_schema = 2;- Returns:
- This builder for chaining.
-
setDataSchemaBytes
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`: Using https://support.google.com/analytics/answer/3437719. Supported values for control imports: * `control` (default): One JSON [Control][google.cloud.retail.v2alpha.Control] per line. Supported values for catalog attribute imports: * `catalog_attribute` (default): One CSV [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] per line.
string data_schema = 2;- Parameters:
value- The bytes for dataSchema to set.- Returns:
- This builder for chaining.
-