Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2BatchCreateEntitiesRequest

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

Overview

The request message for EntityTypes.BatchCreateEntities.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2BatchCreateEntitiesRequest

Returns a new instance of GoogleCloudDialogflowV2BatchCreateEntitiesRequest



133
134
135
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 133

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

Instance Attribute Details

#entitiesArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity>

Required. The entities to create. Corresponds to the JSON property entities



122
123
124
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 122

def entities
  @entities
end

#language_codeString

Optional. The language of entity synonyms defined in entities. If not specified, the agent's default language is used. More than a dozen languages are supported. Note: languages must be enabled in the agent, before they can be used. Corresponds to the JSON property languageCode

Returns:

  • (String)


131
132
133
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 131

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



138
139
140
141
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 138

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