public static final class StudySpec.MetricSpec extends com.google.protobuf.GeneratedMessageV3 implements StudySpec.MetricSpecOrBuilder
Represents a metric to optimize.Protobuf type
google.cloud.aiplatform.v1.StudySpec.MetricSpec| Modifier and Type | Class and Description |
|---|---|
static class |
StudySpec.MetricSpec.Builder
Represents a metric to optimize.
|
static class |
StudySpec.MetricSpec.GoalType
The available types of optimization goals.
|
static class |
StudySpec.MetricSpec.SafetyMetricConfig
Used in safe optimization to specify threshold levels and risk tolerance.
|
static interface |
StudySpec.MetricSpec.SafetyMetricConfigOrBuilder |
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 |
GOAL_FIELD_NUMBER |
static int |
METRIC_ID_FIELD_NUMBER |
static int |
SAFETY_CONFIG_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static StudySpec.MetricSpec |
getDefaultInstance() |
StudySpec.MetricSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
StudySpec.MetricSpec.GoalType |
getGoal()
Required.
|
int |
getGoalValue()
Required.
|
String |
getMetricId()
Required.
|
com.google.protobuf.ByteString |
getMetricIdBytes()
Required.
|
com.google.protobuf.Parser<StudySpec.MetricSpec> |
getParserForType() |
StudySpec.MetricSpec.SafetyMetricConfig |
getSafetyConfig()
Used for safe search.
|
StudySpec.MetricSpec.SafetyMetricConfigOrBuilder |
getSafetyConfigOrBuilder()
Used for safe search.
|
int |
getSerializedSize() |
int |
hashCode() |
boolean |
hasSafetyConfig()
Used for safe search.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static StudySpec.MetricSpec.Builder |
newBuilder() |
static StudySpec.MetricSpec.Builder |
newBuilder(StudySpec.MetricSpec prototype) |
StudySpec.MetricSpec.Builder |
newBuilderForType() |
protected StudySpec.MetricSpec.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static StudySpec.MetricSpec |
parseDelimitedFrom(InputStream input) |
static StudySpec.MetricSpec |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StudySpec.MetricSpec |
parseFrom(byte[] data) |
static StudySpec.MetricSpec |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StudySpec.MetricSpec |
parseFrom(ByteBuffer data) |
static StudySpec.MetricSpec |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StudySpec.MetricSpec |
parseFrom(com.google.protobuf.ByteString data) |
static StudySpec.MetricSpec |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StudySpec.MetricSpec |
parseFrom(com.google.protobuf.CodedInputStream input) |
static StudySpec.MetricSpec |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StudySpec.MetricSpec |
parseFrom(InputStream input) |
static StudySpec.MetricSpec |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<StudySpec.MetricSpec> |
parser() |
StudySpec.MetricSpec.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, internalGetMapFieldReflection, 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 METRIC_ID_FIELD_NUMBER
public static final int GOAL_FIELD_NUMBER
public static final int SAFETY_CONFIG_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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getMetricId()
Required. The ID of the metric. Must not contain whitespaces and must be unique amongst all MetricSpecs.
string metric_id = 1 [(.google.api.field_behavior) = REQUIRED];getMetricId in interface StudySpec.MetricSpecOrBuilderpublic com.google.protobuf.ByteString getMetricIdBytes()
Required. The ID of the metric. Must not contain whitespaces and must be unique amongst all MetricSpecs.
string metric_id = 1 [(.google.api.field_behavior) = REQUIRED];getMetricIdBytes in interface StudySpec.MetricSpecOrBuilderpublic int getGoalValue()
Required. The optimization goal of the metric.
.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType goal = 2 [(.google.api.field_behavior) = REQUIRED];
getGoalValue in interface StudySpec.MetricSpecOrBuilderpublic StudySpec.MetricSpec.GoalType getGoal()
Required. The optimization goal of the metric.
.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType goal = 2 [(.google.api.field_behavior) = REQUIRED];
getGoal in interface StudySpec.MetricSpecOrBuilderpublic boolean hasSafetyConfig()
Used for safe search. In the case, the metric will be a safety metric. You must provide a separate metric for objective metric.
optional .google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig safety_config = 3;
hasSafetyConfig in interface StudySpec.MetricSpecOrBuilderpublic StudySpec.MetricSpec.SafetyMetricConfig getSafetyConfig()
Used for safe search. In the case, the metric will be a safety metric. You must provide a separate metric for objective metric.
optional .google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig safety_config = 3;
getSafetyConfig in interface StudySpec.MetricSpecOrBuilderpublic StudySpec.MetricSpec.SafetyMetricConfigOrBuilder getSafetyConfigOrBuilder()
Used for safe search. In the case, the metric will be a safety metric. You must provide a separate metric for objective metric.
optional .google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig safety_config = 3;
getSafetyConfigOrBuilder in interface StudySpec.MetricSpecOrBuilderpublic 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 StudySpec.MetricSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StudySpec.MetricSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StudySpec.MetricSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StudySpec.MetricSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StudySpec.MetricSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StudySpec.MetricSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StudySpec.MetricSpec parseFrom(InputStream input) throws IOException
IOExceptionpublic static StudySpec.MetricSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static StudySpec.MetricSpec parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static StudySpec.MetricSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static StudySpec.MetricSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static StudySpec.MetricSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic StudySpec.MetricSpec.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static StudySpec.MetricSpec.Builder newBuilder()
public static StudySpec.MetricSpec.Builder newBuilder(StudySpec.MetricSpec prototype)
public StudySpec.MetricSpec.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected StudySpec.MetricSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static StudySpec.MetricSpec getDefaultInstance()
public static com.google.protobuf.Parser<StudySpec.MetricSpec> parser()
public com.google.protobuf.Parser<StudySpec.MetricSpec> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public StudySpec.MetricSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.