public static final class AggregatedMetrics.ToolCallLatencyMetrics.Builder extends GeneratedMessage.Builder<AggregatedMetrics.ToolCallLatencyMetrics.Builder> implements AggregatedMetrics.ToolCallLatencyMetricsOrBuilderMetrics for tool call latency.
Protobuf type google.cloud.ces.v1beta.AggregatedMetrics.ToolCallLatencyMetrics
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AggregatedMetrics.ToolCallLatencyMetrics.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AggregatedMetrics.ToolCallLatencyMetrics build()| Returns | |
|---|---|
| Type | Description |
AggregatedMetrics.ToolCallLatencyMetrics |
|
buildPartial()
public AggregatedMetrics.ToolCallLatencyMetrics buildPartial()| Returns | |
|---|---|
| Type | Description |
AggregatedMetrics.ToolCallLatencyMetrics |
|
clear()
public AggregatedMetrics.ToolCallLatencyMetrics.Builder clear()| Returns | |
|---|---|
| Type | Description |
AggregatedMetrics.ToolCallLatencyMetrics.Builder |
|
clearAverageLatency()
public AggregatedMetrics.ToolCallLatencyMetrics.Builder clearAverageLatency()Output only. The average latency of the tool calls.
.google.protobuf.Duration average_latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AggregatedMetrics.ToolCallLatencyMetrics.Builder |
|
clearTool()
public AggregatedMetrics.ToolCallLatencyMetrics.Builder clearTool()Output only. The name of the tool.
string tool = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
AggregatedMetrics.ToolCallLatencyMetrics.Builder |
This builder for chaining. |
getAverageLatency()
public Duration getAverageLatency()Output only. The average latency of the tool calls.
.google.protobuf.Duration average_latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Duration |
The averageLatency. |
getAverageLatencyBuilder()
public Duration.Builder getAverageLatencyBuilder()Output only. The average latency of the tool calls.
.google.protobuf.Duration average_latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getAverageLatencyOrBuilder()
public DurationOrBuilder getAverageLatencyOrBuilder()Output only. The average latency of the tool calls.
.google.protobuf.Duration average_latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
getDefaultInstanceForType()
public AggregatedMetrics.ToolCallLatencyMetrics getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AggregatedMetrics.ToolCallLatencyMetrics |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getTool()
public String getTool()Output only. The name of the 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.
string tool = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for tool. |
hasAverageLatency()
public boolean hasAverageLatency()Output only. The average latency of the tool calls.
.google.protobuf.Duration average_latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the averageLatency field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAverageLatency(Duration value)
public AggregatedMetrics.ToolCallLatencyMetrics.Builder mergeAverageLatency(Duration value)Output only. The average latency of the tool calls.
.google.protobuf.Duration average_latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
AggregatedMetrics.ToolCallLatencyMetrics.Builder |
|
mergeFrom(AggregatedMetrics.ToolCallLatencyMetrics other)
public AggregatedMetrics.ToolCallLatencyMetrics.Builder mergeFrom(AggregatedMetrics.ToolCallLatencyMetrics other)| Parameter | |
|---|---|
| Name | Description |
other |
AggregatedMetrics.ToolCallLatencyMetrics |
| Returns | |
|---|---|
| Type | Description |
AggregatedMetrics.ToolCallLatencyMetrics.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AggregatedMetrics.ToolCallLatencyMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AggregatedMetrics.ToolCallLatencyMetrics.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AggregatedMetrics.ToolCallLatencyMetrics.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AggregatedMetrics.ToolCallLatencyMetrics.Builder |
|
setAverageLatency(Duration value)
public AggregatedMetrics.ToolCallLatencyMetrics.Builder setAverageLatency(Duration value)Output only. The average latency of the tool calls.
.google.protobuf.Duration average_latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
AggregatedMetrics.ToolCallLatencyMetrics.Builder |
|
setAverageLatency(Duration.Builder builderForValue)
public AggregatedMetrics.ToolCallLatencyMetrics.Builder setAverageLatency(Duration.Builder builderForValue)Output only. The average latency of the tool calls.
.google.protobuf.Duration average_latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
AggregatedMetrics.ToolCallLatencyMetrics.Builder |
|
setTool(String value)
public AggregatedMetrics.ToolCallLatencyMetrics.Builder setTool(String value)Output only. The name of the tool.
string tool = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tool to set. |
| Returns | |
|---|---|
| Type | Description |
AggregatedMetrics.ToolCallLatencyMetrics.Builder |
This builder for chaining. |
setToolBytes(ByteString value)
public AggregatedMetrics.ToolCallLatencyMetrics.Builder setToolBytes(ByteString value)Output only. The name of the tool.
string tool = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for tool to set. |
| Returns | |
|---|---|
| Type | Description |
AggregatedMetrics.ToolCallLatencyMetrics.Builder |
This builder for chaining. |