Class Trajectory.Builder (3.56.0)

public static final class Trajectory.Builder extends GeneratedMessageV3.Builder<Trajectory.Builder> implements TrajectoryOrBuilder

Spec for trajectory.

Protobuf type google.cloud.aiplatform.v1beta1.Trajectory

Implements

TrajectoryOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllToolCalls(Iterable<? extends ToolCall> values)

public Trajectory.Builder addAllToolCalls(Iterable<? extends ToolCall> values)

Required. Tool calls in the trajectory.

repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addToolCalls(ToolCall value)

public Trajectory.Builder addToolCalls(ToolCall value)

Required. Tool calls in the trajectory.

repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ToolCall
Returns
Type Description
Trajectory.Builder

addToolCalls(ToolCall.Builder builderForValue)

public Trajectory.Builder addToolCalls(ToolCall.Builder builderForValue)

Required. Tool calls in the trajectory.

repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ToolCall.Builder
Returns
Type Description
Trajectory.Builder

addToolCalls(int index, ToolCall value)

public Trajectory.Builder addToolCalls(int index, ToolCall value)

Required. Tool calls in the trajectory.

repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value ToolCall
Returns
Type Description
Trajectory.Builder

addToolCalls(int index, ToolCall.Builder builderForValue)

public Trajectory.Builder addToolCalls(int index, ToolCall.Builder builderForValue)

Required. Tool calls in the trajectory.

repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue ToolCall.Builder
Returns
Type Description
Trajectory.Builder

addToolCallsBuilder()

public ToolCall.Builder addToolCallsBuilder()

Required. Tool calls in the trajectory.

repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ToolCall.Builder

addToolCallsBuilder(int index)

public ToolCall.Builder addToolCallsBuilder(int index)

Required. Tool calls in the trajectory.

repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ToolCall.Builder

build()

public Trajectory build()
Returns
Type Description
Trajectory

buildPartial()

public Trajectory buildPartial()
Returns
Type Description
Trajectory

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearToolCalls()

public Trajectory.Builder clearToolCalls()

Required. Tool calls in the trajectory.

repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Trajectory.Builder

clone()

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

getDefaultInstanceForType()

public Trajectory getDefaultInstanceForType()
Returns
Type Description
Trajectory

getDescriptorForType()

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

getToolCalls(int index)

public ToolCall getToolCalls(int index)

Required. Tool calls in the trajectory.

repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ToolCall

getToolCallsBuilder(int index)

public ToolCall.Builder getToolCallsBuilder(int index)

Required. Tool calls in the trajectory.

repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ToolCall.Builder

getToolCallsBuilderList()

public List<ToolCall.Builder> getToolCallsBuilderList()

Required. Tool calls in the trajectory.

repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getToolCallsCount()

public int getToolCallsCount()

Required. Tool calls in the trajectory.

repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getToolCallsList()

public List<ToolCall> getToolCallsList()

Required. Tool calls in the trajectory.

repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<ToolCall>

getToolCallsOrBuilder(int index)

public ToolCallOrBuilder getToolCallsOrBuilder(int index)

Required. Tool calls in the trajectory.

repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ToolCallOrBuilder

getToolCallsOrBuilderList()

public List<? extends ToolCallOrBuilder> getToolCallsOrBuilderList()

Required. Tool calls in the trajectory.

repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Trajectory other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeToolCalls(int index)

public Trajectory.Builder removeToolCalls(int index)

Required. Tool calls in the trajectory.

repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Trajectory.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setToolCalls(int index, ToolCall value)

public Trajectory.Builder setToolCalls(int index, ToolCall value)

Required. Tool calls in the trajectory.

repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value ToolCall
Returns
Type Description
Trajectory.Builder

setToolCalls(int index, ToolCall.Builder builderForValue)

public Trajectory.Builder setToolCalls(int index, ToolCall.Builder builderForValue)

Required. Tool calls in the trajectory.

repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue ToolCall.Builder
Returns
Type Description
Trajectory.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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