Class Action.FlowStateUpdate.Builder

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

public static final class Action.FlowStateUpdate.Builder extends com.google.protobuf.GeneratedMessage.Builder<Action.FlowStateUpdate.Builder> implements Action.FlowStateUpdateOrBuilder
 Stores metadata of the state update action, such as a state machine
 execution in flows.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdate
  • 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.FlowStateUpdate.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.FlowStateUpdate.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.FlowStateUpdate.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

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

      public String getEventType()
       The type of the event that triggered the state update.
       
      string event_type = 1;
      Specified by:
      getEventType in interface Action.FlowStateUpdateOrBuilder
      Returns:
      The eventType.
    • getEventTypeBytes

      public com.google.protobuf.ByteString getEventTypeBytes()
       The type of the event that triggered the state update.
       
      string event_type = 1;
      Specified by:
      getEventTypeBytes in interface Action.FlowStateUpdateOrBuilder
      Returns:
      The bytes for eventType.
    • setEventType

      public Action.FlowStateUpdate.Builder setEventType(String value)
       The type of the event that triggered the state update.
       
      string event_type = 1;
      Parameters:
      value - The eventType to set.
      Returns:
      This builder for chaining.
    • clearEventType

      public Action.FlowStateUpdate.Builder clearEventType()
       The type of the event that triggered the state update.
       
      string event_type = 1;
      Returns:
      This builder for chaining.
    • setEventTypeBytes

      public Action.FlowStateUpdate.Builder setEventTypeBytes(com.google.protobuf.ByteString value)
       The type of the event that triggered the state update.
       
      string event_type = 1;
      Parameters:
      value - The bytes for eventType to set.
      Returns:
      This builder for chaining.
    • hasPageState

      public boolean hasPageState()
       The updated page and flow state.
       
      .google.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdate.PageState page_state = 2;
      Specified by:
      hasPageState in interface Action.FlowStateUpdateOrBuilder
      Returns:
      Whether the pageState field is set.
    • getPageState

      public Action.FlowStateUpdate.PageState getPageState()
       The updated page and flow state.
       
      .google.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdate.PageState page_state = 2;
      Specified by:
      getPageState in interface Action.FlowStateUpdateOrBuilder
      Returns:
      The pageState.
    • setPageState

       The updated page and flow state.
       
      .google.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdate.PageState page_state = 2;
    • setPageState

       The updated page and flow state.
       
      .google.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdate.PageState page_state = 2;
    • mergePageState

       The updated page and flow state.
       
      .google.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdate.PageState page_state = 2;
    • clearPageState

      public Action.FlowStateUpdate.Builder clearPageState()
       The updated page and flow state.
       
      .google.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdate.PageState page_state = 2;
    • getPageStateBuilder

      public Action.FlowStateUpdate.PageState.Builder getPageStateBuilder()
       The updated page and flow state.
       
      .google.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdate.PageState page_state = 2;
    • getPageStateOrBuilder

      public Action.FlowStateUpdate.PageStateOrBuilder getPageStateOrBuilder()
       The updated page and flow state.
       
      .google.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdate.PageState page_state = 2;
      Specified by:
      getPageStateOrBuilder in interface Action.FlowStateUpdateOrBuilder
    • hasUpdatedParameters

      public boolean hasUpdatedParameters()
       The updated parameters.
       
      .google.protobuf.Struct updated_parameters = 3;
      Specified by:
      hasUpdatedParameters in interface Action.FlowStateUpdateOrBuilder
      Returns:
      Whether the updatedParameters field is set.
    • getUpdatedParameters

      public com.google.protobuf.Struct getUpdatedParameters()
       The updated parameters.
       
      .google.protobuf.Struct updated_parameters = 3;
      Specified by:
      getUpdatedParameters in interface Action.FlowStateUpdateOrBuilder
      Returns:
      The updatedParameters.
    • setUpdatedParameters

      public Action.FlowStateUpdate.Builder setUpdatedParameters(com.google.protobuf.Struct value)
       The updated parameters.
       
      .google.protobuf.Struct updated_parameters = 3;
    • setUpdatedParameters

      public Action.FlowStateUpdate.Builder setUpdatedParameters(com.google.protobuf.Struct.Builder builderForValue)
       The updated parameters.
       
      .google.protobuf.Struct updated_parameters = 3;
    • mergeUpdatedParameters

      public Action.FlowStateUpdate.Builder mergeUpdatedParameters(com.google.protobuf.Struct value)
       The updated parameters.
       
      .google.protobuf.Struct updated_parameters = 3;
    • clearUpdatedParameters

      public Action.FlowStateUpdate.Builder clearUpdatedParameters()
       The updated parameters.
       
      .google.protobuf.Struct updated_parameters = 3;
    • getUpdatedParametersBuilder

      public com.google.protobuf.Struct.Builder getUpdatedParametersBuilder()
       The updated parameters.
       
      .google.protobuf.Struct updated_parameters = 3;
    • getUpdatedParametersOrBuilder

      public com.google.protobuf.StructOrBuilder getUpdatedParametersOrBuilder()
       The updated parameters.
       
      .google.protobuf.Struct updated_parameters = 3;
      Specified by:
      getUpdatedParametersOrBuilder in interface Action.FlowStateUpdateOrBuilder
    • getDestination

      public String getDestination()
       The destination of the transition.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`
       or
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookId>`.
       
      string destination = 4;
      Specified by:
      getDestination in interface Action.FlowStateUpdateOrBuilder
      Returns:
      The destination.
    • getDestinationBytes

      public com.google.protobuf.ByteString getDestinationBytes()
       The destination of the transition.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`
       or
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookId>`.
       
      string destination = 4;
      Specified by:
      getDestinationBytes in interface Action.FlowStateUpdateOrBuilder
      Returns:
      The bytes for destination.
    • setDestination

      public Action.FlowStateUpdate.Builder setDestination(String value)
       The destination of the transition.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`
       or
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookId>`.
       
      string destination = 4;
      Parameters:
      value - The destination to set.
      Returns:
      This builder for chaining.
    • clearDestination

      public Action.FlowStateUpdate.Builder clearDestination()
       The destination of the transition.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`
       or
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookId>`.
       
      string destination = 4;
      Returns:
      This builder for chaining.
    • setDestinationBytes

      public Action.FlowStateUpdate.Builder setDestinationBytes(com.google.protobuf.ByteString value)
       The destination of the transition.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`
       or
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookId>`.
       
      string destination = 4;
      Parameters:
      value - The bytes for destination to set.
      Returns:
      This builder for chaining.
    • hasFunctionCall

      public boolean hasFunctionCall()
       The function call to execute.
       
      .google.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdate.FunctionCall function_call = 5;
      Specified by:
      hasFunctionCall in interface Action.FlowStateUpdateOrBuilder
      Returns:
      Whether the functionCall field is set.
    • getFunctionCall

      public Action.FlowStateUpdate.FunctionCall getFunctionCall()
       The function call to execute.
       
      .google.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdate.FunctionCall function_call = 5;
      Specified by:
      getFunctionCall in interface Action.FlowStateUpdateOrBuilder
      Returns:
      The functionCall.
    • setFunctionCall

       The function call to execute.
       
      .google.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdate.FunctionCall function_call = 5;
    • setFunctionCall

       The function call to execute.
       
      .google.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdate.FunctionCall function_call = 5;
    • mergeFunctionCall

       The function call to execute.
       
      .google.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdate.FunctionCall function_call = 5;
    • clearFunctionCall

      public Action.FlowStateUpdate.Builder clearFunctionCall()
       The function call to execute.
       
      .google.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdate.FunctionCall function_call = 5;
    • getFunctionCallBuilder

      public Action.FlowStateUpdate.FunctionCall.Builder getFunctionCallBuilder()
       The function call to execute.
       
      .google.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdate.FunctionCall function_call = 5;
    • getFunctionCallOrBuilder

      public Action.FlowStateUpdate.FunctionCallOrBuilder getFunctionCallOrBuilder()
       The function call to execute.
       
      .google.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdate.FunctionCall function_call = 5;
      Specified by:
      getFunctionCallOrBuilder in interface Action.FlowStateUpdateOrBuilder