Class WebhookResponse
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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
@Generated
public final class WebhookResponse
extends com.google.protobuf.GeneratedMessage
implements WebhookResponseOrBuilder
The response message for a webhook call.Protobuf type
google.cloud.dialogflow.cx.v3beta1.WebhookResponse- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe response message for a webhook call.static final classRepresents a fulfillment response to the user.static interfacestatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic WebhookResponsestatic final com.google.protobuf.Descriptors.DescriptorThe fulfillment response to send to the user.The fulfillment response to send to the user.Information about page status.Information about page status.com.google.protobuf.Parser<WebhookResponse>com.google.protobuf.StructValue to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].com.google.protobuf.StructOrBuilderValue to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].intInformation about session status.Information about session status.The target flow to transition to.com.google.protobuf.ByteStringThe target flow to transition to.The target page to transition to.com.google.protobuf.ByteStringThe target page to transition to.booleanThe fulfillment response to send to the user.inthashCode()booleanInformation about page status.booleanValue to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3beta1.QueryResult.webhook_payloads].booleanInformation about session status.booleanThe target flow to transition to.booleanThe target page to transition to.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic WebhookResponse.Builderstatic WebhookResponse.BuildernewBuilder(WebhookResponse prototype) protected WebhookResponse.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
FULFILLMENT_RESPONSE_FIELD_NUMBER
public static final int FULFILLMENT_RESPONSE_FIELD_NUMBER- See Also:
-
PAGE_INFO_FIELD_NUMBER
public static final int PAGE_INFO_FIELD_NUMBER- See Also:
-
SESSION_INFO_FIELD_NUMBER
public static final int SESSION_INFO_FIELD_NUMBER- See Also:
-
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER- See Also:
-
TARGET_PAGE_FIELD_NUMBER
public static final int TARGET_PAGE_FIELD_NUMBER- See Also:
-
TARGET_FLOW_FIELD_NUMBER
public static final int TARGET_FLOW_FIELD_NUMBER- See Also:
-
-
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
-
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.v3beta1.WebhookResponse.FulfillmentResponse fulfillment_response = 1;- Specified by:
hasFulfillmentResponsein interfaceWebhookResponseOrBuilder- Returns:
- Whether the fulfillmentResponse field is set.
-
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:
getFulfillmentResponsein interfaceWebhookResponseOrBuilder- Returns:
- The fulfillmentResponse.
-
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:
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.v3beta1.PageInfo page_info = 2;- Specified by:
hasPageInfoin interfaceWebhookResponseOrBuilder- Returns:
- Whether the pageInfo field is set.
-
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:
getPageInfoin interfaceWebhookResponseOrBuilder- Returns:
- The pageInfo.
-
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:
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.v3beta1.SessionInfo session_info = 3;- Specified by:
hasSessionInfoin interfaceWebhookResponseOrBuilder- Returns:
- Whether the sessionInfo field is set.
-
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:
getSessionInfoin interfaceWebhookResponseOrBuilder- Returns:
- The sessionInfo.
-
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:
getSessionInfoOrBuilderin 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:
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.v3beta1.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.v3beta1.QueryResult.webhook_payloads].
.google.protobuf.Struct payload = 4;- Specified by:
getPayloadOrBuilderin interfaceWebhookResponseOrBuilder
-
hasTargetPage
public boolean hasTargetPage()The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
string target_page = 5 [(.google.api.resource_reference) = { ... }- Specified by:
hasTargetPagein interfaceWebhookResponseOrBuilder- Returns:
- Whether the targetPage field is set.
-
getTargetPage
The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 6 [(.google.api.resource_reference) = { ... }- Specified by:
hasTargetFlowin interfaceWebhookResponseOrBuilder- Returns:
- Whether the targetFlow field is set.
-
getTargetFlow
The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
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.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- Throws:
IOException
-
parseFrom
public static WebhookResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected WebhookResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-