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.



19781
19782
19783
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19781

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

Instance Attribute Details

#actionString

Corresponds to the JSON property action

Returns:

  • (String)


19673
19674
19675
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19673

def action
  @action
end

#default_response_platformsArray<String>

Corresponds to the JSON property defaultResponsePlatforms

Returns:

  • (Array<String>)


19678
19679
19680
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19678

def default_response_platforms
  @default_response_platforms
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


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

def display_name
  @display_name
end

#end_interactionBoolean Also known as: end_interaction?

Corresponds to the JSON property endInteraction

Returns:

  • (Boolean)


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

def end_interaction
  @end_interaction
end

#eventsArray<String>

Corresponds to the JSON property events

Returns:

  • (Array<String>)


19694
19695
19696
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19694

def events
  @events
end

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

Corresponds to the JSON property followupIntentInfo



19699
19700
19701
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19699

def followup_intent_info
  @followup_intent_info
end

#input_context_namesArray<String>

Corresponds to the JSON property inputContextNames

Returns:

  • (Array<String>)


19704
19705
19706
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19704

def input_context_names
  @input_context_names
end

#is_fallbackBoolean Also known as: is_fallback?

Corresponds to the JSON property isFallback

Returns:

  • (Boolean)


19709
19710
19711
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19709

def is_fallback
  @is_fallback
end

#live_agent_handoffBoolean Also known as: live_agent_handoff?

Corresponds to the JSON property liveAgentHandoff

Returns:

  • (Boolean)


19715
19716
19717
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19715

def live_agent_handoff
  @live_agent_handoff
end

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

Corresponds to the JSON property messages



19721
19722
19723
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19721

def messages
  @messages
end

#ml_disabledBoolean Also known as: ml_disabled?

Corresponds to the JSON property mlDisabled

Returns:

  • (Boolean)


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

def ml_disabled
  @ml_disabled
end

#ml_enabledBoolean Also known as: ml_enabled?

Corresponds to the JSON property mlEnabled

Returns:

  • (Boolean)


19732
19733
19734
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19732

def ml_enabled
  @ml_enabled
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


19738
19739
19740
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19738

def name
  @name
end

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

Corresponds to the JSON property outputContexts



19743
19744
19745
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19743

def output_contexts
  @output_contexts
end

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

Corresponds to the JSON property parameters



19748
19749
19750
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19748

def parameters
  @parameters
end

#parent_followup_intent_nameString

Corresponds to the JSON property parentFollowupIntentName

Returns:

  • (String)


19753
19754
19755
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19753

def parent_followup_intent_name
  @parent_followup_intent_name
end

#priorityFixnum

Corresponds to the JSON property priority

Returns:

  • (Fixnum)


19758
19759
19760
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19758

def priority
  @priority
end

#reset_contextsBoolean Also known as: reset_contexts?

Corresponds to the JSON property resetContexts

Returns:

  • (Boolean)


19763
19764
19765
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19763

def reset_contexts
  @reset_contexts
end

#root_followup_intent_nameString

Corresponds to the JSON property rootFollowupIntentName

Returns:

  • (String)


19769
19770
19771
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19769

def root_followup_intent_name
  @root_followup_intent_name
end

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

Corresponds to the JSON property trainingPhrases



19774
19775
19776
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19774

def training_phrases
  @training_phrases
end

#webhook_stateString

Corresponds to the JSON property webhookState

Returns:

  • (String)


19779
19780
19781
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19779

def webhook_state
  @webhook_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19786

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