Class TrajectorySingleToolUseSpec.Builder (3.56.0)

public static final class TrajectorySingleToolUseSpec.Builder extends GeneratedMessageV3.Builder<TrajectorySingleToolUseSpec.Builder> implements TrajectorySingleToolUseSpecOrBuilder

Spec for TrajectorySingleToolUse metric - returns 1 if tool is present in the predicted trajectory, else 0.

Protobuf type google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TrajectorySingleToolUseSpec build()
Returns
Type Description
TrajectorySingleToolUseSpec

buildPartial()

public TrajectorySingleToolUseSpec buildPartial()
Returns
Type Description
TrajectorySingleToolUseSpec

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearToolName()

public TrajectorySingleToolUseSpec.Builder clearToolName()

Required. Spec for tool name to be checked for in the predicted trajectory.

optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TrajectorySingleToolUseSpec.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TrajectorySingleToolUseSpec getDefaultInstanceForType()
Returns
Type Description
TrajectorySingleToolUseSpec

getDescriptorForType()

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

getToolName()

public String getToolName()

Required. Spec for tool name to be checked for in the predicted trajectory.

optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The toolName.

getToolNameBytes()

public ByteString getToolNameBytes()

Required. Spec for tool name to be checked for in the predicted trajectory.

optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for toolName.

hasToolName()

public boolean hasToolName()

Required. Spec for tool name to be checked for in the predicted trajectory.

optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the toolName field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TrajectorySingleToolUseSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setToolName(String value)

public TrajectorySingleToolUseSpec.Builder setToolName(String value)

Required. Spec for tool name to be checked for in the predicted trajectory.

optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The toolName to set.

Returns
Type Description
TrajectorySingleToolUseSpec.Builder

This builder for chaining.

setToolNameBytes(ByteString value)

public TrajectorySingleToolUseSpec.Builder setToolNameBytes(ByteString value)

Required. Spec for tool name to be checked for in the predicted trajectory.

optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for toolName to set.

Returns
Type Description
TrajectorySingleToolUseSpec.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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