Class WebhookResponse
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dialogflow.cx.v3.WebhookResponse
-
- All Implemented Interfaces:
WebhookResponseOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class WebhookResponse extends com.google.protobuf.GeneratedMessageV3 implements WebhookResponseOrBuilder
The response message for a webhook call.
Protobuf typegoogle.cloud.dialogflow.cx.v3.WebhookResponse- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhookResponse.BuilderThe response message for a webhook call.static classWebhookResponse.FulfillmentResponseRepresents a fulfillment response to the user.static interfaceWebhookResponse.FulfillmentResponseOrBuilderstatic classWebhookResponse.TransitionCase-
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 intFULFILLMENT_RESPONSE_FIELD_NUMBERstatic intPAGE_INFO_FIELD_NUMBERstatic intPAYLOAD_FIELD_NUMBERstatic intSESSION_INFO_FIELD_NUMBERstatic intTARGET_FLOW_FIELD_NUMBERstatic intTARGET_PAGE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static WebhookResponsegetDefaultInstance()WebhookResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()WebhookResponse.FulfillmentResponsegetFulfillmentResponse()The fulfillment response to send to the user.WebhookResponse.FulfillmentResponseOrBuildergetFulfillmentResponseOrBuilder()The fulfillment response to send to the user.PageInfogetPageInfo()Information about page status.PageInfoOrBuildergetPageInfoOrBuilder()Information about page status.com.google.protobuf.Parser<WebhookResponse>getParserForType()com.google.protobuf.StructgetPayload()Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].com.google.protobuf.StructOrBuildergetPayloadOrBuilder()Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].intgetSerializedSize()SessionInfogetSessionInfo()Information about session status.SessionInfoOrBuildergetSessionInfoOrBuilder()Information about session status.StringgetTargetFlow()The target flow to transition to.com.google.protobuf.ByteStringgetTargetFlowBytes()The target flow to transition to.StringgetTargetPage()The target page to transition to.com.google.protobuf.ByteStringgetTargetPageBytes()The target page to transition to.WebhookResponse.TransitionCasegetTransitionCase()booleanhasFulfillmentResponse()The fulfillment response to send to the user.inthashCode()booleanhasPageInfo()Information about page status.booleanhasPayload()Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].booleanhasSessionInfo()Information about session status.booleanhasTargetFlow()The target flow to transition to.booleanhasTargetPage()The target page to transition to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static WebhookResponse.BuildernewBuilder()static WebhookResponse.BuildernewBuilder(WebhookResponse prototype)WebhookResponse.BuildernewBuilderForType()protected WebhookResponse.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static WebhookResponseparseDelimitedFrom(InputStream input)static WebhookResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WebhookResponseparseFrom(byte[] data)static WebhookResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WebhookResponseparseFrom(com.google.protobuf.ByteString data)static WebhookResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WebhookResponseparseFrom(com.google.protobuf.CodedInputStream input)static WebhookResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WebhookResponseparseFrom(InputStream input)static WebhookResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WebhookResponseparseFrom(ByteBuffer data)static WebhookResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<WebhookResponse>parser()WebhookResponse.BuildertoBuilder()voidwriteTo(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
-
FULFILLMENT_RESPONSE_FIELD_NUMBER
public static final int FULFILLMENT_RESPONSE_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
-
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGET_PAGE_FIELD_NUMBER
public static final int TARGET_PAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGET_FLOW_FIELD_NUMBER
public static final int TARGET_FLOW_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getTransitionCase
public WebhookResponse.TransitionCase getTransitionCase()
- Specified by:
getTransitionCasein interfaceWebhookResponseOrBuilder
-
hasFulfillmentResponse
public boolean hasFulfillmentResponse()
The fulfillment response to send to the user. This field can be omitted by the webhook if it does not intend to send any response to the user.
.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse fulfillment_response = 1;- Specified by:
hasFulfillmentResponsein interfaceWebhookResponseOrBuilder- Returns:
- Whether the fulfillmentResponse field is set.
-
getFulfillmentResponse
public WebhookResponse.FulfillmentResponse getFulfillmentResponse()
The fulfillment response to send to the user. This field can be omitted by the webhook if it does not intend to send any response to the user.
.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse fulfillment_response = 1;- Specified by:
getFulfillmentResponsein interfaceWebhookResponseOrBuilder- Returns:
- The fulfillmentResponse.
-
getFulfillmentResponseOrBuilder
public WebhookResponse.FulfillmentResponseOrBuilder getFulfillmentResponseOrBuilder()
The fulfillment response to send to the user. This field can be omitted by the webhook if it does not intend to send any response to the user.
.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse fulfillment_response = 1;- Specified by:
getFulfillmentResponseOrBuilderin interfaceWebhookResponseOrBuilder
-
hasPageInfo
public boolean hasPageInfo()
Information about page status. This field can be omitted by the webhook if it does not intend to modify page status.
.google.cloud.dialogflow.cx.v3.PageInfo page_info = 2;- Specified by:
hasPageInfoin interfaceWebhookResponseOrBuilder- Returns:
- Whether the pageInfo field is set.
-
getPageInfo
public PageInfo getPageInfo()
Information about page status. This field can be omitted by the webhook if it does not intend to modify page status.
.google.cloud.dialogflow.cx.v3.PageInfo page_info = 2;- Specified by:
getPageInfoin interfaceWebhookResponseOrBuilder- Returns:
- The pageInfo.
-
getPageInfoOrBuilder
public PageInfoOrBuilder getPageInfoOrBuilder()
Information about page status. This field can be omitted by the webhook if it does not intend to modify page status.
.google.cloud.dialogflow.cx.v3.PageInfo page_info = 2;- Specified by:
getPageInfoOrBuilderin interfaceWebhookResponseOrBuilder
-
hasSessionInfo
public boolean hasSessionInfo()
Information about session status. This field can be omitted by the webhook if it does not intend to modify session status.
.google.cloud.dialogflow.cx.v3.SessionInfo session_info = 3;- Specified by:
hasSessionInfoin interfaceWebhookResponseOrBuilder- Returns:
- Whether the sessionInfo field is set.
-
getSessionInfo
public SessionInfo getSessionInfo()
Information about session status. This field can be omitted by the webhook if it does not intend to modify session status.
.google.cloud.dialogflow.cx.v3.SessionInfo session_info = 3;- Specified by:
getSessionInfoin interfaceWebhookResponseOrBuilder- Returns:
- The sessionInfo.
-
getSessionInfoOrBuilder
public SessionInfoOrBuilder getSessionInfoOrBuilder()
Information about session status. This field can be omitted by the webhook if it does not intend to modify session status.
.google.cloud.dialogflow.cx.v3.SessionInfo session_info = 3;- Specified by:
getSessionInfoOrBuilderin interfaceWebhookResponseOrBuilder
-
hasPayload
public boolean hasPayload()
Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
.google.protobuf.Struct payload = 4;- Specified by:
hasPayloadin interfaceWebhookResponseOrBuilder- Returns:
- Whether the payload field is set.
-
getPayload
public com.google.protobuf.Struct getPayload()
Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
.google.protobuf.Struct payload = 4;- Specified by:
getPayloadin interfaceWebhookResponseOrBuilder- Returns:
- The payload.
-
getPayloadOrBuilder
public com.google.protobuf.StructOrBuilder getPayloadOrBuilder()
Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
.google.protobuf.Struct payload = 4;- Specified by:
getPayloadOrBuilderin interfaceWebhookResponseOrBuilder
-
hasTargetPage
public boolean hasTargetPage()
The target page to transition to. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>`.
string target_page = 5 [(.google.api.resource_reference) = { ... }- Specified by:
hasTargetPagein interfaceWebhookResponseOrBuilder- Returns:
- Whether the targetPage field is set.
-
getTargetPage
public String getTargetPage()
The target page to transition to. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>`.
string target_page = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getTargetPagein interfaceWebhookResponseOrBuilder- Returns:
- The targetPage.
-
getTargetPageBytes
public com.google.protobuf.ByteString getTargetPageBytes()
The target page to transition to. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>`.
string target_page = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getTargetPageBytesin interfaceWebhookResponseOrBuilder- Returns:
- The bytes for targetPage.
-
hasTargetFlow
public boolean hasTargetFlow()
The target flow to transition to. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>`.
string target_flow = 6 [(.google.api.resource_reference) = { ... }- Specified by:
hasTargetFlowin interfaceWebhookResponseOrBuilder- Returns:
- Whether the targetFlow field is set.
-
getTargetFlow
public String getTargetFlow()
The target flow to transition to. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>`.
string target_flow = 6 [(.google.api.resource_reference) = { ... }- Specified by:
getTargetFlowin interfaceWebhookResponseOrBuilder- Returns:
- The targetFlow.
-
getTargetFlowBytes
public com.google.protobuf.ByteString getTargetFlowBytes()
The target flow to transition to. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>`.
string target_flow = 6 [(.google.api.resource_reference) = { ... }- Specified by:
getTargetFlowBytesin interfaceWebhookResponseOrBuilder- Returns:
- The bytes for targetFlow.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static WebhookResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookResponse parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static WebhookResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static WebhookResponse parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static WebhookResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static WebhookResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static WebhookResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public WebhookResponse.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static WebhookResponse.Builder newBuilder()
-
newBuilder
public static WebhookResponse.Builder newBuilder(WebhookResponse prototype)
-
toBuilder
public WebhookResponse.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected WebhookResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static WebhookResponse getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<WebhookResponse> parser()
-
getParserForType
public com.google.protobuf.Parser<WebhookResponse> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public WebhookResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-