Class Conversation.Metrics

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics
All Implemented Interfaces:
Conversation.MetricsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
Conversation

public static final class Conversation.Metrics extends com.google.protobuf.GeneratedMessage implements Conversation.MetricsOrBuilder
 Represents metrics for the conversation.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics
See Also:
  • Field Details

    • INTERACTION_COUNT_FIELD_NUMBER

      public static final int INTERACTION_COUNT_FIELD_NUMBER
      See Also:
    • INPUT_AUDIO_DURATION_FIELD_NUMBER

      public static final int INPUT_AUDIO_DURATION_FIELD_NUMBER
      See Also:
    • OUTPUT_AUDIO_DURATION_FIELD_NUMBER

      public static final int OUTPUT_AUDIO_DURATION_FIELD_NUMBER
      See Also:
    • MAX_WEBHOOK_LATENCY_FIELD_NUMBER

      public static final int MAX_WEBHOOK_LATENCY_FIELD_NUMBER
      See Also:
    • HAS_END_INTERACTION_FIELD_NUMBER

      public static final int HAS_END_INTERACTION_FIELD_NUMBER
      See Also:
    • HAS_LIVE_AGENT_HANDOFF_FIELD_NUMBER

      public static final int HAS_LIVE_AGENT_HANDOFF_FIELD_NUMBER
      See Also:
    • AVERAGE_MATCH_CONFIDENCE_FIELD_NUMBER

      public static final int AVERAGE_MATCH_CONFIDENCE_FIELD_NUMBER
      See Also:
    • QUERY_INPUT_COUNT_FIELD_NUMBER

      public static final int QUERY_INPUT_COUNT_FIELD_NUMBER
      See Also:
    • MATCH_TYPE_COUNT_FIELD_NUMBER

      public static final int MATCH_TYPE_COUNT_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Conversation.Metrics parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Conversation.Metrics parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Conversation.Metrics parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Conversation.Metrics parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Conversation.Metrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Conversation.Metrics parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Conversation.Metrics parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Conversation.Metrics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Conversation.Metrics parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Conversation.Metrics parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Conversation.Metrics parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Conversation.Metrics parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Conversation.Metrics.Builder newBuilder()
    • newBuilder

      public static Conversation.Metrics.Builder newBuilder(Conversation.Metrics prototype)
    • toBuilder

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

      protected Conversation.Metrics.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Conversation.Metrics getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Conversation.Metrics> parser()
    • getParserForType

      public com.google.protobuf.Parser<Conversation.Metrics> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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