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
MATCHES_FIELD_NUMBER
public static final int MATCHES_FIELD_NUMBER
Field Value
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
Field Value
TRANSCRIPT_FIELD_NUMBER
public static final int TRANSCRIPT_FIELD_NUMBER
Field Value
TRIGGER_EVENT_FIELD_NUMBER
public static final int TRIGGER_EVENT_FIELD_NUMBER
Field Value
TRIGGER_INTENT_FIELD_NUMBER
public static final int TRIGGER_INTENT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static MatchIntentResponse getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static MatchIntentResponse.Builder newBuilder()
Returns
newBuilder(MatchIntentResponse prototype)
public static MatchIntentResponse.Builder newBuilder(MatchIntentResponse prototype)
Parameter
Returns
public static MatchIntentResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static MatchIntentResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static MatchIntentResponse parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MatchIntentResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static MatchIntentResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MatchIntentResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MatchIntentResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static MatchIntentResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MatchIntentResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static MatchIntentResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static MatchIntentResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MatchIntentResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<MatchIntentResponse> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
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.v3.Page current_page = 5;
Returns
getDefaultInstanceForType()
public MatchIntentResponse getDefaultInstanceForType()
Returns
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
Name |
Description |
index |
int
|
Returns
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
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
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
Name |
Description |
index |
int
|
Returns
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
Type |
Description |
List<? extends com.google.cloud.dialogflow.cx.v3.MatchOrBuilder> |
|
getParserForType()
public Parser<MatchIntentResponse> getParserForType()
Returns
Overrides
getQueryCase()
public MatchIntentResponse.QueryCase getQueryCase()
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
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
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.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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
Type |
Description |
boolean |
Whether the currentPage field is set.
|
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public MatchIntentResponse.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MatchIntentResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public MatchIntentResponse.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions