Class AggregatedMetrics.MetricsByTurn (0.3.0)

public static final class AggregatedMetrics.MetricsByTurn extends GeneratedMessage implements AggregatedMetrics.MetricsByTurnOrBuilder

Metrics aggregated per turn.

Protobuf type google.cloud.ces.v1beta.AggregatedMetrics.MetricsByTurn

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > AggregatedMetrics.MetricsByTurn

Static Fields

HALLUCINATION_METRICS_FIELD_NUMBER

public static final int HALLUCINATION_METRICS_FIELD_NUMBER
Field Value
Type Description
int

SEMANTIC_SIMILARITY_METRICS_FIELD_NUMBER

public static final int SEMANTIC_SIMILARITY_METRICS_FIELD_NUMBER
Field Value
Type Description
int

TOOL_CALL_LATENCY_METRICS_FIELD_NUMBER

public static final int TOOL_CALL_LATENCY_METRICS_FIELD_NUMBER
Field Value
Type Description
int

TOOL_METRICS_FIELD_NUMBER

public static final int TOOL_METRICS_FIELD_NUMBER
Field Value
Type Description
int

TURN_INDEX_FIELD_NUMBER

public static final int TURN_INDEX_FIELD_NUMBER
Field Value
Type Description
int

TURN_LATENCY_METRICS_FIELD_NUMBER

public static final int TURN_LATENCY_METRICS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AggregatedMetrics.MetricsByTurn getDefaultInstance()
Returns
Type Description
AggregatedMetrics.MetricsByTurn

getDescriptor()

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

newBuilder()

public static AggregatedMetrics.MetricsByTurn.Builder newBuilder()
Returns
Type Description
AggregatedMetrics.MetricsByTurn.Builder

newBuilder(AggregatedMetrics.MetricsByTurn prototype)

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

parseDelimitedFrom(InputStream input)

public static AggregatedMetrics.MetricsByTurn parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AggregatedMetrics.MetricsByTurn
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static AggregatedMetrics.MetricsByTurn parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AggregatedMetrics.MetricsByTurn
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static AggregatedMetrics.MetricsByTurn parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AggregatedMetrics.MetricsByTurn
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static AggregatedMetrics.MetricsByTurn parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AggregatedMetrics.MetricsByTurn
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static AggregatedMetrics.MetricsByTurn parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AggregatedMetrics.MetricsByTurn
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<AggregatedMetrics.MetricsByTurn> parser()
Returns
Type Description
Parser<MetricsByTurn>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AggregatedMetrics.MetricsByTurn getDefaultInstanceForType()
Returns
Type Description
AggregatedMetrics.MetricsByTurn

getHallucinationMetrics(int index)

public AggregatedMetrics.HallucinationMetrics getHallucinationMetrics(int index)

Output only. Metrics for hallucination within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.HallucinationMetrics hallucination_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AggregatedMetrics.HallucinationMetrics

getHallucinationMetricsCount()

public int getHallucinationMetricsCount()

Output only. Metrics for hallucination within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.HallucinationMetrics hallucination_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getHallucinationMetricsList()

public List<AggregatedMetrics.HallucinationMetrics> getHallucinationMetricsList()

Output only. Metrics for hallucination within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.HallucinationMetrics hallucination_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<HallucinationMetrics>

getHallucinationMetricsOrBuilder(int index)

public AggregatedMetrics.HallucinationMetricsOrBuilder getHallucinationMetricsOrBuilder(int index)

Output only. Metrics for hallucination within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.HallucinationMetrics hallucination_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AggregatedMetrics.HallucinationMetricsOrBuilder

getHallucinationMetricsOrBuilderList()

public List<? extends AggregatedMetrics.HallucinationMetricsOrBuilder> getHallucinationMetricsOrBuilderList()

Output only. Metrics for hallucination within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.HallucinationMetrics hallucination_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.AggregatedMetrics.HallucinationMetricsOrBuilder>

getParserForType()

public Parser<AggregatedMetrics.MetricsByTurn> getParserForType()
Returns
Type Description
Parser<MetricsByTurn>
Overrides

getSemanticSimilarityMetrics(int index)

public AggregatedMetrics.SemanticSimilarityMetrics getSemanticSimilarityMetrics(int index)

Output only. Metrics for semantic similarity within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.SemanticSimilarityMetrics semantic_similarity_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AggregatedMetrics.SemanticSimilarityMetrics

getSemanticSimilarityMetricsCount()

public int getSemanticSimilarityMetricsCount()

Output only. Metrics for semantic similarity within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.SemanticSimilarityMetrics semantic_similarity_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getSemanticSimilarityMetricsList()

public List<AggregatedMetrics.SemanticSimilarityMetrics> getSemanticSimilarityMetricsList()

Output only. Metrics for semantic similarity within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.SemanticSimilarityMetrics semantic_similarity_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<SemanticSimilarityMetrics>

getSemanticSimilarityMetricsOrBuilder(int index)

public AggregatedMetrics.SemanticSimilarityMetricsOrBuilder getSemanticSimilarityMetricsOrBuilder(int index)

Output only. Metrics for semantic similarity within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.SemanticSimilarityMetrics semantic_similarity_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AggregatedMetrics.SemanticSimilarityMetricsOrBuilder

getSemanticSimilarityMetricsOrBuilderList()

public List<? extends AggregatedMetrics.SemanticSimilarityMetricsOrBuilder> getSemanticSimilarityMetricsOrBuilderList()

Output only. Metrics for semantic similarity within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.SemanticSimilarityMetrics semantic_similarity_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.AggregatedMetrics.SemanticSimilarityMetricsOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getToolCallLatencyMetrics(int index)

public AggregatedMetrics.ToolCallLatencyMetrics getToolCallLatencyMetrics(int index)

Output only. Metrics for tool call latency within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.ToolCallLatencyMetrics tool_call_latency_metrics = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AggregatedMetrics.ToolCallLatencyMetrics

getToolCallLatencyMetricsCount()

public int getToolCallLatencyMetricsCount()

Output only. Metrics for tool call latency within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.ToolCallLatencyMetrics tool_call_latency_metrics = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getToolCallLatencyMetricsList()

public List<AggregatedMetrics.ToolCallLatencyMetrics> getToolCallLatencyMetricsList()

Output only. Metrics for tool call latency within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.ToolCallLatencyMetrics tool_call_latency_metrics = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<ToolCallLatencyMetrics>

getToolCallLatencyMetricsOrBuilder(int index)

public AggregatedMetrics.ToolCallLatencyMetricsOrBuilder getToolCallLatencyMetricsOrBuilder(int index)

Output only. Metrics for tool call latency within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.ToolCallLatencyMetrics tool_call_latency_metrics = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AggregatedMetrics.ToolCallLatencyMetricsOrBuilder

getToolCallLatencyMetricsOrBuilderList()

public List<? extends AggregatedMetrics.ToolCallLatencyMetricsOrBuilder> getToolCallLatencyMetricsOrBuilderList()

Output only. Metrics for tool call latency within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.ToolCallLatencyMetrics tool_call_latency_metrics = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.AggregatedMetrics.ToolCallLatencyMetricsOrBuilder>

getToolMetrics(int index)

public AggregatedMetrics.ToolMetrics getToolMetrics(int index)

Output only. Metrics for each tool within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.ToolMetrics tool_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AggregatedMetrics.ToolMetrics

getToolMetricsCount()

public int getToolMetricsCount()

Output only. Metrics for each tool within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.ToolMetrics tool_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getToolMetricsList()

public List<AggregatedMetrics.ToolMetrics> getToolMetricsList()

Output only. Metrics for each tool within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.ToolMetrics tool_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<ToolMetrics>

getToolMetricsOrBuilder(int index)

public AggregatedMetrics.ToolMetricsOrBuilder getToolMetricsOrBuilder(int index)

Output only. Metrics for each tool within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.ToolMetrics tool_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AggregatedMetrics.ToolMetricsOrBuilder

getToolMetricsOrBuilderList()

public List<? extends AggregatedMetrics.ToolMetricsOrBuilder> getToolMetricsOrBuilderList()

Output only. Metrics for each tool within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.ToolMetrics tool_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.AggregatedMetrics.ToolMetricsOrBuilder>

getTurnIndex()

public int getTurnIndex()

Output only. The turn index (0-based).

int32 turn_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The turnIndex.

getTurnLatencyMetrics(int index)

public AggregatedMetrics.TurnLatencyMetrics getTurnLatencyMetrics(int index)

Output only. Metrics for turn latency within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.TurnLatencyMetrics turn_latency_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AggregatedMetrics.TurnLatencyMetrics

getTurnLatencyMetricsCount()

public int getTurnLatencyMetricsCount()

Output only. Metrics for turn latency within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.TurnLatencyMetrics turn_latency_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getTurnLatencyMetricsList()

public List<AggregatedMetrics.TurnLatencyMetrics> getTurnLatencyMetricsList()

Output only. Metrics for turn latency within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.TurnLatencyMetrics turn_latency_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<TurnLatencyMetrics>

getTurnLatencyMetricsOrBuilder(int index)

public AggregatedMetrics.TurnLatencyMetricsOrBuilder getTurnLatencyMetricsOrBuilder(int index)

Output only. Metrics for turn latency within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.TurnLatencyMetrics turn_latency_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AggregatedMetrics.TurnLatencyMetricsOrBuilder

getTurnLatencyMetricsOrBuilderList()

public List<? extends AggregatedMetrics.TurnLatencyMetricsOrBuilder> getTurnLatencyMetricsOrBuilderList()

Output only. Metrics for turn latency within this turn.

repeated .google.cloud.ces.v1beta.AggregatedMetrics.TurnLatencyMetrics turn_latency_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.AggregatedMetrics.TurnLatencyMetricsOrBuilder>

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 AggregatedMetrics.MetricsByTurn.Builder newBuilderForType()
Returns
Type Description
AggregatedMetrics.MetricsByTurn.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public AggregatedMetrics.MetricsByTurn.Builder toBuilder()
Returns
Type Description
AggregatedMetrics.MetricsByTurn.Builder

writeTo(CodedOutputStream output)

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