Class Match.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Match.Builder>
com.google.cloud.dialogflow.cx.v3beta1.Match.Builder
All Implemented Interfaces:
MatchOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Match

public static final class Match.Builder extends com.google.protobuf.GeneratedMessage.Builder<Match.Builder> implements MatchOrBuilder
 Represents one match result of [MatchIntent][].
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.Match
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The confidence of this match.
    The event that matched the query.
    The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query.
    Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].
    The collection of parameters extracted from the query.
    Final text input which was matched during MatchIntent.
    float
    The confidence of this match.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The event that matched the query.
    com.google.protobuf.ByteString
    The event that matched the query.
    The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query.
    The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query.
    The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query.
    Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].
    int
    Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].
    com.google.protobuf.Struct
    The collection of parameters extracted from the query.
    com.google.protobuf.Struct.Builder
    The collection of parameters extracted from the query.
    com.google.protobuf.StructOrBuilder
    The collection of parameters extracted from the query.
    Final text input which was matched during MatchIntent.
    com.google.protobuf.ByteString
    Final text input which was matched during MatchIntent.
    boolean
    The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query.
    boolean
    The collection of parameters extracted from the query.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query.
    mergeParameters(com.google.protobuf.Struct value)
    The collection of parameters extracted from the query.
    setConfidence(float value)
    The confidence of this match.
    The event that matched the query.
    setEventBytes(com.google.protobuf.ByteString value)
    The event that matched the query.
    The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query.
    setIntent(Intent.Builder builderForValue)
    The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query.
    Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].
    setMatchTypeValue(int value)
    Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].
    setParameters(com.google.protobuf.Struct value)
    The collection of parameters extracted from the query.
    setParameters(com.google.protobuf.Struct.Builder builderForValue)
    The collection of parameters extracted from the query.
    Final text input which was matched during MatchIntent.
    setResolvedInputBytes(com.google.protobuf.ByteString value)
    Final text input which was matched during MatchIntent.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<Match.Builder>
    • clear

      public Match.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<Match.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<Match.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Match.Builder mergeFrom(Match other)
    • isInitialized

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

      public Match.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<Match.Builder>
      Throws:
      IOException
    • hasIntent

      public boolean hasIntent()
       The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the
       query. Some, not all fields are filled in this message, including but not
       limited to: `name` and `display_name`. Only filled for
       [`INTENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
       
      .google.cloud.dialogflow.cx.v3beta1.Intent intent = 1;
      Specified by:
      hasIntent in interface MatchOrBuilder
      Returns:
      Whether the intent field is set.
    • getIntent

      public Intent getIntent()
       The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the
       query. Some, not all fields are filled in this message, including but not
       limited to: `name` and `display_name`. Only filled for
       [`INTENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
       
      .google.cloud.dialogflow.cx.v3beta1.Intent intent = 1;
      Specified by:
      getIntent in interface MatchOrBuilder
      Returns:
      The intent.
    • setIntent

      public Match.Builder setIntent(Intent value)
       The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the
       query. Some, not all fields are filled in this message, including but not
       limited to: `name` and `display_name`. Only filled for
       [`INTENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
       
      .google.cloud.dialogflow.cx.v3beta1.Intent intent = 1;
    • setIntent

      public Match.Builder setIntent(Intent.Builder builderForValue)
       The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the
       query. Some, not all fields are filled in this message, including but not
       limited to: `name` and `display_name`. Only filled for
       [`INTENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
       
      .google.cloud.dialogflow.cx.v3beta1.Intent intent = 1;
    • mergeIntent

      public Match.Builder mergeIntent(Intent value)
       The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the
       query. Some, not all fields are filled in this message, including but not
       limited to: `name` and `display_name`. Only filled for
       [`INTENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
       
      .google.cloud.dialogflow.cx.v3beta1.Intent intent = 1;
    • clearIntent

      public Match.Builder clearIntent()
       The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the
       query. Some, not all fields are filled in this message, including but not
       limited to: `name` and `display_name`. Only filled for
       [`INTENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
       
      .google.cloud.dialogflow.cx.v3beta1.Intent intent = 1;
    • getIntentBuilder

      public Intent.Builder getIntentBuilder()
       The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the
       query. Some, not all fields are filled in this message, including but not
       limited to: `name` and `display_name`. Only filled for
       [`INTENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
       
      .google.cloud.dialogflow.cx.v3beta1.Intent intent = 1;
    • getIntentOrBuilder

      public IntentOrBuilder getIntentOrBuilder()
       The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the
       query. Some, not all fields are filled in this message, including but not
       limited to: `name` and `display_name`. Only filled for
       [`INTENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type.
       
      .google.cloud.dialogflow.cx.v3beta1.Intent intent = 1;
      Specified by:
      getIntentOrBuilder in interface MatchOrBuilder
    • getEvent

      public String getEvent()
       The event that matched the query. Filled for
       [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType],
       [`NO_MATCH`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] and
       [`NO_INPUT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match
       types.
       
      string event = 6;
      Specified by:
      getEvent in interface MatchOrBuilder
      Returns:
      The event.
    • getEventBytes

      public com.google.protobuf.ByteString getEventBytes()
       The event that matched the query. Filled for
       [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType],
       [`NO_MATCH`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] and
       [`NO_INPUT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match
       types.
       
      string event = 6;
      Specified by:
      getEventBytes in interface MatchOrBuilder
      Returns:
      The bytes for event.
    • setEvent

      public Match.Builder setEvent(String value)
       The event that matched the query. Filled for
       [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType],
       [`NO_MATCH`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] and
       [`NO_INPUT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match
       types.
       
      string event = 6;
      Parameters:
      value - The event to set.
      Returns:
      This builder for chaining.
    • clearEvent

      public Match.Builder clearEvent()
       The event that matched the query. Filled for
       [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType],
       [`NO_MATCH`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] and
       [`NO_INPUT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match
       types.
       
      string event = 6;
      Returns:
      This builder for chaining.
    • setEventBytes

      public Match.Builder setEventBytes(com.google.protobuf.ByteString value)
       The event that matched the query. Filled for
       [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType],
       [`NO_MATCH`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] and
       [`NO_INPUT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match
       types.
       
      string event = 6;
      Parameters:
      value - The bytes for event to set.
      Returns:
      This builder for chaining.
    • hasParameters

      public boolean hasParameters()
       The collection of parameters extracted from the query.
      
       Depending on your protocol or client library language, this is a
       map, associative array, symbol table, dictionary, or JSON object
       composed of a collection of (MapKey, MapValue) pairs:
      
       * MapKey type: string
       * MapKey value: parameter name
       * MapValue type: If parameter's entity type is a composite entity then use
       map, otherwise, depending on the parameter value type, it could be one of
       string, number, boolean, null, list or map.
       * MapValue value: If parameter's entity type is a composite entity then use
       map from composite entity property names to property values, otherwise,
       use parameter value.
       
      .google.protobuf.Struct parameters = 2;
      Specified by:
      hasParameters in interface MatchOrBuilder
      Returns:
      Whether the parameters field is set.
    • getParameters

      public com.google.protobuf.Struct getParameters()
       The collection of parameters extracted from the query.
      
       Depending on your protocol or client library language, this is a
       map, associative array, symbol table, dictionary, or JSON object
       composed of a collection of (MapKey, MapValue) pairs:
      
       * MapKey type: string
       * MapKey value: parameter name
       * MapValue type: If parameter's entity type is a composite entity then use
       map, otherwise, depending on the parameter value type, it could be one of
       string, number, boolean, null, list or map.
       * MapValue value: If parameter's entity type is a composite entity then use
       map from composite entity property names to property values, otherwise,
       use parameter value.
       
      .google.protobuf.Struct parameters = 2;
      Specified by:
      getParameters in interface MatchOrBuilder
      Returns:
      The parameters.
    • setParameters

      public Match.Builder setParameters(com.google.protobuf.Struct value)
       The collection of parameters extracted from the query.
      
       Depending on your protocol or client library language, this is a
       map, associative array, symbol table, dictionary, or JSON object
       composed of a collection of (MapKey, MapValue) pairs:
      
       * MapKey type: string
       * MapKey value: parameter name
       * MapValue type: If parameter's entity type is a composite entity then use
       map, otherwise, depending on the parameter value type, it could be one of
       string, number, boolean, null, list or map.
       * MapValue value: If parameter's entity type is a composite entity then use
       map from composite entity property names to property values, otherwise,
       use parameter value.
       
      .google.protobuf.Struct parameters = 2;
    • setParameters

      public Match.Builder setParameters(com.google.protobuf.Struct.Builder builderForValue)
       The collection of parameters extracted from the query.
      
       Depending on your protocol or client library language, this is a
       map, associative array, symbol table, dictionary, or JSON object
       composed of a collection of (MapKey, MapValue) pairs:
      
       * MapKey type: string
       * MapKey value: parameter name
       * MapValue type: If parameter's entity type is a composite entity then use
       map, otherwise, depending on the parameter value type, it could be one of
       string, number, boolean, null, list or map.
       * MapValue value: If parameter's entity type is a composite entity then use
       map from composite entity property names to property values, otherwise,
       use parameter value.
       
      .google.protobuf.Struct parameters = 2;
    • mergeParameters

      public Match.Builder mergeParameters(com.google.protobuf.Struct value)
       The collection of parameters extracted from the query.
      
       Depending on your protocol or client library language, this is a
       map, associative array, symbol table, dictionary, or JSON object
       composed of a collection of (MapKey, MapValue) pairs:
      
       * MapKey type: string
       * MapKey value: parameter name
       * MapValue type: If parameter's entity type is a composite entity then use
       map, otherwise, depending on the parameter value type, it could be one of
       string, number, boolean, null, list or map.
       * MapValue value: If parameter's entity type is a composite entity then use
       map from composite entity property names to property values, otherwise,
       use parameter value.
       
      .google.protobuf.Struct parameters = 2;
    • clearParameters

      public Match.Builder clearParameters()
       The collection of parameters extracted from the query.
      
       Depending on your protocol or client library language, this is a
       map, associative array, symbol table, dictionary, or JSON object
       composed of a collection of (MapKey, MapValue) pairs:
      
       * MapKey type: string
       * MapKey value: parameter name
       * MapValue type: If parameter's entity type is a composite entity then use
       map, otherwise, depending on the parameter value type, it could be one of
       string, number, boolean, null, list or map.
       * MapValue value: If parameter's entity type is a composite entity then use
       map from composite entity property names to property values, otherwise,
       use parameter value.
       
      .google.protobuf.Struct parameters = 2;
    • getParametersBuilder

      public com.google.protobuf.Struct.Builder getParametersBuilder()
       The collection of parameters extracted from the query.
      
       Depending on your protocol or client library language, this is a
       map, associative array, symbol table, dictionary, or JSON object
       composed of a collection of (MapKey, MapValue) pairs:
      
       * MapKey type: string
       * MapKey value: parameter name
       * MapValue type: If parameter's entity type is a composite entity then use
       map, otherwise, depending on the parameter value type, it could be one of
       string, number, boolean, null, list or map.
       * MapValue value: If parameter's entity type is a composite entity then use
       map from composite entity property names to property values, otherwise,
       use parameter value.
       
      .google.protobuf.Struct parameters = 2;
    • getParametersOrBuilder

      public com.google.protobuf.StructOrBuilder getParametersOrBuilder()
       The collection of parameters extracted from the query.
      
       Depending on your protocol or client library language, this is a
       map, associative array, symbol table, dictionary, or JSON object
       composed of a collection of (MapKey, MapValue) pairs:
      
       * MapKey type: string
       * MapKey value: parameter name
       * MapValue type: If parameter's entity type is a composite entity then use
       map, otherwise, depending on the parameter value type, it could be one of
       string, number, boolean, null, list or map.
       * MapValue value: If parameter's entity type is a composite entity then use
       map from composite entity property names to property values, otherwise,
       use parameter value.
       
      .google.protobuf.Struct parameters = 2;
      Specified by:
      getParametersOrBuilder in interface MatchOrBuilder
    • getResolvedInput

      public String getResolvedInput()
       Final text input which was matched during MatchIntent. This value can be
       different from original input sent in request because of spelling
       correction or other processing.
       
      string resolved_input = 3;
      Specified by:
      getResolvedInput in interface MatchOrBuilder
      Returns:
      The resolvedInput.
    • getResolvedInputBytes

      public com.google.protobuf.ByteString getResolvedInputBytes()
       Final text input which was matched during MatchIntent. This value can be
       different from original input sent in request because of spelling
       correction or other processing.
       
      string resolved_input = 3;
      Specified by:
      getResolvedInputBytes in interface MatchOrBuilder
      Returns:
      The bytes for resolvedInput.
    • setResolvedInput

      public Match.Builder setResolvedInput(String value)
       Final text input which was matched during MatchIntent. This value can be
       different from original input sent in request because of spelling
       correction or other processing.
       
      string resolved_input = 3;
      Parameters:
      value - The resolvedInput to set.
      Returns:
      This builder for chaining.
    • clearResolvedInput

      public Match.Builder clearResolvedInput()
       Final text input which was matched during MatchIntent. This value can be
       different from original input sent in request because of spelling
       correction or other processing.
       
      string resolved_input = 3;
      Returns:
      This builder for chaining.
    • setResolvedInputBytes

      public Match.Builder setResolvedInputBytes(com.google.protobuf.ByteString value)
       Final text input which was matched during MatchIntent. This value can be
       different from original input sent in request because of spelling
       correction or other processing.
       
      string resolved_input = 3;
      Parameters:
      value - The bytes for resolvedInput to set.
      Returns:
      This builder for chaining.
    • getMatchTypeValue

      public int getMatchTypeValue()
       Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].
       
      .google.cloud.dialogflow.cx.v3beta1.Match.MatchType match_type = 4;
      Specified by:
      getMatchTypeValue in interface MatchOrBuilder
      Returns:
      The enum numeric value on the wire for matchType.
    • setMatchTypeValue

      public Match.Builder setMatchTypeValue(int value)
       Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].
       
      .google.cloud.dialogflow.cx.v3beta1.Match.MatchType match_type = 4;
      Parameters:
      value - The enum numeric value on the wire for matchType to set.
      Returns:
      This builder for chaining.
    • getMatchType

      public Match.MatchType getMatchType()
       Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].
       
      .google.cloud.dialogflow.cx.v3beta1.Match.MatchType match_type = 4;
      Specified by:
      getMatchType in interface MatchOrBuilder
      Returns:
      The matchType.
    • setMatchType

      public Match.Builder setMatchType(Match.MatchType value)
       Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].
       
      .google.cloud.dialogflow.cx.v3beta1.Match.MatchType match_type = 4;
      Parameters:
      value - The matchType to set.
      Returns:
      This builder for chaining.
    • clearMatchType

      public Match.Builder clearMatchType()
       Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match].
       
      .google.cloud.dialogflow.cx.v3beta1.Match.MatchType match_type = 4;
      Returns:
      This builder for chaining.
    • getConfidence

      public float getConfidence()
       The confidence of this match. Values range from 0.0 (completely uncertain)
       to 1.0 (completely certain).
       This value is for informational purpose only and is only used to help match
       the best intent within the classification threshold. This value may change
       for the same end-user expression at any time due to a model retraining or
       change in implementation.
       
      float confidence = 5;
      Specified by:
      getConfidence in interface MatchOrBuilder
      Returns:
      The confidence.
    • setConfidence

      public Match.Builder setConfidence(float value)
       The confidence of this match. Values range from 0.0 (completely uncertain)
       to 1.0 (completely certain).
       This value is for informational purpose only and is only used to help match
       the best intent within the classification threshold. This value may change
       for the same end-user expression at any time due to a model retraining or
       change in implementation.
       
      float confidence = 5;
      Parameters:
      value - The confidence to set.
      Returns:
      This builder for chaining.
    • clearConfidence

      public Match.Builder clearConfidence()
       The confidence of this match. Values range from 0.0 (completely uncertain)
       to 1.0 (completely certain).
       This value is for informational purpose only and is only used to help match
       the best intent within the classification threshold. This value may change
       for the same end-user expression at any time due to a model retraining or
       change in implementation.
       
      float confidence = 5;
      Returns:
      This builder for chaining.