Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2EntityTypeEntity

Returns a new instance of GoogleCloudDialogflowV2EntityTypeEntity.



9450
9451
9452
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9450

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

Instance Attribute Details

#synonymsArray<String>

Corresponds to the JSON property synonyms

Returns:

  • (Array<String>)


9443
9444
9445
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9443

def synonyms
  @synonyms
end

#valueString

Corresponds to the JSON property value

Returns:

  • (String)


9448
9449
9450
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9448

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9455
9456
9457
9458
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9455

def update!(**args)
  @synonyms = args[:synonyms] if args.key?(:synonyms)
  @value = args[:value] if args.key?(:value)
end