Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1Intent

Returns a new instance of GoogleCloudDialogflowV2beta1Intent.



15533
15534
15535
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15533

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

Instance Attribute Details

#actionString

Corresponds to the JSON property action

Returns:

  • (String)


15425
15426
15427
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15425

def action
  @action
end

#default_response_platformsArray<String>

Corresponds to the JSON property defaultResponsePlatforms

Returns:

  • (Array<String>)


15430
15431
15432
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15430

def default_response_platforms
  @default_response_platforms
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


15435
15436
15437
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15435

def display_name
  @display_name
end

#end_interactionBoolean Also known as: end_interaction?

Corresponds to the JSON property endInteraction

Returns:

  • (Boolean)


15440
15441
15442
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15440

def end_interaction
  @end_interaction
end

#eventsArray<String>

Corresponds to the JSON property events

Returns:

  • (Array<String>)


15446
15447
15448
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15446

def events
  @events
end

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

Corresponds to the JSON property followupIntentInfo



15451
15452
15453
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15451

def followup_intent_info
  @followup_intent_info
end

#input_context_namesArray<String>

Corresponds to the JSON property inputContextNames

Returns:

  • (Array<String>)


15456
15457
15458
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15456

def input_context_names
  @input_context_names
end

#is_fallbackBoolean Also known as: is_fallback?

Corresponds to the JSON property isFallback

Returns:

  • (Boolean)


15461
15462
15463
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15461

def is_fallback
  @is_fallback
end

#live_agent_handoffBoolean Also known as: live_agent_handoff?

Corresponds to the JSON property liveAgentHandoff

Returns:

  • (Boolean)


15467
15468
15469
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15467

def live_agent_handoff
  @live_agent_handoff
end

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

Corresponds to the JSON property messages



15473
15474
15475
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15473

def messages
  @messages
end

#ml_disabledBoolean Also known as: ml_disabled?

Corresponds to the JSON property mlDisabled

Returns:

  • (Boolean)


15478
15479
15480
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15478

def ml_disabled
  @ml_disabled
end

#ml_enabledBoolean Also known as: ml_enabled?

Corresponds to the JSON property mlEnabled

Returns:

  • (Boolean)


15484
15485
15486
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15484

def ml_enabled
  @ml_enabled
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


15490
15491
15492
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15490

def name
  @name
end

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

Corresponds to the JSON property outputContexts



15495
15496
15497
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15495

def output_contexts
  @output_contexts
end

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

Corresponds to the JSON property parameters



15500
15501
15502
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15500

def parameters
  @parameters
end

#parent_followup_intent_nameString

Corresponds to the JSON property parentFollowupIntentName

Returns:

  • (String)


15505
15506
15507
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15505

def parent_followup_intent_name
  @parent_followup_intent_name
end

#priorityFixnum

Corresponds to the JSON property priority

Returns:

  • (Fixnum)


15510
15511
15512
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15510

def priority
  @priority
end

#reset_contextsBoolean Also known as: reset_contexts?

Corresponds to the JSON property resetContexts

Returns:

  • (Boolean)


15515
15516
15517
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15515

def reset_contexts
  @reset_contexts
end

#root_followup_intent_nameString

Corresponds to the JSON property rootFollowupIntentName

Returns:

  • (String)


15521
15522
15523
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15521

def root_followup_intent_name
  @root_followup_intent_name
end

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

Corresponds to the JSON property trainingPhrases



15526
15527
15528
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15526

def training_phrases
  @training_phrases
end

#webhook_stateString

Corresponds to the JSON property webhookState

Returns:

  • (String)


15531
15532
15533
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15531

def webhook_state
  @webhook_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15538

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