Class EvaluationMetricsThresholds.ToolMatchingSettings.Builder (0.1.0)

public static final class EvaluationMetricsThresholds.ToolMatchingSettings.Builder extends GeneratedMessage.Builder<EvaluationMetricsThresholds.ToolMatchingSettings.Builder> implements EvaluationMetricsThresholds.ToolMatchingSettingsOrBuilder

Settings for matching tool calls.

Protobuf type google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings

Static Methods

getDescriptor()

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

Methods

build()

public EvaluationMetricsThresholds.ToolMatchingSettings build()
Returns
Type Description
EvaluationMetricsThresholds.ToolMatchingSettings

buildPartial()

public EvaluationMetricsThresholds.ToolMatchingSettings buildPartial()
Returns
Type Description
EvaluationMetricsThresholds.ToolMatchingSettings

clear()

public EvaluationMetricsThresholds.ToolMatchingSettings.Builder clear()
Returns
Type Description
EvaluationMetricsThresholds.ToolMatchingSettings.Builder
Overrides

clearExtraToolCallBehavior()

public EvaluationMetricsThresholds.ToolMatchingSettings.Builder clearExtraToolCallBehavior()

Optional. Behavior for extra tool calls. Defaults to FAIL.

.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior extra_tool_call_behavior = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationMetricsThresholds.ToolMatchingSettings.Builder

This builder for chaining.

getDefaultInstanceForType()

public EvaluationMetricsThresholds.ToolMatchingSettings getDefaultInstanceForType()
Returns
Type Description
EvaluationMetricsThresholds.ToolMatchingSettings

getDescriptorForType()

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

getExtraToolCallBehavior()

public EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior getExtraToolCallBehavior()

Optional. Behavior for extra tool calls. Defaults to FAIL.

.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior extra_tool_call_behavior = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior

The extraToolCallBehavior.

getExtraToolCallBehaviorValue()

public int getExtraToolCallBehaviorValue()

Optional. Behavior for extra tool calls. Defaults to FAIL.

.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior extra_tool_call_behavior = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for extraToolCallBehavior.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EvaluationMetricsThresholds.ToolMatchingSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setExtraToolCallBehavior(EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior value)

public EvaluationMetricsThresholds.ToolMatchingSettings.Builder setExtraToolCallBehavior(EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior value)

Optional. Behavior for extra tool calls. Defaults to FAIL.

.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior extra_tool_call_behavior = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior

The extraToolCallBehavior to set.

Returns
Type Description
EvaluationMetricsThresholds.ToolMatchingSettings.Builder

This builder for chaining.

setExtraToolCallBehaviorValue(int value)

public EvaluationMetricsThresholds.ToolMatchingSettings.Builder setExtraToolCallBehaviorValue(int value)

Optional. Behavior for extra tool calls. Defaults to FAIL.

.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior extra_tool_call_behavior = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for extraToolCallBehavior to set.

Returns
Type Description
EvaluationMetricsThresholds.ToolMatchingSettings.Builder

This builder for chaining.