Package com.google.cloud.aiplatform.v1
Class MetricResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MetricResult.Builder>
com.google.cloud.aiplatform.v1.MetricResult.Builder
- All Implemented Interfaces:
MetricResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MetricResult
public static final class MetricResult.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MetricResult.Builder>
implements MetricResultOrBuilder
Result for a single metric on a single instance.Protobuf type
google.cloud.aiplatform.v1.MetricResult-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetError()Output only.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.floatgetScore()Output only.booleanhasError()Output only.booleanOutput only.booleanhasScore()Output only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeError(Status value) Output only.mergeFrom(MetricResult other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output only.setError(Status.Builder builderForValue) Output only.setExplanation(String value) Output only.setExplanationBytes(com.google.protobuf.ByteString value) Output only.setScore(float value) Output only.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MetricResult.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<MetricResult.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<MetricResult.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<MetricResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MetricResult.Builder>
-
mergeFrom
public MetricResult.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<MetricResult.Builder>- Throws:
IOException
-
hasScore
public boolean hasScore()Output only. The score for the metric. Please refer to each metric's documentation for the meaning of the score.
optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasScorein interfaceMetricResultOrBuilder- Returns:
- Whether the score field is set.
-
getScore
public float getScore()Output only. The score for the metric. Please refer to each metric's documentation for the meaning of the score.
optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getScorein interfaceMetricResultOrBuilder- Returns:
- The score.
-
setScore
Output only. The score for the metric. Please refer to each metric's documentation for the meaning of the score.
optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The score to set.- Returns:
- This builder for chaining.
-
clearScore
Output only. The score for the metric. Please refer to each metric's documentation for the meaning of the score.
optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasExplanation
public boolean hasExplanation()Output only. The explanation for the metric result.
optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasExplanationin interfaceMetricResultOrBuilder- Returns:
- Whether the explanation field is set.
-
getExplanation
Output only. The explanation for the metric result.
optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExplanationin interfaceMetricResultOrBuilder- Returns:
- The explanation.
-
getExplanationBytes
public com.google.protobuf.ByteString getExplanationBytes()Output only. The explanation for the metric result.
optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExplanationBytesin interfaceMetricResultOrBuilder- Returns:
- The bytes for explanation.
-
setExplanation
Output only. The explanation for the metric result.
optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The explanation to set.- Returns:
- This builder for chaining.
-
clearExplanation
Output only. The explanation for the metric result.
optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setExplanationBytes
Output only. The explanation for the metric result.
optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for explanation to set.- Returns:
- This builder for chaining.
-
hasError
public boolean hasError()Output only. The error status for the metric result.
optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasErrorin interfaceMetricResultOrBuilder- Returns:
- Whether the error field is set.
-
getError
Output only. The error status for the metric result.
optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getErrorin interfaceMetricResultOrBuilder- Returns:
- The error.
-
setError
Output only. The error status for the metric result.
optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setError
Output only. The error status for the metric result.
optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeError
Output only. The error status for the metric result.
optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearError
Output only. The error status for the metric result.
optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getErrorBuilder
Output only. The error status for the metric result.
optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getErrorOrBuilder
Output only. The error status for the metric result.
optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getErrorOrBuilderin interfaceMetricResultOrBuilder
-