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.v1beta1.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.v1beta1.MetricResult-
Method Summary
Modifier and TypeMethodDescriptionaddAllRubricVerdicts(Iterable<? extends RubricVerdict> values) Output only.addRubricVerdicts(int index, RubricVerdict value) Output only.addRubricVerdicts(int index, RubricVerdict.Builder builderForValue) Output only.addRubricVerdicts(RubricVerdict value) Output only.addRubricVerdicts(RubricVerdict.Builder builderForValue) Output only.Output only.addRubricVerdictsBuilder(int index) Output only.build()clear()Output only.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.getRubricVerdicts(int index) Output only.getRubricVerdictsBuilder(int index) Output only.Output only.intOutput only.Output only.getRubricVerdictsOrBuilder(int index) Output only.List<? extends RubricVerdictOrBuilder>Output 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) removeRubricVerdicts(int index) Output only.Output only.setError(Status.Builder builderForValue) Output only.setExplanation(String value) Output only.setExplanationBytes(com.google.protobuf.ByteString value) Output only.setRubricVerdicts(int index, RubricVerdict value) Output only.setRubricVerdicts(int index, RubricVerdict.Builder builderForValue) 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.
-
getRubricVerdictsList
Output only. For rubric-based metrics, the verdicts for each rubric.
repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRubricVerdictsListin interfaceMetricResultOrBuilder
-
getRubricVerdictsCount
public int getRubricVerdictsCount()Output only. For rubric-based metrics, the verdicts for each rubric.
repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRubricVerdictsCountin interfaceMetricResultOrBuilder
-
getRubricVerdicts
Output only. For rubric-based metrics, the verdicts for each rubric.
repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRubricVerdictsin interfaceMetricResultOrBuilder
-
setRubricVerdicts
Output only. For rubric-based metrics, the verdicts for each rubric.
repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setRubricVerdicts
Output only. For rubric-based metrics, the verdicts for each rubric.
repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addRubricVerdicts
Output only. For rubric-based metrics, the verdicts for each rubric.
repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addRubricVerdicts
Output only. For rubric-based metrics, the verdicts for each rubric.
repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addRubricVerdicts
Output only. For rubric-based metrics, the verdicts for each rubric.
repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addRubricVerdicts
Output only. For rubric-based metrics, the verdicts for each rubric.
repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllRubricVerdicts
Output only. For rubric-based metrics, the verdicts for each rubric.
repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearRubricVerdicts
Output only. For rubric-based metrics, the verdicts for each rubric.
repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeRubricVerdicts
Output only. For rubric-based metrics, the verdicts for each rubric.
repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getRubricVerdictsBuilder
Output only. For rubric-based metrics, the verdicts for each rubric.
repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getRubricVerdictsOrBuilder
Output only. For rubric-based metrics, the verdicts for each rubric.
repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRubricVerdictsOrBuilderin interfaceMetricResultOrBuilder
-
getRubricVerdictsOrBuilderList
Output only. For rubric-based metrics, the verdicts for each rubric.
repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRubricVerdictsOrBuilderListin interfaceMetricResultOrBuilder
-
addRubricVerdictsBuilder
Output only. For rubric-based metrics, the verdicts for each rubric.
repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addRubricVerdictsBuilder
Output only. For rubric-based metrics, the verdicts for each rubric.
repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getRubricVerdictsBuilderList
Output only. For rubric-based metrics, the verdicts for each rubric.
repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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
-