Class EvaluationResult.SpanLatency.Builder (0.3.0)

public static final class EvaluationResult.SpanLatency.Builder extends GeneratedMessage.Builder<EvaluationResult.SpanLatency.Builder> implements EvaluationResult.SpanLatencyOrBuilder

The latency of a span execution.

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

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

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

clearCallback()

public EvaluationResult.SpanLatency.Builder clearCallback()

Output only. The name of the user callback span.

string callback = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.SpanLatency.Builder

This builder for chaining.

clearDisplayName()

public EvaluationResult.SpanLatency.Builder clearDisplayName()

Output only. The display name of the span. Applicable to tool and guardrail spans.

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

Returns
Type Description
EvaluationResult.SpanLatency.Builder

This builder for chaining.

clearEndTime()

public EvaluationResult.SpanLatency.Builder clearEndTime()

Output only. The end time of span.

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

Returns
Type Description
EvaluationResult.SpanLatency.Builder

clearExecutionLatency()

public EvaluationResult.SpanLatency.Builder clearExecutionLatency()

Output only. The latency of span.

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

Returns
Type Description
EvaluationResult.SpanLatency.Builder

clearIdentifier()

public EvaluationResult.SpanLatency.Builder clearIdentifier()
Returns
Type Description
EvaluationResult.SpanLatency.Builder

clearModel()

public EvaluationResult.SpanLatency.Builder clearModel()

Output only. The name of the LLM span.

string model = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.SpanLatency.Builder

This builder for chaining.

clearResource()

public EvaluationResult.SpanLatency.Builder clearResource()

Output only. The resource name of the guardrail or tool spans.

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

Returns
Type Description
EvaluationResult.SpanLatency.Builder

This builder for chaining.

clearStartTime()

public EvaluationResult.SpanLatency.Builder clearStartTime()

Output only. The start time of span.

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

Returns
Type Description
EvaluationResult.SpanLatency.Builder

clearToolset()

public EvaluationResult.SpanLatency.Builder clearToolset()

Output only. The toolset tool identifier.

.google.cloud.ces.v1beta.ToolsetTool toolset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.SpanLatency.Builder

clearType()

public EvaluationResult.SpanLatency.Builder clearType()

Output only. The type of span.

.google.cloud.ces.v1beta.EvaluationResult.SpanLatency.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.SpanLatency.Builder

This builder for chaining.

getCallback()

public String getCallback()

Output only. The name of the user callback span.

string callback = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The callback.

getCallbackBytes()

public ByteString getCallbackBytes()

Output only. The name of the user callback span.

string callback = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for callback.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Output only. The display name of the span. Applicable to tool and guardrail spans.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The display name of the span. Applicable to tool and guardrail spans.

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

Returns
Type Description
ByteString

The bytes for displayName.

getEndTime()

public Timestamp getEndTime()

Output only. The end time of span.

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

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. The end time of span.

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

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. The end time of span.

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

Returns
Type Description
TimestampOrBuilder

getExecutionLatency()

public Duration getExecutionLatency()

Output only. The latency of span.

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

Returns
Type Description
Duration

The executionLatency.

getExecutionLatencyBuilder()

public Duration.Builder getExecutionLatencyBuilder()

Output only. The latency of span.

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

Returns
Type Description
Builder

getExecutionLatencyOrBuilder()

public DurationOrBuilder getExecutionLatencyOrBuilder()

Output only. The latency of span.

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

Returns
Type Description
DurationOrBuilder

getIdentifierCase()

public EvaluationResult.SpanLatency.IdentifierCase getIdentifierCase()
Returns
Type Description
EvaluationResult.SpanLatency.IdentifierCase

getModel()

public String getModel()

Output only. The name of the LLM span.

string model = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The model.

getModelBytes()

public ByteString getModelBytes()

Output only. The name of the LLM span.

string model = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for model.

getResource()

public String getResource()

Output only. The resource name of the guardrail or tool spans.

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

Returns
Type Description
String

The resource.

getResourceBytes()

public ByteString getResourceBytes()

Output only. The resource name of the guardrail or tool spans.

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

Returns
Type Description
ByteString

The bytes for resource.

getStartTime()

public Timestamp getStartTime()

Output only. The start time of span.

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

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Output only. The start time of span.

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

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. The start time of span.

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

Returns
Type Description
TimestampOrBuilder

getToolset()

public ToolsetTool getToolset()

Output only. The toolset tool identifier.

.google.cloud.ces.v1beta.ToolsetTool toolset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ToolsetTool

The toolset.

getToolsetBuilder()

public ToolsetTool.Builder getToolsetBuilder()

Output only. The toolset tool identifier.

.google.cloud.ces.v1beta.ToolsetTool toolset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ToolsetTool.Builder

getToolsetOrBuilder()

public ToolsetToolOrBuilder getToolsetOrBuilder()

Output only. The toolset tool identifier.

.google.cloud.ces.v1beta.ToolsetTool toolset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ToolsetToolOrBuilder

getType()

public EvaluationResult.SpanLatency.Type getType()

Output only. The type of span.

.google.cloud.ces.v1beta.EvaluationResult.SpanLatency.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.SpanLatency.Type

The type.

getTypeValue()

public int getTypeValue()

Output only. The type of span.

.google.cloud.ces.v1beta.EvaluationResult.SpanLatency.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for type.

hasCallback()

public boolean hasCallback()

Output only. The name of the user callback span.

string callback = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the callback field is set.

hasEndTime()

public boolean hasEndTime()

Output only. The end time of span.

.google.protobuf.Timestamp end_time = 7 [(.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 span.

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

Returns
Type Description
boolean

Whether the executionLatency field is set.

hasModel()

public boolean hasModel()

Output only. The name of the LLM span.

string model = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the model field is set.

hasResource()

public boolean hasResource()

Output only. The resource name of the guardrail or tool spans.

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

Returns
Type Description
boolean

Whether the resource field is set.

hasStartTime()

public boolean hasStartTime()

Output only. The start time of span.

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

Returns
Type Description
boolean

Whether the startTime field is set.

hasToolset()

public boolean hasToolset()

Output only. The toolset tool identifier.

.google.cloud.ces.v1beta.ToolsetTool toolset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the toolset 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.SpanLatency.Builder mergeEndTime(Timestamp value)

Output only. The end time of span.

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

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

mergeExecutionLatency(Duration value)

public EvaluationResult.SpanLatency.Builder mergeExecutionLatency(Duration value)

Output only. The latency of span.

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

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

mergeFrom(EvaluationResult.SpanLatency other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public EvaluationResult.SpanLatency.Builder mergeStartTime(Timestamp value)

Output only. The start time of span.

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

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

mergeToolset(ToolsetTool value)

public EvaluationResult.SpanLatency.Builder mergeToolset(ToolsetTool value)

Output only. The toolset tool identifier.

.google.cloud.ces.v1beta.ToolsetTool toolset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ToolsetTool
Returns
Type Description
EvaluationResult.SpanLatency.Builder

setCallback(String value)

public EvaluationResult.SpanLatency.Builder setCallback(String value)

Output only. The name of the user callback span.

string callback = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The callback to set.

Returns
Type Description
EvaluationResult.SpanLatency.Builder

This builder for chaining.

setCallbackBytes(ByteString value)

public EvaluationResult.SpanLatency.Builder setCallbackBytes(ByteString value)

Output only. The name of the user callback span.

string callback = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for callback to set.

Returns
Type Description
EvaluationResult.SpanLatency.Builder

This builder for chaining.

setDisplayName(String value)

public EvaluationResult.SpanLatency.Builder setDisplayName(String value)

Output only. The display name of the span. Applicable to tool and guardrail spans.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
EvaluationResult.SpanLatency.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public EvaluationResult.SpanLatency.Builder setDisplayNameBytes(ByteString value)

Output only. The display name of the span. Applicable to tool and guardrail spans.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
EvaluationResult.SpanLatency.Builder

This builder for chaining.

setEndTime(Timestamp value)

public EvaluationResult.SpanLatency.Builder setEndTime(Timestamp value)

Output only. The end time of span.

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

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

setEndTime(Timestamp.Builder builderForValue)

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

Output only. The end time of span.

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

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

setExecutionLatency(Duration value)

public EvaluationResult.SpanLatency.Builder setExecutionLatency(Duration value)

Output only. The latency of span.

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

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

setExecutionLatency(Duration.Builder builderForValue)

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

Output only. The latency of span.

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

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

setModel(String value)

public EvaluationResult.SpanLatency.Builder setModel(String value)

Output only. The name of the LLM span.

string model = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The model to set.

Returns
Type Description
EvaluationResult.SpanLatency.Builder

This builder for chaining.

setModelBytes(ByteString value)

public EvaluationResult.SpanLatency.Builder setModelBytes(ByteString value)

Output only. The name of the LLM span.

string model = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for model to set.

Returns
Type Description
EvaluationResult.SpanLatency.Builder

This builder for chaining.

setResource(String value)

public EvaluationResult.SpanLatency.Builder setResource(String value)

Output only. The resource name of the guardrail or tool spans.

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

Parameter
Name Description
value String

The resource to set.

Returns
Type Description
EvaluationResult.SpanLatency.Builder

This builder for chaining.

setResourceBytes(ByteString value)

public EvaluationResult.SpanLatency.Builder setResourceBytes(ByteString value)

Output only. The resource name of the guardrail or tool spans.

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

Parameter
Name Description
value ByteString

The bytes for resource to set.

Returns
Type Description
EvaluationResult.SpanLatency.Builder

This builder for chaining.

setStartTime(Timestamp value)

public EvaluationResult.SpanLatency.Builder setStartTime(Timestamp value)

Output only. The start time of span.

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

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

setStartTime(Timestamp.Builder builderForValue)

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

Output only. The start time of span.

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

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

setToolset(ToolsetTool value)

public EvaluationResult.SpanLatency.Builder setToolset(ToolsetTool value)

Output only. The toolset tool identifier.

.google.cloud.ces.v1beta.ToolsetTool toolset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ToolsetTool
Returns
Type Description
EvaluationResult.SpanLatency.Builder

setToolset(ToolsetTool.Builder builderForValue)

public EvaluationResult.SpanLatency.Builder setToolset(ToolsetTool.Builder builderForValue)

Output only. The toolset tool identifier.

.google.cloud.ces.v1beta.ToolsetTool toolset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ToolsetTool.Builder
Returns
Type Description
EvaluationResult.SpanLatency.Builder

setType(EvaluationResult.SpanLatency.Type value)

public EvaluationResult.SpanLatency.Builder setType(EvaluationResult.SpanLatency.Type value)

Output only. The type of span.

.google.cloud.ces.v1beta.EvaluationResult.SpanLatency.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EvaluationResult.SpanLatency.Type

The type to set.

Returns
Type Description
EvaluationResult.SpanLatency.Builder

This builder for chaining.

setTypeValue(int value)

public EvaluationResult.SpanLatency.Builder setTypeValue(int value)

Output only. The type of span.

.google.cloud.ces.v1beta.EvaluationResult.SpanLatency.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
EvaluationResult.SpanLatency.Builder

This builder for chaining.