Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent

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

Returns a new instance of GoogleCloudDialogflowCxV3beta1Intent.



8640
8641
8642
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8640

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

Instance Attribute Details

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


8597
8598
8599
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8597

def description
  @description
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


8602
8603
8604
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8602

def display_name
  @display_name
end

#dtmf_patternString

Corresponds to the JSON property dtmfPattern

Returns:

  • (String)


8607
8608
8609
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8607

def dtmf_pattern
  @dtmf_pattern
end

#is_fallbackBoolean Also known as: is_fallback?

Corresponds to the JSON property isFallback

Returns:

  • (Boolean)


8612
8613
8614
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8612

def is_fallback
  @is_fallback
end

#labelsHash<String,String>

Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


8618
8619
8620
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8618

def labels
  @labels
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


8623
8624
8625
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8623

def name
  @name
end

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

Corresponds to the JSON property parameters



8628
8629
8630
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8628

def parameters
  @parameters
end

#priorityFixnum

Corresponds to the JSON property priority

Returns:

  • (Fixnum)


8633
8634
8635
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8633

def priority
  @priority
end

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

Corresponds to the JSON property trainingPhrases



8638
8639
8640
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8638

def training_phrases
  @training_phrases
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8645

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @dtmf_pattern = args[:dtmf_pattern] if args.key?(:dtmf_pattern)
  @is_fallback = args[:is_fallback] if args.key?(:is_fallback)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @parameters = args[:parameters] if args.key?(:parameters)
  @priority = args[:priority] if args.key?(:priority)
  @training_phrases = args[:training_phrases] if args.key?(:training_phrases)
end