Class GcsSource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>
-
- com.google.cloud.discoveryengine.v1beta.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.GeneratedMessageV3.Builder<GcsSource.Builder> implements GcsSourceOrBuilder
Cloud Storage location for input content.
Protobuf typegoogle.cloud.discoveryengine.v1beta.GcsSource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GcsSource.BuilderaddAllInputUris(Iterable<String> values)Required.GcsSource.BuilderaddInputUris(String value)Required.GcsSource.BuilderaddInputUrisBytes(com.google.protobuf.ByteString value)Required.GcsSource.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GcsSourcebuild()GcsSourcebuildPartial()GcsSource.Builderclear()GcsSource.BuilderclearDataSchema()The schema to use when parsing the data from the source.GcsSource.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GcsSource.BuilderclearInputUris()Required.GcsSource.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GcsSource.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.GcsSourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetInputUris(int index)Required.com.google.protobuf.ByteStringgetInputUrisBytes(int index)Required.intgetInputUrisCount()Required.com.google.protobuf.ProtocolStringListgetInputUrisList()Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GcsSource.BuildermergeFrom(GcsSource other)GcsSource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GcsSource.BuildermergeFrom(com.google.protobuf.Message other)GcsSource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GcsSource.BuildersetDataSchema(String value)The schema to use when parsing the data from the source.GcsSource.BuildersetDataSchemaBytes(com.google.protobuf.ByteString value)The schema to use when parsing the data from the source.GcsSource.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GcsSource.BuildersetInputUris(int index, String value)Required.GcsSource.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GcsSource.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<GcsSource.Builder>
-
clear
public GcsSource.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<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.GeneratedMessageV3.Builder<GcsSource.Builder>
-
getDefaultInstanceForType
public GcsSource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GcsSource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GcsSource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GcsSource.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<GcsSource.Builder>
-
setField
public GcsSource.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<GcsSource.Builder>
-
clearField
public GcsSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>
-
clearOneof
public GcsSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>
-
setRepeatedField
public GcsSource.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<GcsSource.Builder>
-
addRepeatedField
public GcsSource.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<GcsSource.Builder>
-
mergeFrom
public GcsSource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GcsSource.Builder>
-
mergeFrom
public GcsSource.Builder mergeFrom(GcsSource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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. 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];- Specified by:
getInputUrisListin interfaceGcsSourceOrBuilder- Returns:
- A list containing the inputUris.
-
getInputUrisCount
public 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];- Specified by:
getInputUrisCountin interfaceGcsSourceOrBuilder- Returns:
- The count of inputUris.
-
getInputUris
public 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];- 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. 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];- Specified by:
getInputUrisBytesin interfaceGcsSourceOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the inputUris at the given index.
-
setInputUris
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];- Parameters:
index- The index to set the value at.value- The inputUris to set.- Returns:
- This builder for chaining.
-
addInputUris
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];- Parameters:
value- The inputUris to add.- Returns:
- This builder for chaining.
-
addAllInputUris
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];- Parameters:
values- The inputUris to add.- Returns:
- This builder for chaining.
-
clearInputUris
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];- Returns:
- This builder for chaining.
-
addInputUrisBytes
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];- Parameters:
value- The bytes of the inputUris to add.- Returns:
- This builder for chaining.
-
getDataSchema
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;- 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 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;- Specified by:
getDataSchemaBytesin interfaceGcsSourceOrBuilder- Returns:
- The bytes for dataSchema.
-
setDataSchema
public 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;- Parameters:
value- The dataSchema to set.- Returns:
- This builder for chaining.
-
clearDataSchema
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;- Returns:
- This builder for chaining.
-
setDataSchemaBytes
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;- Parameters:
value- The bytes for dataSchema to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final GcsSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>
-
mergeUnknownFields
public final GcsSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>
-
-