Class Conversation.Metrics (0.64.0)

public static final class Conversation.Metrics extends GeneratedMessageV3 implements Conversation.MetricsOrBuilder

Represents metrics for the conversation.

Protobuf type google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics

Static Fields

AVERAGE_MATCH_CONFIDENCE_FIELD_NUMBER

public static final int AVERAGE_MATCH_CONFIDENCE_FIELD_NUMBER
Field Value
Type Description
int

HAS_END_INTERACTION_FIELD_NUMBER

public static final int HAS_END_INTERACTION_FIELD_NUMBER
Field Value
Type Description
int

HAS_LIVE_AGENT_HANDOFF_FIELD_NUMBER

public static final int HAS_LIVE_AGENT_HANDOFF_FIELD_NUMBER
Field Value
Type Description
int

INPUT_AUDIO_DURATION_FIELD_NUMBER

public static final int INPUT_AUDIO_DURATION_FIELD_NUMBER
Field Value
Type Description
int

INTERACTION_COUNT_FIELD_NUMBER

public static final int INTERACTION_COUNT_FIELD_NUMBER
Field Value
Type Description
int

MATCH_TYPE_COUNT_FIELD_NUMBER

public static final int MATCH_TYPE_COUNT_FIELD_NUMBER
Field Value
Type Description
int

MAX_WEBHOOK_LATENCY_FIELD_NUMBER

public static final int MAX_WEBHOOK_LATENCY_FIELD_NUMBER
Field Value
Type Description
int

OUTPUT_AUDIO_DURATION_FIELD_NUMBER

public static final int OUTPUT_AUDIO_DURATION_FIELD_NUMBER
Field Value
Type Description
int

QUERY_INPUT_COUNT_FIELD_NUMBER

public static final int QUERY_INPUT_COUNT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Conversation.Metrics getDefaultInstance()
Returns
Type Description
Conversation.Metrics

getDescriptor()

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

newBuilder()

public static Conversation.Metrics.Builder newBuilder()
Returns
Type Description
Conversation.Metrics.Builder

newBuilder(Conversation.Metrics prototype)

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

parseDelimitedFrom(InputStream input)

public static Conversation.Metrics parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Conversation.Metrics
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Conversation.Metrics parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Conversation.Metrics
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Conversation.Metrics parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Conversation.Metrics
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Conversation.Metrics parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Conversation.Metrics
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Conversation.Metrics parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Conversation.Metrics
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Conversation.Metrics> parser()
Returns
Type Description
Parser<Metrics>

Methods

equals(Object obj)

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

getAverageMatchConfidence()

public float getAverageMatchConfidence()

The average confidence all of the Match in the conversation. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).

float average_match_confidence = 7;

Returns
Type Description
float

The averageMatchConfidence.

getDefaultInstanceForType()

public Conversation.Metrics getDefaultInstanceForType()
Returns
Type Description
Conversation.Metrics

getHasEndInteraction()

public boolean getHasEndInteraction()

A signal that indicates the interaction with the Dialogflow agent has ended. If any response has the ResponseMessage.end_interaction signal, this is set to true.

bool has_end_interaction = 5;

Returns
Type Description
boolean

The hasEndInteraction.

getHasLiveAgentHandoff()

public boolean getHasLiveAgentHandoff()

Hands off conversation to a human agent. If any response has the ResponseMessage.live_agent_handoffsignal, this is set to true.

bool has_live_agent_handoff = 6;

Returns
Type Description
boolean

The hasLiveAgentHandoff.

getInputAudioDuration()

public Duration getInputAudioDuration()

Duration of all the input's audio in the conversation.

.google.protobuf.Duration input_audio_duration = 2;

Returns
Type Description
Duration

The inputAudioDuration.

getInputAudioDurationOrBuilder()

public DurationOrBuilder getInputAudioDurationOrBuilder()

Duration of all the input's audio in the conversation.

.google.protobuf.Duration input_audio_duration = 2;

Returns
Type Description
DurationOrBuilder

getInteractionCount()

public int getInteractionCount()

The number of interactions in the conversation.

int32 interaction_count = 1;

Returns
Type Description
int

The interactionCount.

getMatchTypeCount()

public Conversation.Metrics.MatchTypeCount getMatchTypeCount()

Match type counts.

.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.MatchTypeCount match_type_count = 9;

Returns
Type Description
Conversation.Metrics.MatchTypeCount

The matchTypeCount.

getMatchTypeCountOrBuilder()

public Conversation.Metrics.MatchTypeCountOrBuilder getMatchTypeCountOrBuilder()

Match type counts.

.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.MatchTypeCount match_type_count = 9;

Returns
Type Description
Conversation.Metrics.MatchTypeCountOrBuilder

getMaxWebhookLatency()

public Duration getMaxWebhookLatency()

Maximum latency of the Webhook calls in the conversation.

.google.protobuf.Duration max_webhook_latency = 4;

Returns
Type Description
Duration

The maxWebhookLatency.

getMaxWebhookLatencyOrBuilder()

public DurationOrBuilder getMaxWebhookLatencyOrBuilder()

Maximum latency of the Webhook calls in the conversation.

.google.protobuf.Duration max_webhook_latency = 4;

Returns
Type Description
DurationOrBuilder

getOutputAudioDuration()

public Duration getOutputAudioDuration()

Duration of all the output's audio in the conversation.

.google.protobuf.Duration output_audio_duration = 3;

Returns
Type Description
Duration

The outputAudioDuration.

getOutputAudioDurationOrBuilder()

public DurationOrBuilder getOutputAudioDurationOrBuilder()

Duration of all the output's audio in the conversation.

.google.protobuf.Duration output_audio_duration = 3;

Returns
Type Description
DurationOrBuilder

getParserForType()

public Parser<Conversation.Metrics> getParserForType()
Returns
Type Description
Parser<Metrics>
Overrides

getQueryInputCount()

public Conversation.Metrics.QueryInputCount getQueryInputCount()

Query input counts.

.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.QueryInputCount query_input_count = 8;

Returns
Type Description
Conversation.Metrics.QueryInputCount

The queryInputCount.

getQueryInputCountOrBuilder()

public Conversation.Metrics.QueryInputCountOrBuilder getQueryInputCountOrBuilder()

Query input counts.

.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.QueryInputCount query_input_count = 8;

Returns
Type Description
Conversation.Metrics.QueryInputCountOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasInputAudioDuration()

public boolean hasInputAudioDuration()

Duration of all the input's audio in the conversation.

.google.protobuf.Duration input_audio_duration = 2;

Returns
Type Description
boolean

Whether the inputAudioDuration field is set.

hasMatchTypeCount()

public boolean hasMatchTypeCount()

Match type counts.

.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.MatchTypeCount match_type_count = 9;

Returns
Type Description
boolean

Whether the matchTypeCount field is set.

hasMaxWebhookLatency()

public boolean hasMaxWebhookLatency()

Maximum latency of the Webhook calls in the conversation.

.google.protobuf.Duration max_webhook_latency = 4;

Returns
Type Description
boolean

Whether the maxWebhookLatency field is set.

hasOutputAudioDuration()

public boolean hasOutputAudioDuration()

Duration of all the output's audio in the conversation.

.google.protobuf.Duration output_audio_duration = 3;

Returns
Type Description
boolean

Whether the outputAudioDuration field is set.

hasQueryInputCount()

public boolean hasQueryInputCount()

Query input counts.

.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.QueryInputCount query_input_count = 8;

Returns
Type Description
boolean

Whether the queryInputCount field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Conversation.Metrics.Builder newBuilderForType()
Returns
Type Description
Conversation.Metrics.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Conversation.Metrics.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Conversation.Metrics.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Conversation.Metrics.Builder toBuilder()
Returns
Type Description
Conversation.Metrics.Builder

writeTo(CodedOutputStream output)

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