Class MatchIntentResponse (0.48.0)

public final class MatchIntentResponse extends GeneratedMessageV3 implements MatchIntentResponseOrBuilder

Response of [MatchIntent][].

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

Static Fields

CURRENT_PAGE_FIELD_NUMBER

public static final int CURRENT_PAGE_FIELD_NUMBER
Field Value
TypeDescription
int

MATCHES_FIELD_NUMBER

public static final int MATCHES_FIELD_NUMBER
Field Value
TypeDescription
int

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

TRANSCRIPT_FIELD_NUMBER

public static final int TRANSCRIPT_FIELD_NUMBER
Field Value
TypeDescription
int

TRIGGER_EVENT_FIELD_NUMBER

public static final int TRIGGER_EVENT_FIELD_NUMBER
Field Value
TypeDescription
int

TRIGGER_INTENT_FIELD_NUMBER

public static final int TRIGGER_INTENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MatchIntentResponse getDefaultInstance()
Returns
TypeDescription
MatchIntentResponse

getDescriptor()

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

newBuilder()

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

newBuilder(MatchIntentResponse prototype)

public static MatchIntentResponse.Builder newBuilder(MatchIntentResponse prototype)
Parameter
NameDescription
prototypeMatchIntentResponse
Returns
TypeDescription
MatchIntentResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCurrentPage()

public Page getCurrentPage()

The current Page. Some, not all fields are filled in this message, including but not limited to name and display_name.

.google.cloud.dialogflow.cx.v3.Page current_page = 5;

Returns
TypeDescription
Page

The currentPage.

getCurrentPageOrBuilder()

public PageOrBuilder getCurrentPageOrBuilder()

The current Page. Some, not all fields are filled in this message, including but not limited to name and display_name.

.google.cloud.dialogflow.cx.v3.Page current_page = 5;

Returns
TypeDescription
PageOrBuilder

getDefaultInstanceForType()

public MatchIntentResponse getDefaultInstanceForType()
Returns
TypeDescription
MatchIntentResponse

getMatches(int index)

public Match getMatches(int index)

Match results, if more than one, ordered descendingly by the confidence we have that the particular intent matches the query.

repeated .google.cloud.dialogflow.cx.v3.Match matches = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Match

getMatchesCount()

public int getMatchesCount()

Match results, if more than one, ordered descendingly by the confidence we have that the particular intent matches the query.

repeated .google.cloud.dialogflow.cx.v3.Match matches = 4;

Returns
TypeDescription
int

getMatchesList()

public List<Match> getMatchesList()

Match results, if more than one, ordered descendingly by the confidence we have that the particular intent matches the query.

repeated .google.cloud.dialogflow.cx.v3.Match matches = 4;

Returns
TypeDescription
List<Match>

getMatchesOrBuilder(int index)

public MatchOrBuilder getMatchesOrBuilder(int index)

Match results, if more than one, ordered descendingly by the confidence we have that the particular intent matches the query.

repeated .google.cloud.dialogflow.cx.v3.Match matches = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
MatchOrBuilder

getMatchesOrBuilderList()

public List<? extends MatchOrBuilder> getMatchesOrBuilderList()

Match results, if more than one, ordered descendingly by the confidence we have that the particular intent matches the query.

repeated .google.cloud.dialogflow.cx.v3.Match matches = 4;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3.MatchOrBuilder>

getParserForType()

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

getQueryCase()

public MatchIntentResponse.QueryCase getQueryCase()
Returns
TypeDescription
MatchIntentResponse.QueryCase

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getText()

public String getText()

If natural language text was provided as input, this field will contain a copy of the text.

string text = 1;

Returns
TypeDescription
String

The text.

getTextBytes()

public ByteString getTextBytes()

If natural language text was provided as input, this field will contain a copy of the text.

string text = 1;

Returns
TypeDescription
ByteString

The bytes for text.

getTranscript()

public String getTranscript()

If natural language speech audio was provided as input, this field will contain the transcript for the audio.

string transcript = 3;

Returns
TypeDescription
String

The transcript.

getTranscriptBytes()

public ByteString getTranscriptBytes()

If natural language speech audio was provided as input, this field will contain the transcript for the audio.

string transcript = 3;

Returns
TypeDescription
ByteString

The bytes for transcript.

getTriggerEvent()

public String getTriggerEvent()

If an event was provided as input, this field will contain a copy of the event name.

string trigger_event = 6;

Returns
TypeDescription
String

The triggerEvent.

getTriggerEventBytes()

public ByteString getTriggerEventBytes()

If an event was provided as input, this field will contain a copy of the event name.

string trigger_event = 6;

Returns
TypeDescription
ByteString

The bytes for triggerEvent.

getTriggerIntent()

public String getTriggerIntent()

If an intent was provided as input, this field will contain a copy of the intent identifier. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string trigger_intent = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The triggerIntent.

getTriggerIntentBytes()

public ByteString getTriggerIntentBytes()

If an intent was provided as input, this field will contain a copy of the intent identifier. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string trigger_intent = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for triggerIntent.

hasCurrentPage()

public boolean hasCurrentPage()

The current Page. Some, not all fields are filled in this message, including but not limited to name and display_name.

.google.cloud.dialogflow.cx.v3.Page current_page = 5;

Returns
TypeDescription
boolean

Whether the currentPage field is set.

hasText()

public boolean hasText()

If natural language text was provided as input, this field will contain a copy of the text.

string text = 1;

Returns
TypeDescription
boolean

Whether the text field is set.

hasTranscript()

public boolean hasTranscript()

If natural language speech audio was provided as input, this field will contain the transcript for the audio.

string transcript = 3;

Returns
TypeDescription
boolean

Whether the transcript field is set.

hasTriggerEvent()

public boolean hasTriggerEvent()

If an event was provided as input, this field will contain a copy of the event name.

string trigger_event = 6;

Returns
TypeDescription
boolean

Whether the triggerEvent field is set.

hasTriggerIntent()

public boolean hasTriggerIntent()

If an intent was provided as input, this field will contain a copy of the intent identifier. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string trigger_intent = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
boolean

Whether the triggerIntent 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 MatchIntentResponse.Builder newBuilderForType()
Returns
TypeDescription
MatchIntentResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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