Class Match (0.14.5)

public final class Match extends GeneratedMessageV3 implements MatchOrBuilder

Represents one match result of [MatchIntent][].

Protobuf type google.cloud.dialogflow.cx.v3.Match

Implements

MatchOrBuilder

Static Fields

CONFIDENCE_FIELD_NUMBER

public static final int CONFIDENCE_FIELD_NUMBER
Field Value
TypeDescription
int

EVENT_FIELD_NUMBER

public static final int EVENT_FIELD_NUMBER
Field Value
TypeDescription
int

INTENT_FIELD_NUMBER

public static final int INTENT_FIELD_NUMBER
Field Value
TypeDescription
int

MATCH_TYPE_FIELD_NUMBER

public static final int MATCH_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

PARAMETERS_FIELD_NUMBER

public static final int PARAMETERS_FIELD_NUMBER
Field Value
TypeDescription
int

RESOLVED_INPUT_FIELD_NUMBER

public static final int RESOLVED_INPUT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Match getDefaultInstance()
Returns
TypeDescription
Match

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Match.Builder newBuilder()
Returns
TypeDescription
Match.Builder

newBuilder(Match prototype)

public static Match.Builder newBuilder(Match prototype)
Parameter
NameDescription
prototypeMatch
Returns
TypeDescription
Match.Builder

parseDelimitedFrom(InputStream input)

public static Match parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Match
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Match parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Match
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Match parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Match
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Match parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Match
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Match parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Match
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Match parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Match
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Match parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Match
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Match parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Match
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Match parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Match
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Match parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Match
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Match parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Match
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Match parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Match
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Match> parser()
Returns
TypeDescription
Parser<Match>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

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;

Returns
TypeDescription
float

The confidence.

getDefaultInstanceForType()

public Match getDefaultInstanceForType()
Returns
TypeDescription
Match

getEvent()

public String getEvent()

The event that matched the query. Filled for EVENT, NO_MATCH and NO_INPUT match types.

string event = 6;

Returns
TypeDescription
String

The event.

getEventBytes()

public ByteString getEventBytes()

The event that matched the query. Filled for EVENT, NO_MATCH and NO_INPUT match types.

string event = 6;

Returns
TypeDescription
ByteString

The bytes for event.

getIntent()

public Intent getIntent()

The 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 match type.

.google.cloud.dialogflow.cx.v3.Intent intent = 1;

Returns
TypeDescription
Intent

The intent.

getIntentOrBuilder()

public IntentOrBuilder getIntentOrBuilder()

The 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 match type.

.google.cloud.dialogflow.cx.v3.Intent intent = 1;

Returns
TypeDescription
IntentOrBuilder

getMatchType()

public Match.MatchType getMatchType()

Type of this Match.

.google.cloud.dialogflow.cx.v3.Match.MatchType match_type = 4;

Returns
TypeDescription
Match.MatchType

The matchType.

getMatchTypeValue()

public int getMatchTypeValue()

Type of this Match.

.google.cloud.dialogflow.cx.v3.Match.MatchType match_type = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for matchType.

getParameters()

public 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;

Returns
TypeDescription
Struct

The parameters.

getParametersOrBuilder()

public 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;

Returns
TypeDescription
StructOrBuilder

getParserForType()

public Parser<Match> getParserForType()
Returns
TypeDescription
Parser<Match>
Overrides

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;

Returns
TypeDescription
String

The resolvedInput.

getResolvedInputBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for resolvedInput.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasIntent()

public boolean hasIntent()

The 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 match type.

.google.cloud.dialogflow.cx.v3.Intent intent = 1;

Returns
TypeDescription
boolean

Whether the intent field is set.

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;

Returns
TypeDescription
boolean

Whether the parameters field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Match.Builder newBuilderForType()
Returns
TypeDescription
Match.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Match.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Match.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Match.Builder toBuilder()
Returns
TypeDescription
Match.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException