Class EvaluationResult.ToolCallLatency.Builder (0.3.0)

public static final class EvaluationResult.ToolCallLatency.Builder extends GeneratedMessage.Builder<EvaluationResult.ToolCallLatency.Builder> implements EvaluationResult.ToolCallLatencyOrBuilder

The latency of a tool call execution.

Protobuf type google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency

Static Methods

getDescriptor()

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

Methods

build()

public EvaluationResult.ToolCallLatency build()
Returns
Type Description
EvaluationResult.ToolCallLatency

buildPartial()

public EvaluationResult.ToolCallLatency buildPartial()
Returns
Type Description
EvaluationResult.ToolCallLatency

clear()

public EvaluationResult.ToolCallLatency.Builder clear()
Returns
Type Description
EvaluationResult.ToolCallLatency.Builder
Overrides

clearDisplayName()

public EvaluationResult.ToolCallLatency.Builder clearDisplayName()

Output only. The display name of the tool.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

This builder for chaining.

clearEndTime()

public EvaluationResult.ToolCallLatency.Builder clearEndTime()

Output only. The end time of the tool call execution.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

clearExecutionLatency()

public EvaluationResult.ToolCallLatency.Builder clearExecutionLatency()

Output only. The latency of the tool call execution.

.google.protobuf.Duration execution_latency = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

clearStartTime()

public EvaluationResult.ToolCallLatency.Builder clearStartTime()

Output only. The start time of the tool call execution.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

clearTool()

public EvaluationResult.ToolCallLatency.Builder clearTool()

Output only. The name of the tool that got executed. Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}.

string tool = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

This builder for chaining.

getDefaultInstanceForType()

public EvaluationResult.ToolCallLatency getDefaultInstanceForType()
Returns
Type Description
EvaluationResult.ToolCallLatency

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Output only. The display name of the tool.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The display name of the tool.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for displayName.

getEndTime()

public Timestamp getEndTime()

Output only. The end time of the tool call execution.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. The end time of the tool call execution.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. The end time of the tool call execution.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getExecutionLatency()

public Duration getExecutionLatency()

Output only. The latency of the tool call execution.

.google.protobuf.Duration execution_latency = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Duration

The executionLatency.

getExecutionLatencyBuilder()

public Duration.Builder getExecutionLatencyBuilder()

Output only. The latency of the tool call execution.

.google.protobuf.Duration execution_latency = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getExecutionLatencyOrBuilder()

public DurationOrBuilder getExecutionLatencyOrBuilder()

Output only. The latency of the tool call execution.

.google.protobuf.Duration execution_latency = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DurationOrBuilder

getStartTime()

public Timestamp getStartTime()

Output only. The start time of the tool call execution.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Output only. The start time of the tool call execution.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. The start time of the tool call execution.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getTool()

public String getTool()

Output only. The name of the tool that got executed. Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}.

string tool = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The tool.

getToolBytes()

public ByteString getToolBytes()

Output only. The name of the tool that got executed. Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}.

string tool = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for tool.

hasEndTime()

public boolean hasEndTime()

Output only. The end time of the tool call execution.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the endTime field is set.

hasExecutionLatency()

public boolean hasExecutionLatency()

Output only. The latency of the tool call execution.

.google.protobuf.Duration execution_latency = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the executionLatency field is set.

hasStartTime()

public boolean hasStartTime()

Output only. The start time of the tool call execution.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public EvaluationResult.ToolCallLatency.Builder mergeEndTime(Timestamp value)

Output only. The end time of the tool call execution.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

mergeExecutionLatency(Duration value)

public EvaluationResult.ToolCallLatency.Builder mergeExecutionLatency(Duration value)

Output only. The latency of the tool call execution.

.google.protobuf.Duration execution_latency = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Duration
Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

mergeFrom(EvaluationResult.ToolCallLatency other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public EvaluationResult.ToolCallLatency.Builder mergeStartTime(Timestamp value)

Output only. The start time of the tool call execution.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

setDisplayName(String value)

public EvaluationResult.ToolCallLatency.Builder setDisplayName(String value)

Output only. The display name of the tool.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public EvaluationResult.ToolCallLatency.Builder setDisplayNameBytes(ByteString value)

Output only. The display name of the tool.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

This builder for chaining.

setEndTime(Timestamp value)

public EvaluationResult.ToolCallLatency.Builder setEndTime(Timestamp value)

Output only. The end time of the tool call execution.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

setEndTime(Timestamp.Builder builderForValue)

public EvaluationResult.ToolCallLatency.Builder setEndTime(Timestamp.Builder builderForValue)

Output only. The end time of the tool call execution.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

setExecutionLatency(Duration value)

public EvaluationResult.ToolCallLatency.Builder setExecutionLatency(Duration value)

Output only. The latency of the tool call execution.

.google.protobuf.Duration execution_latency = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Duration
Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

setExecutionLatency(Duration.Builder builderForValue)

public EvaluationResult.ToolCallLatency.Builder setExecutionLatency(Duration.Builder builderForValue)

Output only. The latency of the tool call execution.

.google.protobuf.Duration execution_latency = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

setStartTime(Timestamp value)

public EvaluationResult.ToolCallLatency.Builder setStartTime(Timestamp value)

Output only. The start time of the tool call execution.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

setStartTime(Timestamp.Builder builderForValue)

public EvaluationResult.ToolCallLatency.Builder setStartTime(Timestamp.Builder builderForValue)

Output only. The start time of the tool call execution.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

setTool(String value)

public EvaluationResult.ToolCallLatency.Builder setTool(String value)

Output only. The name of the tool that got executed. Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}.

string tool = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The tool to set.

Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

This builder for chaining.

setToolBytes(ByteString value)

public EvaluationResult.ToolCallLatency.Builder setToolBytes(ByteString value)

Output only. The name of the tool that got executed. Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}.

string tool = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for tool to set.

Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

This builder for chaining.