Class SmartReplyMetrics.TopNMetrics.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SmartReplyMetrics.TopNMetrics.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.GeneratedMessageV3.Builder<SmartReplyMetrics.TopNMetrics.Builder>
      • getDefaultInstanceForType

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

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

        public SmartReplyMetrics.TopNMetrics buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SmartReplyMetrics.TopNMetrics.Builder>
      • mergeFrom

        public SmartReplyMetrics.TopNMetrics.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<SmartReplyMetrics.TopNMetrics.Builder>
        Throws:
        IOException
      • getN

        public int getN()
         Number of retrieved smart replies. For example, when `n` is 3, this
         evaluation contains metrics for when Dialogflow retrieves 3 smart replies
         with the model.
         
        int32 n = 1;
        Specified by:
        getN in interface SmartReplyMetrics.TopNMetricsOrBuilder
        Returns:
        The n.
      • setN

        public SmartReplyMetrics.TopNMetrics.Builder setN​(int value)
         Number of retrieved smart replies. For example, when `n` is 3, this
         evaluation contains metrics for when Dialogflow retrieves 3 smart replies
         with the model.
         
        int32 n = 1;
        Parameters:
        value - The n to set.
        Returns:
        This builder for chaining.
      • clearN

        public SmartReplyMetrics.TopNMetrics.Builder clearN()
         Number of retrieved smart replies. For example, when `n` is 3, this
         evaluation contains metrics for when Dialogflow retrieves 3 smart replies
         with the model.
         
        int32 n = 1;
        Returns:
        This builder for chaining.
      • getRecall

        public float getRecall()
         Defined as `number of queries whose top n smart replies have at least one
         similar (token match similarity above the defined threshold) reply as the
         real reply` divided by `number of queries with at least one smart reply`.
         Value ranges from 0.0 to 1.0 inclusive.
         
        float recall = 2;
        Specified by:
        getRecall in interface SmartReplyMetrics.TopNMetricsOrBuilder
        Returns:
        The recall.
      • setRecall

        public SmartReplyMetrics.TopNMetrics.Builder setRecall​(float value)
         Defined as `number of queries whose top n smart replies have at least one
         similar (token match similarity above the defined threshold) reply as the
         real reply` divided by `number of queries with at least one smart reply`.
         Value ranges from 0.0 to 1.0 inclusive.
         
        float recall = 2;
        Parameters:
        value - The recall to set.
        Returns:
        This builder for chaining.
      • clearRecall

        public SmartReplyMetrics.TopNMetrics.Builder clearRecall()
         Defined as `number of queries whose top n smart replies have at least one
         similar (token match similarity above the defined threshold) reply as the
         real reply` divided by `number of queries with at least one smart reply`.
         Value ranges from 0.0 to 1.0 inclusive.
         
        float recall = 2;
        Returns:
        This builder for chaining.