Class WebhookRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dialogflow.cx.v3.WebhookRequest
-
- All Implemented Interfaces:
WebhookRequestOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class WebhookRequest extends com.google.protobuf.GeneratedMessageV3 implements WebhookRequestOrBuilder
The request message for a webhook call. The request is sent as a JSON object and the field names will be presented in camel cases. You may see undocumented fields in an actual request. These fields are used internally by Dialogflow and should be ignored.
Protobuf typegoogle.cloud.dialogflow.cx.v3.WebhookRequest
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebhookRequest.Builder
The request message for a webhook call.static class
WebhookRequest.FulfillmentInfo
Represents fulfillment information communicated to the webhook.static interface
WebhookRequest.FulfillmentInfoOrBuilder
static class
WebhookRequest.IntentInfo
Represents intent information communicated to the webhook.static interface
WebhookRequest.IntentInfoOrBuilder
static class
WebhookRequest.QueryCase
static class
WebhookRequest.SentimentAnalysisResult
Represents the result of sentiment analysis.static interface
WebhookRequest.SentimentAnalysisResultOrBuilder
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
DETECT_INTENT_RESPONSE_ID_FIELD_NUMBER
static int
DTMF_DIGITS_FIELD_NUMBER
static int
FULFILLMENT_INFO_FIELD_NUMBER
static int
INTENT_INFO_FIELD_NUMBER
static int
LANGUAGE_CODE_FIELD_NUMBER
static int
MESSAGES_FIELD_NUMBER
static int
PAGE_INFO_FIELD_NUMBER
static int
PAYLOAD_FIELD_NUMBER
static int
SENTIMENT_ANALYSIS_RESULT_FIELD_NUMBER
static int
SESSION_INFO_FIELD_NUMBER
static int
TEXT_FIELD_NUMBER
static int
TRANSCRIPT_FIELD_NUMBER
static int
TRIGGER_EVENT_FIELD_NUMBER
static int
TRIGGER_INTENT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static WebhookRequest
getDefaultInstance()
WebhookRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDetectIntentResponseId()
Always present.com.google.protobuf.ByteString
getDetectIntentResponseIdBytes()
Always present.String
getDtmfDigits()
If [DTMF][google.cloud.dialogflow.cx.v3.DtmfInput] was provided as input, this field will contain the DTMF digits.com.google.protobuf.ByteString
getDtmfDigitsBytes()
If [DTMF][google.cloud.dialogflow.cx.v3.DtmfInput] was provided as input, this field will contain the DTMF digits.WebhookRequest.FulfillmentInfo
getFulfillmentInfo()
Always present.WebhookRequest.FulfillmentInfoOrBuilder
getFulfillmentInfoOrBuilder()
Always present.WebhookRequest.IntentInfo
getIntentInfo()
Information about the last matched intent.WebhookRequest.IntentInfoOrBuilder
getIntentInfoOrBuilder()
Information about the last matched intent.String
getLanguageCode()
The language code specified in the [original request][QueryInput.language_code].com.google.protobuf.ByteString
getLanguageCodeBytes()
The language code specified in the [original request][QueryInput.language_code].ResponseMessage
getMessages(int index)
The list of rich message responses to present to the user.int
getMessagesCount()
The list of rich message responses to present to the user.List<ResponseMessage>
getMessagesList()
The list of rich message responses to present to the user.ResponseMessageOrBuilder
getMessagesOrBuilder(int index)
The list of rich message responses to present to the user.List<? extends ResponseMessageOrBuilder>
getMessagesOrBuilderList()
The list of rich message responses to present to the user.PageInfo
getPageInfo()
Information about page status.PageInfoOrBuilder
getPageInfoOrBuilder()
Information about page status.com.google.protobuf.Parser<WebhookRequest>
getParserForType()
com.google.protobuf.Struct
getPayload()
Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].com.google.protobuf.StructOrBuilder
getPayloadOrBuilder()
Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].WebhookRequest.QueryCase
getQueryCase()
WebhookRequest.SentimentAnalysisResult
getSentimentAnalysisResult()
The sentiment analysis result of the current user request.WebhookRequest.SentimentAnalysisResultOrBuilder
getSentimentAnalysisResultOrBuilder()
The sentiment analysis result of the current user request.int
getSerializedSize()
SessionInfo
getSessionInfo()
Information about session status.SessionInfoOrBuilder
getSessionInfoOrBuilder()
Information about session status.String
getText()
If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field will contain a copy of the text.com.google.protobuf.ByteString
getTextBytes()
If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field will contain a copy of the text.String
getTranscript()
If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, this field will contain the transcript for the audio.com.google.protobuf.ByteString
getTranscriptBytes()
If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, this field will contain the transcript for the audio.String
getTriggerEvent()
If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain the name of the event.com.google.protobuf.ByteString
getTriggerEventBytes()
If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain the name of the event.String
getTriggerIntent()
If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will contain a copy of the intent identifier.com.google.protobuf.ByteString
getTriggerIntentBytes()
If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will contain a copy of the intent identifier.boolean
hasDtmfDigits()
If [DTMF][google.cloud.dialogflow.cx.v3.DtmfInput] was provided as input, this field will contain the DTMF digits.boolean
hasFulfillmentInfo()
Always present.int
hashCode()
boolean
hasIntentInfo()
Information about the last matched intent.boolean
hasPageInfo()
Information about page status.boolean
hasPayload()
Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].boolean
hasSentimentAnalysisResult()
The sentiment analysis result of the current user request.boolean
hasSessionInfo()
Information about session status.boolean
hasText()
If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field will contain a copy of the text.boolean
hasTranscript()
If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, this field will contain the transcript for the audio.boolean
hasTriggerEvent()
If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain the name of the event.boolean
hasTriggerIntent()
If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will contain a copy of the intent identifier.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static WebhookRequest.Builder
newBuilder()
static WebhookRequest.Builder
newBuilder(WebhookRequest prototype)
WebhookRequest.Builder
newBuilderForType()
protected WebhookRequest.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static WebhookRequest
parseDelimitedFrom(InputStream input)
static WebhookRequest
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static WebhookRequest
parseFrom(byte[] data)
static WebhookRequest
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static WebhookRequest
parseFrom(com.google.protobuf.ByteString data)
static WebhookRequest
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static WebhookRequest
parseFrom(com.google.protobuf.CodedInputStream input)
static WebhookRequest
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static WebhookRequest
parseFrom(InputStream input)
static WebhookRequest
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static WebhookRequest
parseFrom(ByteBuffer data)
static WebhookRequest
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<WebhookRequest>
parser()
WebhookRequest.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
DETECT_INTENT_RESPONSE_ID_FIELD_NUMBER
public static final int DETECT_INTENT_RESPONSE_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRIGGER_INTENT_FIELD_NUMBER
public static final int TRIGGER_INTENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRANSCRIPT_FIELD_NUMBER
public static final int TRANSCRIPT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRIGGER_EVENT_FIELD_NUMBER
public static final int TRIGGER_EVENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DTMF_DIGITS_FIELD_NUMBER
public static final int DTMF_DIGITS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FULFILLMENT_INFO_FIELD_NUMBER
public static final int FULFILLMENT_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INTENT_INFO_FIELD_NUMBER
public static final int INTENT_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAGE_INFO_FIELD_NUMBER
public static final int PAGE_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SESSION_INFO_FIELD_NUMBER
public static final int SESSION_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MESSAGES_FIELD_NUMBER
public static final int MESSAGES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SENTIMENT_ANALYSIS_RESULT_FIELD_NUMBER
public static final int SENTIMENT_ANALYSIS_RESULT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getQueryCase
public WebhookRequest.QueryCase getQueryCase()
- Specified by:
getQueryCase
in interfaceWebhookRequestOrBuilder
-
getDetectIntentResponseId
public String getDetectIntentResponseId()
Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that will be returned to the API caller.
string detect_intent_response_id = 1;
- Specified by:
getDetectIntentResponseId
in interfaceWebhookRequestOrBuilder
- Returns:
- The detectIntentResponseId.
-
getDetectIntentResponseIdBytes
public com.google.protobuf.ByteString getDetectIntentResponseIdBytes()
Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that will be returned to the API caller.
string detect_intent_response_id = 1;
- Specified by:
getDetectIntentResponseIdBytes
in interfaceWebhookRequestOrBuilder
- Returns:
- The bytes for detectIntentResponseId.
-
hasText
public boolean hasText()
If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field will contain a copy of the text.
string text = 10;
- Specified by:
hasText
in interfaceWebhookRequestOrBuilder
- Returns:
- Whether the text field is set.
-
getText
public String getText()
If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field will contain a copy of the text.
string text = 10;
- Specified by:
getText
in interfaceWebhookRequestOrBuilder
- Returns:
- The text.
-
getTextBytes
public com.google.protobuf.ByteString getTextBytes()
If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field will contain a copy of the text.
string text = 10;
- Specified by:
getTextBytes
in interfaceWebhookRequestOrBuilder
- Returns:
- The bytes for text.
-
hasTriggerIntent
public boolean hasTriggerIntent()
If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] 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 = 11 [(.google.api.resource_reference) = { ... }
- Specified by:
hasTriggerIntent
in interfaceWebhookRequestOrBuilder
- Returns:
- Whether the triggerIntent field is set.
-
getTriggerIntent
public String getTriggerIntent()
If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] 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 = 11 [(.google.api.resource_reference) = { ... }
- Specified by:
getTriggerIntent
in interfaceWebhookRequestOrBuilder
- Returns:
- The triggerIntent.
-
getTriggerIntentBytes
public com.google.protobuf.ByteString getTriggerIntentBytes()
If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] 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 = 11 [(.google.api.resource_reference) = { ... }
- Specified by:
getTriggerIntentBytes
in interfaceWebhookRequestOrBuilder
- Returns:
- The bytes for triggerIntent.
-
hasTranscript
public boolean hasTranscript()
If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, this field will contain the transcript for the audio.
string transcript = 12;
- Specified by:
hasTranscript
in interfaceWebhookRequestOrBuilder
- Returns:
- Whether the transcript field is set.
-
getTranscript
public String getTranscript()
If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, this field will contain the transcript for the audio.
string transcript = 12;
- Specified by:
getTranscript
in interfaceWebhookRequestOrBuilder
- Returns:
- The transcript.
-
getTranscriptBytes
public com.google.protobuf.ByteString getTranscriptBytes()
If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, this field will contain the transcript for the audio.
string transcript = 12;
- Specified by:
getTranscriptBytes
in interfaceWebhookRequestOrBuilder
- Returns:
- The bytes for transcript.
-
hasTriggerEvent
public boolean hasTriggerEvent()
If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain the name of the event.
string trigger_event = 14;
- Specified by:
hasTriggerEvent
in interfaceWebhookRequestOrBuilder
- Returns:
- Whether the triggerEvent field is set.
-
getTriggerEvent
public String getTriggerEvent()
If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain the name of the event.
string trigger_event = 14;
- Specified by:
getTriggerEvent
in interfaceWebhookRequestOrBuilder
- Returns:
- The triggerEvent.
-
getTriggerEventBytes
public com.google.protobuf.ByteString getTriggerEventBytes()
If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain the name of the event.
string trigger_event = 14;
- Specified by:
getTriggerEventBytes
in interfaceWebhookRequestOrBuilder
- Returns:
- The bytes for triggerEvent.
-
hasDtmfDigits
public boolean hasDtmfDigits()
If [DTMF][google.cloud.dialogflow.cx.v3.DtmfInput] was provided as input, this field will contain the DTMF digits.
string dtmf_digits = 17;
- Specified by:
hasDtmfDigits
in interfaceWebhookRequestOrBuilder
- Returns:
- Whether the dtmfDigits field is set.
-
getDtmfDigits
public String getDtmfDigits()
If [DTMF][google.cloud.dialogflow.cx.v3.DtmfInput] was provided as input, this field will contain the DTMF digits.
string dtmf_digits = 17;
- Specified by:
getDtmfDigits
in interfaceWebhookRequestOrBuilder
- Returns:
- The dtmfDigits.
-
getDtmfDigitsBytes
public com.google.protobuf.ByteString getDtmfDigitsBytes()
If [DTMF][google.cloud.dialogflow.cx.v3.DtmfInput] was provided as input, this field will contain the DTMF digits.
string dtmf_digits = 17;
- Specified by:
getDtmfDigitsBytes
in interfaceWebhookRequestOrBuilder
- Returns:
- The bytes for dtmfDigits.
-
getLanguageCode
public String getLanguageCode()
The language code specified in the [original request][QueryInput.language_code].
string language_code = 15;
- Specified by:
getLanguageCode
in interfaceWebhookRequestOrBuilder
- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.ByteString getLanguageCodeBytes()
The language code specified in the [original request][QueryInput.language_code].
string language_code = 15;
- Specified by:
getLanguageCodeBytes
in interfaceWebhookRequestOrBuilder
- Returns:
- The bytes for languageCode.
-
hasFulfillmentInfo
public boolean hasFulfillmentInfo()
Always present. Information about the fulfillment that triggered this webhook call.
.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillment_info = 6;
- Specified by:
hasFulfillmentInfo
in interfaceWebhookRequestOrBuilder
- Returns:
- Whether the fulfillmentInfo field is set.
-
getFulfillmentInfo
public WebhookRequest.FulfillmentInfo getFulfillmentInfo()
Always present. Information about the fulfillment that triggered this webhook call.
.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillment_info = 6;
- Specified by:
getFulfillmentInfo
in interfaceWebhookRequestOrBuilder
- Returns:
- The fulfillmentInfo.
-
getFulfillmentInfoOrBuilder
public WebhookRequest.FulfillmentInfoOrBuilder getFulfillmentInfoOrBuilder()
Always present. Information about the fulfillment that triggered this webhook call.
.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillment_info = 6;
- Specified by:
getFulfillmentInfoOrBuilder
in interfaceWebhookRequestOrBuilder
-
hasIntentInfo
public boolean hasIntentInfo()
Information about the last matched intent.
.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3;
- Specified by:
hasIntentInfo
in interfaceWebhookRequestOrBuilder
- Returns:
- Whether the intentInfo field is set.
-
getIntentInfo
public WebhookRequest.IntentInfo getIntentInfo()
Information about the last matched intent.
.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3;
- Specified by:
getIntentInfo
in interfaceWebhookRequestOrBuilder
- Returns:
- The intentInfo.
-
getIntentInfoOrBuilder
public WebhookRequest.IntentInfoOrBuilder getIntentInfoOrBuilder()
Information about the last matched intent.
.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3;
- Specified by:
getIntentInfoOrBuilder
in interfaceWebhookRequestOrBuilder
-
hasPageInfo
public boolean hasPageInfo()
Information about page status.
.google.cloud.dialogflow.cx.v3.PageInfo page_info = 4;
- Specified by:
hasPageInfo
in interfaceWebhookRequestOrBuilder
- Returns:
- Whether the pageInfo field is set.
-
getPageInfo
public PageInfo getPageInfo()
Information about page status.
.google.cloud.dialogflow.cx.v3.PageInfo page_info = 4;
- Specified by:
getPageInfo
in interfaceWebhookRequestOrBuilder
- Returns:
- The pageInfo.
-
getPageInfoOrBuilder
public PageInfoOrBuilder getPageInfoOrBuilder()
Information about page status.
.google.cloud.dialogflow.cx.v3.PageInfo page_info = 4;
- Specified by:
getPageInfoOrBuilder
in interfaceWebhookRequestOrBuilder
-
hasSessionInfo
public boolean hasSessionInfo()
Information about session status.
.google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5;
- Specified by:
hasSessionInfo
in interfaceWebhookRequestOrBuilder
- Returns:
- Whether the sessionInfo field is set.
-
getSessionInfo
public SessionInfo getSessionInfo()
Information about session status.
.google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5;
- Specified by:
getSessionInfo
in interfaceWebhookRequestOrBuilder
- Returns:
- The sessionInfo.
-
getSessionInfoOrBuilder
public SessionInfoOrBuilder getSessionInfoOrBuilder()
Information about session status.
.google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5;
- Specified by:
getSessionInfoOrBuilder
in interfaceWebhookRequestOrBuilder
-
getMessagesList
public List<ResponseMessage> getMessagesList()
The list of rich message responses to present to the user. Webhook can choose to append or replace this list in [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3.WebhookResponse.fulfillment_response];
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7;
- Specified by:
getMessagesList
in interfaceWebhookRequestOrBuilder
-
getMessagesOrBuilderList
public List<? extends ResponseMessageOrBuilder> getMessagesOrBuilderList()
The list of rich message responses to present to the user. Webhook can choose to append or replace this list in [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3.WebhookResponse.fulfillment_response];
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7;
- Specified by:
getMessagesOrBuilderList
in interfaceWebhookRequestOrBuilder
-
getMessagesCount
public int getMessagesCount()
The list of rich message responses to present to the user. Webhook can choose to append or replace this list in [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3.WebhookResponse.fulfillment_response];
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7;
- Specified by:
getMessagesCount
in interfaceWebhookRequestOrBuilder
-
getMessages
public ResponseMessage getMessages(int index)
The list of rich message responses to present to the user. Webhook can choose to append or replace this list in [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3.WebhookResponse.fulfillment_response];
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7;
- Specified by:
getMessages
in interfaceWebhookRequestOrBuilder
-
getMessagesOrBuilder
public ResponseMessageOrBuilder getMessagesOrBuilder(int index)
The list of rich message responses to present to the user. Webhook can choose to append or replace this list in [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3.WebhookResponse.fulfillment_response];
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7;
- Specified by:
getMessagesOrBuilder
in interfaceWebhookRequestOrBuilder
-
hasPayload
public boolean hasPayload()
Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
.google.protobuf.Struct payload = 8;
- Specified by:
hasPayload
in interfaceWebhookRequestOrBuilder
- Returns:
- Whether the payload field is set.
-
getPayload
public com.google.protobuf.Struct getPayload()
Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
.google.protobuf.Struct payload = 8;
- Specified by:
getPayload
in interfaceWebhookRequestOrBuilder
- Returns:
- The payload.
-
getPayloadOrBuilder
public com.google.protobuf.StructOrBuilder getPayloadOrBuilder()
Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
.google.protobuf.Struct payload = 8;
- Specified by:
getPayloadOrBuilder
in interfaceWebhookRequestOrBuilder
-
hasSentimentAnalysisResult
public boolean hasSentimentAnalysisResult()
The sentiment analysis result of the current user request. The field is filled when sentiment analysis is configured to be enabled for the request.
.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9;
- Specified by:
hasSentimentAnalysisResult
in interfaceWebhookRequestOrBuilder
- Returns:
- Whether the sentimentAnalysisResult field is set.
-
getSentimentAnalysisResult
public WebhookRequest.SentimentAnalysisResult getSentimentAnalysisResult()
The sentiment analysis result of the current user request. The field is filled when sentiment analysis is configured to be enabled for the request.
.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9;
- Specified by:
getSentimentAnalysisResult
in interfaceWebhookRequestOrBuilder
- Returns:
- The sentimentAnalysisResult.
-
getSentimentAnalysisResultOrBuilder
public WebhookRequest.SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder()
The sentiment analysis result of the current user request. The field is filled when sentiment analysis is configured to be enabled for the request.
.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9;
- Specified by:
getSentimentAnalysisResultOrBuilder
in interfaceWebhookRequestOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static WebhookRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static WebhookRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static WebhookRequest parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static WebhookRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static WebhookRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static WebhookRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public WebhookRequest.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static WebhookRequest.Builder newBuilder()
-
newBuilder
public static WebhookRequest.Builder newBuilder(WebhookRequest prototype)
-
toBuilder
public WebhookRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected WebhookRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static WebhookRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<WebhookRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<WebhookRequest> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public WebhookRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-