public static final class ConversationTurn.UserInput extends GeneratedMessageV3 implements ConversationTurn.UserInputOrBuilder
The input from the human user.
Protobuf type google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput
Static Fields
public static final int ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER
Field Value
public static final int INJECTED_PARAMETERS_FIELD_NUMBER
Field Value
public static final int INPUT_FIELD_NUMBER
Field Value
public static final int IS_WEBHOOK_ENABLED_FIELD_NUMBER
Field Value
Static Methods
public static ConversationTurn.UserInput getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static ConversationTurn.UserInput.Builder newBuilder()
Returns
public static ConversationTurn.UserInput.Builder newBuilder(ConversationTurn.UserInput prototype)
Parameter
Returns
public static ConversationTurn.UserInput parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ConversationTurn.UserInput parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConversationTurn.UserInput parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
public static ConversationTurn.UserInput parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConversationTurn.UserInput parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static ConversationTurn.UserInput parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConversationTurn.UserInput parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ConversationTurn.UserInput parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConversationTurn.UserInput parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ConversationTurn.UserInput parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConversationTurn.UserInput parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static ConversationTurn.UserInput parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<ConversationTurn.UserInput> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public ConversationTurn.UserInput getDefaultInstanceForType()
Returns
public boolean getEnableSentimentAnalysis()
Whether sentiment analysis is enabled.
bool enable_sentiment_analysis = 7;
Returns
Type |
Description |
boolean |
The enableSentimentAnalysis.
|
public Struct getInjectedParameters()
Parameters that need to be injected into the conversation during intent
detection.
.google.protobuf.Struct injected_parameters = 2;
Returns
Type |
Description |
Struct |
The injectedParameters.
|
public StructOrBuilder getInjectedParametersOrBuilder()
Parameters that need to be injected into the conversation during intent
detection.
.google.protobuf.Struct injected_parameters = 2;
Returns
public QueryInput getInput()
Supports text input, event input,
dtmf input in the test case.
.google.cloud.dialogflow.cx.v3beta1.QueryInput input = 5;
Returns
public QueryInputOrBuilder getInputOrBuilder()
Supports text input, event input,
dtmf input in the test case.
.google.cloud.dialogflow.cx.v3beta1.QueryInput input = 5;
Returns
public boolean getIsWebhookEnabled()
If webhooks should be allowed to trigger in response to the user
utterance. Often if parameters are injected, webhooks should not be
enabled.
bool is_webhook_enabled = 3;
Returns
Type |
Description |
boolean |
The isWebhookEnabled.
|
public Parser<ConversationTurn.UserInput> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public boolean hasInjectedParameters()
Parameters that need to be injected into the conversation during intent
detection.
.google.protobuf.Struct injected_parameters = 2;
Returns
Type |
Description |
boolean |
Whether the injectedParameters field is set.
|
public boolean hasInput()
Supports text input, event input,
dtmf input in the test case.
.google.cloud.dialogflow.cx.v3beta1.QueryInput input = 5;
Returns
Type |
Description |
boolean |
Whether the input field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public ConversationTurn.UserInput.Builder newBuilderForType()
Returns
protected ConversationTurn.UserInput.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public ConversationTurn.UserInput.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions