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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Conversation.Metrics.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Conversation.Metrics.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Conversation.Metrics.Builder>
    • getDefaultInstanceForType

      public Conversation.Metrics getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Conversation.Metrics build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Conversation.Metrics buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Conversation.Metrics.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Conversation.Metrics.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getInteractionCount in interface Conversation.MetricsOrBuilder
      Returns:
      The interactionCount.
    • setInteractionCount

      public Conversation.Metrics.Builder setInteractionCount(int value)
       The number of interactions in the conversation.
       
      int32 interaction_count = 1;
      Parameters:
      value - The interactionCount to set.
      Returns:
      This builder for chaining.
    • clearInteractionCount

      public Conversation.Metrics.Builder 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:
      hasInputAudioDuration in interface Conversation.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:
      getInputAudioDuration in interface Conversation.MetricsOrBuilder
      Returns:
      The inputAudioDuration.
    • setInputAudioDuration

      public Conversation.Metrics.Builder setInputAudioDuration(com.google.protobuf.Duration value)
       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

      public Conversation.Metrics.Builder mergeInputAudioDuration(com.google.protobuf.Duration value)
       Duration of all the input's audio in the conversation.
       
      .google.protobuf.Duration input_audio_duration = 2;
    • clearInputAudioDuration

      public Conversation.Metrics.Builder 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:
      getInputAudioDurationOrBuilder in interface Conversation.MetricsOrBuilder
    • hasOutputAudioDuration

      public boolean hasOutputAudioDuration()
       Duration of all the output's audio in the conversation.
       
      .google.protobuf.Duration output_audio_duration = 3;
      Specified by:
      hasOutputAudioDuration in interface Conversation.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:
      getOutputAudioDuration in interface Conversation.MetricsOrBuilder
      Returns:
      The outputAudioDuration.
    • setOutputAudioDuration

      public Conversation.Metrics.Builder setOutputAudioDuration(com.google.protobuf.Duration value)
       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

      public Conversation.Metrics.Builder mergeOutputAudioDuration(com.google.protobuf.Duration value)
       Duration of all the output's audio in the conversation.
       
      .google.protobuf.Duration output_audio_duration = 3;
    • clearOutputAudioDuration

      public Conversation.Metrics.Builder 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:
      getOutputAudioDurationOrBuilder in interface Conversation.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:
      hasMaxWebhookLatency in interface Conversation.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:
      getMaxWebhookLatency in interface Conversation.MetricsOrBuilder
      Returns:
      The maxWebhookLatency.
    • setMaxWebhookLatency

      public Conversation.Metrics.Builder setMaxWebhookLatency(com.google.protobuf.Duration value)
       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

      public Conversation.Metrics.Builder mergeMaxWebhookLatency(com.google.protobuf.Duration value)
       Maximum latency of the
       [Webhook][google.cloud.dialogflow.cx.v3beta1.Webhook] calls in the
       conversation.
       
      .google.protobuf.Duration max_webhook_latency = 4;
    • clearMaxWebhookLatency

      public Conversation.Metrics.Builder 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:
      getMaxWebhookLatencyOrBuilder in interface Conversation.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:
      getHasEndInteraction in interface Conversation.MetricsOrBuilder
      Returns:
      The hasEndInteraction.
    • setHasEndInteraction

      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][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

      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][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:
      getHasLiveAgentHandoff in interface Conversation.MetricsOrBuilder
      Returns:
      The hasLiveAgentHandoff.
    • setHasLiveAgentHandoff

      public Conversation.Metrics.Builder setHasLiveAgentHandoff(boolean value)
       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

      public Conversation.Metrics.Builder 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:
      getAverageMatchConfidence in interface Conversation.MetricsOrBuilder
      Returns:
      The averageMatchConfidence.
    • setAverageMatchConfidence

      public Conversation.Metrics.Builder setAverageMatchConfidence(float value)
       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

      public Conversation.Metrics.Builder 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:
      hasQueryInputCount in interface Conversation.MetricsOrBuilder
      Returns:
      Whether the queryInputCount field is set.
    • getQueryInputCount

      public Conversation.Metrics.QueryInputCount getQueryInputCount()
       Query input counts.
       
      .google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.QueryInputCount query_input_count = 8;
      Specified by:
      getQueryInputCount in interface Conversation.MetricsOrBuilder
      Returns:
      The queryInputCount.
    • setQueryInputCount

       Query input counts.
       
      .google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.QueryInputCount query_input_count = 8;
    • setQueryInputCount

       Query input counts.
       
      .google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.QueryInputCount query_input_count = 8;
    • mergeQueryInputCount

       Query input counts.
       
      .google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.QueryInputCount query_input_count = 8;
    • clearQueryInputCount

      public Conversation.Metrics.Builder clearQueryInputCount()
       Query input counts.
       
      .google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.QueryInputCount query_input_count = 8;
    • getQueryInputCountBuilder

      public Conversation.Metrics.QueryInputCount.Builder getQueryInputCountBuilder()
       Query input counts.
       
      .google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.QueryInputCount query_input_count = 8;
    • getQueryInputCountOrBuilder

      public Conversation.Metrics.QueryInputCountOrBuilder getQueryInputCountOrBuilder()
       Query input counts.
       
      .google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.QueryInputCount query_input_count = 8;
      Specified by:
      getQueryInputCountOrBuilder in interface Conversation.MetricsOrBuilder
    • hasMatchTypeCount

      public boolean hasMatchTypeCount()
       Match type counts.
       
      .google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.MatchTypeCount match_type_count = 9;
      Specified by:
      hasMatchTypeCount in interface Conversation.MetricsOrBuilder
      Returns:
      Whether the matchTypeCount field is set.
    • getMatchTypeCount

      public Conversation.Metrics.MatchTypeCount getMatchTypeCount()
       Match type counts.
       
      .google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.MatchTypeCount match_type_count = 9;
      Specified by:
      getMatchTypeCount in interface Conversation.MetricsOrBuilder
      Returns:
      The matchTypeCount.
    • setMatchTypeCount

       Match type counts.
       
      .google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.MatchTypeCount match_type_count = 9;
    • setMatchTypeCount

       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

      public Conversation.Metrics.Builder clearMatchTypeCount()
       Match type counts.
       
      .google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.MatchTypeCount match_type_count = 9;
    • getMatchTypeCountBuilder

      public Conversation.Metrics.MatchTypeCount.Builder getMatchTypeCountBuilder()
       Match type counts.
       
      .google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.MatchTypeCount match_type_count = 9;
    • getMatchTypeCountOrBuilder

      public Conversation.Metrics.MatchTypeCountOrBuilder getMatchTypeCountOrBuilder()
       Match type counts.
       
      .google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics.MatchTypeCount match_type_count = 9;
      Specified by:
      getMatchTypeCountOrBuilder in interface Conversation.MetricsOrBuilder