Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2Intent

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) ⇒ GoogleCloudDialogflowV2Intent

Returns a new instance of GoogleCloudDialogflowV2Intent.



14561
14562
14563
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14561

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

Instance Attribute Details

#actionString

Corresponds to the JSON property action

Returns:

  • (String)


14459
14460
14461
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14459

def action
  @action
end

#default_response_platformsArray<String>

Corresponds to the JSON property defaultResponsePlatforms

Returns:

  • (Array<String>)


14464
14465
14466
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14464

def default_response_platforms
  @default_response_platforms
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


14469
14470
14471
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14469

def display_name
  @display_name
end

#end_interactionBoolean Also known as: end_interaction?

Corresponds to the JSON property endInteraction

Returns:

  • (Boolean)


14474
14475
14476
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14474

def end_interaction
  @end_interaction
end

#eventsArray<String>

Corresponds to the JSON property events

Returns:

  • (Array<String>)


14480
14481
14482
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14480

def events
  @events
end

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

Corresponds to the JSON property followupIntentInfo



14485
14486
14487
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14485

def followup_intent_info
  @followup_intent_info
end

#input_context_namesArray<String>

Corresponds to the JSON property inputContextNames

Returns:

  • (Array<String>)


14490
14491
14492
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14490

def input_context_names
  @input_context_names
end

#is_fallbackBoolean Also known as: is_fallback?

Corresponds to the JSON property isFallback

Returns:

  • (Boolean)


14495
14496
14497
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14495

def is_fallback
  @is_fallback
end

#live_agent_handoffBoolean Also known as: live_agent_handoff?

Corresponds to the JSON property liveAgentHandoff

Returns:

  • (Boolean)


14501
14502
14503
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14501

def live_agent_handoff
  @live_agent_handoff
end

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

Corresponds to the JSON property messages



14507
14508
14509
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14507

def messages
  @messages
end

#ml_disabledBoolean Also known as: ml_disabled?

Corresponds to the JSON property mlDisabled

Returns:

  • (Boolean)


14512
14513
14514
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14512

def ml_disabled
  @ml_disabled
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


14518
14519
14520
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14518

def name
  @name
end

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

Corresponds to the JSON property outputContexts



14523
14524
14525
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14523

def output_contexts
  @output_contexts
end

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

Corresponds to the JSON property parameters



14528
14529
14530
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14528

def parameters
  @parameters
end

#parent_followup_intent_nameString

Corresponds to the JSON property parentFollowupIntentName

Returns:

  • (String)


14533
14534
14535
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14533

def parent_followup_intent_name
  @parent_followup_intent_name
end

#priorityFixnum

Corresponds to the JSON property priority

Returns:

  • (Fixnum)


14538
14539
14540
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14538

def priority
  @priority
end

#reset_contextsBoolean Also known as: reset_contexts?

Corresponds to the JSON property resetContexts

Returns:

  • (Boolean)


14543
14544
14545
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14543

def reset_contexts
  @reset_contexts
end

#root_followup_intent_nameString

Corresponds to the JSON property rootFollowupIntentName

Returns:

  • (String)


14549
14550
14551
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14549

def root_followup_intent_name
  @root_followup_intent_name
end

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

Corresponds to the JSON property trainingPhrases



14554
14555
14556
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14554

def training_phrases
  @training_phrases
end

#webhook_stateString

Corresponds to the JSON property webhookState

Returns:

  • (String)


14559
14560
14561
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14559

def webhook_state
  @webhook_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14566

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)
  @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