Class 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 type google.cloud.dialogflow.cx.v3.WebhookResponse
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.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 class com.google.protobuf.GeneratedMessageV3
      • 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:
        hasFulfillmentResponse in interface WebhookResponseOrBuilder
        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:
        getFulfillmentResponse in interface WebhookResponseOrBuilder
        Returns:
        The fulfillmentResponse.
      • 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:
        hasPageInfo in interface WebhookResponseOrBuilder
        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:
        getPageInfo in interface WebhookResponseOrBuilder
        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:
        getPageInfoOrBuilder in interface WebhookResponseOrBuilder
      • 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:
        hasSessionInfo in interface WebhookResponseOrBuilder
        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:
        getSessionInfo in interface WebhookResponseOrBuilder
        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:
        getSessionInfoOrBuilder in interface WebhookResponseOrBuilder
      • 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:
        hasPayload in interface WebhookResponseOrBuilder
        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:
        getPayload in interface WebhookResponseOrBuilder
        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:
        getPayloadOrBuilder in interface WebhookResponseOrBuilder
      • 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 interface WebhookResponseOrBuilder
        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 interface WebhookResponseOrBuilder
        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 interface WebhookResponseOrBuilder
        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 interface WebhookResponseOrBuilder
        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 interface WebhookResponseOrBuilder
        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 interface WebhookResponseOrBuilder
        Returns:
        The bytes for targetFlow.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Throws:
        IOException
      • newBuilderForType

        public WebhookResponse.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public WebhookResponse.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected WebhookResponse.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • parser

        public static com.google.protobuf.Parser<WebhookResponse> parser()
      • getParserForType

        public com.google.protobuf.Parser<WebhookResponse> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public WebhookResponse getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder