Class ToolNameMatchInstance.Builder (3.84.0)

public static final class ToolNameMatchInstance.Builder extends GeneratedMessage.Builder<ToolNameMatchInstance.Builder> implements ToolNameMatchInstanceOrBuilder

Spec for tool name match instance.

Protobuf type google.cloud.aiplatform.v1.ToolNameMatchInstance

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ToolNameMatchInstance build()
Returns
Type Description
ToolNameMatchInstance

buildPartial()

public ToolNameMatchInstance buildPartial()
Returns
Type Description
ToolNameMatchInstance

clear()

public ToolNameMatchInstance.Builder clear()
Returns
Type Description
ToolNameMatchInstance.Builder
Overrides

clearPrediction()

public ToolNameMatchInstance.Builder clearPrediction()

Required. Output of the evaluated model.

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

Returns
Type Description
ToolNameMatchInstance.Builder

This builder for chaining.

clearReference()

public ToolNameMatchInstance.Builder clearReference()

Required. Ground truth used to compare against the prediction.

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

Returns
Type Description
ToolNameMatchInstance.Builder

This builder for chaining.

getDefaultInstanceForType()

public ToolNameMatchInstance getDefaultInstanceForType()
Returns
Type Description
ToolNameMatchInstance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPrediction()

public String getPrediction()

Required. Output of the evaluated model.

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

Returns
Type Description
String

The prediction.

getPredictionBytes()

public ByteString getPredictionBytes()

Required. Output of the evaluated model.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the reference field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ToolNameMatchInstance other)

public ToolNameMatchInstance.Builder mergeFrom(ToolNameMatchInstance other)
Parameter
Name Description
other ToolNameMatchInstance
Returns
Type Description
ToolNameMatchInstance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ToolNameMatchInstance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ToolNameMatchInstance.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ToolNameMatchInstance.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ToolNameMatchInstance.Builder
Overrides

setPrediction(String value)

public ToolNameMatchInstance.Builder setPrediction(String value)

Required. Output of the evaluated model.

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

Parameter
Name Description
value String

The prediction to set.

Returns
Type Description
ToolNameMatchInstance.Builder

This builder for chaining.

setPredictionBytes(ByteString value)

public ToolNameMatchInstance.Builder setPredictionBytes(ByteString value)

Required. Output of the evaluated model.

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

Parameter
Name Description
value ByteString

The bytes for prediction to set.

Returns
Type Description
ToolNameMatchInstance.Builder

This builder for chaining.

setReference(String value)

public ToolNameMatchInstance.Builder setReference(String value)

Required. Ground truth used to compare against the prediction.

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

Parameter
Name Description
value String

The reference to set.

Returns
Type Description
ToolNameMatchInstance.Builder

This builder for chaining.

setReferenceBytes(ByteString value)

public ToolNameMatchInstance.Builder setReferenceBytes(ByteString value)

Required. Ground truth used to compare against the prediction.

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

Parameter
Name Description
value ByteString

The bytes for reference to set.

Returns
Type Description
ToolNameMatchInstance.Builder

This builder for chaining.