Class WebhookResponse
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.WebhookResponse
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebhookResponse.Builder
The response message for a webhook call.static class
WebhookResponse.FulfillmentResponse
Represents a fulfillment response to the user.static interface
WebhookResponse.FulfillmentResponseOrBuilder
static class
WebhookResponse.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 int
FULFILLMENT_RESPONSE_FIELD_NUMBER
static int
PAGE_INFO_FIELD_NUMBER
static int
PAYLOAD_FIELD_NUMBER
static int
SESSION_INFO_FIELD_NUMBER
static int
TARGET_FLOW_FIELD_NUMBER
static int
TARGET_PAGE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static WebhookResponse
getDefaultInstance()
WebhookResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
WebhookResponse.FulfillmentResponse
getFulfillmentResponse()
The fulfillment response to send to the user.WebhookResponse.FulfillmentResponseOrBuilder
getFulfillmentResponseOrBuilder()
The fulfillment response to send to the user.PageInfo
getPageInfo()
Information about page status.PageInfoOrBuilder
getPageInfoOrBuilder()
Information about page status.com.google.protobuf.Parser<WebhookResponse>
getParserForType()
com.google.protobuf.Struct
getPayload()
Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].com.google.protobuf.StructOrBuilder
getPayloadOrBuilder()
Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].int
getSerializedSize()
SessionInfo
getSessionInfo()
Information about session status.SessionInfoOrBuilder
getSessionInfoOrBuilder()
Information about session status.String
getTargetFlow()
The target flow to transition to.com.google.protobuf.ByteString
getTargetFlowBytes()
The target flow to transition to.String
getTargetPage()
The target page to transition to.com.google.protobuf.ByteString
getTargetPageBytes()
The target page to transition to.WebhookResponse.TransitionCase
getTransitionCase()
boolean
hasFulfillmentResponse()
The fulfillment response to send to the user.int
hashCode()
boolean
hasPageInfo()
Information about page status.boolean
hasPayload()
Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].boolean
hasSessionInfo()
Information about session status.boolean
hasTargetFlow()
The target flow to transition to.boolean
hasTargetPage()
The target page to transition to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static WebhookResponse.Builder
newBuilder()
static WebhookResponse.Builder
newBuilder(WebhookResponse prototype)
WebhookResponse.Builder
newBuilderForType()
protected WebhookResponse.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static WebhookResponse
parseDelimitedFrom(InputStream input)
static WebhookResponse
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static WebhookResponse
parseFrom(byte[] data)
static WebhookResponse
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static WebhookResponse
parseFrom(com.google.protobuf.ByteString data)
static WebhookResponse
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static WebhookResponse
parseFrom(com.google.protobuf.CodedInputStream input)
static WebhookResponse
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static WebhookResponse
parseFrom(InputStream input)
static WebhookResponse
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static WebhookResponse
parseFrom(ByteBuffer data)
static WebhookResponse
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<WebhookResponse>
parser()
WebhookResponse.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
-
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:
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
-
getTransitionCase
public WebhookResponse.TransitionCase getTransitionCase()
- Specified by:
getTransitionCase
in 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.v3beta1.WebhookResponse.FulfillmentResponse fulfillment_response = 1;
- Specified by:
hasFulfillmentResponse
in 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.v3beta1.WebhookResponse.FulfillmentResponse fulfillment_response = 1;
- Specified by:
getFulfillmentResponse
in 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.v3beta1.WebhookResponse.FulfillmentResponse fulfillment_response = 1;
- Specified by:
getFulfillmentResponseOrBuilder
in 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.v3beta1.PageInfo page_info = 2;
- Specified by:
hasPageInfo
in 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.v3beta1.PageInfo page_info = 2;
- Specified by:
getPageInfo
in 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.v3beta1.PageInfo page_info = 2;
- Specified by:
getPageInfoOrBuilder
in 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.v3beta1.SessionInfo session_info = 3;
- Specified by:
hasSessionInfo
in 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.v3beta1.SessionInfo session_info = 3;
- Specified by:
getSessionInfo
in 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.v3beta1.SessionInfo session_info = 3;
- Specified by:
getSessionInfoOrBuilder
in interfaceWebhookResponseOrBuilder
-
hasPayload
public boolean hasPayload()
Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].
.google.protobuf.Struct payload = 4;
- Specified by:
hasPayload
in 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.v3beta1.QueryResult.webhook_payloads].
.google.protobuf.Struct payload = 4;
- Specified by:
getPayload
in interfaceWebhookResponseOrBuilder
- Returns:
- The payload.
-
getPayloadOrBuilder
public com.google.protobuf.StructOrBuilder getPayloadOrBuilder()
Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].
.google.protobuf.Struct payload = 4;
- Specified by:
getPayloadOrBuilder
in 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:
hasTargetPage
in 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:
getTargetPage
in 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:
getTargetPageBytes
in 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:
hasTargetFlow
in 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:
getTargetFlow
in 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:
getTargetFlowBytes
in interfaceWebhookResponseOrBuilder
- Returns:
- The bytes for targetFlow.
-
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 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected WebhookResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public WebhookResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-