google-cloud-dialogflow 0.2.3 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -0
  3. data/AUTHENTICATION.md +199 -0
  4. data/README.md +2 -2
  5. data/lib/google/cloud/dialogflow.rb +21 -14
  6. data/lib/google/cloud/dialogflow/v2.rb +21 -14
  7. data/lib/google/cloud/dialogflow/v2/agent_pb.rb +1 -0
  8. data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +14 -14
  9. data/lib/google/cloud/dialogflow/v2/agents_client.rb +56 -36
  10. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +51 -0
  11. data/lib/google/cloud/dialogflow/v2/context_pb.rb +1 -0
  12. data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +7 -3
  13. data/lib/google/cloud/dialogflow/v2/contexts_client.rb +48 -26
  14. data/lib/google/cloud/dialogflow/v2/credentials.rb +3 -2
  15. data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/agent.rb +31 -26
  16. data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/audio_config.rb +120 -0
  17. data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/context.rb +8 -4
  18. data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/entity_type.rb +74 -56
  19. data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb +78 -44
  20. data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session.rb +111 -37
  21. data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session_entity_type.rb +11 -5
  22. data/lib/google/cloud/dialogflow/v2/doc/google/longrunning/operations.rb +2 -44
  23. data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/any.rb +3 -2
  24. data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/empty.rb +1 -1
  25. data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/field_mask.rb +19 -27
  26. data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/struct.rb +1 -1
  27. data/lib/google/cloud/dialogflow/v2/doc/google/rpc/status.rb +18 -15
  28. data/lib/google/cloud/dialogflow/v2/doc/google/type/latlng.rb +1 -35
  29. data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +1 -0
  30. data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +12 -14
  31. data/lib/google/cloud/dialogflow/v2/entity_types_client.rb +104 -69
  32. data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -0
  33. data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +6 -4
  34. data/lib/google/cloud/dialogflow/v2/intents_client.rb +73 -45
  35. data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +1 -0
  36. data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +7 -2
  37. data/lib/google/cloud/dialogflow/v2/session_entity_types_client.rb +28 -8
  38. data/lib/google/cloud/dialogflow/v2/session_pb.rb +23 -0
  39. data/lib/google/cloud/dialogflow/v2/session_services_pb.rb +2 -1
  40. data/lib/google/cloud/dialogflow/v2/sessions_client.rb +15 -3
  41. data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +2 -1
  42. metadata +28 -6
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -28,9 +28,10 @@ module Google
28
28
  # @!attribute [rw] default_language_code
29
29
  # @return [String]
30
30
  # Required. The default language of the agent as a language tag. See
31
- # [Language Support](https://dialogflow.com/docs/reference/language) for a
32
- # list of the currently supported language codes.
33
- # This field cannot be set by the `Update` method.
31
+ # [Language
32
+ # Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
33
+ # for a list of the currently supported language codes. This field cannot be
34
+ # set by the `Update` method.
34
35
  # @!attribute [rw] supported_language_codes
35
36
  # @return [Array<String>]
36
37
  # Optional. The list of all languages supported by this agent (except for the
@@ -48,7 +49,9 @@ module Google
48
49
  # @return [String]
49
50
  # Optional. The URI of the agent's avatar.
50
51
  # Avatars are used throughout the Dialogflow console and in the self-hosted
51
- # [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
52
+ # [Web
53
+ # Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo)
54
+ # integration.
52
55
  # @!attribute [rw] enable_logging
53
56
  # @return [true, false]
54
57
  # Optional. Determines whether this agent should log conversation queries.
@@ -60,7 +63,7 @@ module Google
60
63
  # Optional. To filter out false positive results and still get variety in
61
64
  # matched natural language inputs for your agent, you can tune the machine
62
65
  # learning classification threshold. If the returned score value is less than
63
- # the threshold value, then a fallback intent is be triggered or, if there
66
+ # the threshold value, then a fallback intent will be triggered or, if there
64
67
  # are no fallback intents defined, no intent will be triggered. The score
65
68
  # values range from 0.0 (completely uncertain) to 1.0 (completely certain).
66
69
  # If set to 0.0, the default of 0.3 is used.
@@ -126,9 +129,11 @@ module Google
126
129
  # Format: `projects/<Project ID>`.
127
130
  # @!attribute [rw] agent_uri
128
131
  # @return [String]
129
- # Optional. The Google Cloud Storage URI to export the agent to.
130
- # Note: The URI must start with
131
- # "gs://". If left unspecified, the serialized agent is returned inline.
132
+ # Optional. The
133
+ # [Google Cloud Storage](https://cloud.google.com/storage/docs/)
134
+ # URI to export the agent to.
135
+ # The format of this URI must be `gs://<bucket-name>/<object-name>`.
136
+ # If left unspecified, the serialized agent is returned inline.
132
137
  class ExportAgentRequest; end
133
138
 
134
139
  # The response message for {Google::Cloud::Dialogflow::V2::Agents::ExportAgent Agents::ExportAgent}.
@@ -141,17 +146,17 @@ module Google
141
146
  # The exported agent.
142
147
  #
143
148
  # Example for how to export an agent to a zip file via a command line:
144
- #
145
- # curl \
146
- # 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:export'\
149
+ # <pre>curl \
150
+ # 'https://dialogflow.googleapis.com/v2/projects/&lt;project_name&gt;/agent:export'\
147
151
  # -X POST \
148
- # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
152
+ # -H 'Authorization: Bearer '$(gcloud auth application-default
153
+ # print-access-token) \
149
154
  # -H 'Accept: application/json' \
150
155
  # -H 'Content-Type: application/json' \
151
156
  # --compressed \
152
157
  # --data-binary '{}' \
153
158
  # | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
154
- # | base64 --decode > <agent zip file>
159
+ # | base64 --decode > &lt;agent zip file&gt;</pre>
155
160
  class ExportAgentResponse; end
156
161
 
157
162
  # The request message for {Google::Cloud::Dialogflow::V2::Agents::ImportAgent Agents::ImportAgent}.
@@ -168,17 +173,17 @@ module Google
168
173
  # The agent to import.
169
174
  #
170
175
  # Example for how to import an agent via the command line:
171
- #
172
- # curl \
173
- # 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\
176
+ # <pre>curl \
177
+ # 'https://dialogflow.googleapis.com/v2/projects/&lt;project_name&gt;/agent:import\
174
178
  # -X POST \
175
- # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
179
+ # -H 'Authorization: Bearer '$(gcloud auth application-default
180
+ # print-access-token) \
176
181
  # -H 'Accept: application/json' \
177
182
  # -H 'Content-Type: application/json' \
178
183
  # --compressed \
179
184
  # --data-binary "{
180
- # 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
181
- # }"
185
+ # 'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
186
+ # }"</pre>
182
187
  class ImportAgentRequest; end
183
188
 
184
189
  # The request message for {Google::Cloud::Dialogflow::V2::Agents::RestoreAgent Agents::RestoreAgent}.
@@ -195,17 +200,17 @@ module Google
195
200
  # The agent to restore.
196
201
  #
197
202
  # Example for how to restore an agent via the command line:
198
- #
199
- # curl \
200
- # 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore\
203
+ # <pre>curl \
204
+ # 'https://dialogflow.googleapis.com/v2/projects/&lt;project_name&gt;/agent:restore\
201
205
  # -X POST \
202
- # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
206
+ # -H 'Authorization: Bearer '$(gcloud auth application-default
207
+ # print-access-token) \
203
208
  # -H 'Accept: application/json' \
204
209
  # -H 'Content-Type: application/json' \
205
210
  # --compressed \
206
211
  # --data-binary "{
207
- # 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
208
- # }" \
212
+ # 'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
213
+ # }"</pre>
209
214
  class RestoreAgentRequest; end
210
215
  end
211
216
  end
@@ -0,0 +1,120 @@
1
+ # Copyright 2019 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+
16
+ module Google
17
+ module Cloud
18
+ module Dialogflow
19
+ module V2
20
+ # Description of which voice to use for speech synthesis.
21
+ # @!attribute [rw] name
22
+ # @return [String]
23
+ # Optional. The name of the voice. If not set, the service will choose a
24
+ # voice based on the other parameters such as language_code and gender.
25
+ # @!attribute [rw] ssml_gender
26
+ # @return [Google::Cloud::Dialogflow::V2::SsmlVoiceGender]
27
+ # Optional. The preferred gender of the voice. If not set, the service will
28
+ # choose a voice based on the other parameters such as language_code and
29
+ # name. Note that this is only a preference, not requirement. If a
30
+ # voice of the appropriate gender is not available, the synthesizer should
31
+ # substitute a voice with a different gender rather than failing the request.
32
+ class VoiceSelectionParams; end
33
+
34
+ # Configuration of how speech should be synthesized.
35
+ # @!attribute [rw] speaking_rate
36
+ # @return [Float]
37
+ # Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
38
+ # native speed supported by the specific voice. 2.0 is twice as fast, and
39
+ # 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
40
+ # other values < 0.25 or > 4.0 will return an error.
41
+ # @!attribute [rw] pitch
42
+ # @return [Float]
43
+ # Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
44
+ # semitones from the original pitch. -20 means decrease 20 semitones from the
45
+ # original pitch.
46
+ # @!attribute [rw] volume_gain_db
47
+ # @return [Float]
48
+ # Optional. Volume gain (in dB) of the normal native volume supported by the
49
+ # specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
50
+ # 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
51
+ # will play at approximately half the amplitude of the normal native signal
52
+ # amplitude. A value of +6.0 (dB) will play at approximately twice the
53
+ # amplitude of the normal native signal amplitude. We strongly recommend not
54
+ # to exceed +10 (dB) as there's usually no effective increase in loudness for
55
+ # any value greater than that.
56
+ # @!attribute [rw] effects_profile_id
57
+ # @return [Array<String>]
58
+ # Optional. An identifier which selects 'audio effects' profiles that are
59
+ # applied on (post synthesized) text to speech. Effects are applied on top of
60
+ # each other in the order they are given.
61
+ # @!attribute [rw] voice
62
+ # @return [Google::Cloud::Dialogflow::V2::VoiceSelectionParams]
63
+ # Optional. The desired voice of the synthesized audio.
64
+ class SynthesizeSpeechConfig; end
65
+
66
+ # Instructs the speech synthesizer how to generate the output audio content.
67
+ # @!attribute [rw] audio_encoding
68
+ # @return [Google::Cloud::Dialogflow::V2::OutputAudioEncoding]
69
+ # Required. Audio encoding of the synthesized audio content.
70
+ # @!attribute [rw] sample_rate_hertz
71
+ # @return [Integer]
72
+ # Optional. The synthesis sample rate (in hertz) for this audio. If not
73
+ # provided, then the synthesizer will use the default sample rate based on
74
+ # the audio encoding. If this is different from the voice's natural sample
75
+ # rate, then the synthesizer will honor this request by converting to the
76
+ # desired sample rate (which might result in worse audio quality).
77
+ # @!attribute [rw] synthesize_speech_config
78
+ # @return [Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig]
79
+ # Optional. Configuration of how speech should be synthesized.
80
+ class OutputAudioConfig; end
81
+
82
+ # Audio encoding of the output audio format in Text-To-Speech.
83
+ module OutputAudioEncoding
84
+ # Not specified.
85
+ OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0
86
+
87
+ # Uncompressed 16-bit signed little-endian samples (Linear PCM).
88
+ # Audio content returned as LINEAR16 also contains a WAV header.
89
+ OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1
90
+
91
+ # MP3 audio.
92
+ OUTPUT_AUDIO_ENCODING_MP3 = 2
93
+
94
+ # Opus encoded audio wrapped in an ogg container. The result will be a
95
+ # file which can be played natively on Android, and in browsers (at least
96
+ # Chrome and Firefox). The quality of the encoding is considerably higher
97
+ # than MP3 while using approximately the same bitrate.
98
+ OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3
99
+ end
100
+
101
+ # Gender of the voice as described in
102
+ # [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
103
+ module SsmlVoiceGender
104
+ # An unspecified gender, which means that the client doesn't care which
105
+ # gender the selected voice will have.
106
+ SSML_VOICE_GENDER_UNSPECIFIED = 0
107
+
108
+ # A male voice.
109
+ SSML_VOICE_GENDER_MALE = 1
110
+
111
+ # A female voice.
112
+ SSML_VOICE_GENDER_FEMALE = 2
113
+
114
+ # A gender-neutral voice.
115
+ SSML_VOICE_GENDER_NEUTRAL = 3
116
+ end
117
+ end
118
+ end
119
+ end
120
+ end
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -22,17 +22,21 @@ module Google
22
22
  # @return [String]
23
23
  # Required. The unique identifier of the context. Format:
24
24
  # `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
25
+ #
26
+ # The `Context ID` is always converted to lowercase, may only contain
27
+ # characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long.
25
28
  # @!attribute [rw] lifespan_count
26
29
  # @return [Integer]
27
30
  # Optional. The number of conversational query requests after which the
28
31
  # context expires. If set to `0` (the default) the context expires
29
- # immediately. Contexts expire automatically after 10 minutes even if there
32
+ # immediately. Contexts expire automatically after 20 minutes if there
30
33
  # are no matching queries.
31
34
  # @!attribute [rw] parameters
32
35
  # @return [Google::Protobuf::Struct]
33
36
  # Optional. The collection of parameters associated with this context.
34
- # Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for
35
- # syntax.
37
+ # Refer to [this
38
+ # doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters)
39
+ # for syntax.
36
40
  class Context; end
37
41
 
38
42
  # The request message for {Google::Cloud::Dialogflow::V2::Contexts::ListContexts Contexts::ListContexts}.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -22,13 +22,13 @@ module Google
22
22
  # language queries.
23
23
  # @!attribute [rw] name
24
24
  # @return [String]
25
- # Required for all methods except `create` (`create` populates the name
26
- # automatically.
27
- # The unique identifier of the entity type. Format:
28
- # `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
25
+ # The unique identifier of the entity type.
26
+ # Required for {Google::Cloud::Dialogflow::V2::EntityTypes::UpdateEntityType EntityTypes::UpdateEntityType} and
27
+ # {Google::Cloud::Dialogflow::V2::EntityTypes::BatchUpdateEntityTypes EntityTypes::BatchUpdateEntityTypes} methods.
28
+ # Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
29
29
  # @!attribute [rw] display_name
30
30
  # @return [String]
31
- # Required. The name of the entity.
31
+ # Required. The name of the entity type.
32
32
  # @!attribute [rw] kind
33
33
  # @return [Google::Cloud::Dialogflow::V2::EntityType::Kind]
34
34
  # Required. Indicates the kind of entity type.
@@ -38,23 +38,46 @@ module Google
38
38
  # expanded.
39
39
  # @!attribute [rw] entities
40
40
  # @return [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity>]
41
- # Optional. The collection of entities associated with the entity type.
41
+ # Optional. The collection of entity entries associated with the entity type.
42
42
  class EntityType
43
- # Optional. Represents an entity.
43
+ # An **entity entry** for an associated entity type.
44
44
  # @!attribute [rw] value
45
45
  # @return [String]
46
- # Required.
46
+ # Required. The primary value associated with this entity entry.
47
+ # For example, if the entity type is *vegetable*, the value could be
48
+ # *scallions*.
49
+ #
47
50
  # For `KIND_MAP` entity types:
48
- # A canonical name to be used in place of synonyms.
51
+ #
52
+ # * A canonical value to be used in place of synonyms.
53
+ #
49
54
  # For `KIND_LIST` entity types:
50
- # A string that can contain references to other entity types (with or
55
+ #
56
+ # * A string that can contain references to other entity types (with or
51
57
  # without aliases).
52
58
  # @!attribute [rw] synonyms
53
59
  # @return [Array<String>]
54
- # Required. A collection of synonyms. For `KIND_LIST` entity types this
55
- # must contain exactly one synonym equal to `value`.
60
+ # Required. A collection of value synonyms. For example, if the entity type
61
+ # is *vegetable*, and `value` is *scallions*, a synonym could be *green
62
+ # onions*.
63
+ #
64
+ # For `KIND_LIST` entity types:
65
+ #
66
+ # * This collection must contain exactly one synonym equal to `value`.
56
67
  class Entity; end
57
68
 
69
+ # Represents different entity type expansion modes. Automated expansion
70
+ # allows an agent to recognize values that have not been explicitly listed in
71
+ # the entity (for example, new kinds of shopping list items).
72
+ module AutoExpansionMode
73
+ # Auto expansion disabled for the entity.
74
+ AUTO_EXPANSION_MODE_UNSPECIFIED = 0
75
+
76
+ # Allows an agent to recognize values that have not been explicitly
77
+ # listed in the entity.
78
+ AUTO_EXPANSION_MODE_DEFAULT = 1
79
+ end
80
+
58
81
  # Represents kinds of entities.
59
82
  module Kind
60
83
  # Not specified. This value should be never used.
@@ -69,18 +92,6 @@ module Google
69
92
  # types (with or without aliases).
70
93
  KIND_LIST = 2
71
94
  end
72
-
73
- # Represents different entity type expansion modes. Automated expansion
74
- # allows an agent to recognize values that have not been explicitly listed in
75
- # the entity (for example, new kinds of shopping list items).
76
- module AutoExpansionMode
77
- # Auto expansion disabled for the entity.
78
- AUTO_EXPANSION_MODE_UNSPECIFIED = 0
79
-
80
- # Allows an agent to recognize values that have not been explicitly
81
- # listed in the entity.
82
- AUTO_EXPANSION_MODE_DEFAULT = 1
83
- end
84
95
  end
85
96
 
86
97
  # The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::ListEntityTypes EntityTypes::ListEntityTypes}.
@@ -92,9 +103,10 @@ module Google
92
103
  # @return [String]
93
104
  # Optional. The language to list entity synonyms for. If not specified,
94
105
  # the agent's default language is used.
95
- # [More than a dozen
96
- # languages](https://dialogflow.com/docs/reference/language) are supported.
97
- # Note: languages must be enabled in the agent, before they can be used.
106
+ # [Many
107
+ # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
108
+ # are supported. Note: languages must be enabled in the agent before they can
109
+ # be used.
98
110
  # @!attribute [rw] page_size
99
111
  # @return [Integer]
100
112
  # Optional. The maximum number of items to return in a single page. By
@@ -124,9 +136,10 @@ module Google
124
136
  # @return [String]
125
137
  # Optional. The language to retrieve entity synonyms for. If not specified,
126
138
  # the agent's default language is used.
127
- # [More than a dozen
128
- # languages](https://dialogflow.com/docs/reference/language) are supported.
129
- # Note: languages must be enabled in the agent, before they can be used.
139
+ # [Many
140
+ # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
141
+ # are supported. Note: languages must be enabled in the agent before they can
142
+ # be used.
130
143
  class GetEntityTypeRequest; end
131
144
 
132
145
  # The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::CreateEntityType EntityTypes::CreateEntityType}.
@@ -141,23 +154,24 @@ module Google
141
154
  # @return [String]
142
155
  # Optional. The language of entity synonyms defined in `entity_type`. If not
143
156
  # specified, the agent's default language is used.
144
- # [More than a dozen
145
- # languages](https://dialogflow.com/docs/reference/language) are supported.
146
- # Note: languages must be enabled in the agent, before they can be used.
157
+ # [Many
158
+ # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
159
+ # are supported. Note: languages must be enabled in the agent before they can
160
+ # be used.
147
161
  class CreateEntityTypeRequest; end
148
162
 
149
163
  # The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::UpdateEntityType EntityTypes::UpdateEntityType}.
150
164
  # @!attribute [rw] entity_type
151
165
  # @return [Google::Cloud::Dialogflow::V2::EntityType]
152
166
  # Required. The entity type to update.
153
- # Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
154
167
  # @!attribute [rw] language_code
155
168
  # @return [String]
156
169
  # Optional. The language of entity synonyms defined in `entity_type`. If not
157
170
  # specified, the agent's default language is used.
158
- # [More than a dozen
159
- # languages](https://dialogflow.com/docs/reference/language) are supported.
160
- # Note: languages must be enabled in the agent, before they can be used.
171
+ # [Many
172
+ # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
173
+ # are supported. Note: languages must be enabled in the agent before they can
174
+ # be used.
161
175
  # @!attribute [rw] update_mask
162
176
  # @return [Google::Protobuf::FieldMask]
163
177
  # Optional. The mask to control which fields get updated.
@@ -183,14 +197,15 @@ module Google
183
197
  # "gs://".
184
198
  # @!attribute [rw] entity_type_batch_inline
185
199
  # @return [Google::Cloud::Dialogflow::V2::EntityTypeBatch]
186
- # The collection of entity type to update or create.
200
+ # The collection of entity types to update or create.
187
201
  # @!attribute [rw] language_code
188
202
  # @return [String]
189
203
  # Optional. The language of entity synonyms defined in `entity_types`. If not
190
204
  # specified, the agent's default language is used.
191
- # [More than a dozen
192
- # languages](https://dialogflow.com/docs/reference/language) are supported.
193
- # Note: languages must be enabled in the agent, before they can be used.
205
+ # [Many
206
+ # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
207
+ # are supported. Note: languages must be enabled in the agent before they can
208
+ # be used.
194
209
  # @!attribute [rw] update_mask
195
210
  # @return [Google::Protobuf::FieldMask]
196
211
  # Optional. The mask to control which fields get updated.
@@ -220,31 +235,33 @@ module Google
220
235
  # `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
221
236
  # @!attribute [rw] entities
222
237
  # @return [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity>]
223
- # Required. The collection of entities to create.
238
+ # Required. The entities to create.
224
239
  # @!attribute [rw] language_code
225
240
  # @return [String]
226
241
  # Optional. The language of entity synonyms defined in `entities`. If not
227
242
  # specified, the agent's default language is used.
228
- # [More than a dozen
229
- # languages](https://dialogflow.com/docs/reference/language) are supported.
230
- # Note: languages must be enabled in the agent, before they can be used.
243
+ # [Many
244
+ # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
245
+ # are supported. Note: languages must be enabled in the agent before they can
246
+ # be used.
231
247
  class BatchCreateEntitiesRequest; end
232
248
 
233
- # The response message for {Google::Cloud::Dialogflow::V2::EntityTypes::BatchCreateEntities EntityTypes::BatchCreateEntities}.
249
+ # The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::BatchUpdateEntities EntityTypes::BatchUpdateEntities}.
234
250
  # @!attribute [rw] parent
235
251
  # @return [String]
236
- # Required. The name of the entity type to update the entities in. Format:
237
- # `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
252
+ # Required. The name of the entity type to update or create entities in.
253
+ # Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
238
254
  # @!attribute [rw] entities
239
255
  # @return [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity>]
240
- # Required. The collection of new entities to replace the existing entities.
256
+ # Required. The entities to update or create.
241
257
  # @!attribute [rw] language_code
242
258
  # @return [String]
243
259
  # Optional. The language of entity synonyms defined in `entities`. If not
244
260
  # specified, the agent's default language is used.
245
- # [More than a dozen
246
- # languages](https://dialogflow.com/docs/reference/language) are supported.
247
- # Note: languages must be enabled in the agent, before they can be used.
261
+ # [Many
262
+ # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
263
+ # are supported. Note: languages must be enabled in the agent before they can
264
+ # be used.
248
265
  # @!attribute [rw] update_mask
249
266
  # @return [Google::Protobuf::FieldMask]
250
267
  # Optional. The mask to control which fields get updated.
@@ -264,9 +281,10 @@ module Google
264
281
  # @return [String]
265
282
  # Optional. The language of entity synonyms defined in `entities`. If not
266
283
  # specified, the agent's default language is used.
267
- # [More than a dozen
268
- # languages](https://dialogflow.com/docs/reference/language) are supported.
269
- # Note: languages must be enabled in the agent, before they can be used.
284
+ # [Many
285
+ # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
286
+ # are supported. Note: languages must be enabled in the agent before they can
287
+ # be used.
270
288
  class BatchDeleteEntitiesRequest; end
271
289
 
272
290
  # This message is a wrapper around a collection of entity types.