Class WebhookResponse.Builder

  • All Implemented Interfaces:
    WebhookResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    WebhookResponse

    public static final class WebhookResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<WebhookResponse.Builder>
    implements WebhookResponseOrBuilder
     The response message for a webhook call.
     
    Protobuf type google.cloud.dialogflow.cx.v3.WebhookResponse
    • Method Detail

      • 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.Builder<WebhookResponse.Builder>
      • clear

        public WebhookResponse.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<WebhookResponse.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<WebhookResponse.Builder>
      • getDefaultInstanceForType

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

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

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

        public WebhookResponse.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<WebhookResponse.Builder>
      • setField

        public WebhookResponse.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<WebhookResponse.Builder>
      • clearField

        public WebhookResponse.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<WebhookResponse.Builder>
      • clearOneof

        public WebhookResponse.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<WebhookResponse.Builder>
      • setRepeatedField

        public WebhookResponse.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WebhookResponse.Builder>
      • addRepeatedField

        public WebhookResponse.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WebhookResponse.Builder>
      • mergeFrom

        public WebhookResponse.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WebhookResponse.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<WebhookResponse.Builder>
      • mergeFrom

        public WebhookResponse.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WebhookResponse.Builder>
        Throws:
        IOException
      • 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.
      • setFulfillmentResponse

        public WebhookResponse.Builder setFulfillmentResponse​(WebhookResponse.FulfillmentResponse value)
         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;
      • setFulfillmentResponse

        public WebhookResponse.Builder setFulfillmentResponse​(WebhookResponse.FulfillmentResponse.Builder builderForValue)
         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;
      • mergeFulfillmentResponse

        public WebhookResponse.Builder mergeFulfillmentResponse​(WebhookResponse.FulfillmentResponse value)
         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;
      • clearFulfillmentResponse

        public WebhookResponse.Builder clearFulfillmentResponse()
         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;
      • getFulfillmentResponseBuilder

        public WebhookResponse.FulfillmentResponse.Builder getFulfillmentResponseBuilder()
         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;
      • 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.
      • setPageInfo

        public WebhookResponse.Builder setPageInfo​(PageInfo value)
         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;
      • setPageInfo

        public WebhookResponse.Builder setPageInfo​(PageInfo.Builder builderForValue)
         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;
      • mergePageInfo

        public WebhookResponse.Builder mergePageInfo​(PageInfo value)
         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;
      • clearPageInfo

        public WebhookResponse.Builder clearPageInfo()
         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;
      • getPageInfoBuilder

        public PageInfo.Builder getPageInfoBuilder()
         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;
      • 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.
      • setSessionInfo

        public WebhookResponse.Builder setSessionInfo​(SessionInfo value)
         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;
      • setSessionInfo

        public WebhookResponse.Builder setSessionInfo​(SessionInfo.Builder builderForValue)
         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;
      • mergeSessionInfo

        public WebhookResponse.Builder mergeSessionInfo​(SessionInfo value)
         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;
      • clearSessionInfo

        public WebhookResponse.Builder clearSessionInfo()
         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;
      • getSessionInfoBuilder

        public SessionInfo.Builder getSessionInfoBuilder()
         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;
      • 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.
      • setPayload

        public WebhookResponse.Builder setPayload​(com.google.protobuf.Struct value)
         Value to append directly to
         [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
         
        .google.protobuf.Struct payload = 4;
      • setPayload

        public WebhookResponse.Builder setPayload​(com.google.protobuf.Struct.Builder builderForValue)
         Value to append directly to
         [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
         
        .google.protobuf.Struct payload = 4;
      • mergePayload

        public WebhookResponse.Builder mergePayload​(com.google.protobuf.Struct value)
         Value to append directly to
         [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
         
        .google.protobuf.Struct payload = 4;
      • clearPayload

        public WebhookResponse.Builder clearPayload()
         Value to append directly to
         [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
         
        .google.protobuf.Struct payload = 4;
      • getPayloadBuilder

        public com.google.protobuf.Struct.Builder getPayloadBuilder()
         Value to append directly to
         [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
         
        .google.protobuf.Struct payload = 4;
      • 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.
      • setTargetPage

        public WebhookResponse.Builder setTargetPage​(String value)
         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) = { ... }
        Parameters:
        value - The targetPage to set.
        Returns:
        This builder for chaining.
      • clearTargetPage

        public WebhookResponse.Builder clearTargetPage()
         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) = { ... }
        Returns:
        This builder for chaining.
      • setTargetPageBytes

        public WebhookResponse.Builder setTargetPageBytes​(com.google.protobuf.ByteString value)
         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) = { ... }
        Parameters:
        value - The bytes for targetPage to set.
        Returns:
        This builder for chaining.
      • 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.
      • setTargetFlow

        public WebhookResponse.Builder setTargetFlow​(String value)
         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) = { ... }
        Parameters:
        value - The targetFlow to set.
        Returns:
        This builder for chaining.
      • clearTargetFlow

        public WebhookResponse.Builder clearTargetFlow()
         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) = { ... }
        Returns:
        This builder for chaining.
      • setTargetFlowBytes

        public WebhookResponse.Builder setTargetFlowBytes​(com.google.protobuf.ByteString value)
         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) = { ... }
        Parameters:
        value - The bytes for targetFlow to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final WebhookResponse.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WebhookResponse.Builder>
      • mergeUnknownFields

        public final WebhookResponse.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WebhookResponse.Builder>