public static final class MetricxInstance.Builder extends com.google.protobuf.GeneratedMessage.Builder<MetricxInstance.Builder> implements MetricxInstanceOrBuilder
Spec for MetricX instance - The fields used for evaluation are dependent on the MetricX version.Protobuf type
google.cloud.aiplatform.v1.MetricxInstance| Modifier and Type | Method and Description |
|---|---|
MetricxInstance |
build() |
MetricxInstance |
buildPartial() |
MetricxInstance.Builder |
clear() |
MetricxInstance.Builder |
clearPrediction()
Required.
|
MetricxInstance.Builder |
clearReference()
Optional.
|
MetricxInstance.Builder |
clearSource()
Optional.
|
MetricxInstance |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getPrediction()
Required.
|
com.google.protobuf.ByteString |
getPredictionBytes()
Required.
|
String |
getReference()
Optional.
|
com.google.protobuf.ByteString |
getReferenceBytes()
Optional.
|
String |
getSource()
Optional.
|
com.google.protobuf.ByteString |
getSourceBytes()
Optional.
|
boolean |
hasPrediction()
Required.
|
boolean |
hasReference()
Optional.
|
boolean |
hasSource()
Optional.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
MetricxInstance.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MetricxInstance.Builder |
mergeFrom(com.google.protobuf.Message other) |
MetricxInstance.Builder |
mergeFrom(MetricxInstance other) |
MetricxInstance.Builder |
setPrediction(String value)
Required.
|
MetricxInstance.Builder |
setPredictionBytes(com.google.protobuf.ByteString value)
Required.
|
MetricxInstance.Builder |
setReference(String value)
Optional.
|
MetricxInstance.Builder |
setReferenceBytes(com.google.protobuf.ByteString value)
Optional.
|
MetricxInstance.Builder |
setSource(String value)
Optional.
|
MetricxInstance.Builder |
setSourceBytes(com.google.protobuf.ByteString value)
Optional.
|
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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MetricxInstance.Builder>public MetricxInstance.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<MetricxInstance.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<MetricxInstance.Builder>public MetricxInstance getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic MetricxInstance build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic MetricxInstance buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic MetricxInstance.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MetricxInstance.Builder>public MetricxInstance.Builder mergeFrom(MetricxInstance other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<MetricxInstance.Builder>public MetricxInstance.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MetricxInstance.Builder>IOExceptionpublic boolean hasPrediction()
Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];hasPrediction in interface MetricxInstanceOrBuilderpublic String getPrediction()
Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];getPrediction in interface MetricxInstanceOrBuilderpublic com.google.protobuf.ByteString getPredictionBytes()
Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];getPredictionBytes in interface MetricxInstanceOrBuilderpublic MetricxInstance.Builder setPrediction(String value)
Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];value - The prediction to set.public MetricxInstance.Builder clearPrediction()
Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];public MetricxInstance.Builder setPredictionBytes(com.google.protobuf.ByteString value)
Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes for prediction to set.public boolean hasReference()
Optional. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];hasReference in interface MetricxInstanceOrBuilderpublic String getReference()
Optional. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];getReference in interface MetricxInstanceOrBuilderpublic com.google.protobuf.ByteString getReferenceBytes()
Optional. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];getReferenceBytes in interface MetricxInstanceOrBuilderpublic MetricxInstance.Builder setReference(String value)
Optional. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];value - The reference to set.public MetricxInstance.Builder clearReference()
Optional. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];public MetricxInstance.Builder setReferenceBytes(com.google.protobuf.ByteString value)
Optional. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for reference to set.public boolean hasSource()
Optional. Source text in original language.
optional string source = 3 [(.google.api.field_behavior) = OPTIONAL];hasSource in interface MetricxInstanceOrBuilderpublic String getSource()
Optional. Source text in original language.
optional string source = 3 [(.google.api.field_behavior) = OPTIONAL];getSource in interface MetricxInstanceOrBuilderpublic com.google.protobuf.ByteString getSourceBytes()
Optional. Source text in original language.
optional string source = 3 [(.google.api.field_behavior) = OPTIONAL];getSourceBytes in interface MetricxInstanceOrBuilderpublic MetricxInstance.Builder setSource(String value)
Optional. Source text in original language.
optional string source = 3 [(.google.api.field_behavior) = OPTIONAL];value - The source to set.public MetricxInstance.Builder clearSource()
Optional. Source text in original language.
optional string source = 3 [(.google.api.field_behavior) = OPTIONAL];public MetricxInstance.Builder setSourceBytes(com.google.protobuf.ByteString value)
Optional. Source text in original language.
optional string source = 3 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for source to set.Copyright © 2026 Google LLC. All rights reserved.