Class QueryInput.Builder (0.13.0)

public static final class QueryInput.Builder extends GeneratedMessageV3.Builder<QueryInput.Builder> implements QueryInputOrBuilder

Represents the query input. It can contain one of:

  1. A conversational query in the form of text.
  2. An intent query that specifies which intent to trigger.
  3. Natural language speech audio to be processed.
  4. An event to be triggered.

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

Implements

QueryInputOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QueryInput build()
Returns
TypeDescription
QueryInput

buildPartial()

public QueryInput buildPartial()
Returns
TypeDescription
QueryInput

clear()

public QueryInput.Builder clear()
Returns
TypeDescription
QueryInput.Builder
Overrides

clearAudio()

public QueryInput.Builder clearAudio()

The natural language speech audio to be processed.

.google.cloud.dialogflow.cx.v3.AudioInput audio = 5;

Returns
TypeDescription
QueryInput.Builder

clearDtmf()

public QueryInput.Builder clearDtmf()

The DTMF event to be handled.

.google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 7;

Returns
TypeDescription
QueryInput.Builder

clearEvent()

public QueryInput.Builder clearEvent()

The event to be triggered.

.google.cloud.dialogflow.cx.v3.EventInput event = 6;

Returns
TypeDescription
QueryInput.Builder

clearField(Descriptors.FieldDescriptor field)

public QueryInput.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
QueryInput.Builder
Overrides

clearInput()

public QueryInput.Builder clearInput()
Returns
TypeDescription
QueryInput.Builder

clearIntent()

public QueryInput.Builder clearIntent()

The intent to be triggered.

.google.cloud.dialogflow.cx.v3.IntentInput intent = 3;

Returns
TypeDescription
QueryInput.Builder

clearLanguageCode()

public QueryInput.Builder clearLanguageCode()

Required. The language of the input. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.

string language_code = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
QueryInput.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearText()

public QueryInput.Builder clearText()

The natural language text to be processed.

.google.cloud.dialogflow.cx.v3.TextInput text = 2;

Returns
TypeDescription
QueryInput.Builder

clone()

public QueryInput.Builder clone()
Returns
TypeDescription
QueryInput.Builder
Overrides

getAudio()

public AudioInput getAudio()

The natural language speech audio to be processed.

.google.cloud.dialogflow.cx.v3.AudioInput audio = 5;

Returns
TypeDescription
AudioInput

The audio.

getAudioBuilder()

public AudioInput.Builder getAudioBuilder()

The natural language speech audio to be processed.

.google.cloud.dialogflow.cx.v3.AudioInput audio = 5;

Returns
TypeDescription
AudioInput.Builder

getAudioOrBuilder()

public AudioInputOrBuilder getAudioOrBuilder()

The natural language speech audio to be processed.

.google.cloud.dialogflow.cx.v3.AudioInput audio = 5;

Returns
TypeDescription
AudioInputOrBuilder

getDefaultInstanceForType()

public QueryInput getDefaultInstanceForType()
Returns
TypeDescription
QueryInput

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDtmf()

public DtmfInput getDtmf()

The DTMF event to be handled.

.google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 7;

Returns
TypeDescription
DtmfInput

The dtmf.

getDtmfBuilder()

public DtmfInput.Builder getDtmfBuilder()

The DTMF event to be handled.

.google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 7;

Returns
TypeDescription
DtmfInput.Builder

getDtmfOrBuilder()

public DtmfInputOrBuilder getDtmfOrBuilder()

The DTMF event to be handled.

.google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 7;

Returns
TypeDescription
DtmfInputOrBuilder

getEvent()

public EventInput getEvent()

The event to be triggered.

.google.cloud.dialogflow.cx.v3.EventInput event = 6;

Returns
TypeDescription
EventInput

The event.

getEventBuilder()

public EventInput.Builder getEventBuilder()

The event to be triggered.

.google.cloud.dialogflow.cx.v3.EventInput event = 6;

Returns
TypeDescription
EventInput.Builder

getEventOrBuilder()

public EventInputOrBuilder getEventOrBuilder()

The event to be triggered.

.google.cloud.dialogflow.cx.v3.EventInput event = 6;

Returns
TypeDescription
EventInputOrBuilder

getInputCase()

public QueryInput.InputCase getInputCase()
Returns
TypeDescription
QueryInput.InputCase

getIntent()

public IntentInput getIntent()

The intent to be triggered.

.google.cloud.dialogflow.cx.v3.IntentInput intent = 3;

Returns
TypeDescription
IntentInput

The intent.

getIntentBuilder()

public IntentInput.Builder getIntentBuilder()

The intent to be triggered.

.google.cloud.dialogflow.cx.v3.IntentInput intent = 3;

Returns
TypeDescription
IntentInput.Builder

getIntentOrBuilder()

public IntentInputOrBuilder getIntentOrBuilder()

The intent to be triggered.

.google.cloud.dialogflow.cx.v3.IntentInput intent = 3;

Returns
TypeDescription
IntentInputOrBuilder

getLanguageCode()

public String getLanguageCode()

Required. The language of the input. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.

string language_code = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

Required. The language of the input. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.

string language_code = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for languageCode.

getText()

public TextInput getText()

The natural language text to be processed.

.google.cloud.dialogflow.cx.v3.TextInput text = 2;

Returns
TypeDescription
TextInput

The text.

getTextBuilder()

public TextInput.Builder getTextBuilder()

The natural language text to be processed.

.google.cloud.dialogflow.cx.v3.TextInput text = 2;

Returns
TypeDescription
TextInput.Builder

getTextOrBuilder()

public TextInputOrBuilder getTextOrBuilder()

The natural language text to be processed.

.google.cloud.dialogflow.cx.v3.TextInput text = 2;

Returns
TypeDescription
TextInputOrBuilder

hasAudio()

public boolean hasAudio()

The natural language speech audio to be processed.

.google.cloud.dialogflow.cx.v3.AudioInput audio = 5;

Returns
TypeDescription
boolean

Whether the audio field is set.

hasDtmf()

public boolean hasDtmf()

The DTMF event to be handled.

.google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 7;

Returns
TypeDescription
boolean

Whether the dtmf field is set.

hasEvent()

public boolean hasEvent()

The event to be triggered.

.google.cloud.dialogflow.cx.v3.EventInput event = 6;

Returns
TypeDescription
boolean

Whether the event field is set.

hasIntent()

public boolean hasIntent()

The intent to be triggered.

.google.cloud.dialogflow.cx.v3.IntentInput intent = 3;

Returns
TypeDescription
boolean

Whether the intent field is set.

hasText()

public boolean hasText()

The natural language text to be processed.

.google.cloud.dialogflow.cx.v3.TextInput text = 2;

Returns
TypeDescription
boolean

Whether the text field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAudio(AudioInput value)

public QueryInput.Builder mergeAudio(AudioInput value)

The natural language speech audio to be processed.

.google.cloud.dialogflow.cx.v3.AudioInput audio = 5;

Parameter
NameDescription
valueAudioInput
Returns
TypeDescription
QueryInput.Builder

mergeDtmf(DtmfInput value)

public QueryInput.Builder mergeDtmf(DtmfInput value)

The DTMF event to be handled.

.google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 7;

Parameter
NameDescription
valueDtmfInput
Returns
TypeDescription
QueryInput.Builder

mergeEvent(EventInput value)

public QueryInput.Builder mergeEvent(EventInput value)

The event to be triggered.

.google.cloud.dialogflow.cx.v3.EventInput event = 6;

Parameter
NameDescription
valueEventInput
Returns
TypeDescription
QueryInput.Builder

mergeFrom(QueryInput other)

public QueryInput.Builder mergeFrom(QueryInput other)
Parameter
NameDescription
otherQueryInput
Returns
TypeDescription
QueryInput.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeIntent(IntentInput value)

public QueryInput.Builder mergeIntent(IntentInput value)

The intent to be triggered.

.google.cloud.dialogflow.cx.v3.IntentInput intent = 3;

Parameter
NameDescription
valueIntentInput
Returns
TypeDescription
QueryInput.Builder

mergeText(TextInput value)

public QueryInput.Builder mergeText(TextInput value)

The natural language text to be processed.

.google.cloud.dialogflow.cx.v3.TextInput text = 2;

Parameter
NameDescription
valueTextInput
Returns
TypeDescription
QueryInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueryInput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QueryInput.Builder
Overrides

setAudio(AudioInput value)

public QueryInput.Builder setAudio(AudioInput value)

The natural language speech audio to be processed.

.google.cloud.dialogflow.cx.v3.AudioInput audio = 5;

Parameter
NameDescription
valueAudioInput
Returns
TypeDescription
QueryInput.Builder

setAudio(AudioInput.Builder builderForValue)

public QueryInput.Builder setAudio(AudioInput.Builder builderForValue)

The natural language speech audio to be processed.

.google.cloud.dialogflow.cx.v3.AudioInput audio = 5;

Parameter
NameDescription
builderForValueAudioInput.Builder
Returns
TypeDescription
QueryInput.Builder

setDtmf(DtmfInput value)

public QueryInput.Builder setDtmf(DtmfInput value)

The DTMF event to be handled.

.google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 7;

Parameter
NameDescription
valueDtmfInput
Returns
TypeDescription
QueryInput.Builder

setDtmf(DtmfInput.Builder builderForValue)

public QueryInput.Builder setDtmf(DtmfInput.Builder builderForValue)

The DTMF event to be handled.

.google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 7;

Parameter
NameDescription
builderForValueDtmfInput.Builder
Returns
TypeDescription
QueryInput.Builder

setEvent(EventInput value)

public QueryInput.Builder setEvent(EventInput value)

The event to be triggered.

.google.cloud.dialogflow.cx.v3.EventInput event = 6;

Parameter
NameDescription
valueEventInput
Returns
TypeDescription
QueryInput.Builder

setEvent(EventInput.Builder builderForValue)

public QueryInput.Builder setEvent(EventInput.Builder builderForValue)

The event to be triggered.

.google.cloud.dialogflow.cx.v3.EventInput event = 6;

Parameter
NameDescription
builderForValueEventInput.Builder
Returns
TypeDescription
QueryInput.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIntent(IntentInput value)

public QueryInput.Builder setIntent(IntentInput value)

The intent to be triggered.

.google.cloud.dialogflow.cx.v3.IntentInput intent = 3;

Parameter
NameDescription
valueIntentInput
Returns
TypeDescription
QueryInput.Builder

setIntent(IntentInput.Builder builderForValue)

public QueryInput.Builder setIntent(IntentInput.Builder builderForValue)

The intent to be triggered.

.google.cloud.dialogflow.cx.v3.IntentInput intent = 3;

Parameter
NameDescription
builderForValueIntentInput.Builder
Returns
TypeDescription
QueryInput.Builder

setLanguageCode(String value)

public QueryInput.Builder setLanguageCode(String value)

Required. The language of the input. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.

string language_code = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The languageCode to set.

Returns
TypeDescription
QueryInput.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public QueryInput.Builder setLanguageCodeBytes(ByteString value)

Required. The language of the input. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.

string language_code = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for languageCode to set.

Returns
TypeDescription
QueryInput.Builder

This builder for chaining.

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

public QueryInput.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
QueryInput.Builder
Overrides

setText(TextInput value)

public QueryInput.Builder setText(TextInput value)

The natural language text to be processed.

.google.cloud.dialogflow.cx.v3.TextInput text = 2;

Parameter
NameDescription
valueTextInput
Returns
TypeDescription
QueryInput.Builder

setText(TextInput.Builder builderForValue)

public QueryInput.Builder setText(TextInput.Builder builderForValue)

The natural language text to be processed.

.google.cloud.dialogflow.cx.v3.TextInput text = 2;

Parameter
NameDescription
builderForValueTextInput.Builder
Returns
TypeDescription
QueryInput.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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