public static final class TrainCustomModelRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TrainCustomModelRequest.Builder> implements TrainCustomModelRequestOrBuilder
Request message for [SearchTuningService.TrainCustomModel][google.cloud.discoveryengine.v1alpha.SearchTuningService.TrainCustomModel] method.Protobuf type
google.cloud.discoveryengine.v1alpha.TrainCustomModelRequest| Modifier and Type | Method and Description |
|---|---|
TrainCustomModelRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TrainCustomModelRequest |
build() |
TrainCustomModelRequest |
buildPartial() |
TrainCustomModelRequest.Builder |
clear() |
TrainCustomModelRequest.Builder |
clearDataStore()
Required.
|
TrainCustomModelRequest.Builder |
clearErrorConfig()
The desired location of errors incurred during the data ingestion and
training.
|
TrainCustomModelRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TrainCustomModelRequest.Builder |
clearGcsTrainingInput()
Cloud Storage training input.
|
TrainCustomModelRequest.Builder |
clearModelId()
If not provided, a UUID will be generated.
|
TrainCustomModelRequest.Builder |
clearModelType()
Model to be trained.
|
TrainCustomModelRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TrainCustomModelRequest.Builder |
clearTrainingInput() |
TrainCustomModelRequest.Builder |
clone() |
String |
getDataStore()
Required.
|
com.google.protobuf.ByteString |
getDataStoreBytes()
Required.
|
TrainCustomModelRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
ImportErrorConfig |
getErrorConfig()
The desired location of errors incurred during the data ingestion and
training.
|
ImportErrorConfig.Builder |
getErrorConfigBuilder()
The desired location of errors incurred during the data ingestion and
training.
|
ImportErrorConfigOrBuilder |
getErrorConfigOrBuilder()
The desired location of errors incurred during the data ingestion and
training.
|
TrainCustomModelRequest.GcsTrainingInput |
getGcsTrainingInput()
Cloud Storage training input.
|
TrainCustomModelRequest.GcsTrainingInput.Builder |
getGcsTrainingInputBuilder()
Cloud Storage training input.
|
TrainCustomModelRequest.GcsTrainingInputOrBuilder |
getGcsTrainingInputOrBuilder()
Cloud Storage training input.
|
String |
getModelId()
If not provided, a UUID will be generated.
|
com.google.protobuf.ByteString |
getModelIdBytes()
If not provided, a UUID will be generated.
|
String |
getModelType()
Model to be trained.
|
com.google.protobuf.ByteString |
getModelTypeBytes()
Model to be trained.
|
TrainCustomModelRequest.TrainingInputCase |
getTrainingInputCase() |
boolean |
hasErrorConfig()
The desired location of errors incurred during the data ingestion and
training.
|
boolean |
hasGcsTrainingInput()
Cloud Storage training input.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TrainCustomModelRequest.Builder |
mergeErrorConfig(ImportErrorConfig value)
The desired location of errors incurred during the data ingestion and
training.
|
TrainCustomModelRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TrainCustomModelRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
TrainCustomModelRequest.Builder |
mergeFrom(TrainCustomModelRequest other) |
TrainCustomModelRequest.Builder |
mergeGcsTrainingInput(TrainCustomModelRequest.GcsTrainingInput value)
Cloud Storage training input.
|
TrainCustomModelRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TrainCustomModelRequest.Builder |
setDataStore(String value)
Required.
|
TrainCustomModelRequest.Builder |
setDataStoreBytes(com.google.protobuf.ByteString value)
Required.
|
TrainCustomModelRequest.Builder |
setErrorConfig(ImportErrorConfig.Builder builderForValue)
The desired location of errors incurred during the data ingestion and
training.
|
TrainCustomModelRequest.Builder |
setErrorConfig(ImportErrorConfig value)
The desired location of errors incurred during the data ingestion and
training.
|
TrainCustomModelRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TrainCustomModelRequest.Builder |
setGcsTrainingInput(TrainCustomModelRequest.GcsTrainingInput.Builder builderForValue)
Cloud Storage training input.
|
TrainCustomModelRequest.Builder |
setGcsTrainingInput(TrainCustomModelRequest.GcsTrainingInput value)
Cloud Storage training input.
|
TrainCustomModelRequest.Builder |
setModelId(String value)
If not provided, a UUID will be generated.
|
TrainCustomModelRequest.Builder |
setModelIdBytes(com.google.protobuf.ByteString value)
If not provided, a UUID will be generated.
|
TrainCustomModelRequest.Builder |
setModelType(String value)
Model to be trained.
|
TrainCustomModelRequest.Builder |
setModelTypeBytes(com.google.protobuf.ByteString value)
Model to be trained.
|
TrainCustomModelRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TrainCustomModelRequest.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.Builder>public TrainCustomModelRequest.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.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.Builder>public TrainCustomModelRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TrainCustomModelRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TrainCustomModelRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TrainCustomModelRequest.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.Builder>public TrainCustomModelRequest.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.Builder>public TrainCustomModelRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TrainCustomModelRequest.Builder>public TrainCustomModelRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TrainCustomModelRequest.Builder>public TrainCustomModelRequest.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.Builder>public TrainCustomModelRequest.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.Builder>public TrainCustomModelRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TrainCustomModelRequest.Builder>public TrainCustomModelRequest.Builder mergeFrom(TrainCustomModelRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TrainCustomModelRequest.Builder>public TrainCustomModelRequest.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.Builder>IOExceptionpublic TrainCustomModelRequest.TrainingInputCase getTrainingInputCase()
getTrainingInputCase in interface TrainCustomModelRequestOrBuilderpublic TrainCustomModelRequest.Builder clearTrainingInput()
public boolean hasGcsTrainingInput()
Cloud Storage training input.
.google.cloud.discoveryengine.v1alpha.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2;
hasGcsTrainingInput in interface TrainCustomModelRequestOrBuilderpublic TrainCustomModelRequest.GcsTrainingInput getGcsTrainingInput()
Cloud Storage training input.
.google.cloud.discoveryengine.v1alpha.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2;
getGcsTrainingInput in interface TrainCustomModelRequestOrBuilderpublic TrainCustomModelRequest.Builder setGcsTrainingInput(TrainCustomModelRequest.GcsTrainingInput value)
Cloud Storage training input.
.google.cloud.discoveryengine.v1alpha.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2;
public TrainCustomModelRequest.Builder setGcsTrainingInput(TrainCustomModelRequest.GcsTrainingInput.Builder builderForValue)
Cloud Storage training input.
.google.cloud.discoveryengine.v1alpha.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2;
public TrainCustomModelRequest.Builder mergeGcsTrainingInput(TrainCustomModelRequest.GcsTrainingInput value)
Cloud Storage training input.
.google.cloud.discoveryengine.v1alpha.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2;
public TrainCustomModelRequest.Builder clearGcsTrainingInput()
Cloud Storage training input.
.google.cloud.discoveryengine.v1alpha.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2;
public TrainCustomModelRequest.GcsTrainingInput.Builder getGcsTrainingInputBuilder()
Cloud Storage training input.
.google.cloud.discoveryengine.v1alpha.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2;
public TrainCustomModelRequest.GcsTrainingInputOrBuilder getGcsTrainingInputOrBuilder()
Cloud Storage training input.
.google.cloud.discoveryengine.v1alpha.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2;
getGcsTrainingInputOrBuilder in interface TrainCustomModelRequestOrBuilderpublic String getDataStore()
Required. The resource name of the Data Store, such as `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. This field is used to identify the data store where to train the models.
string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getDataStore in interface TrainCustomModelRequestOrBuilderpublic com.google.protobuf.ByteString getDataStoreBytes()
Required. The resource name of the Data Store, such as `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. This field is used to identify the data store where to train the models.
string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getDataStoreBytes in interface TrainCustomModelRequestOrBuilderpublic TrainCustomModelRequest.Builder setDataStore(String value)
Required. The resource name of the Data Store, such as `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. This field is used to identify the data store where to train the models.
string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The dataStore to set.public TrainCustomModelRequest.Builder clearDataStore()
Required. The resource name of the Data Store, such as `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. This field is used to identify the data store where to train the models.
string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public TrainCustomModelRequest.Builder setDataStoreBytes(com.google.protobuf.ByteString value)
Required. The resource name of the Data Store, such as `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. This field is used to identify the data store where to train the models.
string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for dataStore to set.public String getModelType()
Model to be trained. Supported values are: * **search-tuning**: Fine tuning the search system based on data provided.
string model_type = 3;getModelType in interface TrainCustomModelRequestOrBuilderpublic com.google.protobuf.ByteString getModelTypeBytes()
Model to be trained. Supported values are: * **search-tuning**: Fine tuning the search system based on data provided.
string model_type = 3;getModelTypeBytes in interface TrainCustomModelRequestOrBuilderpublic TrainCustomModelRequest.Builder setModelType(String value)
Model to be trained. Supported values are: * **search-tuning**: Fine tuning the search system based on data provided.
string model_type = 3;value - The modelType to set.public TrainCustomModelRequest.Builder clearModelType()
Model to be trained. Supported values are: * **search-tuning**: Fine tuning the search system based on data provided.
string model_type = 3;public TrainCustomModelRequest.Builder setModelTypeBytes(com.google.protobuf.ByteString value)
Model to be trained. Supported values are: * **search-tuning**: Fine tuning the search system based on data provided.
string model_type = 3;value - The bytes for modelType to set.public boolean hasErrorConfig()
The desired location of errors incurred during the data ingestion and training.
.google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 4;hasErrorConfig in interface TrainCustomModelRequestOrBuilderpublic ImportErrorConfig getErrorConfig()
The desired location of errors incurred during the data ingestion and training.
.google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 4;getErrorConfig in interface TrainCustomModelRequestOrBuilderpublic TrainCustomModelRequest.Builder setErrorConfig(ImportErrorConfig value)
The desired location of errors incurred during the data ingestion and training.
.google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 4;public TrainCustomModelRequest.Builder setErrorConfig(ImportErrorConfig.Builder builderForValue)
The desired location of errors incurred during the data ingestion and training.
.google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 4;public TrainCustomModelRequest.Builder mergeErrorConfig(ImportErrorConfig value)
The desired location of errors incurred during the data ingestion and training.
.google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 4;public TrainCustomModelRequest.Builder clearErrorConfig()
The desired location of errors incurred during the data ingestion and training.
.google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 4;public ImportErrorConfig.Builder getErrorConfigBuilder()
The desired location of errors incurred during the data ingestion and training.
.google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 4;public ImportErrorConfigOrBuilder getErrorConfigOrBuilder()
The desired location of errors incurred during the data ingestion and training.
.google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 4;getErrorConfigOrBuilder in interface TrainCustomModelRequestOrBuilderpublic String getModelId()
If not provided, a UUID will be generated.
string model_id = 5;getModelId in interface TrainCustomModelRequestOrBuilderpublic com.google.protobuf.ByteString getModelIdBytes()
If not provided, a UUID will be generated.
string model_id = 5;getModelIdBytes in interface TrainCustomModelRequestOrBuilderpublic TrainCustomModelRequest.Builder setModelId(String value)
If not provided, a UUID will be generated.
string model_id = 5;value - The modelId to set.public TrainCustomModelRequest.Builder clearModelId()
If not provided, a UUID will be generated.
string model_id = 5;public TrainCustomModelRequest.Builder setModelIdBytes(com.google.protobuf.ByteString value)
If not provided, a UUID will be generated.
string model_id = 5;value - The bytes for modelId to set.public final TrainCustomModelRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TrainCustomModelRequest.Builder>public final TrainCustomModelRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TrainCustomModelRequest.Builder>Copyright © 2024 Google LLC. All rights reserved.