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:
  • 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getTransitionCase

      public WebhookResponse.TransitionCase getTransitionCase()
      Specified by:
      getTransitionCase in interface WebhookResponseOrBuilder
    • 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 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.v3beta1.WebhookResponse.FulfillmentResponse fulfillment_response = 1;
      Specified by:
      getFulfillmentResponse in interface WebhookResponseOrBuilder
      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 interface WebhookResponseOrBuilder
    • 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 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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
       
      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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(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 interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.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 interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected WebhookResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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 interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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