Class MatchIntentResponse (0.34.0)

public final class MatchIntentResponse extends GeneratedMessageV3 implements MatchIntentResponseOrBuilder

Response of [MatchIntent][].

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

Static Fields

CURRENT_PAGE_FIELD_NUMBER

public static final int CURRENT_PAGE_FIELD_NUMBER
Field Value
Type Description
int

MATCHES_FIELD_NUMBER

public static final int MATCHES_FIELD_NUMBER
Field Value
Type Description
int

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
Type Description
int

TRANSCRIPT_FIELD_NUMBER

public static final int TRANSCRIPT_FIELD_NUMBER
Field Value
Type Description
int

TRIGGER_EVENT_FIELD_NUMBER

public static final int TRIGGER_EVENT_FIELD_NUMBER
Field Value
Type Description
int

TRIGGER_INTENT_FIELD_NUMBER

public static final int TRIGGER_INTENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MatchIntentResponse getDefaultInstance()
Returns
Type Description
MatchIntentResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static MatchIntentResponse.Builder newBuilder()
Returns
Type Description
MatchIntentResponse.Builder

newBuilder(MatchIntentResponse prototype)

public static MatchIntentResponse.Builder newBuilder(MatchIntentResponse prototype)
Parameter
Name Description
prototype MatchIntentResponse
Returns
Type Description
MatchIntentResponse.Builder

parseDelimitedFrom(InputStream input)

public static MatchIntentResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MatchIntentResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MatchIntentResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MatchIntentResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static MatchIntentResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
MatchIntentResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MatchIntentResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MatchIntentResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MatchIntentResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
MatchIntentResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MatchIntentResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MatchIntentResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MatchIntentResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
MatchIntentResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MatchIntentResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MatchIntentResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static MatchIntentResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MatchIntentResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MatchIntentResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MatchIntentResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static MatchIntentResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
MatchIntentResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MatchIntentResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MatchIntentResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<MatchIntentResponse> parser()
Returns
Type Description
Parser<MatchIntentResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
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.v3beta1.Page current_page = 5;

Returns
Type Description
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.v3beta1.Page current_page = 5;

Returns
Type Description
PageOrBuilder

getDefaultInstanceForType()

public MatchIntentResponse getDefaultInstanceForType()
Returns
Type Description
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.v3beta1.Match matches = 4;

Parameter
Name Description
index int
Returns
Type Description
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.v3beta1.Match matches = 4;

Returns
Type Description
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.v3beta1.Match matches = 4;

Returns
Type Description
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.v3beta1.Match matches = 4;

Parameter
Name Description
index int
Returns
Type Description
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.v3beta1.Match matches = 4;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3beta1.MatchOrBuilder>

getParserForType()

public Parser<MatchIntentResponse> getParserForType()
Returns
Type Description
Parser<MatchIntentResponse>
Overrides

getQueryCase()

public MatchIntentResponse.QueryCase getQueryCase()
Returns
Type Description
MatchIntentResponse.QueryCase

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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.v3beta1.Page current_page = 5;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the triggerIntent field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public MatchIntentResponse.Builder newBuilderForType()
Returns
Type Description
MatchIntentResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MatchIntentResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MatchIntentResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public MatchIntentResponse.Builder toBuilder()
Returns
Type Description
MatchIntentResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException