Class ToolCallValidInput.Builder (3.41.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.aiplatform.v1beta1.ToolCallValidInstance>
Returns
TypeDescription
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
NameDescription
valueToolCallValidInstance
Returns
TypeDescription
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
NameDescription
builderForValueToolCallValidInstance.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueToolCallValidInstance
Returns
TypeDescription
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
NameDescription
indexint
builderForValueToolCallValidInstance.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ToolCallValidInstance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ToolCallValidInput build()
Returns
TypeDescription
ToolCallValidInput

buildPartial()

public ToolCallValidInput buildPartial()
Returns
TypeDescription
ToolCallValidInput

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ToolCallValidInput.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ToolCallValidInput.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ToolCallValidInput getDefaultInstanceForType()
Returns
TypeDescription
ToolCallValidInput

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the metricSpec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ToolCallValidInput other)

public ToolCallValidInput.Builder mergeFrom(ToolCallValidInput other)
Parameter
NameDescription
otherToolCallValidInput
Returns
TypeDescription
ToolCallValidInput.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ToolCallValidInput.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueToolCallValidSpec
Returns
TypeDescription
ToolCallValidInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ToolCallValidInput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ToolCallValidInput.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ToolCallValidInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueToolCallValidInstance
Returns
TypeDescription
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
NameDescription
indexint
builderForValueToolCallValidInstance.Builder
Returns
TypeDescription
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
NameDescription
valueToolCallValidSpec
Returns
TypeDescription
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
NameDescription
builderForValueToolCallValidSpec.Builder
Returns
TypeDescription
ToolCallValidInput.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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