Class MatchIntentResponse.Builder (0.66.0)

public static final class MatchIntentResponse.Builder extends GeneratedMessageV3.Builder<MatchIntentResponse.Builder> implements MatchIntentResponseOrBuilder

Response of [MatchIntent][].

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

Static Methods

getDescriptor()

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

Methods

addAllMatches(Iterable<? extends Match> values)

public MatchIntentResponse.Builder addAllMatches(Iterable<? extends Match> values)

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
values Iterable<? extends com.google.cloud.dialogflow.cx.v3beta1.Match>
Returns
Type Description
MatchIntentResponse.Builder

addMatches(Match value)

public MatchIntentResponse.Builder addMatches(Match value)

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
value Match
Returns
Type Description
MatchIntentResponse.Builder

addMatches(Match.Builder builderForValue)

public MatchIntentResponse.Builder addMatches(Match.Builder builderForValue)

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
builderForValue Match.Builder
Returns
Type Description
MatchIntentResponse.Builder

addMatches(int index, Match value)

public MatchIntentResponse.Builder addMatches(int index, Match value)

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;

Parameters
Name Description
index int
value Match
Returns
Type Description
MatchIntentResponse.Builder

addMatches(int index, Match.Builder builderForValue)

public MatchIntentResponse.Builder addMatches(int index, Match.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue Match.Builder
Returns
Type Description
MatchIntentResponse.Builder

addMatchesBuilder()

public Match.Builder addMatchesBuilder()

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
Match.Builder

addMatchesBuilder(int index)

public Match.Builder addMatchesBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MatchIntentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MatchIntentResponse.Builder
Overrides

build()

public MatchIntentResponse build()
Returns
Type Description
MatchIntentResponse

buildPartial()

public MatchIntentResponse buildPartial()
Returns
Type Description
MatchIntentResponse

clear()

public MatchIntentResponse.Builder clear()
Returns
Type Description
MatchIntentResponse.Builder
Overrides

clearCurrentPage()

public MatchIntentResponse.Builder clearCurrentPage()

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
MatchIntentResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public MatchIntentResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MatchIntentResponse.Builder
Overrides

clearMatches()

public MatchIntentResponse.Builder clearMatches()

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
MatchIntentResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public MatchIntentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MatchIntentResponse.Builder
Overrides

clearQuery()

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

clearText()

public MatchIntentResponse.Builder clearText()

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

string text = 1;

Returns
Type Description
MatchIntentResponse.Builder

This builder for chaining.

clearTranscript()

public MatchIntentResponse.Builder clearTranscript()

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

string transcript = 3;

Returns
Type Description
MatchIntentResponse.Builder

This builder for chaining.

clearTriggerEvent()

public MatchIntentResponse.Builder clearTriggerEvent()

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

string trigger_event = 6;

Returns
Type Description
MatchIntentResponse.Builder

This builder for chaining.

clearTriggerIntent()

public MatchIntentResponse.Builder clearTriggerIntent()

If an intent was provided as input, this field will contain a copy of the intent identifier. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>.

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

Returns
Type Description
MatchIntentResponse.Builder

This builder for chaining.

clone()

public MatchIntentResponse.Builder clone()
Returns
Type Description
MatchIntentResponse.Builder
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.

getCurrentPageBuilder()

public Page.Builder getCurrentPageBuilder()

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.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

getMatchesBuilder(int index)

public Match.Builder getMatchesBuilder(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.Builder

getMatchesBuilderList()

public List<Match.Builder> getMatchesBuilderList()

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<Builder>

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>

getQueryCase()

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

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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>.

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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>.

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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>.

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

Returns
Type Description
boolean

Whether the triggerIntent field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCurrentPage(Page value)

public MatchIntentResponse.Builder mergeCurrentPage(Page value)

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;

Parameter
Name Description
value Page
Returns
Type Description
MatchIntentResponse.Builder

mergeFrom(MatchIntentResponse other)

public MatchIntentResponse.Builder mergeFrom(MatchIntentResponse other)
Parameter
Name Description
other MatchIntentResponse
Returns
Type Description
MatchIntentResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MatchIntentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MatchIntentResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MatchIntentResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MatchIntentResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MatchIntentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MatchIntentResponse.Builder
Overrides

removeMatches(int index)

public MatchIntentResponse.Builder removeMatches(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
MatchIntentResponse.Builder

setCurrentPage(Page value)

public MatchIntentResponse.Builder setCurrentPage(Page value)

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;

Parameter
Name Description
value Page
Returns
Type Description
MatchIntentResponse.Builder

setCurrentPage(Page.Builder builderForValue)

public MatchIntentResponse.Builder setCurrentPage(Page.Builder builderForValue)

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;

Parameter
Name Description
builderForValue Page.Builder
Returns
Type Description
MatchIntentResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MatchIntentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MatchIntentResponse.Builder
Overrides

setMatches(int index, Match value)

public MatchIntentResponse.Builder setMatches(int index, Match value)

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;

Parameters
Name Description
index int
value Match
Returns
Type Description
MatchIntentResponse.Builder

setMatches(int index, Match.Builder builderForValue)

public MatchIntentResponse.Builder setMatches(int index, Match.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue Match.Builder
Returns
Type Description
MatchIntentResponse.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public MatchIntentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MatchIntentResponse.Builder
Overrides

setText(String value)

public MatchIntentResponse.Builder setText(String value)

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

string text = 1;

Parameter
Name Description
value String

The text to set.

Returns
Type Description
MatchIntentResponse.Builder

This builder for chaining.

setTextBytes(ByteString value)

public MatchIntentResponse.Builder setTextBytes(ByteString value)

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

string text = 1;

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
MatchIntentResponse.Builder

This builder for chaining.

setTranscript(String value)

public MatchIntentResponse.Builder setTranscript(String value)

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

string transcript = 3;

Parameter
Name Description
value String

The transcript to set.

Returns
Type Description
MatchIntentResponse.Builder

This builder for chaining.

setTranscriptBytes(ByteString value)

public MatchIntentResponse.Builder setTranscriptBytes(ByteString value)

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

string transcript = 3;

Parameter
Name Description
value ByteString

The bytes for transcript to set.

Returns
Type Description
MatchIntentResponse.Builder

This builder for chaining.

setTriggerEvent(String value)

public MatchIntentResponse.Builder setTriggerEvent(String value)

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

string trigger_event = 6;

Parameter
Name Description
value String

The triggerEvent to set.

Returns
Type Description
MatchIntentResponse.Builder

This builder for chaining.

setTriggerEventBytes(ByteString value)

public MatchIntentResponse.Builder setTriggerEventBytes(ByteString value)

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

string trigger_event = 6;

Parameter
Name Description
value ByteString

The bytes for triggerEvent to set.

Returns
Type Description
MatchIntentResponse.Builder

This builder for chaining.

setTriggerIntent(String value)

public MatchIntentResponse.Builder setTriggerIntent(String value)

If an intent was provided as input, this field will contain a copy of the intent identifier. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>.

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

Parameter
Name Description
value String

The triggerIntent to set.

Returns
Type Description
MatchIntentResponse.Builder

This builder for chaining.

setTriggerIntentBytes(ByteString value)

public MatchIntentResponse.Builder setTriggerIntentBytes(ByteString value)

If an intent was provided as input, this field will contain a copy of the intent identifier. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>.

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

Parameter
Name Description
value ByteString

The bytes for triggerIntent to set.

Returns
Type Description
MatchIntentResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final MatchIntentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MatchIntentResponse.Builder
Overrides