Class TrainCustomModelRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TrainCustomModelRequest.Builder>
com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.Builder
- All Implemented Interfaces:
TrainCustomModelRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TrainCustomModelRequest
public static final class TrainCustomModelRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TrainCustomModelRequest.Builder>
implements TrainCustomModelRequestOrBuilder
Request message for [SearchTuningService.TrainCustomModel][google.cloud.discoveryengine.v1beta.SearchTuningService.TrainCustomModel] method.Protobuf type
google.cloud.discoveryengine.v1beta.TrainCustomModelRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.The desired location of errors incurred during the data ingestion and training.Cloud Storage training input.If not provided, a UUID will be generated.Model to be trained.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe desired location of errors incurred during the data ingestion and training.The desired location of errors incurred during the data ingestion and training.The desired location of errors incurred during the data ingestion and training.Cloud Storage training input.Cloud Storage training input.Cloud Storage training input.If not provided, a UUID will be generated.com.google.protobuf.ByteStringIf not provided, a UUID will be generated.Model to be trained.com.google.protobuf.ByteStringModel to be trained.booleanThe desired location of errors incurred during the data ingestion and training.booleanCloud Storage training input.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe desired location of errors incurred during the data ingestion and training.mergeFrom(TrainCustomModelRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Cloud Storage training input.setDataStore(String value) Required.setDataStoreBytes(com.google.protobuf.ByteString value) Required.setErrorConfig(ImportErrorConfig value) The desired location of errors incurred during the data ingestion and training.setErrorConfig(ImportErrorConfig.Builder builderForValue) The desired location of errors incurred during the data ingestion and training.Cloud Storage training input.setGcsTrainingInput(TrainCustomModelRequest.GcsTrainingInput.Builder builderForValue) Cloud Storage training input.setModelId(String value) If not provided, a UUID will be generated.setModelIdBytes(com.google.protobuf.ByteString value) If not provided, a UUID will be generated.setModelType(String value) Model to be trained.setModelTypeBytes(com.google.protobuf.ByteString value) Model to be trained.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.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.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.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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TrainCustomModelRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TrainCustomModelRequest.Builder>
-
mergeFrom
public TrainCustomModelRequest.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.Builder>- Throws:
IOException
-
getTrainingInputCase
- Specified by:
getTrainingInputCasein interfaceTrainCustomModelRequestOrBuilder
-
clearTrainingInput
-
hasGcsTrainingInput
public boolean hasGcsTrainingInput()Cloud Storage training input.
.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2;- Specified by:
hasGcsTrainingInputin interfaceTrainCustomModelRequestOrBuilder- Returns:
- Whether the gcsTrainingInput field is set.
-
getGcsTrainingInput
Cloud Storage training input.
.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2;- Specified by:
getGcsTrainingInputin interfaceTrainCustomModelRequestOrBuilder- Returns:
- The gcsTrainingInput.
-
setGcsTrainingInput
public TrainCustomModelRequest.Builder setGcsTrainingInput(TrainCustomModelRequest.GcsTrainingInput value) Cloud Storage training input.
.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; -
setGcsTrainingInput
public TrainCustomModelRequest.Builder setGcsTrainingInput(TrainCustomModelRequest.GcsTrainingInput.Builder builderForValue) Cloud Storage training input.
.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; -
mergeGcsTrainingInput
public TrainCustomModelRequest.Builder mergeGcsTrainingInput(TrainCustomModelRequest.GcsTrainingInput value) Cloud Storage training input.
.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; -
clearGcsTrainingInput
Cloud Storage training input.
.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; -
getGcsTrainingInputBuilder
Cloud Storage training input.
.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; -
getGcsTrainingInputOrBuilder
Cloud Storage training input.
.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2;- Specified by:
getGcsTrainingInputOrBuilderin interfaceTrainCustomModelRequestOrBuilder
-
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) = { ... }- Specified by:
getDataStorein interfaceTrainCustomModelRequestOrBuilder- Returns:
- The dataStore.
-
getDataStoreBytes
public 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) = { ... }- Specified by:
getDataStoreBytesin interfaceTrainCustomModelRequestOrBuilder- Returns:
- The bytes for dataStore.
-
setDataStore
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) = { ... }- Parameters:
value- The dataStore to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Returns:
- This builder for chaining.
-
setDataStoreBytes
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) = { ... }- Parameters:
value- The bytes for dataStore to set.- Returns:
- This builder for chaining.
-
getModelType
Model to be trained. Supported values are: * **search-tuning**: Fine tuning the search system based on data provided.
string model_type = 3;- Specified by:
getModelTypein interfaceTrainCustomModelRequestOrBuilder- Returns:
- The modelType.
-
getModelTypeBytes
public 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;- Specified by:
getModelTypeBytesin interfaceTrainCustomModelRequestOrBuilder- Returns:
- The bytes for modelType.
-
setModelType
Model to be trained. Supported values are: * **search-tuning**: Fine tuning the search system based on data provided.
string model_type = 3;- Parameters:
value- The modelType to set.- Returns:
- This builder for chaining.
-
clearModelType
Model to be trained. Supported values are: * **search-tuning**: Fine tuning the search system based on data provided.
string model_type = 3;- Returns:
- This builder for chaining.
-
setModelTypeBytes
Model to be trained. Supported values are: * **search-tuning**: Fine tuning the search system based on data provided.
string model_type = 3;- Parameters:
value- The bytes for modelType to set.- Returns:
- This builder for chaining.
-
hasErrorConfig
public boolean hasErrorConfig()The desired location of errors incurred during the data ingestion and training.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4;- Specified by:
hasErrorConfigin interfaceTrainCustomModelRequestOrBuilder- Returns:
- Whether the errorConfig field is set.
-
getErrorConfig
The desired location of errors incurred during the data ingestion and training.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4;- Specified by:
getErrorConfigin interfaceTrainCustomModelRequestOrBuilder- Returns:
- The errorConfig.
-
setErrorConfig
The desired location of errors incurred during the data ingestion and training.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; -
setErrorConfig
The desired location of errors incurred during the data ingestion and training.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; -
mergeErrorConfig
The desired location of errors incurred during the data ingestion and training.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; -
clearErrorConfig
The desired location of errors incurred during the data ingestion and training.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; -
getErrorConfigBuilder
The desired location of errors incurred during the data ingestion and training.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; -
getErrorConfigOrBuilder
The desired location of errors incurred during the data ingestion and training.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4;- Specified by:
getErrorConfigOrBuilderin interfaceTrainCustomModelRequestOrBuilder
-
getModelId
If not provided, a UUID will be generated.
string model_id = 5;- Specified by:
getModelIdin interfaceTrainCustomModelRequestOrBuilder- Returns:
- The modelId.
-
getModelIdBytes
public com.google.protobuf.ByteString getModelIdBytes()If not provided, a UUID will be generated.
string model_id = 5;- Specified by:
getModelIdBytesin interfaceTrainCustomModelRequestOrBuilder- Returns:
- The bytes for modelId.
-
setModelId
If not provided, a UUID will be generated.
string model_id = 5;- Parameters:
value- The modelId to set.- Returns:
- This builder for chaining.
-
clearModelId
If not provided, a UUID will be generated.
string model_id = 5;- Returns:
- This builder for chaining.
-
setModelIdBytes
If not provided, a UUID will be generated.
string model_id = 5;- Parameters:
value- The bytes for modelId to set.- Returns:
- This builder for chaining.
-