Class ToolCallValidInstance.Builder (3.49.0)

public static final class ToolCallValidInstance.Builder extends GeneratedMessageV3.Builder<ToolCallValidInstance.Builder> implements ToolCallValidInstanceOrBuilder

Spec for tool call valid instance.

Protobuf type google.cloud.aiplatform.v1beta1.ToolCallValidInstance

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ToolCallValidInstance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ToolCallValidInstance.Builder
Overrides

build()

public ToolCallValidInstance build()
Returns
Type Description
ToolCallValidInstance

buildPartial()

public ToolCallValidInstance buildPartial()
Returns
Type Description
ToolCallValidInstance

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ToolCallValidInstance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ToolCallValidInstance.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ToolCallValidInstance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ToolCallValidInstance.Builder
Overrides

clearPrediction()

public ToolCallValidInstance.Builder clearPrediction()

Required. Output of the evaluated model.

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

Returns
Type Description
ToolCallValidInstance.Builder

This builder for chaining.

clearReference()

public ToolCallValidInstance.Builder clearReference()

Required. Ground truth used to compare against the prediction.

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

Returns
Type Description
ToolCallValidInstance.Builder

This builder for chaining.

clone()

public ToolCallValidInstance.Builder clone()
Returns
Type Description
ToolCallValidInstance.Builder
Overrides

getDefaultInstanceForType()

public ToolCallValidInstance getDefaultInstanceForType()
Returns
Type Description
ToolCallValidInstance

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ToolCallValidInstance other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ToolCallValidInstance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ToolCallValidInstance.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ToolCallValidInstance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ToolCallValidInstance.Builder
Overrides

setPrediction(String value)

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

This builder for chaining.

setPredictionBytes(ByteString value)

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

This builder for chaining.

setReference(String value)

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

This builder for chaining.

setReferenceBytes(ByteString value)

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

This builder for chaining.

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

public ToolCallValidInstance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ToolCallValidInstance.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ToolCallValidInstance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ToolCallValidInstance.Builder
Overrides