Class TrajectorySingleToolUseInput.Builder (3.56.0)

public static final class TrajectorySingleToolUseInput.Builder extends GeneratedMessageV3.Builder<TrajectorySingleToolUseInput.Builder> implements TrajectorySingleToolUseInputOrBuilder

Instances and metric spec for TrajectorySingleToolUse metric.

Protobuf type google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput

Static Methods

getDescriptor()

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

Methods

addAllInstances(Iterable<? extends TrajectorySingleToolUseInstance> values)

public TrajectorySingleToolUseInput.Builder addAllInstances(Iterable<? extends TrajectorySingleToolUseInstance> values)

Required. Repeated TrajectorySingleToolUse instance.

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

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

addInstances(TrajectorySingleToolUseInstance value)

public TrajectorySingleToolUseInput.Builder addInstances(TrajectorySingleToolUseInstance value)

Required. Repeated TrajectorySingleToolUse instance.

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

Parameter
Name Description
value TrajectorySingleToolUseInstance
Returns
Type Description
TrajectorySingleToolUseInput.Builder

addInstances(TrajectorySingleToolUseInstance.Builder builderForValue)

public TrajectorySingleToolUseInput.Builder addInstances(TrajectorySingleToolUseInstance.Builder builderForValue)

Required. Repeated TrajectorySingleToolUse instance.

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

Parameter
Name Description
builderForValue TrajectorySingleToolUseInstance.Builder
Returns
Type Description
TrajectorySingleToolUseInput.Builder

addInstances(int index, TrajectorySingleToolUseInstance value)

public TrajectorySingleToolUseInput.Builder addInstances(int index, TrajectorySingleToolUseInstance value)

Required. Repeated TrajectorySingleToolUse instance.

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

Parameters
Name Description
index int
value TrajectorySingleToolUseInstance
Returns
Type Description
TrajectorySingleToolUseInput.Builder

addInstances(int index, TrajectorySingleToolUseInstance.Builder builderForValue)

public TrajectorySingleToolUseInput.Builder addInstances(int index, TrajectorySingleToolUseInstance.Builder builderForValue)

Required. Repeated TrajectorySingleToolUse instance.

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

Parameters
Name Description
index int
builderForValue TrajectorySingleToolUseInstance.Builder
Returns
Type Description
TrajectorySingleToolUseInput.Builder

addInstancesBuilder()

public TrajectorySingleToolUseInstance.Builder addInstancesBuilder()

Required. Repeated TrajectorySingleToolUse instance.

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

Returns
Type Description
TrajectorySingleToolUseInstance.Builder

addInstancesBuilder(int index)

public TrajectorySingleToolUseInstance.Builder addInstancesBuilder(int index)

Required. Repeated TrajectorySingleToolUse instance.

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

Parameter
Name Description
index int
Returns
Type Description
TrajectorySingleToolUseInstance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TrajectorySingleToolUseInput build()
Returns
Type Description
TrajectorySingleToolUseInput

buildPartial()

public TrajectorySingleToolUseInput buildPartial()
Returns
Type Description
TrajectorySingleToolUseInput

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstances()

public TrajectorySingleToolUseInput.Builder clearInstances()

Required. Repeated TrajectorySingleToolUse instance.

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

Returns
Type Description
TrajectorySingleToolUseInput.Builder

clearMetricSpec()

public TrajectorySingleToolUseInput.Builder clearMetricSpec()

Required. Spec for TrajectorySingleToolUse metric.

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

Returns
Type Description
TrajectorySingleToolUseInput.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public TrajectorySingleToolUseInput getDefaultInstanceForType()
Returns
Type Description
TrajectorySingleToolUseInput

getDescriptorForType()

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

getInstances(int index)

public TrajectorySingleToolUseInstance getInstances(int index)

Required. Repeated TrajectorySingleToolUse instance.

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

Parameter
Name Description
index int
Returns
Type Description
TrajectorySingleToolUseInstance

getInstancesBuilder(int index)

public TrajectorySingleToolUseInstance.Builder getInstancesBuilder(int index)

Required. Repeated TrajectorySingleToolUse instance.

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

Parameter
Name Description
index int
Returns
Type Description
TrajectorySingleToolUseInstance.Builder

getInstancesBuilderList()

public List<TrajectorySingleToolUseInstance.Builder> getInstancesBuilderList()

Required. Repeated TrajectorySingleToolUse instance.

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

Returns
Type Description
List<Builder>

getInstancesCount()

public int getInstancesCount()

Required. Repeated TrajectorySingleToolUse instance.

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

Returns
Type Description
int

getInstancesList()

public List<TrajectorySingleToolUseInstance> getInstancesList()

Required. Repeated TrajectorySingleToolUse instance.

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

Returns
Type Description
List<TrajectorySingleToolUseInstance>

getInstancesOrBuilder(int index)

public TrajectorySingleToolUseInstanceOrBuilder getInstancesOrBuilder(int index)

Required. Repeated TrajectorySingleToolUse instance.

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

Parameter
Name Description
index int
Returns
Type Description
TrajectorySingleToolUseInstanceOrBuilder

getInstancesOrBuilderList()

public List<? extends TrajectorySingleToolUseInstanceOrBuilder> getInstancesOrBuilderList()

Required. Repeated TrajectorySingleToolUse instance.

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

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

getMetricSpec()

public TrajectorySingleToolUseSpec getMetricSpec()

Required. Spec for TrajectorySingleToolUse metric.

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

Returns
Type Description
TrajectorySingleToolUseSpec

The metricSpec.

getMetricSpecBuilder()

public TrajectorySingleToolUseSpec.Builder getMetricSpecBuilder()

Required. Spec for TrajectorySingleToolUse metric.

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

Returns
Type Description
TrajectorySingleToolUseSpec.Builder

getMetricSpecOrBuilder()

public TrajectorySingleToolUseSpecOrBuilder getMetricSpecOrBuilder()

Required. Spec for TrajectorySingleToolUse metric.

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

Returns
Type Description
TrajectorySingleToolUseSpecOrBuilder

hasMetricSpec()

public boolean hasMetricSpec()

Required. Spec for TrajectorySingleToolUse metric.

.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec 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(TrajectorySingleToolUseInput other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetricSpec(TrajectorySingleToolUseSpec value)

public TrajectorySingleToolUseInput.Builder mergeMetricSpec(TrajectorySingleToolUseSpec value)

Required. Spec for TrajectorySingleToolUse metric.

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

Parameter
Name Description
value TrajectorySingleToolUseSpec
Returns
Type Description
TrajectorySingleToolUseInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeInstances(int index)

public TrajectorySingleToolUseInput.Builder removeInstances(int index)

Required. Repeated TrajectorySingleToolUse instance.

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

Parameter
Name Description
index int
Returns
Type Description
TrajectorySingleToolUseInput.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstances(int index, TrajectorySingleToolUseInstance value)

public TrajectorySingleToolUseInput.Builder setInstances(int index, TrajectorySingleToolUseInstance value)

Required. Repeated TrajectorySingleToolUse instance.

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

Parameters
Name Description
index int
value TrajectorySingleToolUseInstance
Returns
Type Description
TrajectorySingleToolUseInput.Builder

setInstances(int index, TrajectorySingleToolUseInstance.Builder builderForValue)

public TrajectorySingleToolUseInput.Builder setInstances(int index, TrajectorySingleToolUseInstance.Builder builderForValue)

Required. Repeated TrajectorySingleToolUse instance.

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

Parameters
Name Description
index int
builderForValue TrajectorySingleToolUseInstance.Builder
Returns
Type Description
TrajectorySingleToolUseInput.Builder

setMetricSpec(TrajectorySingleToolUseSpec value)

public TrajectorySingleToolUseInput.Builder setMetricSpec(TrajectorySingleToolUseSpec value)

Required. Spec for TrajectorySingleToolUse metric.

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

Parameter
Name Description
value TrajectorySingleToolUseSpec
Returns
Type Description
TrajectorySingleToolUseInput.Builder

setMetricSpec(TrajectorySingleToolUseSpec.Builder builderForValue)

public TrajectorySingleToolUseInput.Builder setMetricSpec(TrajectorySingleToolUseSpec.Builder builderForValue)

Required. Spec for TrajectorySingleToolUse metric.

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

Parameter
Name Description
builderForValue TrajectorySingleToolUseSpec.Builder
Returns
Type Description
TrajectorySingleToolUseInput.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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