Class Action.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Action.Builder>
com.google.cloud.dialogflow.cx.v3.Action.Builder
All Implemented Interfaces:
ActionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Action

public static final class Action.Builder extends com.google.protobuf.GeneratedMessage.Builder<Action.Builder> implements ActionOrBuilder
 Action performed by end user or Dialogflow agent in the conversation.
 
Protobuf type google.cloud.dialogflow.cx.v3.Action
  • 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.Builder<Action.Builder>
    • clear

      public Action.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.GeneratedMessage.Builder<Action.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.GeneratedMessage.Builder<Action.Builder>
    • getDefaultInstanceForType

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

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

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

      public Action.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<Action.Builder>
    • mergeFrom

      public Action.Builder mergeFrom(Action other)
    • isInitialized

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

      public Action.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<Action.Builder>
      Throws:
      IOException
    • getActionCase

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

      public Action.Builder clearAction()
    • 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.
    • setUserUtterance

      public Action.Builder setUserUtterance(UserUtterance value)
       Optional. Agent obtained a message from the customer.
       
      .google.cloud.dialogflow.cx.v3.UserUtterance user_utterance = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setUserUtterance

      public Action.Builder setUserUtterance(UserUtterance.Builder builderForValue)
       Optional. Agent obtained a message from the customer.
       
      .google.cloud.dialogflow.cx.v3.UserUtterance user_utterance = 1 [(.google.api.field_behavior) = OPTIONAL];
    • mergeUserUtterance

      public Action.Builder mergeUserUtterance(UserUtterance value)
       Optional. Agent obtained a message from the customer.
       
      .google.cloud.dialogflow.cx.v3.UserUtterance user_utterance = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearUserUtterance

      public Action.Builder clearUserUtterance()
       Optional. Agent obtained a message from the customer.
       
      .google.cloud.dialogflow.cx.v3.UserUtterance user_utterance = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getUserUtteranceBuilder

      public UserUtterance.Builder getUserUtteranceBuilder()
       Optional. Agent obtained a message from the customer.
       
      .google.cloud.dialogflow.cx.v3.UserUtterance user_utterance = 1 [(.google.api.field_behavior) = OPTIONAL];
    • 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.
    • setAgentUtterance

      public Action.Builder setAgentUtterance(AgentUtterance value)
       Optional. Action performed by the agent as a message.
       
      .google.cloud.dialogflow.cx.v3.AgentUtterance agent_utterance = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setAgentUtterance

      public Action.Builder setAgentUtterance(AgentUtterance.Builder builderForValue)
       Optional. Action performed by the agent as a message.
       
      .google.cloud.dialogflow.cx.v3.AgentUtterance agent_utterance = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeAgentUtterance

      public Action.Builder mergeAgentUtterance(AgentUtterance value)
       Optional. Action performed by the agent as a message.
       
      .google.cloud.dialogflow.cx.v3.AgentUtterance agent_utterance = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearAgentUtterance

      public Action.Builder clearAgentUtterance()
       Optional. Action performed by the agent as a message.
       
      .google.cloud.dialogflow.cx.v3.AgentUtterance agent_utterance = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getAgentUtteranceBuilder

      public AgentUtterance.Builder getAgentUtteranceBuilder()
       Optional. Action performed by the agent as a message.
       
      .google.cloud.dialogflow.cx.v3.AgentUtterance agent_utterance = 2 [(.google.api.field_behavior) = OPTIONAL];
    • 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.
    • setToolUse

      public Action.Builder setToolUse(ToolUse value)
       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];
    • setToolUse

      public Action.Builder setToolUse(ToolUse.Builder builderForValue)
       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];
    • mergeToolUse

      public Action.Builder mergeToolUse(ToolUse value)
       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];
    • clearToolUse

      public Action.Builder clearToolUse()
       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];
    • getToolUseBuilder

      public ToolUse.Builder getToolUseBuilder()
       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];
    • 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.
    • setPlaybookInvocation

      public Action.Builder setPlaybookInvocation(PlaybookInvocation value)
       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];
    • setPlaybookInvocation

      public Action.Builder setPlaybookInvocation(PlaybookInvocation.Builder builderForValue)
       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];
    • mergePlaybookInvocation

      public Action.Builder mergePlaybookInvocation(PlaybookInvocation value)
       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];
    • clearPlaybookInvocation

      public Action.Builder clearPlaybookInvocation()
       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];
    • getPlaybookInvocationBuilder

      public PlaybookInvocation.Builder getPlaybookInvocationBuilder()
       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];
    • 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.
    • setFlowInvocation

      public Action.Builder setFlowInvocation(FlowInvocation value)
       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];
    • setFlowInvocation

      public Action.Builder setFlowInvocation(FlowInvocation.Builder builderForValue)
       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];
    • mergeFlowInvocation

      public Action.Builder mergeFlowInvocation(FlowInvocation value)
       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];
    • clearFlowInvocation

      public Action.Builder clearFlowInvocation()
       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];
    • getFlowInvocationBuilder

      public FlowInvocation.Builder getFlowInvocationBuilder()
       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];
    • 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.
    • setPlaybookTransition

      public Action.Builder setPlaybookTransition(PlaybookTransition value)
       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];
    • setPlaybookTransition

      public Action.Builder setPlaybookTransition(PlaybookTransition.Builder builderForValue)
       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];
    • mergePlaybookTransition

      public Action.Builder mergePlaybookTransition(PlaybookTransition value)
       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];
    • clearPlaybookTransition

      public Action.Builder clearPlaybookTransition()
       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];
    • getPlaybookTransitionBuilder

      public PlaybookTransition.Builder getPlaybookTransitionBuilder()
       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];
    • 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.
    • setFlowTransition

      public Action.Builder setFlowTransition(FlowTransition value)
       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];
    • setFlowTransition

      public Action.Builder setFlowTransition(FlowTransition.Builder builderForValue)
       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];
    • mergeFlowTransition

      public Action.Builder mergeFlowTransition(FlowTransition value)
       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];
    • clearFlowTransition

      public Action.Builder clearFlowTransition()
       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];
    • getFlowTransitionBuilder

      public FlowTransition.Builder getFlowTransitionBuilder()
       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];
    • 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