Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1Intent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1Intent

Returns a new instance of GoogleCloudDialogflowV2beta1Intent.



18222
18223
18224
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18222

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

Instance Attribute Details

#actionString

Corresponds to the JSON property action

Returns:

  • (String)


18114
18115
18116
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18114

def action
  @action
end

#default_response_platformsArray<String>

Corresponds to the JSON property defaultResponsePlatforms

Returns:

  • (Array<String>)


18119
18120
18121
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18119

def default_response_platforms
  @default_response_platforms
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


18124
18125
18126
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18124

def display_name
  @display_name
end

#end_interactionBoolean Also known as: end_interaction?

Corresponds to the JSON property endInteraction

Returns:

  • (Boolean)


18129
18130
18131
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18129

def end_interaction
  @end_interaction
end

#eventsArray<String>

Corresponds to the JSON property events

Returns:

  • (Array<String>)


18135
18136
18137
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18135

def events
  @events
end

#followup_intent_infoArray<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo>

Corresponds to the JSON property followupIntentInfo



18140
18141
18142
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18140

def followup_intent_info
  @followup_intent_info
end

#input_context_namesArray<String>

Corresponds to the JSON property inputContextNames

Returns:

  • (Array<String>)


18145
18146
18147
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18145

def input_context_names
  @input_context_names
end

#is_fallbackBoolean Also known as: is_fallback?

Corresponds to the JSON property isFallback

Returns:

  • (Boolean)


18150
18151
18152
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18150

def is_fallback
  @is_fallback
end

#live_agent_handoffBoolean Also known as: live_agent_handoff?

Corresponds to the JSON property liveAgentHandoff

Returns:

  • (Boolean)


18156
18157
18158
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18156

def live_agent_handoff
  @live_agent_handoff
end

#messagesArray<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1IntentMessage>

Corresponds to the JSON property messages



18162
18163
18164
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18162

def messages
  @messages
end

#ml_disabledBoolean Also known as: ml_disabled?

Corresponds to the JSON property mlDisabled

Returns:

  • (Boolean)


18167
18168
18169
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18167

def ml_disabled
  @ml_disabled
end

#ml_enabledBoolean Also known as: ml_enabled?

Corresponds to the JSON property mlEnabled

Returns:

  • (Boolean)


18173
18174
18175
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18173

def ml_enabled
  @ml_enabled
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


18179
18180
18181
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18179

def name
  @name
end

#output_contextsArray<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1Context>

Corresponds to the JSON property outputContexts



18184
18185
18186
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18184

def output_contexts
  @output_contexts
end

#parametersArray<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1IntentParameter>

Corresponds to the JSON property parameters



18189
18190
18191
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18189

def parameters
  @parameters
end

#parent_followup_intent_nameString

Corresponds to the JSON property parentFollowupIntentName

Returns:

  • (String)


18194
18195
18196
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18194

def parent_followup_intent_name
  @parent_followup_intent_name
end

#priorityFixnum

Corresponds to the JSON property priority

Returns:

  • (Fixnum)


18199
18200
18201
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18199

def priority
  @priority
end

#reset_contextsBoolean Also known as: reset_contexts?

Corresponds to the JSON property resetContexts

Returns:

  • (Boolean)


18204
18205
18206
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18204

def reset_contexts
  @reset_contexts
end

#root_followup_intent_nameString

Corresponds to the JSON property rootFollowupIntentName

Returns:

  • (String)


18210
18211
18212
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18210

def root_followup_intent_name
  @root_followup_intent_name
end

#training_phrasesArray<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1IntentTrainingPhrase>

Corresponds to the JSON property trainingPhrases



18215
18216
18217
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18215

def training_phrases
  @training_phrases
end

#webhook_stateString

Corresponds to the JSON property webhookState

Returns:

  • (String)


18220
18221
18222
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18220

def webhook_state
  @webhook_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18227

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @default_response_platforms = args[:default_response_platforms] if args.key?(:default_response_platforms)
  @display_name = args[:display_name] if args.key?(:display_name)
  @end_interaction = args[:end_interaction] if args.key?(:end_interaction)
  @events = args[:events] if args.key?(:events)
  @followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info)
  @input_context_names = args[:input_context_names] if args.key?(:input_context_names)
  @is_fallback = args[:is_fallback] if args.key?(:is_fallback)
  @live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff)
  @messages = args[:messages] if args.key?(:messages)
  @ml_disabled = args[:ml_disabled] if args.key?(:ml_disabled)
  @ml_enabled = args[:ml_enabled] if args.key?(:ml_enabled)
  @name = args[:name] if args.key?(:name)
  @output_contexts = args[:output_contexts] if args.key?(:output_contexts)
  @parameters = args[:parameters] if args.key?(:parameters)
  @parent_followup_intent_name = args[:parent_followup_intent_name] if args.key?(:parent_followup_intent_name)
  @priority = args[:priority] if args.key?(:priority)
  @reset_contexts = args[:reset_contexts] if args.key?(:reset_contexts)
  @root_followup_intent_name = args[:root_followup_intent_name] if args.key?(:root_followup_intent_name)
  @training_phrases = args[:training_phrases] if args.key?(:training_phrases)
  @webhook_state = args[:webhook_state] if args.key?(:webhook_state)
end