Class SmartReplyMetrics

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2.SmartReplyMetrics
All Implemented Interfaces:
SmartReplyMetricsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class SmartReplyMetrics extends com.google.protobuf.GeneratedMessage implements SmartReplyMetricsOrBuilder
 The evaluation metrics for smart reply model.
 
Protobuf type google.cloud.dialogflow.v2.SmartReplyMetrics
See Also:
  • Field Details

    • ALLOWLIST_COVERAGE_FIELD_NUMBER

      public static final int ALLOWLIST_COVERAGE_FIELD_NUMBER
      See Also:
    • TOP_N_METRICS_FIELD_NUMBER

      public static final int TOP_N_METRICS_FIELD_NUMBER
      See Also:
    • CONVERSATION_COUNT_FIELD_NUMBER

      public static final int CONVERSATION_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
    • getAllowlistCoverage

      public float getAllowlistCoverage()
       Percentage of target participant messages in the evaluation dataset for
       which similar messages have appeared at least once in the allowlist. Should
       be [0, 1].
       
      float allowlist_coverage = 1;
      Specified by:
      getAllowlistCoverage in interface SmartReplyMetricsOrBuilder
      Returns:
      The allowlistCoverage.
    • getTopNMetricsList

      public List<SmartReplyMetrics.TopNMetrics> getTopNMetricsList()
       Metrics of top n smart replies, sorted by [TopNMetric.n][].
       
      repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
      Specified by:
      getTopNMetricsList in interface SmartReplyMetricsOrBuilder
    • getTopNMetricsOrBuilderList

      public List<? extends SmartReplyMetrics.TopNMetricsOrBuilder> getTopNMetricsOrBuilderList()
       Metrics of top n smart replies, sorted by [TopNMetric.n][].
       
      repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
      Specified by:
      getTopNMetricsOrBuilderList in interface SmartReplyMetricsOrBuilder
    • getTopNMetricsCount

      public int getTopNMetricsCount()
       Metrics of top n smart replies, sorted by [TopNMetric.n][].
       
      repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
      Specified by:
      getTopNMetricsCount in interface SmartReplyMetricsOrBuilder
    • getTopNMetrics

      public SmartReplyMetrics.TopNMetrics getTopNMetrics(int index)
       Metrics of top n smart replies, sorted by [TopNMetric.n][].
       
      repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
      Specified by:
      getTopNMetrics in interface SmartReplyMetricsOrBuilder
    • getTopNMetricsOrBuilder

      public SmartReplyMetrics.TopNMetricsOrBuilder getTopNMetricsOrBuilder(int index)
       Metrics of top n smart replies, sorted by [TopNMetric.n][].
       
      repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
      Specified by:
      getTopNMetricsOrBuilder in interface SmartReplyMetricsOrBuilder
    • getConversationCount

      public long getConversationCount()
       Total number of conversations used to generate this metric.
       
      int64 conversation_count = 3;
      Specified by:
      getConversationCount in interface SmartReplyMetricsOrBuilder
      Returns:
      The conversationCount.
    • 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 SmartReplyMetrics parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static SmartReplyMetrics parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static SmartReplyMetrics parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static SmartReplyMetrics.Builder newBuilder()
    • newBuilder

      public static SmartReplyMetrics.Builder newBuilder(SmartReplyMetrics prototype)
    • toBuilder

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

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

      public static SmartReplyMetrics getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<SmartReplyMetrics> 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 SmartReplyMetrics getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder