Class CustomTuningModel.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CustomTuningModel.Builder>
com.google.cloud.discoveryengine.v1beta.CustomTuningModel.Builder
- All Implemented Interfaces:
CustomTuningModelOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CustomTuningModel
public static final class CustomTuningModel.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CustomTuningModel.Builder>
implements CustomTuningModelOrBuilder
Metadata that describes a custom tuned model.Protobuf type
google.cloud.discoveryengine.v1beta.CustomTuningModel-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Deprecated.The display name of the model.Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.The state that the model is in (e.g.The version of the model.Required.Timestamp the model training was initiated.booleancontainsMetrics(String key) The metrics of the trained model.com.google.protobuf.TimestampDeprecated.google.cloud.discoveryengine.v1beta.CustomTuningModel.create_time is deprecated.com.google.protobuf.Timestamp.BuilderDeprecated.com.google.protobuf.TimestampOrBuilderDeprecated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe display name of the model.com.google.protobuf.ByteStringThe display name of the model.Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.com.google.protobuf.ByteStringCurrently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.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.The state that the model is in (e.g.intThe state that the model is in (e.g.longThe version of the model.Deprecated.getName()Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.TimestampTimestamp the model training was initiated.com.google.protobuf.Timestamp.BuilderTimestamp the model training was initiated.com.google.protobuf.TimestampOrBuilderTimestamp the model training was initiated.booleanDeprecated.google.cloud.discoveryengine.v1beta.CustomTuningModel.create_time is deprecated.booleanTimestamp the model training was initiated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Deprecated.mergeFrom(CustomTuningModel other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTrainingStartTime(com.google.protobuf.Timestamp value) Timestamp the model training was initiated.putAllMetrics(Map<String, Double> values) The metrics of the trained model.putMetrics(String key, double value) The metrics of the trained model.removeMetrics(String key) The metrics of the trained model.setCreateTime(com.google.protobuf.Timestamp value) Deprecated.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Deprecated.setDisplayName(String value) The display name of the model.setDisplayNameBytes(com.google.protobuf.ByteString value) The display name of the model.setErrorMessage(String value) Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.setErrorMessageBytes(com.google.protobuf.ByteString value) Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.The state that the model is in (e.g.setModelStateValue(int value) The state that the model is in (e.g.setModelVersion(long value) The version of the model.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setTrainingStartTime(com.google.protobuf.Timestamp value) Timestamp the model training was initiated.setTrainingStartTime(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp the model training was initiated.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<CustomTuningModel.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<CustomTuningModel.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CustomTuningModel.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<CustomTuningModel.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<CustomTuningModel.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<CustomTuningModel.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CustomTuningModel.Builder>
-
mergeFrom
public CustomTuningModel.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<CustomTuningModel.Builder>- Throws:
IOException
-
getName
Required. The fully qualified resource name of the model. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. Model must be an alpha-numerical string with limit of 40 characters.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceCustomTuningModelOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. The fully qualified resource name of the model. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. Model must be an alpha-numerical string with limit of 40 characters.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceCustomTuningModelOrBuilder- Returns:
- The bytes for name.
-
setName
Required. The fully qualified resource name of the model. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. Model must be an alpha-numerical string with limit of 40 characters.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Required. The fully qualified resource name of the model. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. Model must be an alpha-numerical string with limit of 40 characters.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
Required. The fully qualified resource name of the model. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. Model must be an alpha-numerical string with limit of 40 characters.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
The display name of the model.
string display_name = 2;- Specified by:
getDisplayNamein interfaceCustomTuningModelOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()The display name of the model.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceCustomTuningModelOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
The display name of the model.
string display_name = 2;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
The display name of the model.
string display_name = 2;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
The display name of the model.
string display_name = 2;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getModelVersion
public long getModelVersion()The version of the model.
int64 model_version = 3;- Specified by:
getModelVersionin interfaceCustomTuningModelOrBuilder- Returns:
- The modelVersion.
-
setModelVersion
The version of the model.
int64 model_version = 3;- Parameters:
value- The modelVersion to set.- Returns:
- This builder for chaining.
-
clearModelVersion
The version of the model.
int64 model_version = 3;- Returns:
- This builder for chaining.
-
getModelStateValue
public int getModelStateValue()The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`).
.google.cloud.discoveryengine.v1beta.CustomTuningModel.ModelState model_state = 4;- Specified by:
getModelStateValuein interfaceCustomTuningModelOrBuilder- Returns:
- The enum numeric value on the wire for modelState.
-
setModelStateValue
The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`).
.google.cloud.discoveryengine.v1beta.CustomTuningModel.ModelState model_state = 4;- Parameters:
value- The enum numeric value on the wire for modelState to set.- Returns:
- This builder for chaining.
-
getModelState
The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`).
.google.cloud.discoveryengine.v1beta.CustomTuningModel.ModelState model_state = 4;- Specified by:
getModelStatein interfaceCustomTuningModelOrBuilder- Returns:
- The modelState.
-
setModelState
The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`).
.google.cloud.discoveryengine.v1beta.CustomTuningModel.ModelState model_state = 4;- Parameters:
value- The modelState to set.- Returns:
- This builder for chaining.
-
clearModelState
The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`).
.google.cloud.discoveryengine.v1beta.CustomTuningModel.ModelState model_state = 4;- Returns:
- This builder for chaining.
-
hasCreateTime
Deprecated.google.cloud.discoveryengine.v1beta.CustomTuningModel.create_time is deprecated. See google/cloud/discoveryengine/v1beta/custom_tuning_model.proto;l=89Deprecated: Timestamp the Model was created at.
.google.protobuf.Timestamp create_time = 5 [deprecated = true];- Specified by:
hasCreateTimein interfaceCustomTuningModelOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
Deprecated.google.cloud.discoveryengine.v1beta.CustomTuningModel.create_time is deprecated. See google/cloud/discoveryengine/v1beta/custom_tuning_model.proto;l=89Deprecated: Timestamp the Model was created at.
.google.protobuf.Timestamp create_time = 5 [deprecated = true];- Specified by:
getCreateTimein interfaceCustomTuningModelOrBuilder- Returns:
- The createTime.
-
setCreateTime
Deprecated.Deprecated: Timestamp the Model was created at.
.google.protobuf.Timestamp create_time = 5 [deprecated = true]; -
setCreateTime
@Deprecated public CustomTuningModel.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Deprecated.Deprecated: Timestamp the Model was created at.
.google.protobuf.Timestamp create_time = 5 [deprecated = true]; -
mergeCreateTime
Deprecated.Deprecated: Timestamp the Model was created at.
.google.protobuf.Timestamp create_time = 5 [deprecated = true]; -
clearCreateTime
Deprecated.Deprecated: Timestamp the Model was created at.
.google.protobuf.Timestamp create_time = 5 [deprecated = true]; -
getCreateTimeBuilder
Deprecated.Deprecated: Timestamp the Model was created at.
.google.protobuf.Timestamp create_time = 5 [deprecated = true]; -
getCreateTimeOrBuilder
Deprecated.Deprecated: Timestamp the Model was created at.
.google.protobuf.Timestamp create_time = 5 [deprecated = true];- Specified by:
getCreateTimeOrBuilderin interfaceCustomTuningModelOrBuilder
-
hasTrainingStartTime
public boolean hasTrainingStartTime()Timestamp the model training was initiated.
.google.protobuf.Timestamp training_start_time = 6;- Specified by:
hasTrainingStartTimein interfaceCustomTuningModelOrBuilder- Returns:
- Whether the trainingStartTime field is set.
-
getTrainingStartTime
public com.google.protobuf.Timestamp getTrainingStartTime()Timestamp the model training was initiated.
.google.protobuf.Timestamp training_start_time = 6;- Specified by:
getTrainingStartTimein interfaceCustomTuningModelOrBuilder- Returns:
- The trainingStartTime.
-
setTrainingStartTime
Timestamp the model training was initiated.
.google.protobuf.Timestamp training_start_time = 6; -
setTrainingStartTime
public CustomTuningModel.Builder setTrainingStartTime(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp the model training was initiated.
.google.protobuf.Timestamp training_start_time = 6; -
mergeTrainingStartTime
Timestamp the model training was initiated.
.google.protobuf.Timestamp training_start_time = 6; -
clearTrainingStartTime
Timestamp the model training was initiated.
.google.protobuf.Timestamp training_start_time = 6; -
getTrainingStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getTrainingStartTimeBuilder()Timestamp the model training was initiated.
.google.protobuf.Timestamp training_start_time = 6; -
getTrainingStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getTrainingStartTimeOrBuilder()Timestamp the model training was initiated.
.google.protobuf.Timestamp training_start_time = 6;- Specified by:
getTrainingStartTimeOrBuilderin interfaceCustomTuningModelOrBuilder
-
getMetricsCount
public int getMetricsCount()Description copied from interface:CustomTuningModelOrBuilderThe metrics of the trained model.
map<string, double> metrics = 7;- Specified by:
getMetricsCountin interfaceCustomTuningModelOrBuilder
-
containsMetrics
The metrics of the trained model.
map<string, double> metrics = 7;- Specified by:
containsMetricsin interfaceCustomTuningModelOrBuilder
-
getMetrics
Deprecated.UsegetMetricsMap()instead.- Specified by:
getMetricsin interfaceCustomTuningModelOrBuilder
-
getMetricsMap
The metrics of the trained model.
map<string, double> metrics = 7;- Specified by:
getMetricsMapin interfaceCustomTuningModelOrBuilder
-
getMetricsOrDefault
The metrics of the trained model.
map<string, double> metrics = 7;- Specified by:
getMetricsOrDefaultin interfaceCustomTuningModelOrBuilder
-
getMetricsOrThrow
The metrics of the trained model.
map<string, double> metrics = 7;- Specified by:
getMetricsOrThrowin interfaceCustomTuningModelOrBuilder
-
clearMetrics
-
removeMetrics
The metrics of the trained model.
map<string, double> metrics = 7; -
getMutableMetrics
Deprecated.Use alternate mutation accessors instead. -
putMetrics
The metrics of the trained model.
map<string, double> metrics = 7; -
putAllMetrics
The metrics of the trained model.
map<string, double> metrics = 7; -
getErrorMessage
Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.
string error_message = 8;- Specified by:
getErrorMessagein interfaceCustomTuningModelOrBuilder- Returns:
- The errorMessage.
-
getErrorMessageBytes
public com.google.protobuf.ByteString getErrorMessageBytes()Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.
string error_message = 8;- Specified by:
getErrorMessageBytesin interfaceCustomTuningModelOrBuilder- Returns:
- The bytes for errorMessage.
-
setErrorMessage
Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.
string error_message = 8;- Parameters:
value- The errorMessage to set.- Returns:
- This builder for chaining.
-
clearErrorMessage
Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.
string error_message = 8;- Returns:
- This builder for chaining.
-
setErrorMessageBytes
Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.
string error_message = 8;- Parameters:
value- The bytes for errorMessage to set.- Returns:
- This builder for chaining.
-