Class BidiStreamingAnalyzeContentRequest.TurnInput.Builder (4.87.0)

public static final class BidiStreamingAnalyzeContentRequest.TurnInput.Builder extends GeneratedMessageV3.Builder<BidiStreamingAnalyzeContentRequest.TurnInput.Builder> implements BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder

Input that forms data for a single turn.

Protobuf type google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BidiStreamingAnalyzeContentRequest.TurnInput build()
Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput

buildPartial()

public BidiStreamingAnalyzeContentRequest.TurnInput buildPartial()
Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput

clear()

public BidiStreamingAnalyzeContentRequest.TurnInput.Builder clear()
Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput.Builder
Overrides

clearEvent()

public BidiStreamingAnalyzeContentRequest.TurnInput.Builder clearEvent()

The input event name. This can only be sent once and would cancel the ongoing speech recognition if any. To trigger the Welcome intent use the event "WELCOME"

string event = 3;

Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIntent()

public BidiStreamingAnalyzeContentRequest.TurnInput.Builder clearIntent()

The intent to be triggered on V3 agent. Format: projects/<Project ID>/locations/<Location ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>. This can only be used to trigger the Welcome intent id if the modality is text.

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

Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput.Builder

This builder for chaining.

clearMainContent()

public BidiStreamingAnalyzeContentRequest.TurnInput.Builder clearMainContent()
Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearText()

public BidiStreamingAnalyzeContentRequest.TurnInput.Builder clearText()

The UTF-8 encoded natural language text to be processed.

string text = 1;

Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput.Builder

This builder for chaining.

clearVirtualAgentParameters()

public BidiStreamingAnalyzeContentRequest.TurnInput.Builder clearVirtualAgentParameters()

Optional. Parameters to be passed to the virtual agent.

.google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput.Builder

clone()

public BidiStreamingAnalyzeContentRequest.TurnInput.Builder clone()
Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput.Builder
Overrides

getDefaultInstanceForType()

public BidiStreamingAnalyzeContentRequest.TurnInput getDefaultInstanceForType()
Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput

getDescriptorForType()

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

getEvent()

public String getEvent()

The input event name. This can only be sent once and would cancel the ongoing speech recognition if any. To trigger the Welcome intent use the event "WELCOME"

string event = 3;

Returns
Type Description
String

The event.

getEventBytes()

public ByteString getEventBytes()

The input event name. This can only be sent once and would cancel the ongoing speech recognition if any. To trigger the Welcome intent use the event "WELCOME"

string event = 3;

Returns
Type Description
ByteString

The bytes for event.

getIntent()

public String getIntent()

The intent to be triggered on V3 agent. Format: projects/<Project ID>/locations/<Location ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>. This can only be used to trigger the Welcome intent id if the modality is text.

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

Returns
Type Description
String

The intent.

getIntentBytes()

public ByteString getIntentBytes()

The intent to be triggered on V3 agent. Format: projects/<Project ID>/locations/<Location ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>. This can only be used to trigger the Welcome intent id if the modality is text.

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

Returns
Type Description
ByteString

The bytes for intent.

getMainContentCase()

public BidiStreamingAnalyzeContentRequest.TurnInput.MainContentCase getMainContentCase()
Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput.MainContentCase

getText()

public String getText()

The UTF-8 encoded natural language text to be processed.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

The UTF-8 encoded natural language text to be processed.

string text = 1;

Returns
Type Description
ByteString

The bytes for text.

getVirtualAgentParameters()

public Struct getVirtualAgentParameters()

Optional. Parameters to be passed to the virtual agent.

.google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The virtualAgentParameters.

getVirtualAgentParametersBuilder()

public Struct.Builder getVirtualAgentParametersBuilder()

Optional. Parameters to be passed to the virtual agent.

.google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getVirtualAgentParametersOrBuilder()

public StructOrBuilder getVirtualAgentParametersOrBuilder()

Optional. Parameters to be passed to the virtual agent.

.google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

hasEvent()

public boolean hasEvent()

The input event name. This can only be sent once and would cancel the ongoing speech recognition if any. To trigger the Welcome intent use the event "WELCOME"

string event = 3;

Returns
Type Description
boolean

Whether the event field is set.

hasIntent()

public boolean hasIntent()

The intent to be triggered on V3 agent. Format: projects/<Project ID>/locations/<Location ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>. This can only be used to trigger the Welcome intent id if the modality is text.

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

Returns
Type Description
boolean

Whether the intent field is set.

hasText()

public boolean hasText()

The UTF-8 encoded natural language text to be processed.

string text = 1;

Returns
Type Description
boolean

Whether the text field is set.

hasVirtualAgentParameters()

public boolean hasVirtualAgentParameters()

Optional. Parameters to be passed to the virtual agent.

.google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the virtualAgentParameters field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BidiStreamingAnalyzeContentRequest.TurnInput other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVirtualAgentParameters(Struct value)

public BidiStreamingAnalyzeContentRequest.TurnInput.Builder mergeVirtualAgentParameters(Struct value)

Optional. Parameters to be passed to the virtual agent.

.google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput.Builder

setEvent(String value)

public BidiStreamingAnalyzeContentRequest.TurnInput.Builder setEvent(String value)

The input event name. This can only be sent once and would cancel the ongoing speech recognition if any. To trigger the Welcome intent use the event "WELCOME"

string event = 3;

Parameter
Name Description
value String

The event to set.

Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput.Builder

This builder for chaining.

setEventBytes(ByteString value)

public BidiStreamingAnalyzeContentRequest.TurnInput.Builder setEventBytes(ByteString value)

The input event name. This can only be sent once and would cancel the ongoing speech recognition if any. To trigger the Welcome intent use the event "WELCOME"

string event = 3;

Parameter
Name Description
value ByteString

The bytes for event to set.

Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIntent(String value)

public BidiStreamingAnalyzeContentRequest.TurnInput.Builder setIntent(String value)

The intent to be triggered on V3 agent. Format: projects/<Project ID>/locations/<Location ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>. This can only be used to trigger the Welcome intent id if the modality is text.

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

Parameter
Name Description
value String

The intent to set.

Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput.Builder

This builder for chaining.

setIntentBytes(ByteString value)

public BidiStreamingAnalyzeContentRequest.TurnInput.Builder setIntentBytes(ByteString value)

The intent to be triggered on V3 agent. Format: projects/<Project ID>/locations/<Location ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>. This can only be used to trigger the Welcome intent id if the modality is text.

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

Parameter
Name Description
value ByteString

The bytes for intent to set.

Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput.Builder

This builder for chaining.

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

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

setText(String value)

public BidiStreamingAnalyzeContentRequest.TurnInput.Builder setText(String value)

The UTF-8 encoded natural language text to be processed.

string text = 1;

Parameter
Name Description
value String

The text to set.

Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput.Builder

This builder for chaining.

setTextBytes(ByteString value)

public BidiStreamingAnalyzeContentRequest.TurnInput.Builder setTextBytes(ByteString value)

The UTF-8 encoded natural language text to be processed.

string text = 1;

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVirtualAgentParameters(Struct value)

public BidiStreamingAnalyzeContentRequest.TurnInput.Builder setVirtualAgentParameters(Struct value)

Optional. Parameters to be passed to the virtual agent.

.google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput.Builder

setVirtualAgentParameters(Struct.Builder builderForValue)

public BidiStreamingAnalyzeContentRequest.TurnInput.Builder setVirtualAgentParameters(Struct.Builder builderForValue)

Optional. Parameters to be passed to the virtual agent.

.google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BidiStreamingAnalyzeContentRequest.TurnInput.Builder