Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3Intent

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

Returns a new instance of GoogleCloudDialogflowCxV3Intent.



1572
1573
1574
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1572

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

Instance Attribute Details

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


1529
1530
1531
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1529

def description
  @description
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


1534
1535
1536
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1534

def display_name
  @display_name
end

#dtmf_patternString

Corresponds to the JSON property dtmfPattern

Returns:

  • (String)


1539
1540
1541
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1539

def dtmf_pattern
  @dtmf_pattern
end

#is_fallbackBoolean Also known as: is_fallback?

Corresponds to the JSON property isFallback

Returns:

  • (Boolean)


1544
1545
1546
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1544

def is_fallback
  @is_fallback
end

#labelsHash<String,String>

Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1550
1551
1552
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1550

def labels
  @labels
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


1555
1556
1557
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1555

def name
  @name
end

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

Corresponds to the JSON property parameters



1560
1561
1562
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1560

def parameters
  @parameters
end

#priorityFixnum

Corresponds to the JSON property priority

Returns:

  • (Fixnum)


1565
1566
1567
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1565

def priority
  @priority
end

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

Corresponds to the JSON property trainingPhrases



1570
1571
1572
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1570

def training_phrases
  @training_phrases
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1577

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