Class EvaluationConfig.SmartComposeConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EvaluationConfig.SmartComposeConfig.Builder>
com.google.cloud.dialogflow.v2.EvaluationConfig.SmartComposeConfig.Builder
All Implemented Interfaces:
EvaluationConfig.SmartComposeConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
EvaluationConfig.SmartComposeConfig

public static final class EvaluationConfig.SmartComposeConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<EvaluationConfig.SmartComposeConfig.Builder> implements EvaluationConfig.SmartComposeConfigOrBuilder
 Smart compose specific configuration for evaluation job.
 
Protobuf type google.cloud.dialogflow.v2.EvaluationConfig.SmartComposeConfig
  • 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<EvaluationConfig.SmartComposeConfig.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<EvaluationConfig.SmartComposeConfig.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<EvaluationConfig.SmartComposeConfig.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public EvaluationConfig.SmartComposeConfig.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<EvaluationConfig.SmartComposeConfig.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<EvaluationConfig.SmartComposeConfig.Builder>
    • mergeFrom

      public EvaluationConfig.SmartComposeConfig.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<EvaluationConfig.SmartComposeConfig.Builder>
      Throws:
      IOException
    • getAllowlistDocument

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

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

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

      public EvaluationConfig.SmartComposeConfig.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 compose 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.SmartComposeConfigOrBuilder
      Returns:
      The maxResultCount.
    • setMaxResultCount

      public EvaluationConfig.SmartComposeConfig.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.SmartComposeConfig.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.