Class ExactMatchInstance.Builder (3.40.0)

public static final class ExactMatchInstance.Builder extends GeneratedMessageV3.Builder<ExactMatchInstance.Builder> implements ExactMatchInstanceOrBuilder

Spec for exact match instance.

Protobuf type google.cloud.aiplatform.v1beta1.ExactMatchInstance

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExactMatchInstance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExactMatchInstance.Builder
Overrides

build()

public ExactMatchInstance build()
Returns
TypeDescription
ExactMatchInstance

buildPartial()

public ExactMatchInstance buildPartial()
Returns
TypeDescription
ExactMatchInstance

clear()

public ExactMatchInstance.Builder clear()
Returns
TypeDescription
ExactMatchInstance.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ExactMatchInstance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ExactMatchInstance.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExactMatchInstance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ExactMatchInstance.Builder
Overrides

clearPrediction()

public ExactMatchInstance.Builder clearPrediction()

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ExactMatchInstance.Builder

This builder for chaining.

clearReference()

public ExactMatchInstance.Builder clearReference()

Required. Ground truth used to compare against the prediction.

optional string reference = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ExactMatchInstance.Builder

This builder for chaining.

clone()

public ExactMatchInstance.Builder clone()
Returns
TypeDescription
ExactMatchInstance.Builder
Overrides

getDefaultInstanceForType()

public ExactMatchInstance getDefaultInstanceForType()
Returns
TypeDescription
ExactMatchInstance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPrediction()

public String getPrediction()

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The prediction.

getPredictionBytes()

public ByteString getPredictionBytes()

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for prediction.

getReference()

public String getReference()

Required. Ground truth used to compare against the prediction.

optional string reference = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The reference.

getReferenceBytes()

public ByteString getReferenceBytes()

Required. Ground truth used to compare against the prediction.

optional string reference = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for reference.

hasPrediction()

public boolean hasPrediction()

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the prediction field is set.

hasReference()

public boolean hasReference()

Required. Ground truth used to compare against the prediction.

optional string reference = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the reference field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExactMatchInstance other)

public ExactMatchInstance.Builder mergeFrom(ExactMatchInstance other)
Parameter
NameDescription
otherExactMatchInstance
Returns
TypeDescription
ExactMatchInstance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExactMatchInstance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExactMatchInstance.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ExactMatchInstance.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ExactMatchInstance.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExactMatchInstance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExactMatchInstance.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ExactMatchInstance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExactMatchInstance.Builder
Overrides

setPrediction(String value)

public ExactMatchInstance.Builder setPrediction(String value)

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The prediction to set.

Returns
TypeDescription
ExactMatchInstance.Builder

This builder for chaining.

setPredictionBytes(ByteString value)

public ExactMatchInstance.Builder setPredictionBytes(ByteString value)

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for prediction to set.

Returns
TypeDescription
ExactMatchInstance.Builder

This builder for chaining.

setReference(String value)

public ExactMatchInstance.Builder setReference(String value)

Required. Ground truth used to compare against the prediction.

optional string reference = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The reference to set.

Returns
TypeDescription
ExactMatchInstance.Builder

This builder for chaining.

setReferenceBytes(ByteString value)

public ExactMatchInstance.Builder setReferenceBytes(ByteString value)

Required. Ground truth used to compare against the prediction.

optional string reference = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for reference to set.

Returns
TypeDescription
ExactMatchInstance.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ExactMatchInstance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExactMatchInstance.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ExactMatchInstance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExactMatchInstance.Builder
Overrides