Class 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.GeneratedMessageV3.Builder<Match.Builder>
    implements MatchOrBuilder
     Represents one match result of [MatchIntent][].
     
    Protobuf type google.cloud.dialogflow.cx.v3beta1.Match
    • 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<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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Match.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
      • setField

        public Match.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                      Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
      • clearField

        public Match.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
      • clearOneof

        public Match.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
      • setRepeatedField

        public Match.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              int index,
                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
      • addRepeatedField

        public Match.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Match.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setUnknownFields

        public final Match.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
      • mergeUnknownFields

        public final Match.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>