public static final class TrainCustomModelRequest.GcsTrainingInput.Builder extends com.google.protobuf.GeneratedMessage.Builder<TrainCustomModelRequest.GcsTrainingInput.Builder> implements TrainCustomModelRequest.GcsTrainingInputOrBuilder
Cloud Storage training data input.Protobuf type
google.cloud.discoveryengine.v1.TrainCustomModelRequest.GcsTrainingInput| Modifier and Type | Method and Description |
|---|---|
TrainCustomModelRequest.GcsTrainingInput |
build() |
TrainCustomModelRequest.GcsTrainingInput |
buildPartial() |
TrainCustomModelRequest.GcsTrainingInput.Builder |
clear() |
TrainCustomModelRequest.GcsTrainingInput.Builder |
clearCorpusDataPath()
The Cloud Storage corpus data which could be associated in train data.
|
TrainCustomModelRequest.GcsTrainingInput.Builder |
clearQueryDataPath()
The gcs query data which could be associated in train data.
|
TrainCustomModelRequest.GcsTrainingInput.Builder |
clearTestDataPath()
Cloud Storage test data.
|
TrainCustomModelRequest.GcsTrainingInput.Builder |
clearTrainDataPath()
Cloud Storage training data path whose format should be
`gs://<bucket_to_data>/<tsv_file_name>`.
|
String |
getCorpusDataPath()
The Cloud Storage corpus data which could be associated in train data.
|
com.google.protobuf.ByteString |
getCorpusDataPathBytes()
The Cloud Storage corpus data which could be associated in train data.
|
TrainCustomModelRequest.GcsTrainingInput |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getQueryDataPath()
The gcs query data which could be associated in train data.
|
com.google.protobuf.ByteString |
getQueryDataPathBytes()
The gcs query data which could be associated in train data.
|
String |
getTestDataPath()
Cloud Storage test data.
|
com.google.protobuf.ByteString |
getTestDataPathBytes()
Cloud Storage test data.
|
String |
getTrainDataPath()
Cloud Storage training data path whose format should be
`gs://<bucket_to_data>/<tsv_file_name>`.
|
com.google.protobuf.ByteString |
getTrainDataPathBytes()
Cloud Storage training data path whose format should be
`gs://<bucket_to_data>/<tsv_file_name>`.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TrainCustomModelRequest.GcsTrainingInput.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TrainCustomModelRequest.GcsTrainingInput.Builder |
mergeFrom(com.google.protobuf.Message other) |
TrainCustomModelRequest.GcsTrainingInput.Builder |
mergeFrom(TrainCustomModelRequest.GcsTrainingInput other) |
TrainCustomModelRequest.GcsTrainingInput.Builder |
setCorpusDataPath(String value)
The Cloud Storage corpus data which could be associated in train data.
|
TrainCustomModelRequest.GcsTrainingInput.Builder |
setCorpusDataPathBytes(com.google.protobuf.ByteString value)
The Cloud Storage corpus data which could be associated in train data.
|
TrainCustomModelRequest.GcsTrainingInput.Builder |
setQueryDataPath(String value)
The gcs query data which could be associated in train data.
|
TrainCustomModelRequest.GcsTrainingInput.Builder |
setQueryDataPathBytes(com.google.protobuf.ByteString value)
The gcs query data which could be associated in train data.
|
TrainCustomModelRequest.GcsTrainingInput.Builder |
setTestDataPath(String value)
Cloud Storage test data.
|
TrainCustomModelRequest.GcsTrainingInput.Builder |
setTestDataPathBytes(com.google.protobuf.ByteString value)
Cloud Storage test data.
|
TrainCustomModelRequest.GcsTrainingInput.Builder |
setTrainDataPath(String value)
Cloud Storage training data path whose format should be
`gs://<bucket_to_data>/<tsv_file_name>`.
|
TrainCustomModelRequest.GcsTrainingInput.Builder |
setTrainDataPathBytes(com.google.protobuf.ByteString value)
Cloud Storage training data path whose format should be
`gs://<bucket_to_data>/<tsv_file_name>`.
|
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<TrainCustomModelRequest.GcsTrainingInput.Builder>public TrainCustomModelRequest.GcsTrainingInput.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<TrainCustomModelRequest.GcsTrainingInput.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<TrainCustomModelRequest.GcsTrainingInput.Builder>public TrainCustomModelRequest.GcsTrainingInput getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TrainCustomModelRequest.GcsTrainingInput build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TrainCustomModelRequest.GcsTrainingInput buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TrainCustomModelRequest.GcsTrainingInput.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TrainCustomModelRequest.GcsTrainingInput.Builder>public TrainCustomModelRequest.GcsTrainingInput.Builder mergeFrom(TrainCustomModelRequest.GcsTrainingInput other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<TrainCustomModelRequest.GcsTrainingInput.Builder>public TrainCustomModelRequest.GcsTrainingInput.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<TrainCustomModelRequest.GcsTrainingInput.Builder>IOExceptionpublic String getCorpusDataPath()
The Cloud Storage corpus data which could be associated in train data.
The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
A newline delimited jsonl/ndjson file.
For search-tuning model, each line should have the _id, title
and text. Example:
`{"_id": "doc1", title: "relevant doc", "text": "relevant text"}`
string corpus_data_path = 1;getCorpusDataPath in interface TrainCustomModelRequest.GcsTrainingInputOrBuilderpublic com.google.protobuf.ByteString getCorpusDataPathBytes()
The Cloud Storage corpus data which could be associated in train data.
The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
A newline delimited jsonl/ndjson file.
For search-tuning model, each line should have the _id, title
and text. Example:
`{"_id": "doc1", title: "relevant doc", "text": "relevant text"}`
string corpus_data_path = 1;getCorpusDataPathBytes in interface TrainCustomModelRequest.GcsTrainingInputOrBuilderpublic TrainCustomModelRequest.GcsTrainingInput.Builder setCorpusDataPath(String value)
The Cloud Storage corpus data which could be associated in train data.
The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
A newline delimited jsonl/ndjson file.
For search-tuning model, each line should have the _id, title
and text. Example:
`{"_id": "doc1", title: "relevant doc", "text": "relevant text"}`
string corpus_data_path = 1;value - The corpusDataPath to set.public TrainCustomModelRequest.GcsTrainingInput.Builder clearCorpusDataPath()
The Cloud Storage corpus data which could be associated in train data.
The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
A newline delimited jsonl/ndjson file.
For search-tuning model, each line should have the _id, title
and text. Example:
`{"_id": "doc1", title: "relevant doc", "text": "relevant text"}`
string corpus_data_path = 1;public TrainCustomModelRequest.GcsTrainingInput.Builder setCorpusDataPathBytes(com.google.protobuf.ByteString value)
The Cloud Storage corpus data which could be associated in train data.
The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
A newline delimited jsonl/ndjson file.
For search-tuning model, each line should have the _id, title
and text. Example:
`{"_id": "doc1", title: "relevant doc", "text": "relevant text"}`
string corpus_data_path = 1;value - The bytes for corpusDataPath to set.public String getQueryDataPath()
The gcs query data which could be associated in train data.
The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
A newline delimited jsonl/ndjson file.
For search-tuning model, each line should have the _id
and text. Example: {"_id": "query1", "text": "example query"}
string query_data_path = 2;getQueryDataPath in interface TrainCustomModelRequest.GcsTrainingInputOrBuilderpublic com.google.protobuf.ByteString getQueryDataPathBytes()
The gcs query data which could be associated in train data.
The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
A newline delimited jsonl/ndjson file.
For search-tuning model, each line should have the _id
and text. Example: {"_id": "query1", "text": "example query"}
string query_data_path = 2;getQueryDataPathBytes in interface TrainCustomModelRequest.GcsTrainingInputOrBuilderpublic TrainCustomModelRequest.GcsTrainingInput.Builder setQueryDataPath(String value)
The gcs query data which could be associated in train data.
The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
A newline delimited jsonl/ndjson file.
For search-tuning model, each line should have the _id
and text. Example: {"_id": "query1", "text": "example query"}
string query_data_path = 2;value - The queryDataPath to set.public TrainCustomModelRequest.GcsTrainingInput.Builder clearQueryDataPath()
The gcs query data which could be associated in train data.
The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
A newline delimited jsonl/ndjson file.
For search-tuning model, each line should have the _id
and text. Example: {"_id": "query1", "text": "example query"}
string query_data_path = 2;public TrainCustomModelRequest.GcsTrainingInput.Builder setQueryDataPathBytes(com.google.protobuf.ByteString value)
The gcs query data which could be associated in train data.
The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
A newline delimited jsonl/ndjson file.
For search-tuning model, each line should have the _id
and text. Example: {"_id": "query1", "text": "example query"}
string query_data_path = 2;value - The bytes for queryDataPath to set.public String getTrainDataPath()
Cloud Storage training data path whose format should be `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv format. Each line should have the doc_id and query_id and score (number). For search-tuning model, it should have the query-id corpus-id score as tsv file header. The score should be a number in `[0, inf+)`. The larger the number is, the more relevant the pair is. Example: * `query-id\tcorpus-id\tscore` * `query1\tdoc1\t1`
string train_data_path = 3;getTrainDataPath in interface TrainCustomModelRequest.GcsTrainingInputOrBuilderpublic com.google.protobuf.ByteString getTrainDataPathBytes()
Cloud Storage training data path whose format should be `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv format. Each line should have the doc_id and query_id and score (number). For search-tuning model, it should have the query-id corpus-id score as tsv file header. The score should be a number in `[0, inf+)`. The larger the number is, the more relevant the pair is. Example: * `query-id\tcorpus-id\tscore` * `query1\tdoc1\t1`
string train_data_path = 3;getTrainDataPathBytes in interface TrainCustomModelRequest.GcsTrainingInputOrBuilderpublic TrainCustomModelRequest.GcsTrainingInput.Builder setTrainDataPath(String value)
Cloud Storage training data path whose format should be `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv format. Each line should have the doc_id and query_id and score (number). For search-tuning model, it should have the query-id corpus-id score as tsv file header. The score should be a number in `[0, inf+)`. The larger the number is, the more relevant the pair is. Example: * `query-id\tcorpus-id\tscore` * `query1\tdoc1\t1`
string train_data_path = 3;value - The trainDataPath to set.public TrainCustomModelRequest.GcsTrainingInput.Builder clearTrainDataPath()
Cloud Storage training data path whose format should be `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv format. Each line should have the doc_id and query_id and score (number). For search-tuning model, it should have the query-id corpus-id score as tsv file header. The score should be a number in `[0, inf+)`. The larger the number is, the more relevant the pair is. Example: * `query-id\tcorpus-id\tscore` * `query1\tdoc1\t1`
string train_data_path = 3;public TrainCustomModelRequest.GcsTrainingInput.Builder setTrainDataPathBytes(com.google.protobuf.ByteString value)
Cloud Storage training data path whose format should be `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv format. Each line should have the doc_id and query_id and score (number). For search-tuning model, it should have the query-id corpus-id score as tsv file header. The score should be a number in `[0, inf+)`. The larger the number is, the more relevant the pair is. Example: * `query-id\tcorpus-id\tscore` * `query1\tdoc1\t1`
string train_data_path = 3;value - The bytes for trainDataPath to set.public String getTestDataPath()
Cloud Storage test data. Same format as train_data_path. If not provided, a random 80/20 train/test split will be performed on train_data_path.
string test_data_path = 4;getTestDataPath in interface TrainCustomModelRequest.GcsTrainingInputOrBuilderpublic com.google.protobuf.ByteString getTestDataPathBytes()
Cloud Storage test data. Same format as train_data_path. If not provided, a random 80/20 train/test split will be performed on train_data_path.
string test_data_path = 4;getTestDataPathBytes in interface TrainCustomModelRequest.GcsTrainingInputOrBuilderpublic TrainCustomModelRequest.GcsTrainingInput.Builder setTestDataPath(String value)
Cloud Storage test data. Same format as train_data_path. If not provided, a random 80/20 train/test split will be performed on train_data_path.
string test_data_path = 4;value - The testDataPath to set.public TrainCustomModelRequest.GcsTrainingInput.Builder clearTestDataPath()
Cloud Storage test data. Same format as train_data_path. If not provided, a random 80/20 train/test split will be performed on train_data_path.
string test_data_path = 4;public TrainCustomModelRequest.GcsTrainingInput.Builder setTestDataPathBytes(com.google.protobuf.ByteString value)
Cloud Storage test data. Same format as train_data_path. If not provided, a random 80/20 train/test split will be performed on train_data_path.
string test_data_path = 4;value - The bytes for testDataPath to set.Copyright © 2026 Google LLC. All rights reserved.