Class ToolParameterKVMatchInstance.Builder (3.40.0)

public static final class ToolParameterKVMatchInstance.Builder extends GeneratedMessageV3.Builder<ToolParameterKVMatchInstance.Builder> implements ToolParameterKVMatchInstanceOrBuilder

Spec for tool parameter key value match instance.

Protobuf type google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInstance

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ToolParameterKVMatchInstance build()
Returns
TypeDescription
ToolParameterKVMatchInstance

buildPartial()

public ToolParameterKVMatchInstance buildPartial()
Returns
TypeDescription
ToolParameterKVMatchInstance

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrediction()

public ToolParameterKVMatchInstance.Builder clearPrediction()

Required. Output of the evaluated model.

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

Returns
TypeDescription
ToolParameterKVMatchInstance.Builder

This builder for chaining.

clearReference()

public ToolParameterKVMatchInstance.Builder clearReference()

Required. Ground truth used to compare against the prediction.

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

Returns
TypeDescription
ToolParameterKVMatchInstance.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ToolParameterKVMatchInstance getDefaultInstanceForType()
Returns
TypeDescription
ToolParameterKVMatchInstance

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

public ToolParameterKVMatchInstance.Builder mergeFrom(ToolParameterKVMatchInstance other)
Parameter
NameDescription
otherToolParameterKVMatchInstance
Returns
TypeDescription
ToolParameterKVMatchInstance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPrediction(String value)

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

This builder for chaining.

setPredictionBytes(ByteString value)

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

This builder for chaining.

setReference(String value)

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

This builder for chaining.

setReferenceBytes(ByteString value)

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

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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