Class BidiStreamingAnalyzeContentRequest.TurnInput.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BidiStreamingAnalyzeContentRequest.TurnInput.Builder>
com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.Builder
- All Implemented Interfaces:
BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BidiStreamingAnalyzeContentRequest.TurnInput
public static final class BidiStreamingAnalyzeContentRequest.TurnInput.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BidiStreamingAnalyzeContentRequest.TurnInput.Builder>
implements BidiStreamingAnalyzeContentRequest.TurnInputOrBuilder
Input that forms data for a single turn.Protobuf type
google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The input event name.The intent to be triggered on V3 agent.The UTF-8 encoded natural language text to be processed.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEvent()The input event name.com.google.protobuf.ByteStringThe input event name.The intent to be triggered on V3 agent.com.google.protobuf.ByteStringThe intent to be triggered on V3 agent.getText()The UTF-8 encoded natural language text to be processed.com.google.protobuf.ByteStringThe UTF-8 encoded natural language text to be processed.com.google.protobuf.StructOptional.com.google.protobuf.Struct.BuilderOptional.com.google.protobuf.StructOrBuilderOptional.booleanhasEvent()The input event name.booleanThe intent to be triggered on V3 agent.booleanhasText()The UTF-8 encoded natural language text to be processed.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeVirtualAgentParameters(com.google.protobuf.Struct value) Optional.The input event name.setEventBytes(com.google.protobuf.ByteString value) The input event name.The intent to be triggered on V3 agent.setIntentBytes(com.google.protobuf.ByteString value) The intent to be triggered on V3 agent.The UTF-8 encoded natural language text to be processed.setTextBytes(com.google.protobuf.ByteString value) The UTF-8 encoded natural language text to be processed.setVirtualAgentParameters(com.google.protobuf.Struct value) Optional.setVirtualAgentParameters(com.google.protobuf.Struct.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BidiStreamingAnalyzeContentRequest.TurnInput.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BidiStreamingAnalyzeContentRequest.TurnInput.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BidiStreamingAnalyzeContentRequest.TurnInput.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public BidiStreamingAnalyzeContentRequest.TurnInput.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BidiStreamingAnalyzeContentRequest.TurnInput.Builder>
-
mergeFrom
public BidiStreamingAnalyzeContentRequest.TurnInput.Builder mergeFrom(BidiStreamingAnalyzeContentRequest.TurnInput other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BidiStreamingAnalyzeContentRequest.TurnInput.Builder>
-
mergeFrom
public BidiStreamingAnalyzeContentRequest.TurnInput.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BidiStreamingAnalyzeContentRequest.TurnInput.Builder>- Throws:
IOException
-
getMainContentCase
- Specified by:
getMainContentCasein interfaceBidiStreamingAnalyzeContentRequest.TurnInputOrBuilder
-
clearMainContent
-
hasText
public boolean hasText()The UTF-8 encoded natural language text to be processed.
string text = 1;- Specified by:
hasTextin interfaceBidiStreamingAnalyzeContentRequest.TurnInputOrBuilder- Returns:
- Whether the text field is set.
-
getText
The UTF-8 encoded natural language text to be processed.
string text = 1;- Specified by:
getTextin interfaceBidiStreamingAnalyzeContentRequest.TurnInputOrBuilder- Returns:
- The text.
-
getTextBytes
public com.google.protobuf.ByteString getTextBytes()The UTF-8 encoded natural language text to be processed.
string text = 1;- Specified by:
getTextBytesin interfaceBidiStreamingAnalyzeContentRequest.TurnInputOrBuilder- Returns:
- The bytes for text.
-
setText
The UTF-8 encoded natural language text to be processed.
string text = 1;- Parameters:
value- The text to set.- Returns:
- This builder for chaining.
-
clearText
The UTF-8 encoded natural language text to be processed.
string text = 1;- Returns:
- This builder for chaining.
-
setTextBytes
public BidiStreamingAnalyzeContentRequest.TurnInput.Builder setTextBytes(com.google.protobuf.ByteString value) The UTF-8 encoded natural language text to be processed.
string text = 1;- Parameters:
value- The bytes for text to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Specified by:
hasIntentin interfaceBidiStreamingAnalyzeContentRequest.TurnInputOrBuilder- Returns:
- Whether the intent field is set.
-
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) = { ... }- Specified by:
getIntentin interfaceBidiStreamingAnalyzeContentRequest.TurnInputOrBuilder- Returns:
- The intent.
-
getIntentBytes
public com.google.protobuf.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) = { ... }- Specified by:
getIntentBytesin interfaceBidiStreamingAnalyzeContentRequest.TurnInputOrBuilder- Returns:
- The bytes for intent.
-
setIntent
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) = { ... }- Parameters:
value- The intent to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setIntentBytes
public BidiStreamingAnalyzeContentRequest.TurnInput.Builder setIntentBytes(com.google.protobuf.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) = { ... }- Parameters:
value- The bytes for intent to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasEventin interfaceBidiStreamingAnalyzeContentRequest.TurnInputOrBuilder- Returns:
- Whether the event field is set.
-
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;- Specified by:
getEventin interfaceBidiStreamingAnalyzeContentRequest.TurnInputOrBuilder- Returns:
- The event.
-
getEventBytes
public com.google.protobuf.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;- Specified by:
getEventBytesin interfaceBidiStreamingAnalyzeContentRequest.TurnInputOrBuilder- Returns:
- The bytes for event.
-
setEvent
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;- Parameters:
value- The event to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setEventBytes
public BidiStreamingAnalyzeContentRequest.TurnInput.Builder setEventBytes(com.google.protobuf.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;- Parameters:
value- The bytes for event to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasVirtualAgentParametersin interfaceBidiStreamingAnalyzeContentRequest.TurnInputOrBuilder- Returns:
- Whether the virtualAgentParameters field is set.
-
getVirtualAgentParameters
public com.google.protobuf.Struct getVirtualAgentParameters()Optional. Parameters to be passed to the virtual agent.
.google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVirtualAgentParametersin interfaceBidiStreamingAnalyzeContentRequest.TurnInputOrBuilder- Returns:
- The virtualAgentParameters.
-
setVirtualAgentParameters
public BidiStreamingAnalyzeContentRequest.TurnInput.Builder setVirtualAgentParameters(com.google.protobuf.Struct value) Optional. Parameters to be passed to the virtual agent.
.google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setVirtualAgentParameters
public BidiStreamingAnalyzeContentRequest.TurnInput.Builder setVirtualAgentParameters(com.google.protobuf.Struct.Builder builderForValue) Optional. Parameters to be passed to the virtual agent.
.google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
mergeVirtualAgentParameters
public BidiStreamingAnalyzeContentRequest.TurnInput.Builder mergeVirtualAgentParameters(com.google.protobuf.Struct value) Optional. Parameters to be passed to the virtual agent.
.google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearVirtualAgentParameters
Optional. Parameters to be passed to the virtual agent.
.google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getVirtualAgentParametersBuilder
public com.google.protobuf.Struct.Builder getVirtualAgentParametersBuilder()Optional. Parameters to be passed to the virtual agent.
.google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getVirtualAgentParametersOrBuilder
public com.google.protobuf.StructOrBuilder getVirtualAgentParametersOrBuilder()Optional. Parameters to be passed to the virtual agent.
.google.protobuf.Struct virtual_agent_parameters = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVirtualAgentParametersOrBuilderin interfaceBidiStreamingAnalyzeContentRequest.TurnInputOrBuilder
-