Class Conversation.Metrics.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Conversation.Metrics.Builder>
com.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.Builder
- All Implemented Interfaces:
Conversation.MetricsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Conversation.Metrics
public static final class Conversation.Metrics.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Conversation.Metrics.Builder>
implements Conversation.MetricsOrBuilder
Represents metrics for the conversation.Protobuf type
google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The average confidence all of the [Match][google.cloud.dialogflow.cx.v3beta1.Match] in the conversation.A signal that indicates the interaction with the Dialogflow agent has ended.Hands off conversation to a human agent.Duration of all the input's audio in the conversation.The number of interactions in the conversation.Match type counts.Maximum latency of the [Webhook][google.cloud.dialogflow.cx.v3beta1.Webhook] calls in the conversation.Duration of all the output's audio in the conversation.Query input counts.floatThe average confidence all of the [Match][google.cloud.dialogflow.cx.v3beta1.Match] in the conversation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanA signal that indicates the interaction with the Dialogflow agent has ended.booleanHands off conversation to a human agent.com.google.protobuf.DurationDuration of all the input's audio in the conversation.com.google.protobuf.Duration.BuilderDuration of all the input's audio in the conversation.com.google.protobuf.DurationOrBuilderDuration of all the input's audio in the conversation.intThe number of interactions in the conversation.Match type counts.Match type counts.Match type counts.com.google.protobuf.DurationMaximum latency of the [Webhook][google.cloud.dialogflow.cx.v3beta1.Webhook] calls in the conversation.com.google.protobuf.Duration.BuilderMaximum latency of the [Webhook][google.cloud.dialogflow.cx.v3beta1.Webhook] calls in the conversation.com.google.protobuf.DurationOrBuilderMaximum latency of the [Webhook][google.cloud.dialogflow.cx.v3beta1.Webhook] calls in the conversation.com.google.protobuf.DurationDuration of all the output's audio in the conversation.com.google.protobuf.Duration.BuilderDuration of all the output's audio in the conversation.com.google.protobuf.DurationOrBuilderDuration of all the output's audio in the conversation.Query input counts.Query input counts.Query input counts.booleanDuration of all the input's audio in the conversation.booleanMatch type counts.booleanMaximum latency of the [Webhook][google.cloud.dialogflow.cx.v3beta1.Webhook] calls in the conversation.booleanDuration of all the output's audio in the conversation.booleanQuery input counts.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Conversation.Metrics other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeInputAudioDuration(com.google.protobuf.Duration value) Duration of all the input's audio in the conversation.Match type counts.mergeMaxWebhookLatency(com.google.protobuf.Duration value) Maximum latency of the [Webhook][google.cloud.dialogflow.cx.v3beta1.Webhook] calls in the conversation.mergeOutputAudioDuration(com.google.protobuf.Duration value) Duration of all the output's audio in the conversation.Query input counts.setAverageMatchConfidence(float value) The average confidence all of the [Match][google.cloud.dialogflow.cx.v3beta1.Match] in the conversation.setHasEndInteraction(boolean value) A signal that indicates the interaction with the Dialogflow agent has ended.setHasLiveAgentHandoff(boolean value) Hands off conversation to a human agent.setInputAudioDuration(com.google.protobuf.Duration value) Duration of all the input's audio in the conversation.setInputAudioDuration(com.google.protobuf.Duration.Builder builderForValue) Duration of all the input's audio in the conversation.setInteractionCount(int value) The number of interactions in the conversation.Match type counts.setMatchTypeCount(Conversation.Metrics.MatchTypeCount.Builder builderForValue) Match type counts.setMaxWebhookLatency(com.google.protobuf.Duration value) Maximum latency of the [Webhook][google.cloud.dialogflow.cx.v3beta1.Webhook] calls in the conversation.setMaxWebhookLatency(com.google.protobuf.Duration.Builder builderForValue) Maximum latency of the [Webhook][google.cloud.dialogflow.cx.v3beta1.Webhook] calls in the conversation.setOutputAudioDuration(com.google.protobuf.Duration value) Duration of all the output's audio in the conversation.setOutputAudioDuration(com.google.protobuf.Duration.Builder builderForValue) Duration of all the output's audio in the conversation.Query input counts.setQueryInputCount(Conversation.Metrics.QueryInputCount.Builder builderForValue) Query input counts.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Conversation.Metrics.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Conversation.Metrics.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Conversation.Metrics.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Conversation.Metrics.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Conversation.Metrics.Builder>
-
mergeFrom
public Conversation.Metrics.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Conversation.Metrics.Builder>- Throws:
IOException
-
getInteractionCount
public int getInteractionCount()The number of interactions in the conversation.
int32 interaction_count = 1;- Specified by:
getInteractionCountin interfaceConversation.MetricsOrBuilder- Returns:
- The interactionCount.
-
setInteractionCount
The number of interactions in the conversation.
int32 interaction_count = 1;- Parameters:
value- The interactionCount to set.- Returns:
- This builder for chaining.
-
clearInteractionCount
The number of interactions in the conversation.
int32 interaction_count = 1;- Returns:
- This builder for chaining.
-
hasInputAudioDuration
public boolean hasInputAudioDuration()Duration of all the input's audio in the conversation.
.google.protobuf.Duration input_audio_duration = 2;- Specified by:
hasInputAudioDurationin interfaceConversation.MetricsOrBuilder- Returns:
- Whether the inputAudioDuration field is set.
-
getInputAudioDuration
public com.google.protobuf.Duration getInputAudioDuration()Duration of all the input's audio in the conversation.
.google.protobuf.Duration input_audio_duration = 2;- Specified by:
getInputAudioDurationin interfaceConversation.MetricsOrBuilder- Returns:
- The inputAudioDuration.
-
setInputAudioDuration
Duration of all the input's audio in the conversation.
.google.protobuf.Duration input_audio_duration = 2; -
setInputAudioDuration
public Conversation.Metrics.Builder setInputAudioDuration(com.google.protobuf.Duration.Builder builderForValue) Duration of all the input's audio in the conversation.
.google.protobuf.Duration input_audio_duration = 2; -
mergeInputAudioDuration
Duration of all the input's audio in the conversation.
.google.protobuf.Duration input_audio_duration = 2; -
clearInputAudioDuration
Duration of all the input's audio in the conversation.
.google.protobuf.Duration input_audio_duration = 2; -
getInputAudioDurationBuilder
public com.google.protobuf.Duration.Builder getInputAudioDurationBuilder()Duration of all the input's audio in the conversation.
.google.protobuf.Duration input_audio_duration = 2; -
getInputAudioDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getInputAudioDurationOrBuilder()Duration of all the input's audio in the conversation.
.google.protobuf.Duration input_audio_duration = 2;- Specified by:
getInputAudioDurationOrBuilderin interfaceConversation.MetricsOrBuilder
-
hasOutputAudioDuration
public boolean hasOutputAudioDuration()Duration of all the output's audio in the conversation.
.google.protobuf.Duration output_audio_duration = 3;- Specified by:
hasOutputAudioDurationin interfaceConversation.MetricsOrBuilder- Returns:
- Whether the outputAudioDuration field is set.
-
getOutputAudioDuration
public com.google.protobuf.Duration getOutputAudioDuration()Duration of all the output's audio in the conversation.
.google.protobuf.Duration output_audio_duration = 3;- Specified by:
getOutputAudioDurationin interfaceConversation.MetricsOrBuilder- Returns:
- The outputAudioDuration.
-
setOutputAudioDuration
Duration of all the output's audio in the conversation.
.google.protobuf.Duration output_audio_duration = 3; -
setOutputAudioDuration
public Conversation.Metrics.Builder setOutputAudioDuration(com.google.protobuf.Duration.Builder builderForValue) Duration of all the output's audio in the conversation.
.google.protobuf.Duration output_audio_duration = 3; -
mergeOutputAudioDuration
Duration of all the output's audio in the conversation.
.google.protobuf.Duration output_audio_duration = 3; -
clearOutputAudioDuration
Duration of all the output's audio in the conversation.
.google.protobuf.Duration output_audio_duration = 3; -
getOutputAudioDurationBuilder
public com.google.protobuf.Duration.Builder getOutputAudioDurationBuilder()Duration of all the output's audio in the conversation.
.google.protobuf.Duration output_audio_duration = 3; -
getOutputAudioDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getOutputAudioDurationOrBuilder()Duration of all the output's audio in the conversation.
.google.protobuf.Duration output_audio_duration = 3;- Specified by:
getOutputAudioDurationOrBuilderin interfaceConversation.MetricsOrBuilder
-
hasMaxWebhookLatency
public boolean hasMaxWebhookLatency()Maximum latency of the [Webhook][google.cloud.dialogflow.cx.v3beta1.Webhook] calls in the conversation.
.google.protobuf.Duration max_webhook_latency = 4;- Specified by:
hasMaxWebhookLatencyin interfaceConversation.MetricsOrBuilder- Returns:
- Whether the maxWebhookLatency field is set.
-
getMaxWebhookLatency
public com.google.protobuf.Duration getMaxWebhookLatency()Maximum latency of the [Webhook][google.cloud.dialogflow.cx.v3beta1.Webhook] calls in the conversation.
.google.protobuf.Duration max_webhook_latency = 4;- Specified by:
getMaxWebhookLatencyin interfaceConversation.MetricsOrBuilder- Returns:
- The maxWebhookLatency.
-
setMaxWebhookLatency
Maximum latency of the [Webhook][google.cloud.dialogflow.cx.v3beta1.Webhook] calls in the conversation.
.google.protobuf.Duration max_webhook_latency = 4; -
setMaxWebhookLatency
public Conversation.Metrics.Builder setMaxWebhookLatency(com.google.protobuf.Duration.Builder builderForValue) Maximum latency of the [Webhook][google.cloud.dialogflow.cx.v3beta1.Webhook] calls in the conversation.
.google.protobuf.Duration max_webhook_latency = 4; -
mergeMaxWebhookLatency
Maximum latency of the [Webhook][google.cloud.dialogflow.cx.v3beta1.Webhook] calls in the conversation.
.google.protobuf.Duration max_webhook_latency = 4; -
clearMaxWebhookLatency
Maximum latency of the [Webhook][google.cloud.dialogflow.cx.v3beta1.Webhook] calls in the conversation.
.google.protobuf.Duration max_webhook_latency = 4; -
getMaxWebhookLatencyBuilder
public com.google.protobuf.Duration.Builder getMaxWebhookLatencyBuilder()Maximum latency of the [Webhook][google.cloud.dialogflow.cx.v3beta1.Webhook] calls in the conversation.
.google.protobuf.Duration max_webhook_latency = 4; -
getMaxWebhookLatencyOrBuilder
public com.google.protobuf.DurationOrBuilder getMaxWebhookLatencyOrBuilder()Maximum latency of the [Webhook][google.cloud.dialogflow.cx.v3beta1.Webhook] calls in the conversation.
.google.protobuf.Duration max_webhook_latency = 4;- Specified by:
getMaxWebhookLatencyOrBuilderin interfaceConversation.MetricsOrBuilder
-
getHasEndInteraction
public boolean getHasEndInteraction()A signal that indicates the interaction with the Dialogflow agent has ended. If any response has the [ResponseMessage.end_interaction][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.end_interaction] signal, this is set to true.
bool has_end_interaction = 5;- Specified by:
getHasEndInteractionin interfaceConversation.MetricsOrBuilder- Returns:
- The hasEndInteraction.
-
setHasEndInteraction
A signal that indicates the interaction with the Dialogflow agent has ended. If any response has the [ResponseMessage.end_interaction][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.end_interaction] signal, this is set to true.
bool has_end_interaction = 5;- Parameters:
value- The hasEndInteraction to set.- Returns:
- This builder for chaining.
-
clearHasEndInteraction
A signal that indicates the interaction with the Dialogflow agent has ended. If any response has the [ResponseMessage.end_interaction][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.end_interaction] signal, this is set to true.
bool has_end_interaction = 5;- Returns:
- This builder for chaining.
-
getHasLiveAgentHandoff
public boolean getHasLiveAgentHandoff()Hands off conversation to a human agent. If any response has the [ResponseMessage.live_agent_handoff][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.live_agent_handoff]signal, this is set to true.
bool has_live_agent_handoff = 6;- Specified by:
getHasLiveAgentHandoffin interfaceConversation.MetricsOrBuilder- Returns:
- The hasLiveAgentHandoff.
-
setHasLiveAgentHandoff
Hands off conversation to a human agent. If any response has the [ResponseMessage.live_agent_handoff][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.live_agent_handoff]signal, this is set to true.
bool has_live_agent_handoff = 6;- Parameters:
value- The hasLiveAgentHandoff to set.- Returns:
- This builder for chaining.
-
clearHasLiveAgentHandoff
Hands off conversation to a human agent. If any response has the [ResponseMessage.live_agent_handoff][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.live_agent_handoff]signal, this is set to true.
bool has_live_agent_handoff = 6;- Returns:
- This builder for chaining.
-
getAverageMatchConfidence
public float getAverageMatchConfidence()The average confidence all of the [Match][google.cloud.dialogflow.cx.v3beta1.Match] in the conversation. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).
float average_match_confidence = 7;- Specified by:
getAverageMatchConfidencein interfaceConversation.MetricsOrBuilder- Returns:
- The averageMatchConfidence.
-
setAverageMatchConfidence
The average confidence all of the [Match][google.cloud.dialogflow.cx.v3beta1.Match] in the conversation. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).
float average_match_confidence = 7;- Parameters:
value- The averageMatchConfidence to set.- Returns:
- This builder for chaining.
-
clearAverageMatchConfidence
The average confidence all of the [Match][google.cloud.dialogflow.cx.v3beta1.Match] in the conversation. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).
float average_match_confidence = 7;- Returns:
- This builder for chaining.
-
hasQueryInputCount
public boolean hasQueryInputCount()Query input counts.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.QueryInputCount query_input_count = 8;- Specified by:
hasQueryInputCountin interfaceConversation.MetricsOrBuilder- Returns:
- Whether the queryInputCount field is set.
-
getQueryInputCount
Query input counts.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.QueryInputCount query_input_count = 8;- Specified by:
getQueryInputCountin interfaceConversation.MetricsOrBuilder- Returns:
- The queryInputCount.
-
setQueryInputCount
Query input counts.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.QueryInputCount query_input_count = 8; -
setQueryInputCount
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; -
mergeQueryInputCount
public Conversation.Metrics.Builder mergeQueryInputCount(Conversation.Metrics.QueryInputCount value) Query input counts.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.QueryInputCount query_input_count = 8; -
clearQueryInputCount
Query input counts.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.QueryInputCount query_input_count = 8; -
getQueryInputCountBuilder
Query input counts.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.QueryInputCount query_input_count = 8; -
getQueryInputCountOrBuilder
Query input counts.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.QueryInputCount query_input_count = 8;- Specified by:
getQueryInputCountOrBuilderin interfaceConversation.MetricsOrBuilder
-
hasMatchTypeCount
public boolean hasMatchTypeCount()Match type counts.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.MatchTypeCount match_type_count = 9;- Specified by:
hasMatchTypeCountin interfaceConversation.MetricsOrBuilder- Returns:
- Whether the matchTypeCount field is set.
-
getMatchTypeCount
Match type counts.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.MatchTypeCount match_type_count = 9;- Specified by:
getMatchTypeCountin interfaceConversation.MetricsOrBuilder- Returns:
- The matchTypeCount.
-
setMatchTypeCount
Match type counts.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.MatchTypeCount match_type_count = 9; -
setMatchTypeCount
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; -
mergeMatchTypeCount
Match type counts.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.MatchTypeCount match_type_count = 9; -
clearMatchTypeCount
Match type counts.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.MatchTypeCount match_type_count = 9; -
getMatchTypeCountBuilder
Match type counts.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.MatchTypeCount match_type_count = 9; -
getMatchTypeCountOrBuilder
Match type counts.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.MatchTypeCount match_type_count = 9;- Specified by:
getMatchTypeCountOrBuilderin interfaceConversation.MetricsOrBuilder
-