Class MatchIntentResponse.Builder (0.14.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3beta1.Match>
Returns
TypeDescription
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
NameDescription
valueMatch
Returns
TypeDescription
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
NameDescription
builderForValueMatch.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueMatch
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMatch.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Match.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MatchIntentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MatchIntentResponse.Builder
Overrides

build()

public MatchIntentResponse build()
Returns
TypeDescription
MatchIntentResponse

buildPartial()

public MatchIntentResponse buildPartial()
Returns
TypeDescription
MatchIntentResponse

clear()

public MatchIntentResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
MatchIntentResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public MatchIntentResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
MatchIntentResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public MatchIntentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MatchIntentResponse.Builder
Overrides

clearQuery()

public MatchIntentResponse.Builder clearQuery()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Returns
TypeDescription
MatchIntentResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public MatchIntentResponse getDefaultInstanceForType()
Returns
TypeDescription
MatchIntentResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
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.v3beta1.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.v3beta1.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.v3beta1.Match matches = 4;

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

getQueryCase()

public MatchIntentResponse.QueryCase getQueryCase()
Returns
TypeDescription
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
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.v3beta1.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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valuePage
Returns
TypeDescription
MatchIntentResponse.Builder

mergeFrom(MatchIntentResponse other)

public MatchIntentResponse.Builder mergeFrom(MatchIntentResponse other)
Parameter
NameDescription
otherMatchIntentResponse
Returns
TypeDescription
MatchIntentResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MatchIntentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MatchIntentResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MatchIntentResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MatchIntentResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MatchIntentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuePage
Returns
TypeDescription
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
NameDescription
builderForValuePage.Builder
Returns
TypeDescription
MatchIntentResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MatchIntentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueMatch
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMatch.Builder
Returns
TypeDescription
MatchIntentResponse.Builder

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

public MatchIntentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The text to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for text to set.

Returns
TypeDescription
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
NameDescription
valueString

The transcript to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for transcript to set.

Returns
TypeDescription
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
NameDescription
valueString

The triggerEvent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for triggerEvent to set.

Returns
TypeDescription
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/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Parameter
NameDescription
valueString

The triggerIntent to set.

Returns
TypeDescription
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/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Parameter
NameDescription
valueByteString

The bytes for triggerIntent to set.

Returns
TypeDescription
MatchIntentResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final MatchIntentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MatchIntentResponse.Builder
Overrides