Class TrainCustomModelRequest.GcsTrainingInput.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TrainCustomModelRequest.GcsTrainingInput.Builder>
com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput.Builder
- All Implemented Interfaces:
TrainCustomModelRequest.GcsTrainingInputOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TrainCustomModelRequest.GcsTrainingInput
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.v1beta.TrainCustomModelRequest.GcsTrainingInput-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The Cloud Storage corpus data which could be associated in train data.The gcs query data which could be associated in train data.Cloud Storage test data.Cloud Storage training data path whose format should be `gs://<bucket_to_data>/<tsv_file_name>`.The Cloud Storage corpus data which could be associated in train data.com.google.protobuf.ByteStringThe Cloud Storage corpus data which could be associated in train data.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe gcs query data which could be associated in train data.com.google.protobuf.ByteStringThe gcs query data which could be associated in train data.Cloud Storage test data.com.google.protobuf.ByteStringCloud Storage test data.Cloud Storage training data path whose format should be `gs://<bucket_to_data>/<tsv_file_name>`.com.google.protobuf.ByteStringCloud Storage training data path whose format should be `gs://<bucket_to_data>/<tsv_file_name>`.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCorpusDataPath(String value) The Cloud Storage corpus data which could be associated in train data.setCorpusDataPathBytes(com.google.protobuf.ByteString value) The Cloud Storage corpus data which could be associated in train data.setQueryDataPath(String value) The gcs query data which could be associated in train data.setQueryDataPathBytes(com.google.protobuf.ByteString value) The gcs query data which could be associated in train data.setTestDataPath(String value) Cloud Storage test data.setTestDataPathBytes(com.google.protobuf.ByteString value) Cloud Storage test data.setTrainDataPath(String value) Cloud Storage training data path whose format should be `gs://<bucket_to_data>/<tsv_file_name>`.setTrainDataPathBytes(com.google.protobuf.ByteString value) Cloud Storage training data path whose format should be `gs://<bucket_to_data>/<tsv_file_name>`.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TrainCustomModelRequest.GcsTrainingInput.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TrainCustomModelRequest.GcsTrainingInput.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.GeneratedMessage.Builder<TrainCustomModelRequest.GcsTrainingInput.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public TrainCustomModelRequest.GcsTrainingInput.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TrainCustomModelRequest.GcsTrainingInput.Builder>
-
mergeFrom
public TrainCustomModelRequest.GcsTrainingInput.Builder mergeFrom(TrainCustomModelRequest.GcsTrainingInput other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TrainCustomModelRequest.GcsTrainingInput.Builder>
-
mergeFrom
public TrainCustomModelRequest.GcsTrainingInput.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<TrainCustomModelRequest.GcsTrainingInput.Builder>- Throws:
IOException
-
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;- Specified by:
getCorpusDataPathin interfaceTrainCustomModelRequest.GcsTrainingInputOrBuilder- Returns:
- The corpusDataPath.
-
getCorpusDataPathBytes
public 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;- Specified by:
getCorpusDataPathBytesin interfaceTrainCustomModelRequest.GcsTrainingInputOrBuilder- Returns:
- The bytes for corpusDataPath.
-
setCorpusDataPath
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;- Parameters:
value- The corpusDataPath to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setCorpusDataPathBytes
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;- Parameters:
value- The bytes for corpusDataPath to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getQueryDataPathin interfaceTrainCustomModelRequest.GcsTrainingInputOrBuilder- Returns:
- The queryDataPath.
-
getQueryDataPathBytes
public 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;- Specified by:
getQueryDataPathBytesin interfaceTrainCustomModelRequest.GcsTrainingInputOrBuilder- Returns:
- The bytes for queryDataPath.
-
setQueryDataPath
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;- Parameters:
value- The queryDataPath to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setQueryDataPathBytes
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;- Parameters:
value- The bytes for queryDataPath to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getTrainDataPathin interfaceTrainCustomModelRequest.GcsTrainingInputOrBuilder- Returns:
- The trainDataPath.
-
getTrainDataPathBytes
public 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;- Specified by:
getTrainDataPathBytesin interfaceTrainCustomModelRequest.GcsTrainingInputOrBuilder- Returns:
- The bytes for trainDataPath.
-
setTrainDataPath
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;- Parameters:
value- The trainDataPath to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setTrainDataPathBytes
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;- Parameters:
value- The bytes for trainDataPath to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getTestDataPathin interfaceTrainCustomModelRequest.GcsTrainingInputOrBuilder- Returns:
- The testDataPath.
-
getTestDataPathBytes
public 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;- Specified by:
getTestDataPathBytesin interfaceTrainCustomModelRequest.GcsTrainingInputOrBuilder- Returns:
- The bytes for testDataPath.
-
setTestDataPath
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;- Parameters:
value- The testDataPath to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setTestDataPathBytes
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;- Parameters:
value- The bytes for testDataPath to set.- Returns:
- This builder for chaining.
-