Class Action

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.cx.v3.Action
All Implemented Interfaces:
ActionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Action extends com.google.protobuf.GeneratedMessage implements ActionOrBuilder
 Action performed by end user or Dialogflow agent in the conversation.
 
Protobuf type google.cloud.dialogflow.cx.v3.Action
See Also:
  • Field Details

    • USER_UTTERANCE_FIELD_NUMBER

      public static final int USER_UTTERANCE_FIELD_NUMBER
      See Also:
    • AGENT_UTTERANCE_FIELD_NUMBER

      public static final int AGENT_UTTERANCE_FIELD_NUMBER
      See Also:
    • TOOL_USE_FIELD_NUMBER

      public static final int TOOL_USE_FIELD_NUMBER
      See Also:
    • PLAYBOOK_INVOCATION_FIELD_NUMBER

      public static final int PLAYBOOK_INVOCATION_FIELD_NUMBER
      See Also:
    • FLOW_INVOCATION_FIELD_NUMBER

      public static final int FLOW_INVOCATION_FIELD_NUMBER
      See Also:
    • PLAYBOOK_TRANSITION_FIELD_NUMBER

      public static final int PLAYBOOK_TRANSITION_FIELD_NUMBER
      See Also:
    • FLOW_TRANSITION_FIELD_NUMBER

      public static final int FLOW_TRANSITION_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
    • getActionCase

      public Action.ActionCase getActionCase()
      Specified by:
      getActionCase in interface ActionOrBuilder
    • hasUserUtterance

      public boolean hasUserUtterance()
       Optional. Agent obtained a message from the customer.
       
      .google.cloud.dialogflow.cx.v3.UserUtterance user_utterance = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasUserUtterance in interface ActionOrBuilder
      Returns:
      Whether the userUtterance field is set.
    • getUserUtterance

      public UserUtterance getUserUtterance()
       Optional. Agent obtained a message from the customer.
       
      .google.cloud.dialogflow.cx.v3.UserUtterance user_utterance = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUserUtterance in interface ActionOrBuilder
      Returns:
      The userUtterance.
    • getUserUtteranceOrBuilder

      public UserUtteranceOrBuilder getUserUtteranceOrBuilder()
       Optional. Agent obtained a message from the customer.
       
      .google.cloud.dialogflow.cx.v3.UserUtterance user_utterance = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUserUtteranceOrBuilder in interface ActionOrBuilder
    • hasAgentUtterance

      public boolean hasAgentUtterance()
       Optional. Action performed by the agent as a message.
       
      .google.cloud.dialogflow.cx.v3.AgentUtterance agent_utterance = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAgentUtterance in interface ActionOrBuilder
      Returns:
      Whether the agentUtterance field is set.
    • getAgentUtterance

      public AgentUtterance getAgentUtterance()
       Optional. Action performed by the agent as a message.
       
      .google.cloud.dialogflow.cx.v3.AgentUtterance agent_utterance = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAgentUtterance in interface ActionOrBuilder
      Returns:
      The agentUtterance.
    • getAgentUtteranceOrBuilder

      public AgentUtteranceOrBuilder getAgentUtteranceOrBuilder()
       Optional. Action performed by the agent as a message.
       
      .google.cloud.dialogflow.cx.v3.AgentUtterance agent_utterance = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAgentUtteranceOrBuilder in interface ActionOrBuilder
    • hasToolUse

      public boolean hasToolUse()
       Optional. Action performed on behalf of the agent by calling a plugin
       tool.
       
      .google.cloud.dialogflow.cx.v3.ToolUse tool_use = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasToolUse in interface ActionOrBuilder
      Returns:
      Whether the toolUse field is set.
    • getToolUse

      public ToolUse getToolUse()
       Optional. Action performed on behalf of the agent by calling a plugin
       tool.
       
      .google.cloud.dialogflow.cx.v3.ToolUse tool_use = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolUse in interface ActionOrBuilder
      Returns:
      The toolUse.
    • getToolUseOrBuilder

      public ToolUseOrBuilder getToolUseOrBuilder()
       Optional. Action performed on behalf of the agent by calling a plugin
       tool.
       
      .google.cloud.dialogflow.cx.v3.ToolUse tool_use = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolUseOrBuilder in interface ActionOrBuilder
    • hasPlaybookInvocation

      public boolean hasPlaybookInvocation()
       Optional. Action performed on behalf of the agent by invoking a child
       playbook.
       
      .google.cloud.dialogflow.cx.v3.PlaybookInvocation playbook_invocation = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPlaybookInvocation in interface ActionOrBuilder
      Returns:
      Whether the playbookInvocation field is set.
    • getPlaybookInvocation

      public PlaybookInvocation getPlaybookInvocation()
       Optional. Action performed on behalf of the agent by invoking a child
       playbook.
       
      .google.cloud.dialogflow.cx.v3.PlaybookInvocation playbook_invocation = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPlaybookInvocation in interface ActionOrBuilder
      Returns:
      The playbookInvocation.
    • getPlaybookInvocationOrBuilder

      public PlaybookInvocationOrBuilder getPlaybookInvocationOrBuilder()
       Optional. Action performed on behalf of the agent by invoking a child
       playbook.
       
      .google.cloud.dialogflow.cx.v3.PlaybookInvocation playbook_invocation = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPlaybookInvocationOrBuilder in interface ActionOrBuilder
    • hasFlowInvocation

      public boolean hasFlowInvocation()
       Optional. Action performed on behalf of the agent by invoking a CX flow.
       
      .google.cloud.dialogflow.cx.v3.FlowInvocation flow_invocation = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasFlowInvocation in interface ActionOrBuilder
      Returns:
      Whether the flowInvocation field is set.
    • getFlowInvocation

      public FlowInvocation getFlowInvocation()
       Optional. Action performed on behalf of the agent by invoking a CX flow.
       
      .google.cloud.dialogflow.cx.v3.FlowInvocation flow_invocation = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFlowInvocation in interface ActionOrBuilder
      Returns:
      The flowInvocation.
    • getFlowInvocationOrBuilder

      public FlowInvocationOrBuilder getFlowInvocationOrBuilder()
       Optional. Action performed on behalf of the agent by invoking a CX flow.
       
      .google.cloud.dialogflow.cx.v3.FlowInvocation flow_invocation = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFlowInvocationOrBuilder in interface ActionOrBuilder
    • hasPlaybookTransition

      public boolean hasPlaybookTransition()
       Optional. Action performed on behalf of the agent by transitioning to a
       target playbook.
       
      .google.cloud.dialogflow.cx.v3.PlaybookTransition playbook_transition = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPlaybookTransition in interface ActionOrBuilder
      Returns:
      Whether the playbookTransition field is set.
    • getPlaybookTransition

      public PlaybookTransition getPlaybookTransition()
       Optional. Action performed on behalf of the agent by transitioning to a
       target playbook.
       
      .google.cloud.dialogflow.cx.v3.PlaybookTransition playbook_transition = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPlaybookTransition in interface ActionOrBuilder
      Returns:
      The playbookTransition.
    • getPlaybookTransitionOrBuilder

      public PlaybookTransitionOrBuilder getPlaybookTransitionOrBuilder()
       Optional. Action performed on behalf of the agent by transitioning to a
       target playbook.
       
      .google.cloud.dialogflow.cx.v3.PlaybookTransition playbook_transition = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPlaybookTransitionOrBuilder in interface ActionOrBuilder
    • hasFlowTransition

      public boolean hasFlowTransition()
       Optional. Action performed on behalf of the agent by transitioning to a
       target CX flow.
       
      .google.cloud.dialogflow.cx.v3.FlowTransition flow_transition = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasFlowTransition in interface ActionOrBuilder
      Returns:
      Whether the flowTransition field is set.
    • getFlowTransition

      public FlowTransition getFlowTransition()
       Optional. Action performed on behalf of the agent by transitioning to a
       target CX flow.
       
      .google.cloud.dialogflow.cx.v3.FlowTransition flow_transition = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFlowTransition in interface ActionOrBuilder
      Returns:
      The flowTransition.
    • getFlowTransitionOrBuilder

      public FlowTransitionOrBuilder getFlowTransitionOrBuilder()
       Optional. Action performed on behalf of the agent by transitioning to a
       target CX flow.
       
      .google.cloud.dialogflow.cx.v3.FlowTransition flow_transition = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFlowTransitionOrBuilder in interface ActionOrBuilder
    • 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 Action parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Action parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Action parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Action parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Action parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Action parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Action parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Action parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Action parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Action parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Action parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Action parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Action.Builder newBuilder()
    • newBuilder

      public static Action.Builder newBuilder(Action prototype)
    • toBuilder

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

      protected Action.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Action getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Action> 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 Action getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder