Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdate

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb

Overview

Stores metadata of the state update action, such as a state machine execution in flows.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdate

Returns a new instance of GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdate.



4144
4145
4146
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4144

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#destinationString

The destination of the transition. Format: projects//locations//agents//flows/ /pages/ or projects//locations//agents//playbooks/. Corresponds to the JSON property destination

Returns:

  • (String)


4122
4123
4124
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4122

def destination
  @destination
end

#event_typeString

The type of the event that triggered the state update. Corresponds to the JSON property eventType

Returns:

  • (String)


4127
4128
4129
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4127

def event_type
  @event_type
end

#function_callGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdateFunctionCall

Stores the metadata of a function call to execute. Corresponds to the JSON property functionCall



4132
4133
4134
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4132

def function_call
  @function_call
end

#page_stateGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdatePageState

Stores the state of a page and its flow. Corresponds to the JSON property pageState



4137
4138
4139
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4137

def page_state
  @page_state
end

#updated_parametersHash<String,Object>

The updated parameters. Corresponds to the JSON property updatedParameters

Returns:

  • (Hash<String,Object>)


4142
4143
4144
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4142

def updated_parameters
  @updated_parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4149
4150
4151
4152
4153
4154
4155
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4149

def update!(**args)
  @destination = args[:destination] if args.key?(:destination)
  @event_type = args[:event_type] if args.key?(:event_type)
  @function_call = args[:function_call] if args.key?(:function_call)
  @page_state = args[:page_state] if args.key?(:page_state)
  @updated_parameters = args[:updated_parameters] if args.key?(:updated_parameters)
end