Class TrainCustomModelResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TrainCustomModelResponse.Builder>
com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse.Builder
- All Implemented Interfaces:
TrainCustomModelResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TrainCustomModelResponse
public static final class TrainCustomModelResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TrainCustomModelResponse.Builder>
implements TrainCustomModelResponseOrBuilder
Response of the [TrainCustomModelRequest][google.cloud.discoveryengine.v1beta.TrainCustomModelRequest]. This message is returned by the google.longrunning.Operations.response field.Protobuf type
google.cloud.discoveryengine.v1beta.TrainCustomModelResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllErrorSamples(Iterable<? extends Status> values) A sample of errors encountered while processing the data.addErrorSamples(int index, Status value) A sample of errors encountered while processing the data.addErrorSamples(int index, Status.Builder builderForValue) A sample of errors encountered while processing the data.addErrorSamples(Status value) A sample of errors encountered while processing the data.addErrorSamples(Status.Builder builderForValue) A sample of errors encountered while processing the data.A sample of errors encountered while processing the data.addErrorSamplesBuilder(int index) A sample of errors encountered while processing the data.build()clear()Echoes the destination for the complete errors in the request if set.A sample of errors encountered while processing the data.Fully qualified name of the CustomTuningModel.The trained model status.booleancontainsMetrics(String key) The metrics of the trained model.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorEchoes the destination for the complete errors in the request if set.Echoes the destination for the complete errors in the request if set.Echoes the destination for the complete errors in the request if set.getErrorSamples(int index) A sample of errors encountered while processing the data.getErrorSamplesBuilder(int index) A sample of errors encountered while processing the data.A sample of errors encountered while processing the data.intA sample of errors encountered while processing the data.A sample of errors encountered while processing the data.getErrorSamplesOrBuilder(int index) A sample of errors encountered while processing the data.List<? extends StatusOrBuilder>A sample of errors encountered while processing the data.Deprecated.intThe metrics of the trained model.The metrics of the trained model.doublegetMetricsOrDefault(String key, double defaultValue) The metrics of the trained model.doublegetMetricsOrThrow(String key) The metrics of the trained model.Fully qualified name of the CustomTuningModel.com.google.protobuf.ByteStringFully qualified name of the CustomTuningModel.The trained model status.com.google.protobuf.ByteStringThe trained model status.Deprecated.booleanEchoes the destination for the complete errors in the request if set.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanEchoes the destination for the complete errors in the request if set.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllMetrics(Map<String, Double> values) The metrics of the trained model.putMetrics(String key, double value) The metrics of the trained model.removeErrorSamples(int index) A sample of errors encountered while processing the data.removeMetrics(String key) The metrics of the trained model.setErrorConfig(ImportErrorConfig value) Echoes the destination for the complete errors in the request if set.setErrorConfig(ImportErrorConfig.Builder builderForValue) Echoes the destination for the complete errors in the request if set.setErrorSamples(int index, Status value) A sample of errors encountered while processing the data.setErrorSamples(int index, Status.Builder builderForValue) A sample of errors encountered while processing the data.setModelName(String value) Fully qualified name of the CustomTuningModel.setModelNameBytes(com.google.protobuf.ByteString value) Fully qualified name of the CustomTuningModel.setModelStatus(String value) The trained model status.setModelStatusBytes(com.google.protobuf.ByteString value) The trained model status.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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<TrainCustomModelResponse.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<TrainCustomModelResponse.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TrainCustomModelResponse.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<TrainCustomModelResponse.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<TrainCustomModelResponse.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<TrainCustomModelResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TrainCustomModelResponse.Builder>
-
mergeFrom
public TrainCustomModelResponse.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<TrainCustomModelResponse.Builder>- Throws:
IOException
-
getErrorSamplesList
A sample of errors encountered while processing the data.
repeated .google.rpc.Status error_samples = 1;- Specified by:
getErrorSamplesListin interfaceTrainCustomModelResponseOrBuilder
-
getErrorSamplesCount
public int getErrorSamplesCount()A sample of errors encountered while processing the data.
repeated .google.rpc.Status error_samples = 1;- Specified by:
getErrorSamplesCountin interfaceTrainCustomModelResponseOrBuilder
-
getErrorSamples
A sample of errors encountered while processing the data.
repeated .google.rpc.Status error_samples = 1;- Specified by:
getErrorSamplesin interfaceTrainCustomModelResponseOrBuilder
-
setErrorSamples
A sample of errors encountered while processing the data.
repeated .google.rpc.Status error_samples = 1; -
setErrorSamples
A sample of errors encountered while processing the data.
repeated .google.rpc.Status error_samples = 1; -
addErrorSamples
A sample of errors encountered while processing the data.
repeated .google.rpc.Status error_samples = 1; -
addErrorSamples
A sample of errors encountered while processing the data.
repeated .google.rpc.Status error_samples = 1; -
addErrorSamples
A sample of errors encountered while processing the data.
repeated .google.rpc.Status error_samples = 1; -
addErrorSamples
A sample of errors encountered while processing the data.
repeated .google.rpc.Status error_samples = 1; -
addAllErrorSamples
A sample of errors encountered while processing the data.
repeated .google.rpc.Status error_samples = 1; -
clearErrorSamples
A sample of errors encountered while processing the data.
repeated .google.rpc.Status error_samples = 1; -
removeErrorSamples
A sample of errors encountered while processing the data.
repeated .google.rpc.Status error_samples = 1; -
getErrorSamplesBuilder
A sample of errors encountered while processing the data.
repeated .google.rpc.Status error_samples = 1; -
getErrorSamplesOrBuilder
A sample of errors encountered while processing the data.
repeated .google.rpc.Status error_samples = 1;- Specified by:
getErrorSamplesOrBuilderin interfaceTrainCustomModelResponseOrBuilder
-
getErrorSamplesOrBuilderList
A sample of errors encountered while processing the data.
repeated .google.rpc.Status error_samples = 1;- Specified by:
getErrorSamplesOrBuilderListin interfaceTrainCustomModelResponseOrBuilder
-
addErrorSamplesBuilder
A sample of errors encountered while processing the data.
repeated .google.rpc.Status error_samples = 1; -
addErrorSamplesBuilder
A sample of errors encountered while processing the data.
repeated .google.rpc.Status error_samples = 1; -
getErrorSamplesBuilderList
A sample of errors encountered while processing the data.
repeated .google.rpc.Status error_samples = 1; -
hasErrorConfig
public boolean hasErrorConfig()Echoes the destination for the complete errors in the request if set.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2;- Specified by:
hasErrorConfigin interfaceTrainCustomModelResponseOrBuilder- Returns:
- Whether the errorConfig field is set.
-
getErrorConfig
Echoes the destination for the complete errors in the request if set.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2;- Specified by:
getErrorConfigin interfaceTrainCustomModelResponseOrBuilder- Returns:
- The errorConfig.
-
setErrorConfig
Echoes the destination for the complete errors in the request if set.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; -
setErrorConfig
Echoes the destination for the complete errors in the request if set.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; -
mergeErrorConfig
Echoes the destination for the complete errors in the request if set.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; -
clearErrorConfig
Echoes the destination for the complete errors in the request if set.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; -
getErrorConfigBuilder
Echoes the destination for the complete errors in the request if set.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; -
getErrorConfigOrBuilder
Echoes the destination for the complete errors in the request if set.
.google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2;- Specified by:
getErrorConfigOrBuilderin interfaceTrainCustomModelResponseOrBuilder
-
getModelStatus
The trained model status. Possible values are: * **bad-data**: The training data quality is bad. * **no-improvement**: Tuning didn't improve performance. Won't deploy. * **in-progress**: Model training job creation is in progress. * **training**: Model is actively training. * **evaluating**: The model is evaluating trained metrics. * **indexing**: The model trained metrics are indexing. * **ready**: The model is ready for serving.
string model_status = 3;- Specified by:
getModelStatusin interfaceTrainCustomModelResponseOrBuilder- Returns:
- The modelStatus.
-
getModelStatusBytes
public com.google.protobuf.ByteString getModelStatusBytes()The trained model status. Possible values are: * **bad-data**: The training data quality is bad. * **no-improvement**: Tuning didn't improve performance. Won't deploy. * **in-progress**: Model training job creation is in progress. * **training**: Model is actively training. * **evaluating**: The model is evaluating trained metrics. * **indexing**: The model trained metrics are indexing. * **ready**: The model is ready for serving.
string model_status = 3;- Specified by:
getModelStatusBytesin interfaceTrainCustomModelResponseOrBuilder- Returns:
- The bytes for modelStatus.
-
setModelStatus
The trained model status. Possible values are: * **bad-data**: The training data quality is bad. * **no-improvement**: Tuning didn't improve performance. Won't deploy. * **in-progress**: Model training job creation is in progress. * **training**: Model is actively training. * **evaluating**: The model is evaluating trained metrics. * **indexing**: The model trained metrics are indexing. * **ready**: The model is ready for serving.
string model_status = 3;- Parameters:
value- The modelStatus to set.- Returns:
- This builder for chaining.
-
clearModelStatus
The trained model status. Possible values are: * **bad-data**: The training data quality is bad. * **no-improvement**: Tuning didn't improve performance. Won't deploy. * **in-progress**: Model training job creation is in progress. * **training**: Model is actively training. * **evaluating**: The model is evaluating trained metrics. * **indexing**: The model trained metrics are indexing. * **ready**: The model is ready for serving.
string model_status = 3;- Returns:
- This builder for chaining.
-
setModelStatusBytes
The trained model status. Possible values are: * **bad-data**: The training data quality is bad. * **no-improvement**: Tuning didn't improve performance. Won't deploy. * **in-progress**: Model training job creation is in progress. * **training**: Model is actively training. * **evaluating**: The model is evaluating trained metrics. * **indexing**: The model trained metrics are indexing. * **ready**: The model is ready for serving.
string model_status = 3;- Parameters:
value- The bytes for modelStatus to set.- Returns:
- This builder for chaining.
-
getMetricsCount
public int getMetricsCount()Description copied from interface:TrainCustomModelResponseOrBuilderThe metrics of the trained model.
map<string, double> metrics = 4;- Specified by:
getMetricsCountin interfaceTrainCustomModelResponseOrBuilder
-
containsMetrics
The metrics of the trained model.
map<string, double> metrics = 4;- Specified by:
containsMetricsin interfaceTrainCustomModelResponseOrBuilder
-
getMetrics
Deprecated.UsegetMetricsMap()instead.- Specified by:
getMetricsin interfaceTrainCustomModelResponseOrBuilder
-
getMetricsMap
The metrics of the trained model.
map<string, double> metrics = 4;- Specified by:
getMetricsMapin interfaceTrainCustomModelResponseOrBuilder
-
getMetricsOrDefault
The metrics of the trained model.
map<string, double> metrics = 4;- Specified by:
getMetricsOrDefaultin interfaceTrainCustomModelResponseOrBuilder
-
getMetricsOrThrow
The metrics of the trained model.
map<string, double> metrics = 4;- Specified by:
getMetricsOrThrowin interfaceTrainCustomModelResponseOrBuilder
-
clearMetrics
-
removeMetrics
The metrics of the trained model.
map<string, double> metrics = 4; -
getMutableMetrics
Deprecated.Use alternate mutation accessors instead. -
putMetrics
The metrics of the trained model.
map<string, double> metrics = 4; -
putAllMetrics
The metrics of the trained model.
map<string, double> metrics = 4; -
getModelName
Fully qualified name of the CustomTuningModel.
string model_name = 5;- Specified by:
getModelNamein interfaceTrainCustomModelResponseOrBuilder- Returns:
- The modelName.
-
getModelNameBytes
public com.google.protobuf.ByteString getModelNameBytes()Fully qualified name of the CustomTuningModel.
string model_name = 5;- Specified by:
getModelNameBytesin interfaceTrainCustomModelResponseOrBuilder- Returns:
- The bytes for modelName.
-
setModelName
Fully qualified name of the CustomTuningModel.
string model_name = 5;- Parameters:
value- The modelName to set.- Returns:
- This builder for chaining.
-
clearModelName
Fully qualified name of the CustomTuningModel.
string model_name = 5;- Returns:
- This builder for chaining.
-
setModelNameBytes
Fully qualified name of the CustomTuningModel.
string model_name = 5;- Parameters:
value- The bytes for modelName to set.- Returns:
- This builder for chaining.
-