public static final class Trajectory.Builder extends GeneratedMessageV3.Builder<Trajectory.Builder> implements TrajectoryOrBuilder
Spec for trajectory.
Protobuf type google.cloud.aiplatform.v1beta1.Trajectory
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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>
|
public Trajectory.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
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
|
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];
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];
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];
public ToolCall.Builder addToolCallsBuilder()
Required. Tool calls in the trajectory.
repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];
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
|
public Trajectory build()
public Trajectory buildPartial()
public Trajectory.Builder clear()
Overrides
public Trajectory.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public Trajectory.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public Trajectory.Builder clearToolCalls()
Required. Tool calls in the trajectory.
repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];
public Trajectory.Builder clone()
Overrides
public Trajectory getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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
|
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
|
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];
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 |
|
public List<ToolCall> getToolCallsList()
Required. Tool calls in the trajectory.
repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED];
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
|
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> |
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Trajectory.Builder mergeFrom(Trajectory other)
public Trajectory.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public Trajectory.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final Trajectory.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
public Trajectory.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Trajectory.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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];
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];
public final Trajectory.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides