Class ResponseRecallInstance.Builder (3.41.0)

public static final class ResponseRecallInstance.Builder extends GeneratedMessageV3.Builder<ResponseRecallInstance.Builder> implements ResponseRecallInstanceOrBuilder

Spec for response recall instance.

Protobuf type google.cloud.aiplatform.v1beta1.ResponseRecallInstance

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResponseRecallInstance build()
Returns
TypeDescription
ResponseRecallInstance

buildPartial()

public ResponseRecallInstance buildPartial()
Returns
TypeDescription
ResponseRecallInstance

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrediction()

public ResponseRecallInstance.Builder clearPrediction()

Required. Output of the evaluated model.

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

Returns
TypeDescription
ResponseRecallInstance.Builder

This builder for chaining.

clearReference()

public ResponseRecallInstance.Builder clearReference()

Required. Ground truth used to compare against the prediction.

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

Returns
TypeDescription
ResponseRecallInstance.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ResponseRecallInstance getDefaultInstanceForType()
Returns
TypeDescription
ResponseRecallInstance

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(ResponseRecallInstance other)

public ResponseRecallInstance.Builder mergeFrom(ResponseRecallInstance other)
Parameter
NameDescription
otherResponseRecallInstance
Returns
TypeDescription
ResponseRecallInstance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPrediction(String value)

public ResponseRecallInstance.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
ResponseRecallInstance.Builder

This builder for chaining.

setPredictionBytes(ByteString value)

public ResponseRecallInstance.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
ResponseRecallInstance.Builder

This builder for chaining.

setReference(String value)

public ResponseRecallInstance.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
ResponseRecallInstance.Builder

This builder for chaining.

setReferenceBytes(ByteString value)

public ResponseRecallInstance.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
ResponseRecallInstance.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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