Class LatencyReport (0.3.0)

public final class LatencyReport extends GeneratedMessage implements LatencyReportOrBuilder

Latency report for the evaluation run.

Protobuf type google.cloud.ces.v1beta.LatencyReport

Static Fields

CALLBACK_LATENCIES_FIELD_NUMBER

public static final int CALLBACK_LATENCIES_FIELD_NUMBER
Field Value
Type Description
int

GUARDRAIL_LATENCIES_FIELD_NUMBER

public static final int GUARDRAIL_LATENCIES_FIELD_NUMBER
Field Value
Type Description
int

LLM_CALL_LATENCIES_FIELD_NUMBER

public static final int LLM_CALL_LATENCIES_FIELD_NUMBER
Field Value
Type Description
int

SESSION_COUNT_FIELD_NUMBER

public static final int SESSION_COUNT_FIELD_NUMBER
Field Value
Type Description
int

TOOL_LATENCIES_FIELD_NUMBER

public static final int TOOL_LATENCIES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LatencyReport getDefaultInstance()
Returns
Type Description
LatencyReport

getDescriptor()

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

newBuilder()

public static LatencyReport.Builder newBuilder()
Returns
Type Description
LatencyReport.Builder

newBuilder(LatencyReport prototype)

public static LatencyReport.Builder newBuilder(LatencyReport prototype)
Parameter
Name Description
prototype LatencyReport
Returns
Type Description
LatencyReport.Builder

parseDelimitedFrom(InputStream input)

public static LatencyReport parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LatencyReport
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LatencyReport parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LatencyReport
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LatencyReport parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LatencyReport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LatencyReport parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LatencyReport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LatencyReport parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LatencyReport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LatencyReport parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LatencyReport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LatencyReport parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LatencyReport
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LatencyReport parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LatencyReport
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LatencyReport parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LatencyReport
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LatencyReport parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LatencyReport
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LatencyReport parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LatencyReport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LatencyReport parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LatencyReport
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LatencyReport> parser()
Returns
Type Description
Parser<LatencyReport>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCallbackLatencies(int index)

public LatencyReport.CallbackLatency getCallbackLatencies(int index)

Output only. Unordered list. Latency metrics for each callback.

repeated .google.cloud.ces.v1beta.LatencyReport.CallbackLatency callback_latencies = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int
Returns
Type Description
LatencyReport.CallbackLatency

getCallbackLatenciesCount()

public int getCallbackLatenciesCount()

Output only. Unordered list. Latency metrics for each callback.

repeated .google.cloud.ces.v1beta.LatencyReport.CallbackLatency callback_latencies = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
int

getCallbackLatenciesList()

public List<LatencyReport.CallbackLatency> getCallbackLatenciesList()

Output only. Unordered list. Latency metrics for each callback.

repeated .google.cloud.ces.v1beta.LatencyReport.CallbackLatency callback_latencies = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
List<CallbackLatency>

getCallbackLatenciesOrBuilder(int index)

public LatencyReport.CallbackLatencyOrBuilder getCallbackLatenciesOrBuilder(int index)

Output only. Unordered list. Latency metrics for each callback.

repeated .google.cloud.ces.v1beta.LatencyReport.CallbackLatency callback_latencies = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int
Returns
Type Description
LatencyReport.CallbackLatencyOrBuilder

getCallbackLatenciesOrBuilderList()

public List<? extends LatencyReport.CallbackLatencyOrBuilder> getCallbackLatenciesOrBuilderList()

Output only. Unordered list. Latency metrics for each callback.

repeated .google.cloud.ces.v1beta.LatencyReport.CallbackLatency callback_latencies = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.LatencyReport.CallbackLatencyOrBuilder>

getDefaultInstanceForType()

public LatencyReport getDefaultInstanceForType()
Returns
Type Description
LatencyReport

getGuardrailLatencies(int index)

public LatencyReport.GuardrailLatency getGuardrailLatencies(int index)

Output only. Unordered list. Latency metrics for each guardrail.

repeated .google.cloud.ces.v1beta.LatencyReport.GuardrailLatency guardrail_latencies = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int
Returns
Type Description
LatencyReport.GuardrailLatency

getGuardrailLatenciesCount()

public int getGuardrailLatenciesCount()

Output only. Unordered list. Latency metrics for each guardrail.

repeated .google.cloud.ces.v1beta.LatencyReport.GuardrailLatency guardrail_latencies = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
int

getGuardrailLatenciesList()

public List<LatencyReport.GuardrailLatency> getGuardrailLatenciesList()

Output only. Unordered list. Latency metrics for each guardrail.

repeated .google.cloud.ces.v1beta.LatencyReport.GuardrailLatency guardrail_latencies = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
List<GuardrailLatency>

getGuardrailLatenciesOrBuilder(int index)

public LatencyReport.GuardrailLatencyOrBuilder getGuardrailLatenciesOrBuilder(int index)

Output only. Unordered list. Latency metrics for each guardrail.

repeated .google.cloud.ces.v1beta.LatencyReport.GuardrailLatency guardrail_latencies = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int
Returns
Type Description
LatencyReport.GuardrailLatencyOrBuilder

getGuardrailLatenciesOrBuilderList()

public List<? extends LatencyReport.GuardrailLatencyOrBuilder> getGuardrailLatenciesOrBuilderList()

Output only. Unordered list. Latency metrics for each guardrail.

repeated .google.cloud.ces.v1beta.LatencyReport.GuardrailLatency guardrail_latencies = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.LatencyReport.GuardrailLatencyOrBuilder>

getLlmCallLatencies(int index)

public LatencyReport.LlmCallLatency getLlmCallLatencies(int index)

Output only. Unordered list. Latency metrics for each LLM call.

repeated .google.cloud.ces.v1beta.LatencyReport.LlmCallLatency llm_call_latencies = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int
Returns
Type Description
LatencyReport.LlmCallLatency

getLlmCallLatenciesCount()

public int getLlmCallLatenciesCount()

Output only. Unordered list. Latency metrics for each LLM call.

repeated .google.cloud.ces.v1beta.LatencyReport.LlmCallLatency llm_call_latencies = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
int

getLlmCallLatenciesList()

public List<LatencyReport.LlmCallLatency> getLlmCallLatenciesList()

Output only. Unordered list. Latency metrics for each LLM call.

repeated .google.cloud.ces.v1beta.LatencyReport.LlmCallLatency llm_call_latencies = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
List<LlmCallLatency>

getLlmCallLatenciesOrBuilder(int index)

public LatencyReport.LlmCallLatencyOrBuilder getLlmCallLatenciesOrBuilder(int index)

Output only. Unordered list. Latency metrics for each LLM call.

repeated .google.cloud.ces.v1beta.LatencyReport.LlmCallLatency llm_call_latencies = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int
Returns
Type Description
LatencyReport.LlmCallLatencyOrBuilder

getLlmCallLatenciesOrBuilderList()

public List<? extends LatencyReport.LlmCallLatencyOrBuilder> getLlmCallLatenciesOrBuilderList()

Output only. Unordered list. Latency metrics for each LLM call.

repeated .google.cloud.ces.v1beta.LatencyReport.LlmCallLatency llm_call_latencies = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.LatencyReport.LlmCallLatencyOrBuilder>

getParserForType()

public Parser<LatencyReport> getParserForType()
Returns
Type Description
Parser<LatencyReport>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSessionCount()

public int getSessionCount()

Output only. The total number of sessions considered in the latency report.

int32 session_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The sessionCount.

getToolLatencies(int index)

public LatencyReport.ToolLatency getToolLatencies(int index)

Output only. Unordered list. Latency metrics for each tool.

repeated .google.cloud.ces.v1beta.LatencyReport.ToolLatency tool_latencies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int
Returns
Type Description
LatencyReport.ToolLatency

getToolLatenciesCount()

public int getToolLatenciesCount()

Output only. Unordered list. Latency metrics for each tool.

repeated .google.cloud.ces.v1beta.LatencyReport.ToolLatency tool_latencies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
int

getToolLatenciesList()

public List<LatencyReport.ToolLatency> getToolLatenciesList()

Output only. Unordered list. Latency metrics for each tool.

repeated .google.cloud.ces.v1beta.LatencyReport.ToolLatency tool_latencies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
List<ToolLatency>

getToolLatenciesOrBuilder(int index)

public LatencyReport.ToolLatencyOrBuilder getToolLatenciesOrBuilder(int index)

Output only. Unordered list. Latency metrics for each tool.

repeated .google.cloud.ces.v1beta.LatencyReport.ToolLatency tool_latencies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int
Returns
Type Description
LatencyReport.ToolLatencyOrBuilder

getToolLatenciesOrBuilderList()

public List<? extends LatencyReport.ToolLatencyOrBuilder> getToolLatenciesOrBuilderList()

Output only. Unordered list. Latency metrics for each tool.

repeated .google.cloud.ces.v1beta.LatencyReport.ToolLatency tool_latencies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.LatencyReport.ToolLatencyOrBuilder>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LatencyReport.Builder newBuilderForType()
Returns
Type Description
LatencyReport.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected LatencyReport.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LatencyReport.Builder
Overrides

toBuilder()

public LatencyReport.Builder toBuilder()
Returns
Type Description
LatencyReport.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException