Class Conversation.Metrics.Builder (0.57.0)

public static final class Conversation.Metrics.Builder extends GeneratedMessageV3.Builder<Conversation.Metrics.Builder> implements Conversation.MetricsOrBuilder

Represents metrics for the conversation.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Conversation.Metrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Conversation.Metrics.Builder
Overrides

build()

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

buildPartial()

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

clear()

public Conversation.Metrics.Builder clear()
Returns
Type Description
Conversation.Metrics.Builder
Overrides

clearAverageMatchConfidence()

public Conversation.Metrics.Builder clearAverageMatchConfidence()

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
Conversation.Metrics.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Conversation.Metrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Conversation.Metrics.Builder
Overrides

clearHasEndInteraction()

public Conversation.Metrics.Builder clearHasEndInteraction()

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
Conversation.Metrics.Builder

This builder for chaining.

clearHasLiveAgentHandoff()

public Conversation.Metrics.Builder clearHasLiveAgentHandoff()

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
Conversation.Metrics.Builder

This builder for chaining.

clearInputAudioDuration()

public Conversation.Metrics.Builder clearInputAudioDuration()

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

.google.protobuf.Duration input_audio_duration = 2;

Returns
Type Description
Conversation.Metrics.Builder

clearInteractionCount()

public Conversation.Metrics.Builder clearInteractionCount()

The number of interactions in the conversation.

int32 interaction_count = 1;

Returns
Type Description
Conversation.Metrics.Builder

This builder for chaining.

clearMatchTypeCount()

public Conversation.Metrics.Builder clearMatchTypeCount()

Match type counts.

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

Returns
Type Description
Conversation.Metrics.Builder

clearMaxWebhookLatency()

public Conversation.Metrics.Builder clearMaxWebhookLatency()

Maximum latency of the Webhook calls in the conversation.

.google.protobuf.Duration max_webhook_latency = 4;

Returns
Type Description
Conversation.Metrics.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Conversation.Metrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Conversation.Metrics.Builder
Overrides

clearOutputAudioDuration()

public Conversation.Metrics.Builder clearOutputAudioDuration()

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

.google.protobuf.Duration output_audio_duration = 3;

Returns
Type Description
Conversation.Metrics.Builder

clearQueryInputCount()

public Conversation.Metrics.Builder clearQueryInputCount()

Query input counts.

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

Returns
Type Description
Conversation.Metrics.Builder

clone()

public Conversation.Metrics.Builder clone()
Returns
Type Description
Conversation.Metrics.Builder
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

getDescriptorForType()

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

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.

getInputAudioDurationBuilder()

public Duration.Builder getInputAudioDurationBuilder()

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

.google.protobuf.Duration input_audio_duration = 2;

Returns
Type Description
Builder

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.

getMatchTypeCountBuilder()

public Conversation.Metrics.MatchTypeCount.Builder getMatchTypeCountBuilder()

Match type counts.

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

Returns
Type Description
Conversation.Metrics.MatchTypeCount.Builder

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.

getMaxWebhookLatencyBuilder()

public Duration.Builder getMaxWebhookLatencyBuilder()

Maximum latency of the Webhook calls in the conversation.

.google.protobuf.Duration max_webhook_latency = 4;

Returns
Type Description
Builder

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.

getOutputAudioDurationBuilder()

public Duration.Builder getOutputAudioDurationBuilder()

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

.google.protobuf.Duration output_audio_duration = 3;

Returns
Type Description
Builder

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

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.

getQueryInputCountBuilder()

public Conversation.Metrics.QueryInputCount.Builder getQueryInputCountBuilder()

Query input counts.

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

Returns
Type Description
Conversation.Metrics.QueryInputCount.Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Conversation.Metrics other)

public Conversation.Metrics.Builder mergeFrom(Conversation.Metrics other)
Parameter
Name Description
other Conversation.Metrics
Returns
Type Description
Conversation.Metrics.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Conversation.Metrics.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Conversation.Metrics.Builder
Overrides

mergeInputAudioDuration(Duration value)

public Conversation.Metrics.Builder mergeInputAudioDuration(Duration value)

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

.google.protobuf.Duration input_audio_duration = 2;

Parameter
Name Description
value Duration
Returns
Type Description
Conversation.Metrics.Builder

mergeMatchTypeCount(Conversation.Metrics.MatchTypeCount value)

public Conversation.Metrics.Builder mergeMatchTypeCount(Conversation.Metrics.MatchTypeCount value)

Match type counts.

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

Parameter
Name Description
value Conversation.Metrics.MatchTypeCount
Returns
Type Description
Conversation.Metrics.Builder

mergeMaxWebhookLatency(Duration value)

public Conversation.Metrics.Builder mergeMaxWebhookLatency(Duration value)

Maximum latency of the Webhook calls in the conversation.

.google.protobuf.Duration max_webhook_latency = 4;

Parameter
Name Description
value Duration
Returns
Type Description
Conversation.Metrics.Builder

mergeOutputAudioDuration(Duration value)

public Conversation.Metrics.Builder mergeOutputAudioDuration(Duration value)

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

.google.protobuf.Duration output_audio_duration = 3;

Parameter
Name Description
value Duration
Returns
Type Description
Conversation.Metrics.Builder

mergeQueryInputCount(Conversation.Metrics.QueryInputCount value)

public Conversation.Metrics.Builder mergeQueryInputCount(Conversation.Metrics.QueryInputCount value)

Query input counts.

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

Parameter
Name Description
value Conversation.Metrics.QueryInputCount
Returns
Type Description
Conversation.Metrics.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Conversation.Metrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Conversation.Metrics.Builder
Overrides

setAverageMatchConfidence(float value)

public Conversation.Metrics.Builder setAverageMatchConfidence(float value)

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;

Parameter
Name Description
value float

The averageMatchConfidence to set.

Returns
Type Description
Conversation.Metrics.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Conversation.Metrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Conversation.Metrics.Builder
Overrides

setHasEndInteraction(boolean value)

public Conversation.Metrics.Builder setHasEndInteraction(boolean value)

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;

Parameter
Name Description
value boolean

The hasEndInteraction to set.

Returns
Type Description
Conversation.Metrics.Builder

This builder for chaining.

setHasLiveAgentHandoff(boolean value)

public Conversation.Metrics.Builder setHasLiveAgentHandoff(boolean value)

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;

Parameter
Name Description
value boolean

The hasLiveAgentHandoff to set.

Returns
Type Description
Conversation.Metrics.Builder

This builder for chaining.

setInputAudioDuration(Duration value)

public Conversation.Metrics.Builder setInputAudioDuration(Duration value)

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

.google.protobuf.Duration input_audio_duration = 2;

Parameter
Name Description
value Duration
Returns
Type Description
Conversation.Metrics.Builder

setInputAudioDuration(Duration.Builder builderForValue)

public Conversation.Metrics.Builder setInputAudioDuration(Duration.Builder builderForValue)

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

.google.protobuf.Duration input_audio_duration = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Conversation.Metrics.Builder

setInteractionCount(int value)

public Conversation.Metrics.Builder setInteractionCount(int value)

The number of interactions in the conversation.

int32 interaction_count = 1;

Parameter
Name Description
value int

The interactionCount to set.

Returns
Type Description
Conversation.Metrics.Builder

This builder for chaining.

setMatchTypeCount(Conversation.Metrics.MatchTypeCount value)

public Conversation.Metrics.Builder setMatchTypeCount(Conversation.Metrics.MatchTypeCount value)

Match type counts.

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

Parameter
Name Description
value Conversation.Metrics.MatchTypeCount
Returns
Type Description
Conversation.Metrics.Builder

setMatchTypeCount(Conversation.Metrics.MatchTypeCount.Builder builderForValue)

public Conversation.Metrics.Builder setMatchTypeCount(Conversation.Metrics.MatchTypeCount.Builder builderForValue)

Match type counts.

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

Parameter
Name Description
builderForValue Conversation.Metrics.MatchTypeCount.Builder
Returns
Type Description
Conversation.Metrics.Builder

setMaxWebhookLatency(Duration value)

public Conversation.Metrics.Builder setMaxWebhookLatency(Duration value)

Maximum latency of the Webhook calls in the conversation.

.google.protobuf.Duration max_webhook_latency = 4;

Parameter
Name Description
value Duration
Returns
Type Description
Conversation.Metrics.Builder

setMaxWebhookLatency(Duration.Builder builderForValue)

public Conversation.Metrics.Builder setMaxWebhookLatency(Duration.Builder builderForValue)

Maximum latency of the Webhook calls in the conversation.

.google.protobuf.Duration max_webhook_latency = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Conversation.Metrics.Builder

setOutputAudioDuration(Duration value)

public Conversation.Metrics.Builder setOutputAudioDuration(Duration value)

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

.google.protobuf.Duration output_audio_duration = 3;

Parameter
Name Description
value Duration
Returns
Type Description
Conversation.Metrics.Builder

setOutputAudioDuration(Duration.Builder builderForValue)

public Conversation.Metrics.Builder setOutputAudioDuration(Duration.Builder builderForValue)

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

.google.protobuf.Duration output_audio_duration = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Conversation.Metrics.Builder

setQueryInputCount(Conversation.Metrics.QueryInputCount value)

public Conversation.Metrics.Builder setQueryInputCount(Conversation.Metrics.QueryInputCount value)

Query input counts.

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

Parameter
Name Description
value Conversation.Metrics.QueryInputCount
Returns
Type Description
Conversation.Metrics.Builder

setQueryInputCount(Conversation.Metrics.QueryInputCount.Builder builderForValue)

public Conversation.Metrics.Builder setQueryInputCount(Conversation.Metrics.QueryInputCount.Builder builderForValue)

Query input counts.

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

Parameter
Name Description
builderForValue Conversation.Metrics.QueryInputCount.Builder
Returns
Type Description
Conversation.Metrics.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Conversation.Metrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Conversation.Metrics.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Conversation.Metrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Conversation.Metrics.Builder
Overrides