Class CustomTuningModel
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1beta.CustomTuningModel
- All Implemented Interfaces:
CustomTuningModelOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class CustomTuningModel
extends com.google.protobuf.GeneratedMessage
implements CustomTuningModelOrBuilder
Metadata that describes a custom tuned model.Protobuf type
google.cloud.discoveryengine.v1beta.CustomTuningModel- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMetadata that describes a custom tuned model.static enumThe state of the model.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsMetrics(String key) The metrics of the trained model.booleancom.google.protobuf.TimestampDeprecated.google.cloud.discoveryengine.v1beta.CustomTuningModel.create_time is deprecated.com.google.protobuf.TimestampOrBuilderDeprecated.static CustomTuningModelstatic final com.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.getName()Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.Parser<CustomTuningModel>intcom.google.protobuf.TimestampTimestamp the model training was initiated.com.google.protobuf.TimestampOrBuilderTimestamp the model training was initiated.booleanDeprecated.google.cloud.discoveryengine.v1beta.CustomTuningModel.create_time is deprecated.inthashCode()booleanTimestamp the model training was initiated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic CustomTuningModel.Builderstatic CustomTuningModel.BuildernewBuilder(CustomTuningModel prototype) protected CustomTuningModel.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static CustomTuningModelparseDelimitedFrom(InputStream input) static CustomTuningModelparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CustomTuningModelparseFrom(byte[] data) static CustomTuningModelparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CustomTuningModelparseFrom(com.google.protobuf.ByteString data) static CustomTuningModelparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CustomTuningModelparseFrom(com.google.protobuf.CodedInputStream input) static CustomTuningModelparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CustomTuningModelparseFrom(InputStream input) static CustomTuningModelparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CustomTuningModelparseFrom(ByteBuffer data) static CustomTuningModelparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CustomTuningModel>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
MODEL_VERSION_FIELD_NUMBER
public static final int MODEL_VERSION_FIELD_NUMBER- See Also:
-
MODEL_STATE_FIELD_NUMBER
public static final int MODEL_STATE_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
TRAINING_START_TIME_FIELD_NUMBER
public static final int TRAINING_START_TIME_FIELD_NUMBER- See Also:
-
METRICS_FIELD_NUMBER
public static final int METRICS_FIELD_NUMBER- See Also:
-
ERROR_MESSAGE_FIELD_NUMBER
public static final int ERROR_MESSAGE_FIELD_NUMBER- See Also:
-
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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.
-
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.
-
getModelVersion
public long getModelVersion()The version of the model.
int64 model_version = 3;- Specified by:
getModelVersionin interfaceCustomTuningModelOrBuilder- Returns:
- The modelVersion.
-
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.
-
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.
-
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.
-
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.
-
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
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CustomTuningModel parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomTuningModel parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomTuningModel parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomTuningModel parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomTuningModel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomTuningModel parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CustomTuningModel parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CustomTuningModel parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static CustomTuningModel parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CustomTuningModel parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CustomTuningModel.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-