public static final class TrainCustomModelRequest.GcsTrainingInput extends com.google.protobuf.GeneratedMessageV3 implements TrainCustomModelRequest.GcsTrainingInputOrBuilder
Cloud Storage training data input.Protobuf type
google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput| Modifier and Type | Class and Description |
|---|---|
static class |
TrainCustomModelRequest.GcsTrainingInput.Builder
Cloud Storage training data input.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CORPUS_DATA_PATH_FIELD_NUMBER |
static int |
QUERY_DATA_PATH_FIELD_NUMBER |
static int |
TEST_DATA_PATH_FIELD_NUMBER |
static int |
TRAIN_DATA_PATH_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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.
|
static TrainCustomModelRequest.GcsTrainingInput |
getDefaultInstance() |
TrainCustomModelRequest.GcsTrainingInput |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<TrainCustomModelRequest.GcsTrainingInput> |
getParserForType() |
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.
|
int |
getSerializedSize() |
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>`.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static TrainCustomModelRequest.GcsTrainingInput.Builder |
newBuilder() |
static TrainCustomModelRequest.GcsTrainingInput.Builder |
newBuilder(TrainCustomModelRequest.GcsTrainingInput prototype) |
TrainCustomModelRequest.GcsTrainingInput.Builder |
newBuilderForType() |
protected TrainCustomModelRequest.GcsTrainingInput.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static TrainCustomModelRequest.GcsTrainingInput |
parseDelimitedFrom(InputStream input) |
static TrainCustomModelRequest.GcsTrainingInput |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrainCustomModelRequest.GcsTrainingInput |
parseFrom(byte[] data) |
static TrainCustomModelRequest.GcsTrainingInput |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrainCustomModelRequest.GcsTrainingInput |
parseFrom(ByteBuffer data) |
static TrainCustomModelRequest.GcsTrainingInput |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrainCustomModelRequest.GcsTrainingInput |
parseFrom(com.google.protobuf.ByteString data) |
static TrainCustomModelRequest.GcsTrainingInput |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrainCustomModelRequest.GcsTrainingInput |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TrainCustomModelRequest.GcsTrainingInput |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrainCustomModelRequest.GcsTrainingInput |
parseFrom(InputStream input) |
static TrainCustomModelRequest.GcsTrainingInput |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TrainCustomModelRequest.GcsTrainingInput> |
parser() |
TrainCustomModelRequest.GcsTrainingInput.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CORPUS_DATA_PATH_FIELD_NUMBER
public static final int QUERY_DATA_PATH_FIELD_NUMBER
public static final int TRAIN_DATA_PATH_FIELD_NUMBER
public static final int TEST_DATA_PATH_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static TrainCustomModelRequest.GcsTrainingInput parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrainCustomModelRequest.GcsTrainingInput parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrainCustomModelRequest.GcsTrainingInput parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrainCustomModelRequest.GcsTrainingInput parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrainCustomModelRequest.GcsTrainingInput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrainCustomModelRequest.GcsTrainingInput parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrainCustomModelRequest.GcsTrainingInput parseFrom(InputStream input) throws IOException
IOExceptionpublic static TrainCustomModelRequest.GcsTrainingInput parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TrainCustomModelRequest.GcsTrainingInput parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TrainCustomModelRequest.GcsTrainingInput parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TrainCustomModelRequest.GcsTrainingInput parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TrainCustomModelRequest.GcsTrainingInput parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic TrainCustomModelRequest.GcsTrainingInput.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TrainCustomModelRequest.GcsTrainingInput.Builder newBuilder()
public static TrainCustomModelRequest.GcsTrainingInput.Builder newBuilder(TrainCustomModelRequest.GcsTrainingInput prototype)
public TrainCustomModelRequest.GcsTrainingInput.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TrainCustomModelRequest.GcsTrainingInput.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static TrainCustomModelRequest.GcsTrainingInput getDefaultInstance()
public static com.google.protobuf.Parser<TrainCustomModelRequest.GcsTrainingInput> parser()
public com.google.protobuf.Parser<TrainCustomModelRequest.GcsTrainingInput> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TrainCustomModelRequest.GcsTrainingInput getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.