public static final class GcsSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<GcsSource.Builder> implements GcsSourceOrBuilder
Cloud Storage location for input content.Protobuf type
google.cloud.discoveryengine.v1.GcsSource| Modifier and Type | Method and Description |
|---|---|
GcsSource.Builder |
addAllInputUris(Iterable<String> values)
Required.
|
GcsSource.Builder |
addInputUris(String value)
Required.
|
GcsSource.Builder |
addInputUrisBytes(com.google.protobuf.ByteString value)
Required.
|
GcsSource |
build() |
GcsSource |
buildPartial() |
GcsSource.Builder |
clear() |
GcsSource.Builder |
clearDataSchema()
The schema to use when parsing the data from the source.
|
GcsSource.Builder |
clearInputUris()
Required.
|
String |
getDataSchema()
The schema to use when parsing the data from the source.
|
com.google.protobuf.ByteString |
getDataSchemaBytes()
The schema to use when parsing the data from the source.
|
GcsSource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getInputUris(int index)
Required.
|
com.google.protobuf.ByteString |
getInputUrisBytes(int index)
Required.
|
int |
getInputUrisCount()
Required.
|
com.google.protobuf.ProtocolStringList |
getInputUrisList()
Required.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GcsSource.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GcsSource.Builder |
mergeFrom(GcsSource other) |
GcsSource.Builder |
mergeFrom(com.google.protobuf.Message other) |
GcsSource.Builder |
setDataSchema(String value)
The schema to use when parsing the data from the source.
|
GcsSource.Builder |
setDataSchemaBytes(com.google.protobuf.ByteString value)
The schema to use when parsing the data from the source.
|
GcsSource.Builder |
setInputUris(int index,
String value)
Required.
|
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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GcsSource.Builder>public GcsSource.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<GcsSource.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GcsSource.Builder>public GcsSource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GcsSource build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GcsSource buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GcsSource.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GcsSource.Builder>public GcsSource.Builder mergeFrom(GcsSource other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<GcsSource.Builder>public GcsSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GcsSource.Builder>IOExceptionpublic com.google.protobuf.ProtocolStringList getInputUrisList()
Required. Cloud Storage URIs to input files. Each 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 (or 100,000 files if `data_schema` is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is `content`).
repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED];getInputUrisList in interface GcsSourceOrBuilderpublic int getInputUrisCount()
Required. Cloud Storage URIs to input files. Each 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 (or 100,000 files if `data_schema` is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is `content`).
repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED];getInputUrisCount in interface GcsSourceOrBuilderpublic String getInputUris(int index)
Required. Cloud Storage URIs to input files. Each 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 (or 100,000 files if `data_schema` is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is `content`).
repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED];getInputUris in interface GcsSourceOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getInputUrisBytes(int index)
Required. Cloud Storage URIs to input files. Each 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 (or 100,000 files if `data_schema` is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is `content`).
repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED];getInputUrisBytes in interface GcsSourceOrBuilderindex - The index of the value to return.public GcsSource.Builder setInputUris(int index, String value)
Required. Cloud Storage URIs to input files. Each 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 (or 100,000 files if `data_schema` is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is `content`).
repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED];index - The index to set the value at.value - The inputUris to set.public GcsSource.Builder addInputUris(String value)
Required. Cloud Storage URIs to input files. Each 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 (or 100,000 files if `data_schema` is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is `content`).
repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED];value - The inputUris to add.public GcsSource.Builder addAllInputUris(Iterable<String> values)
Required. Cloud Storage URIs to input files. Each 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 (or 100,000 files if `data_schema` is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is `content`).
repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED];values - The inputUris to add.public GcsSource.Builder clearInputUris()
Required. Cloud Storage URIs to input files. Each 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 (or 100,000 files if `data_schema` is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is `content`).
repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED];public GcsSource.Builder addInputUrisBytes(com.google.protobuf.ByteString value)
Required. Cloud Storage URIs to input files. Each 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 (or 100,000 files if `data_schema` is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is `content`).
repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes of the inputUris to add.public String getDataSchema()
The schema to use when parsing the data from the source. Supported values for document imports: * `document` (default): One JSON [Document][google.cloud.discoveryengine.v1.Document] per line. Each document must have a valid [Document.id][google.cloud.discoveryengine.v1.Document.id]. * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris` becomes a document, with the ID set to the first 128 bits of SHA256(URI) encoded as a hex string. * `custom`: One custom data JSON per row in arbitrary format that conforms to the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the data store. This can only be used by the GENERIC Data Store vertical. * `csv`: A CSV file with header conforming to the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the data store. Each entry after the header is imported as a Document. This can only be used by the GENERIC Data Store vertical. Supported values for user event imports: * `user_event` (default): One JSON [UserEvent][google.cloud.discoveryengine.v1.UserEvent] per line.
string data_schema = 2;getDataSchema in interface GcsSourceOrBuilderpublic com.google.protobuf.ByteString getDataSchemaBytes()
The schema to use when parsing the data from the source. Supported values for document imports: * `document` (default): One JSON [Document][google.cloud.discoveryengine.v1.Document] per line. Each document must have a valid [Document.id][google.cloud.discoveryengine.v1.Document.id]. * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris` becomes a document, with the ID set to the first 128 bits of SHA256(URI) encoded as a hex string. * `custom`: One custom data JSON per row in arbitrary format that conforms to the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the data store. This can only be used by the GENERIC Data Store vertical. * `csv`: A CSV file with header conforming to the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the data store. Each entry after the header is imported as a Document. This can only be used by the GENERIC Data Store vertical. Supported values for user event imports: * `user_event` (default): One JSON [UserEvent][google.cloud.discoveryengine.v1.UserEvent] per line.
string data_schema = 2;getDataSchemaBytes in interface GcsSourceOrBuilderpublic GcsSource.Builder setDataSchema(String value)
The schema to use when parsing the data from the source. Supported values for document imports: * `document` (default): One JSON [Document][google.cloud.discoveryengine.v1.Document] per line. Each document must have a valid [Document.id][google.cloud.discoveryengine.v1.Document.id]. * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris` becomes a document, with the ID set to the first 128 bits of SHA256(URI) encoded as a hex string. * `custom`: One custom data JSON per row in arbitrary format that conforms to the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the data store. This can only be used by the GENERIC Data Store vertical. * `csv`: A CSV file with header conforming to the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the data store. Each entry after the header is imported as a Document. This can only be used by the GENERIC Data Store vertical. Supported values for user event imports: * `user_event` (default): One JSON [UserEvent][google.cloud.discoveryengine.v1.UserEvent] per line.
string data_schema = 2;value - The dataSchema to set.public GcsSource.Builder clearDataSchema()
The schema to use when parsing the data from the source. Supported values for document imports: * `document` (default): One JSON [Document][google.cloud.discoveryengine.v1.Document] per line. Each document must have a valid [Document.id][google.cloud.discoveryengine.v1.Document.id]. * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris` becomes a document, with the ID set to the first 128 bits of SHA256(URI) encoded as a hex string. * `custom`: One custom data JSON per row in arbitrary format that conforms to the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the data store. This can only be used by the GENERIC Data Store vertical. * `csv`: A CSV file with header conforming to the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the data store. Each entry after the header is imported as a Document. This can only be used by the GENERIC Data Store vertical. Supported values for user event imports: * `user_event` (default): One JSON [UserEvent][google.cloud.discoveryengine.v1.UserEvent] per line.
string data_schema = 2;public GcsSource.Builder setDataSchemaBytes(com.google.protobuf.ByteString value)
The schema to use when parsing the data from the source. Supported values for document imports: * `document` (default): One JSON [Document][google.cloud.discoveryengine.v1.Document] per line. Each document must have a valid [Document.id][google.cloud.discoveryengine.v1.Document.id]. * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris` becomes a document, with the ID set to the first 128 bits of SHA256(URI) encoded as a hex string. * `custom`: One custom data JSON per row in arbitrary format that conforms to the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the data store. This can only be used by the GENERIC Data Store vertical. * `csv`: A CSV file with header conforming to the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the data store. Each entry after the header is imported as a Document. This can only be used by the GENERIC Data Store vertical. Supported values for user event imports: * `user_event` (default): One JSON [UserEvent][google.cloud.discoveryengine.v1.UserEvent] per line.
string data_schema = 2;value - The bytes for dataSchema to set.Copyright © 2026 Google LLC. All rights reserved.