Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1Intent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1Intent

Returns a new instance of GoogleCloudDialogflowV2beta1Intent.



19725
19726
19727
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19725

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

Instance Attribute Details

#actionString

Corresponds to the JSON property action

Returns:

  • (String)


19617
19618
19619
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19617

def action
  @action
end

#default_response_platformsArray<String>

Corresponds to the JSON property defaultResponsePlatforms

Returns:

  • (Array<String>)


19622
19623
19624
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19622

def default_response_platforms
  @default_response_platforms
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


19627
19628
19629
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19627

def display_name
  @display_name
end

#end_interactionBoolean Also known as: end_interaction?

Corresponds to the JSON property endInteraction

Returns:

  • (Boolean)


19632
19633
19634
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19632

def end_interaction
  @end_interaction
end

#eventsArray<String>

Corresponds to the JSON property events

Returns:

  • (Array<String>)


19638
19639
19640
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19638

def events
  @events
end

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

Corresponds to the JSON property followupIntentInfo



19643
19644
19645
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19643

def followup_intent_info
  @followup_intent_info
end

#input_context_namesArray<String>

Corresponds to the JSON property inputContextNames

Returns:

  • (Array<String>)


19648
19649
19650
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19648

def input_context_names
  @input_context_names
end

#is_fallbackBoolean Also known as: is_fallback?

Corresponds to the JSON property isFallback

Returns:

  • (Boolean)


19653
19654
19655
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19653

def is_fallback
  @is_fallback
end

#live_agent_handoffBoolean Also known as: live_agent_handoff?

Corresponds to the JSON property liveAgentHandoff

Returns:

  • (Boolean)


19659
19660
19661
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19659

def live_agent_handoff
  @live_agent_handoff
end

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

Corresponds to the JSON property messages



19665
19666
19667
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19665

def messages
  @messages
end

#ml_disabledBoolean Also known as: ml_disabled?

Corresponds to the JSON property mlDisabled

Returns:

  • (Boolean)


19670
19671
19672
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19670

def ml_disabled
  @ml_disabled
end

#ml_enabledBoolean Also known as: ml_enabled?

Corresponds to the JSON property mlEnabled

Returns:

  • (Boolean)


19676
19677
19678
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19676

def ml_enabled
  @ml_enabled
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


19682
19683
19684
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19682

def name
  @name
end

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

Corresponds to the JSON property outputContexts



19687
19688
19689
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19687

def output_contexts
  @output_contexts
end

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

Corresponds to the JSON property parameters



19692
19693
19694
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19692

def parameters
  @parameters
end

#parent_followup_intent_nameString

Corresponds to the JSON property parentFollowupIntentName

Returns:

  • (String)


19697
19698
19699
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19697

def parent_followup_intent_name
  @parent_followup_intent_name
end

#priorityFixnum

Corresponds to the JSON property priority

Returns:

  • (Fixnum)


19702
19703
19704
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19702

def priority
  @priority
end

#reset_contextsBoolean Also known as: reset_contexts?

Corresponds to the JSON property resetContexts

Returns:

  • (Boolean)


19707
19708
19709
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19707

def reset_contexts
  @reset_contexts
end

#root_followup_intent_nameString

Corresponds to the JSON property rootFollowupIntentName

Returns:

  • (String)


19713
19714
19715
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19713

def root_followup_intent_name
  @root_followup_intent_name
end

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

Corresponds to the JSON property trainingPhrases



19718
19719
19720
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19718

def training_phrases
  @training_phrases
end

#webhook_stateString

Corresponds to the JSON property webhookState

Returns:

  • (String)


19723
19724
19725
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19723

def webhook_state
  @webhook_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19730

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