Class ToolCallValidInput.Builder (3.44.0)

public static final class ToolCallValidInput.Builder extends GeneratedMessageV3.Builder<ToolCallValidInput.Builder> implements ToolCallValidInputOrBuilder

Input for tool call valid metric.

Protobuf type google.cloud.aiplatform.v1beta1.ToolCallValidInput

Static Methods

getDescriptor()

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

Methods

addAllInstances(Iterable<? extends ToolCallValidInstance> values)

public ToolCallValidInput.Builder addAllInstances(Iterable<? extends ToolCallValidInstance> values)

Required. Repeated tool call valid instances.

repeated .google.cloud.aiplatform.v1beta1.ToolCallValidInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1beta1.ToolCallValidInstance>
Returns
Type Description
ToolCallValidInput.Builder

addInstances(ToolCallValidInstance value)

public ToolCallValidInput.Builder addInstances(ToolCallValidInstance value)

Required. Repeated tool call valid instances.

repeated .google.cloud.aiplatform.v1beta1.ToolCallValidInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ToolCallValidInstance
Returns
Type Description
ToolCallValidInput.Builder

addInstances(ToolCallValidInstance.Builder builderForValue)

public ToolCallValidInput.Builder addInstances(ToolCallValidInstance.Builder builderForValue)

Required. Repeated tool call valid instances.

repeated .google.cloud.aiplatform.v1beta1.ToolCallValidInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ToolCallValidInstance.Builder
Returns
Type Description
ToolCallValidInput.Builder

addInstances(int index, ToolCallValidInstance value)

public ToolCallValidInput.Builder addInstances(int index, ToolCallValidInstance value)

Required. Repeated tool call valid instances.

repeated .google.cloud.aiplatform.v1beta1.ToolCallValidInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value ToolCallValidInstance
Returns
Type Description
ToolCallValidInput.Builder

addInstances(int index, ToolCallValidInstance.Builder builderForValue)

public ToolCallValidInput.Builder addInstances(int index, ToolCallValidInstance.Builder builderForValue)

Required. Repeated tool call valid instances.

repeated .google.cloud.aiplatform.v1beta1.ToolCallValidInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue ToolCallValidInstance.Builder
Returns
Type Description
ToolCallValidInput.Builder

addInstancesBuilder()

public ToolCallValidInstance.Builder addInstancesBuilder()

Required. Repeated tool call valid instances.

repeated .google.cloud.aiplatform.v1beta1.ToolCallValidInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ToolCallValidInstance.Builder

addInstancesBuilder(int index)

public ToolCallValidInstance.Builder addInstancesBuilder(int index)

Required. Repeated tool call valid instances.

repeated .google.cloud.aiplatform.v1beta1.ToolCallValidInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ToolCallValidInstance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ToolCallValidInput build()
Returns
Type Description
ToolCallValidInput

buildPartial()

public ToolCallValidInput buildPartial()
Returns
Type Description
ToolCallValidInput

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstances()

public ToolCallValidInput.Builder clearInstances()

Required. Repeated tool call valid instances.

repeated .google.cloud.aiplatform.v1beta1.ToolCallValidInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ToolCallValidInput.Builder

clearMetricSpec()

public ToolCallValidInput.Builder clearMetricSpec()

Required. Spec for tool call valid metric.

.google.cloud.aiplatform.v1beta1.ToolCallValidSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ToolCallValidInput.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ToolCallValidInput getDefaultInstanceForType()
Returns
Type Description
ToolCallValidInput

getDescriptorForType()

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

getInstances(int index)

public ToolCallValidInstance getInstances(int index)

Required. Repeated tool call valid instances.

repeated .google.cloud.aiplatform.v1beta1.ToolCallValidInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ToolCallValidInstance

getInstancesBuilder(int index)

public ToolCallValidInstance.Builder getInstancesBuilder(int index)

Required. Repeated tool call valid instances.

repeated .google.cloud.aiplatform.v1beta1.ToolCallValidInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ToolCallValidInstance.Builder

getInstancesBuilderList()

public List<ToolCallValidInstance.Builder> getInstancesBuilderList()

Required. Repeated tool call valid instances.

repeated .google.cloud.aiplatform.v1beta1.ToolCallValidInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getInstancesCount()

public int getInstancesCount()

Required. Repeated tool call valid instances.

repeated .google.cloud.aiplatform.v1beta1.ToolCallValidInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getInstancesList()

public List<ToolCallValidInstance> getInstancesList()

Required. Repeated tool call valid instances.

repeated .google.cloud.aiplatform.v1beta1.ToolCallValidInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<ToolCallValidInstance>

getInstancesOrBuilder(int index)

public ToolCallValidInstanceOrBuilder getInstancesOrBuilder(int index)

Required. Repeated tool call valid instances.

repeated .google.cloud.aiplatform.v1beta1.ToolCallValidInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ToolCallValidInstanceOrBuilder

getInstancesOrBuilderList()

public List<? extends ToolCallValidInstanceOrBuilder> getInstancesOrBuilderList()

Required. Repeated tool call valid instances.

repeated .google.cloud.aiplatform.v1beta1.ToolCallValidInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.ToolCallValidInstanceOrBuilder>

getMetricSpec()

public ToolCallValidSpec getMetricSpec()

Required. Spec for tool call valid metric.

.google.cloud.aiplatform.v1beta1.ToolCallValidSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ToolCallValidSpec

The metricSpec.

getMetricSpecBuilder()

public ToolCallValidSpec.Builder getMetricSpecBuilder()

Required. Spec for tool call valid metric.

.google.cloud.aiplatform.v1beta1.ToolCallValidSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ToolCallValidSpec.Builder

getMetricSpecOrBuilder()

public ToolCallValidSpecOrBuilder getMetricSpecOrBuilder()

Required. Spec for tool call valid metric.

.google.cloud.aiplatform.v1beta1.ToolCallValidSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ToolCallValidSpecOrBuilder

hasMetricSpec()

public boolean hasMetricSpec()

Required. Spec for tool call valid metric.

.google.cloud.aiplatform.v1beta1.ToolCallValidSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the metricSpec field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ToolCallValidInput other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetricSpec(ToolCallValidSpec value)

public ToolCallValidInput.Builder mergeMetricSpec(ToolCallValidSpec value)

Required. Spec for tool call valid metric.

.google.cloud.aiplatform.v1beta1.ToolCallValidSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ToolCallValidSpec
Returns
Type Description
ToolCallValidInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeInstances(int index)

public ToolCallValidInput.Builder removeInstances(int index)

Required. Repeated tool call valid instances.

repeated .google.cloud.aiplatform.v1beta1.ToolCallValidInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ToolCallValidInput.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstances(int index, ToolCallValidInstance value)

public ToolCallValidInput.Builder setInstances(int index, ToolCallValidInstance value)

Required. Repeated tool call valid instances.

repeated .google.cloud.aiplatform.v1beta1.ToolCallValidInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value ToolCallValidInstance
Returns
Type Description
ToolCallValidInput.Builder

setInstances(int index, ToolCallValidInstance.Builder builderForValue)

public ToolCallValidInput.Builder setInstances(int index, ToolCallValidInstance.Builder builderForValue)

Required. Repeated tool call valid instances.

repeated .google.cloud.aiplatform.v1beta1.ToolCallValidInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue ToolCallValidInstance.Builder
Returns
Type Description
ToolCallValidInput.Builder

setMetricSpec(ToolCallValidSpec value)

public ToolCallValidInput.Builder setMetricSpec(ToolCallValidSpec value)

Required. Spec for tool call valid metric.

.google.cloud.aiplatform.v1beta1.ToolCallValidSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ToolCallValidSpec
Returns
Type Description
ToolCallValidInput.Builder

setMetricSpec(ToolCallValidSpec.Builder builderForValue)

public ToolCallValidInput.Builder setMetricSpec(ToolCallValidSpec.Builder builderForValue)

Required. Spec for tool call valid metric.

.google.cloud.aiplatform.v1beta1.ToolCallValidSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ToolCallValidSpec.Builder
Returns
Type Description
ToolCallValidInput.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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