public static final class TrainCustomModelRequest.GcsTrainingInput.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TrainCustomModelRequest.GcsTrainingInput.Builder> implements TrainCustomModelRequest.GcsTrainingInputOrBuilder
Cloud Storage training data input.Protobuf type
google.cloud.discoveryengine.v1alpha.TrainCustomModelRequest.GcsTrainingInput| Modifier and Type | Method and Description |
|---|---|
TrainCustomModelRequest.GcsTrainingInput.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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 |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TrainCustomModelRequest.GcsTrainingInput.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
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>`.
|
TrainCustomModelRequest.GcsTrainingInput.Builder |
clone() |
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.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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 |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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 |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
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>`.
|
TrainCustomModelRequest.GcsTrainingInput.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<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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TrainCustomModelRequest.GcsTrainingInput.Builder>public TrainCustomModelRequest.GcsTrainingInput.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<TrainCustomModelRequest.GcsTrainingInput.Builder>public TrainCustomModelRequest.GcsTrainingInput.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TrainCustomModelRequest.GcsTrainingInput.Builder>public TrainCustomModelRequest.GcsTrainingInput.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TrainCustomModelRequest.GcsTrainingInput.Builder>public TrainCustomModelRequest.GcsTrainingInput.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<TrainCustomModelRequest.GcsTrainingInput.Builder>public TrainCustomModelRequest.GcsTrainingInput.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<TrainCustomModelRequest.GcsTrainingInput.Builder>public 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.GeneratedMessageV3.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.public final TrainCustomModelRequest.GcsTrainingInput.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TrainCustomModelRequest.GcsTrainingInput.Builder>public final TrainCustomModelRequest.GcsTrainingInput.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TrainCustomModelRequest.GcsTrainingInput.Builder>Copyright © 2024 Google LLC. All rights reserved.