public final class CustomTuningModel extends com.google.protobuf.GeneratedMessageV3 implements CustomTuningModelOrBuilder
Metadata that describes a custom tuned model.Protobuf type
google.cloud.discoveryengine.v1beta.CustomTuningModel| Modifier and Type | Class and Description |
|---|---|
static class |
CustomTuningModel.Builder
Metadata that describes a custom tuned model.
|
static class |
CustomTuningModel.ModelState
The state of the model.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
ERROR_MESSAGE_FIELD_NUMBER |
static int |
METRICS_FIELD_NUMBER |
static int |
MODEL_STATE_FIELD_NUMBER |
static int |
MODEL_VERSION_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
TRAINING_START_TIME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsMetrics(String key)
The metrics of the trained model.
|
boolean |
equals(Object obj) |
com.google.protobuf.Timestamp |
getCreateTime()
Deprecated.
google.cloud.discoveryengine.v1beta.CustomTuningModel.create_time is deprecated.
See google/cloud/discoveryengine/v1beta/custom_tuning_model.proto;l=89
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Deprecated.
|
static CustomTuningModel |
getDefaultInstance() |
CustomTuningModel |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDisplayName()
The display name of the model.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
The display name of the model.
|
String |
getErrorMessage()
Currently this is only populated if the model state is
`INPUT_VALIDATION_FAILED`.
|
com.google.protobuf.ByteString |
getErrorMessageBytes()
Currently this is only populated if the model state is
`INPUT_VALIDATION_FAILED`.
|
Map<String,Double> |
getMetrics()
Deprecated.
|
int |
getMetricsCount()
The metrics of the trained model.
|
Map<String,Double> |
getMetricsMap()
The metrics of the trained model.
|
double |
getMetricsOrDefault(String key,
double defaultValue)
The metrics of the trained model.
|
double |
getMetricsOrThrow(String key)
The metrics of the trained model.
|
CustomTuningModel.ModelState |
getModelState()
The state that the model is in (e.g.
|
int |
getModelStateValue()
The state that the model is in (e.g.
|
long |
getModelVersion()
The version of the model.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
com.google.protobuf.Parser<CustomTuningModel> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.Timestamp |
getTrainingStartTime()
Timestamp the model training was initiated.
|
com.google.protobuf.TimestampOrBuilder |
getTrainingStartTimeOrBuilder()
Timestamp the model training was initiated.
|
boolean |
hasCreateTime()
Deprecated.
google.cloud.discoveryengine.v1beta.CustomTuningModel.create_time is deprecated.
See google/cloud/discoveryengine/v1beta/custom_tuning_model.proto;l=89
|
int |
hashCode() |
boolean |
hasTrainingStartTime()
Timestamp the model training was initiated.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static CustomTuningModel.Builder |
newBuilder() |
static CustomTuningModel.Builder |
newBuilder(CustomTuningModel prototype) |
CustomTuningModel.Builder |
newBuilderForType() |
protected CustomTuningModel.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CustomTuningModel |
parseDelimitedFrom(InputStream input) |
static CustomTuningModel |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CustomTuningModel |
parseFrom(byte[] data) |
static CustomTuningModel |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CustomTuningModel |
parseFrom(ByteBuffer data) |
static CustomTuningModel |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CustomTuningModel |
parseFrom(com.google.protobuf.ByteString data) |
static CustomTuningModel |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CustomTuningModel |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CustomTuningModel |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CustomTuningModel |
parseFrom(InputStream input) |
static CustomTuningModel |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CustomTuningModel> |
parser() |
CustomTuningModel.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int MODEL_VERSION_FIELD_NUMBER
public static final int MODEL_STATE_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int TRAINING_START_TIME_FIELD_NUMBER
public static final int METRICS_FIELD_NUMBER
public static final int ERROR_MESSAGE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String 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) = { ... }
getName in interface CustomTuningModelOrBuilderpublic 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) = { ... }
getNameBytes in interface CustomTuningModelOrBuilderpublic String getDisplayName()
The display name of the model.
string display_name = 2;getDisplayName in interface CustomTuningModelOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
The display name of the model.
string display_name = 2;getDisplayNameBytes in interface CustomTuningModelOrBuilderpublic long getModelVersion()
The version of the model.
int64 model_version = 3;getModelVersion in interface CustomTuningModelOrBuilderpublic int getModelStateValue()
The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`).
.google.cloud.discoveryengine.v1beta.CustomTuningModel.ModelState model_state = 4;getModelStateValue in interface CustomTuningModelOrBuilderpublic CustomTuningModel.ModelState getModelState()
The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`).
.google.cloud.discoveryengine.v1beta.CustomTuningModel.ModelState model_state = 4;getModelState in interface CustomTuningModelOrBuilder@Deprecated public boolean hasCreateTime()
Deprecated: Timestamp the Model was created at.
.google.protobuf.Timestamp create_time = 5 [deprecated = true];hasCreateTime in interface CustomTuningModelOrBuilder@Deprecated public com.google.protobuf.Timestamp getCreateTime()
Deprecated: Timestamp the Model was created at.
.google.protobuf.Timestamp create_time = 5 [deprecated = true];getCreateTime in interface CustomTuningModelOrBuilder@Deprecated public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Deprecated: Timestamp the Model was created at.
.google.protobuf.Timestamp create_time = 5 [deprecated = true];getCreateTimeOrBuilder in interface CustomTuningModelOrBuilderpublic boolean hasTrainingStartTime()
Timestamp the model training was initiated.
.google.protobuf.Timestamp training_start_time = 6;hasTrainingStartTime in interface CustomTuningModelOrBuilderpublic com.google.protobuf.Timestamp getTrainingStartTime()
Timestamp the model training was initiated.
.google.protobuf.Timestamp training_start_time = 6;getTrainingStartTime in interface CustomTuningModelOrBuilderpublic com.google.protobuf.TimestampOrBuilder getTrainingStartTimeOrBuilder()
Timestamp the model training was initiated.
.google.protobuf.Timestamp training_start_time = 6;getTrainingStartTimeOrBuilder in interface CustomTuningModelOrBuilderpublic int getMetricsCount()
CustomTuningModelOrBuilderThe metrics of the trained model.
map<string, double> metrics = 7;getMetricsCount in interface CustomTuningModelOrBuilderpublic boolean containsMetrics(String key)
The metrics of the trained model.
map<string, double> metrics = 7;containsMetrics in interface CustomTuningModelOrBuilder@Deprecated public Map<String,Double> getMetrics()
getMetricsMap() instead.getMetrics in interface CustomTuningModelOrBuilderpublic Map<String,Double> getMetricsMap()
The metrics of the trained model.
map<string, double> metrics = 7;getMetricsMap in interface CustomTuningModelOrBuilderpublic double getMetricsOrDefault(String key, double defaultValue)
The metrics of the trained model.
map<string, double> metrics = 7;getMetricsOrDefault in interface CustomTuningModelOrBuilderpublic double getMetricsOrThrow(String key)
The metrics of the trained model.
map<string, double> metrics = 7;getMetricsOrThrow in interface CustomTuningModelOrBuilderpublic String getErrorMessage()
Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.
string error_message = 8;getErrorMessage in interface CustomTuningModelOrBuilderpublic com.google.protobuf.ByteString getErrorMessageBytes()
Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.
string error_message = 8;getErrorMessageBytes in interface CustomTuningModelOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static CustomTuningModel parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CustomTuningModel parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CustomTuningModel parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CustomTuningModel parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CustomTuningModel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CustomTuningModel parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CustomTuningModel parseFrom(InputStream input) throws IOException
IOExceptionpublic static CustomTuningModel parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CustomTuningModel parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static CustomTuningModel parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CustomTuningModel parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static CustomTuningModel parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic CustomTuningModel.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CustomTuningModel.Builder newBuilder()
public static CustomTuningModel.Builder newBuilder(CustomTuningModel prototype)
public CustomTuningModel.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CustomTuningModel.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static CustomTuningModel getDefaultInstance()
public static com.google.protobuf.Parser<CustomTuningModel> parser()
public com.google.protobuf.Parser<CustomTuningModel> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CustomTuningModel getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.