public static final class GcsSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder> implements GcsSourceOrBuilder
Cloud Storage location for input content.Protobuf type
google.cloud.discoveryengine.v1beta.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.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GcsSource |
build() |
GcsSource |
buildPartial() |
GcsSource.Builder |
clear() |
GcsSource.Builder |
clearDataSchema()
The schema to use when parsing the data from the source.
|
GcsSource.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
GcsSource.Builder |
clearInputUris()
Required.
|
GcsSource.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
GcsSource.Builder |
clone() |
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.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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 |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GcsSource.Builder |
setInputUris(int index,
String value)
Required.
|
GcsSource.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
GcsSource.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>public GcsSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>public GcsSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>public GcsSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>public GcsSource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>public GcsSource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>public 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.GeneratedMessageV3.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. 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. 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. 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. 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. 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. 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. 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. 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. 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.v1beta.Document] per line. Each document must have a valid [Document.id][google.cloud.discoveryengine.v1beta.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.v1beta.Schema] of the data store. This can only be used by Gen App Builder. * `csv`: A CSV file with header conforming to the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the data store. Each entry after the header is imported as a Document. This can only be used by Gen App Builder. Supported values for user even imports: * `user_event` (default): One JSON [UserEvent][google.cloud.discoveryengine.v1beta.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.v1beta.Document] per line. Each document must have a valid [Document.id][google.cloud.discoveryengine.v1beta.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.v1beta.Schema] of the data store. This can only be used by Gen App Builder. * `csv`: A CSV file with header conforming to the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the data store. Each entry after the header is imported as a Document. This can only be used by Gen App Builder. Supported values for user even imports: * `user_event` (default): One JSON [UserEvent][google.cloud.discoveryengine.v1beta.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.v1beta.Document] per line. Each document must have a valid [Document.id][google.cloud.discoveryengine.v1beta.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.v1beta.Schema] of the data store. This can only be used by Gen App Builder. * `csv`: A CSV file with header conforming to the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the data store. Each entry after the header is imported as a Document. This can only be used by Gen App Builder. Supported values for user even imports: * `user_event` (default): One JSON [UserEvent][google.cloud.discoveryengine.v1beta.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.v1beta.Document] per line. Each document must have a valid [Document.id][google.cloud.discoveryengine.v1beta.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.v1beta.Schema] of the data store. This can only be used by Gen App Builder. * `csv`: A CSV file with header conforming to the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the data store. Each entry after the header is imported as a Document. This can only be used by Gen App Builder. Supported values for user even imports: * `user_event` (default): One JSON [UserEvent][google.cloud.discoveryengine.v1beta.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.v1beta.Document] per line. Each document must have a valid [Document.id][google.cloud.discoveryengine.v1beta.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.v1beta.Schema] of the data store. This can only be used by Gen App Builder. * `csv`: A CSV file with header conforming to the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the data store. Each entry after the header is imported as a Document. This can only be used by Gen App Builder. Supported values for user even imports: * `user_event` (default): One JSON [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] per line.
string data_schema = 2;value - The bytes for dataSchema to set.public final GcsSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>public final GcsSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>Copyright © 2024 Google LLC. All rights reserved.