Class EvaluationConfig.SmartReplyConfig.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<EvaluationConfig.SmartReplyConfig.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<EvaluationConfig.SmartReplyConfig.Builder>
      • getDefaultInstanceForType

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

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

        public EvaluationConfig.SmartReplyConfig 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<EvaluationConfig.SmartReplyConfig.Builder>
      • getAllowlistDocument

        public String getAllowlistDocument()
         The allowlist document resource name.
         Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
         ID>/documents/<Document ID>`. Only used for smart reply model.
         
        string allowlist_document = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getAllowlistDocument in interface EvaluationConfig.SmartReplyConfigOrBuilder
        Returns:
        The allowlistDocument.
      • getAllowlistDocumentBytes

        public com.google.protobuf.ByteString getAllowlistDocumentBytes()
         The allowlist document resource name.
         Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
         ID>/documents/<Document ID>`. Only used for smart reply model.
         
        string allowlist_document = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getAllowlistDocumentBytes in interface EvaluationConfig.SmartReplyConfigOrBuilder
        Returns:
        The bytes for allowlistDocument.
      • setAllowlistDocument

        public EvaluationConfig.SmartReplyConfig.Builder setAllowlistDocument​(String value)
         The allowlist document resource name.
         Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
         ID>/documents/<Document ID>`. Only used for smart reply model.
         
        string allowlist_document = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The allowlistDocument to set.
        Returns:
        This builder for chaining.
      • clearAllowlistDocument

        public EvaluationConfig.SmartReplyConfig.Builder clearAllowlistDocument()
         The allowlist document resource name.
         Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
         ID>/documents/<Document ID>`. Only used for smart reply model.
         
        string allowlist_document = 1 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setAllowlistDocumentBytes

        public EvaluationConfig.SmartReplyConfig.Builder setAllowlistDocumentBytes​(com.google.protobuf.ByteString value)
         The allowlist document resource name.
         Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
         ID>/documents/<Document ID>`. Only used for smart reply model.
         
        string allowlist_document = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for allowlistDocument to set.
        Returns:
        This builder for chaining.
      • getMaxResultCount

        public int getMaxResultCount()
         Required. The model to be evaluated can return multiple results with
         confidence score on each query. These results will be sorted by the
         descending order of the scores and we only keep the first
         max_result_count results as the final results to evaluate.
         
        int32 max_result_count = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMaxResultCount in interface EvaluationConfig.SmartReplyConfigOrBuilder
        Returns:
        The maxResultCount.
      • setMaxResultCount

        public EvaluationConfig.SmartReplyConfig.Builder setMaxResultCount​(int value)
         Required. The model to be evaluated can return multiple results with
         confidence score on each query. These results will be sorted by the
         descending order of the scores and we only keep the first
         max_result_count results as the final results to evaluate.
         
        int32 max_result_count = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The maxResultCount to set.
        Returns:
        This builder for chaining.
      • clearMaxResultCount

        public EvaluationConfig.SmartReplyConfig.Builder clearMaxResultCount()
         Required. The model to be evaluated can return multiple results with
         confidence score on each query. These results will be sorted by the
         descending order of the scores and we only keep the first
         max_result_count results as the final results to evaluate.
         
        int32 max_result_count = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.