google-cloud-dialogflow-v2 0.6.2 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +188 -190
  3. data/README.md +70 -2
  4. data/lib/google/cloud/dialogflow/v2.rb +13 -2
  5. data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +25 -40
  6. data/lib/google/cloud/dialogflow/v2/agents.rb +1 -28
  7. data/lib/google/cloud/dialogflow/v2/agents/client.rb +41 -100
  8. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +96 -11
  9. data/lib/google/cloud/dialogflow/v2/agents/paths.rb +42 -3
  10. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +100 -0
  11. data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +48 -0
  12. data/lib/google/cloud/dialogflow/v2/answer_records.rb +49 -0
  13. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +478 -0
  14. data/lib/google/cloud/dialogflow/v2/answer_records/credentials.rb +52 -0
  15. data/lib/google/cloud/dialogflow/v2/answer_records/paths.rb +105 -0
  16. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +7 -0
  17. data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +8 -25
  18. data/lib/google/cloud/dialogflow/v2/contexts.rb +1 -18
  19. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +24 -63
  20. data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +74 -2
  21. data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +39 -0
  22. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +89 -0
  23. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +182 -0
  24. data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +61 -0
  25. data/lib/google/cloud/dialogflow/v2/conversation_profiles.rb +49 -0
  26. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +699 -0
  27. data/lib/google/cloud/dialogflow/v2/conversation_profiles/credentials.rb +52 -0
  28. data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +246 -0
  29. data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +75 -0
  30. data/lib/google/cloud/dialogflow/v2/conversations.rb +49 -0
  31. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +757 -0
  32. data/lib/google/cloud/dialogflow/v2/conversations/credentials.rb +52 -0
  33. data/lib/google/cloud/dialogflow/v2/conversations/paths.rb +146 -0
  34. data/lib/google/cloud/dialogflow/v2/document_pb.rb +99 -0
  35. data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +73 -0
  36. data/lib/google/cloud/dialogflow/v2/documents.rb +50 -0
  37. data/lib/google/cloud/dialogflow/v2/documents/client.rb +810 -0
  38. data/lib/google/cloud/dialogflow/v2/documents/credentials.rb +52 -0
  39. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +655 -0
  40. data/lib/google/cloud/dialogflow/v2/documents/paths.rb +119 -0
  41. data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +12 -39
  42. data/lib/google/cloud/dialogflow/v2/entity_types.rb +1 -28
  43. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +28 -91
  44. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +96 -11
  45. data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +58 -12
  46. data/lib/google/cloud/dialogflow/v2/environment_pb.rb +50 -1
  47. data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +24 -3
  48. data/lib/google/cloud/dialogflow/v2/environments.rb +1 -1
  49. data/lib/google/cloud/dialogflow/v2/environments/client.rb +430 -14
  50. data/lib/google/cloud/dialogflow/v2/environments/paths.rb +104 -5
  51. data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +59 -0
  52. data/lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb +47 -0
  53. data/lib/google/cloud/dialogflow/v2/fulfillments.rb +49 -0
  54. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +460 -0
  55. data/lib/google/cloud/dialogflow/v2/fulfillments/credentials.rb +52 -0
  56. data/lib/google/cloud/dialogflow/v2/fulfillments/paths.rb +69 -0
  57. data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +20 -0
  58. data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +26 -0
  59. data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -0
  60. data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +9 -40
  61. data/lib/google/cloud/dialogflow/v2/intents.rb +1 -32
  62. data/lib/google/cloud/dialogflow/v2/intents/client.rb +34 -81
  63. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +96 -11
  64. data/lib/google/cloud/dialogflow/v2/intents/paths.rb +97 -13
  65. data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +60 -0
  66. data/lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb +53 -0
  67. data/lib/google/cloud/dialogflow/v2/knowledge_bases.rb +49 -0
  68. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +696 -0
  69. data/lib/google/cloud/dialogflow/v2/knowledge_bases/credentials.rb +52 -0
  70. data/lib/google/cloud/dialogflow/v2/knowledge_bases/paths.rb +105 -0
  71. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +172 -0
  72. data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +64 -0
  73. data/lib/google/cloud/dialogflow/v2/participants.rb +49 -0
  74. data/lib/google/cloud/dialogflow/v2/participants/client.rb +894 -0
  75. data/lib/google/cloud/dialogflow/v2/participants/credentials.rb +52 -0
  76. data/lib/google/cloud/dialogflow/v2/participants/paths.rb +334 -0
  77. data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +7 -23
  78. data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +1 -17
  79. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +23 -53
  80. data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +74 -2
  81. data/lib/google/cloud/dialogflow/v2/session_pb.rb +1 -0
  82. data/lib/google/cloud/dialogflow/v2/session_services_pb.rb +15 -7
  83. data/lib/google/cloud/dialogflow/v2/sessions.rb +4 -4
  84. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +51 -15
  85. data/lib/google/cloud/dialogflow/v2/sessions/paths.rb +113 -3
  86. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  87. data/lib/google/cloud/dialogflow/v2/version_pb.rb +69 -0
  88. data/lib/google/cloud/dialogflow/v2/version_services_pb.rb +59 -0
  89. data/lib/google/cloud/dialogflow/v2/versions.rb +49 -0
  90. data/lib/google/cloud/dialogflow/v2/versions/client.rb +709 -0
  91. data/lib/google/cloud/dialogflow/v2/versions/credentials.rb +52 -0
  92. data/lib/google/cloud/dialogflow/v2/versions/paths.rb +110 -0
  93. data/proto_docs/google/api/field_behavior.rb +6 -0
  94. data/proto_docs/google/api/resource.rb +50 -14
  95. data/proto_docs/google/cloud/dialogflow/v2/agent.rb +9 -1
  96. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +252 -0
  97. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +25 -0
  98. data/proto_docs/google/cloud/dialogflow/v2/context.rb +17 -2
  99. data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +253 -0
  100. data/proto_docs/google/cloud/dialogflow/v2/conversation_event.rb +83 -0
  101. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +522 -0
  102. data/proto_docs/google/cloud/dialogflow/v2/document.rb +267 -0
  103. data/proto_docs/google/cloud/dialogflow/v2/entity_type.rb +12 -3
  104. data/proto_docs/google/cloud/dialogflow/v2/environment.rb +187 -5
  105. data/proto_docs/google/cloud/dialogflow/v2/fulfillment.rb +144 -0
  106. data/proto_docs/google/cloud/dialogflow/v2/human_agent_assistant_event.rb +45 -0
  107. data/proto_docs/google/cloud/dialogflow/v2/intent.rb +29 -4
  108. data/proto_docs/google/cloud/dialogflow/v2/knowledge_base.rb +139 -0
  109. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +503 -0
  110. data/proto_docs/google/cloud/dialogflow/v2/session.rb +52 -7
  111. data/proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb +7 -6
  112. data/proto_docs/google/cloud/dialogflow/v2/validation_result.rb +1 -1
  113. data/proto_docs/google/cloud/dialogflow/v2/version.rb +176 -0
  114. data/proto_docs/google/cloud/dialogflow/v2/webhook.rb +2 -2
  115. data/proto_docs/google/longrunning/operations.rb +17 -3
  116. data/proto_docs/google/protobuf/any.rb +5 -2
  117. data/proto_docs/google/protobuf/timestamp.rb +10 -1
  118. data/proto_docs/google/type/latlng.rb +2 -2
  119. metadata +73 -9
@@ -0,0 +1,267 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Dialogflow
23
+ module V2
24
+ # A knowledge document to be used by a {::Google::Cloud::Dialogflow::V2::KnowledgeBase KnowledgeBase}.
25
+ #
26
+ # For more information, see the [knowledge base
27
+ # guide](https://cloud.google.com/dialogflow/docs/how/knowledge-bases).
28
+ #
29
+ # Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
30
+ # only use `projects.knowledgeBases.documents`.
31
+ # @!attribute [rw] name
32
+ # @return [::String]
33
+ # Optional. The document resource name.
34
+ # The name must be empty when creating a document.
35
+ # Format: `projects/<Project ID>/locations/<Location
36
+ # ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
37
+ # @!attribute [rw] display_name
38
+ # @return [::String]
39
+ # Required. The display name of the document. The name must be 1024 bytes or
40
+ # less; otherwise, the creation request fails.
41
+ # @!attribute [rw] mime_type
42
+ # @return [::String]
43
+ # Required. The MIME type of this document.
44
+ # @!attribute [rw] knowledge_types
45
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::Document::KnowledgeType>]
46
+ # Required. The knowledge type of document content.
47
+ # @!attribute [rw] content_uri
48
+ # @return [::String]
49
+ # The URI where the file content is located.
50
+ #
51
+ # For documents stored in Google Cloud Storage, these URIs must have
52
+ # the form `gs://<bucket-name>/<object-name>`.
53
+ #
54
+ # NOTE: External URLs must correspond to public webpages, i.e., they must
55
+ # be indexed by Google Search. In particular, URLs for showing documents in
56
+ # Google Cloud Storage (i.e. the URL in your browser) are not supported.
57
+ # Instead use the `gs://` format URI described above.
58
+ # @!attribute [rw] raw_content
59
+ # @return [::String]
60
+ # The raw content of the document. This field is only permitted for
61
+ # EXTRACTIVE_QA and FAQ knowledge types.
62
+ # @!attribute [rw] enable_auto_reload
63
+ # @return [::Boolean]
64
+ # Optional. If true, we try to automatically reload the document every day
65
+ # (at a time picked by the system). If false or unspecified, we don't try
66
+ # to automatically reload the document.
67
+ #
68
+ # Currently you can only enable automatic reload for documents sourced from
69
+ # a public url, see `source` field for the source types.
70
+ #
71
+ # Reload status can be tracked in `latest_reload_status`. If a reload
72
+ # fails, we will keep the document unchanged.
73
+ #
74
+ # If a reload fails with internal errors, the system will try to reload the
75
+ # document on the next day.
76
+ # If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), the
77
+ # system will not try to reload the document anymore. You need to manually
78
+ # reload the document successfully by calling `ReloadDocument` and clear the
79
+ # errors.
80
+ # @!attribute [r] latest_reload_status
81
+ # @return [::Google::Cloud::Dialogflow::V2::Document::ReloadStatus]
82
+ # Output only. The time and status of the latest reload.
83
+ # This reload may have been triggered automatically or manually
84
+ # and may not have succeeded.
85
+ # @!attribute [rw] metadata
86
+ # @return [::Google::Protobuf::Map{::String => ::String}]
87
+ # Optional. Metadata for the document. The metadata supports arbitrary
88
+ # key-value pairs. Suggested use cases include storing a document's title,
89
+ # an external URL distinct from the document's content_uri, etc.
90
+ # The max size of a `key` or a `value` of the metadata is 1024 bytes.
91
+ class Document
92
+ include ::Google::Protobuf::MessageExts
93
+ extend ::Google::Protobuf::MessageExts::ClassMethods
94
+
95
+ # The status of a reload attempt.
96
+ # @!attribute [rw] time
97
+ # @return [::Google::Protobuf::Timestamp]
98
+ # The time of a reload attempt.
99
+ # This reload may have been triggered automatically or manually and may
100
+ # not have succeeded.
101
+ # @!attribute [rw] status
102
+ # @return [::Google::Rpc::Status]
103
+ # The status of a reload attempt or the initial load.
104
+ class ReloadStatus
105
+ include ::Google::Protobuf::MessageExts
106
+ extend ::Google::Protobuf::MessageExts::ClassMethods
107
+ end
108
+
109
+ # @!attribute [rw] key
110
+ # @return [::String]
111
+ # @!attribute [rw] value
112
+ # @return [::String]
113
+ class MetadataEntry
114
+ include ::Google::Protobuf::MessageExts
115
+ extend ::Google::Protobuf::MessageExts::ClassMethods
116
+ end
117
+
118
+ # The knowledge type of document content.
119
+ module KnowledgeType
120
+ # The type is unspecified or arbitrary.
121
+ KNOWLEDGE_TYPE_UNSPECIFIED = 0
122
+
123
+ # The document content contains question and answer pairs as either HTML or
124
+ # CSV. Typical FAQ HTML formats are parsed accurately, but unusual formats
125
+ # may fail to be parsed.
126
+ #
127
+ # CSV must have questions in the first column and answers in the second,
128
+ # with no header. Because of this explicit format, they are always parsed
129
+ # accurately.
130
+ FAQ = 1
131
+
132
+ # Documents for which unstructured text is extracted and used for
133
+ # question answering.
134
+ EXTRACTIVE_QA = 2
135
+
136
+ # The entire document content as a whole can be used for query results.
137
+ # Only for Contact Center Solutions on Dialogflow.
138
+ ARTICLE_SUGGESTION = 3
139
+ end
140
+ end
141
+
142
+ # Request message for {::Google::Cloud::Dialogflow::V2::Documents::Client#get_document Documents.GetDocument}.
143
+ # @!attribute [rw] name
144
+ # @return [::String]
145
+ # Required. The name of the document to retrieve.
146
+ # Format `projects/<Project ID>/locations/<Location
147
+ # ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
148
+ class GetDocumentRequest
149
+ include ::Google::Protobuf::MessageExts
150
+ extend ::Google::Protobuf::MessageExts::ClassMethods
151
+ end
152
+
153
+ # Request message for {::Google::Cloud::Dialogflow::V2::Documents::Client#list_documents Documents.ListDocuments}.
154
+ # @!attribute [rw] parent
155
+ # @return [::String]
156
+ # Required. The knowledge base to list all documents for.
157
+ # Format: `projects/<Project ID>/locations/<Location
158
+ # ID>/knowledgeBases/<Knowledge Base ID>`.
159
+ # @!attribute [rw] page_size
160
+ # @return [::Integer]
161
+ # The maximum number of items to return in a single page. By
162
+ # default 10 and at most 100.
163
+ # @!attribute [rw] page_token
164
+ # @return [::String]
165
+ # The next_page_token value returned from a previous list request.
166
+ class ListDocumentsRequest
167
+ include ::Google::Protobuf::MessageExts
168
+ extend ::Google::Protobuf::MessageExts::ClassMethods
169
+ end
170
+
171
+ # Response message for {::Google::Cloud::Dialogflow::V2::Documents::Client#list_documents Documents.ListDocuments}.
172
+ # @!attribute [rw] documents
173
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::Document>]
174
+ # The list of documents.
175
+ # @!attribute [rw] next_page_token
176
+ # @return [::String]
177
+ # Token to retrieve the next page of results, or empty if there are no
178
+ # more results in the list.
179
+ class ListDocumentsResponse
180
+ include ::Google::Protobuf::MessageExts
181
+ extend ::Google::Protobuf::MessageExts::ClassMethods
182
+ end
183
+
184
+ # Request message for {::Google::Cloud::Dialogflow::V2::Documents::Client#create_document Documents.CreateDocument}.
185
+ # @!attribute [rw] parent
186
+ # @return [::String]
187
+ # Required. The knowledge base to create a document for.
188
+ # Format: `projects/<Project ID>/locations/<Location
189
+ # ID>/knowledgeBases/<Knowledge Base ID>`.
190
+ # @!attribute [rw] document
191
+ # @return [::Google::Cloud::Dialogflow::V2::Document]
192
+ # Required. The document to create.
193
+ class CreateDocumentRequest
194
+ include ::Google::Protobuf::MessageExts
195
+ extend ::Google::Protobuf::MessageExts::ClassMethods
196
+ end
197
+
198
+ # Request message for {::Google::Cloud::Dialogflow::V2::Documents::Client#delete_document Documents.DeleteDocument}.
199
+ # @!attribute [rw] name
200
+ # @return [::String]
201
+ # Required. The name of the document to delete.
202
+ # Format: `projects/<Project ID>/locations/<Location
203
+ # ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
204
+ class DeleteDocumentRequest
205
+ include ::Google::Protobuf::MessageExts
206
+ extend ::Google::Protobuf::MessageExts::ClassMethods
207
+ end
208
+
209
+ # Request message for {::Google::Cloud::Dialogflow::V2::Documents::Client#update_document Documents.UpdateDocument}.
210
+ # @!attribute [rw] document
211
+ # @return [::Google::Cloud::Dialogflow::V2::Document]
212
+ # Required. The document to update.
213
+ # @!attribute [rw] update_mask
214
+ # @return [::Google::Protobuf::FieldMask]
215
+ # Optional. Not specified means `update all`.
216
+ # Currently, only `display_name` can be updated, an InvalidArgument will be
217
+ # returned for attempting to update other fields.
218
+ class UpdateDocumentRequest
219
+ include ::Google::Protobuf::MessageExts
220
+ extend ::Google::Protobuf::MessageExts::ClassMethods
221
+ end
222
+
223
+ # Request message for {::Google::Cloud::Dialogflow::V2::Documents::Client#reload_document Documents.ReloadDocument}.
224
+ # @!attribute [rw] name
225
+ # @return [::String]
226
+ # Required. The name of the document to reload.
227
+ # Format: `projects/<Project ID>/locations/<Location
228
+ # ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`
229
+ # @!attribute [rw] content_uri
230
+ # @return [::String]
231
+ # Optional. The path of gcs source file for reloading document content. For now,
232
+ # only gcs uri is supported.
233
+ #
234
+ # For documents stored in Google Cloud Storage, these URIs must have
235
+ # the form `gs://<bucket-name>/<object-name>`.
236
+ class ReloadDocumentRequest
237
+ include ::Google::Protobuf::MessageExts
238
+ extend ::Google::Protobuf::MessageExts::ClassMethods
239
+ end
240
+
241
+ # Metadata in google::longrunning::Operation for Knowledge operations.
242
+ # @!attribute [r] state
243
+ # @return [::Google::Cloud::Dialogflow::V2::KnowledgeOperationMetadata::State]
244
+ # Output only. The current state of this operation.
245
+ class KnowledgeOperationMetadata
246
+ include ::Google::Protobuf::MessageExts
247
+ extend ::Google::Protobuf::MessageExts::ClassMethods
248
+
249
+ # States of the operation.
250
+ module State
251
+ # State unspecified.
252
+ STATE_UNSPECIFIED = 0
253
+
254
+ # The operation has been created.
255
+ PENDING = 1
256
+
257
+ # The operation is currently running.
258
+ RUNNING = 2
259
+
260
+ # The operation is done, either cancelled or completed.
261
+ DONE = 3
262
+ end
263
+ end
264
+ end
265
+ end
266
+ end
267
+ end
@@ -21,9 +21,18 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module V2
24
- # Represents an entity type.
25
- # Entity types serve as a tool for extracting parameter values from natural
26
- # language queries.
24
+ # Each intent parameter has a type, called the entity type, which dictates
25
+ # exactly how data from an end-user expression is extracted.
26
+ #
27
+ # Dialogflow provides predefined system entities that can match many common
28
+ # types of data. For example, there are system entities for matching dates,
29
+ # times, colors, email addresses, and so on. You can also create your own
30
+ # custom entities for matching custom data. For example, you could define a
31
+ # vegetable entity that can match the types of vegetables available for
32
+ # purchase with a grocery store agent.
33
+ #
34
+ # For more information, see the
35
+ # [Entity guide](https://cloud.google.com/dialogflow/docs/entities-overview).
27
36
  # @!attribute [rw] name
28
37
  # @return [::String]
29
38
  # The unique identifier of the entity type.
@@ -21,12 +21,31 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module V2
24
- # Represents an agent environment.
24
+ # You can create multiple versions of your agent and publish them to separate
25
+ # environments.
26
+ #
27
+ # When you edit an agent, you are editing the draft agent. At any point, you
28
+ # can save the draft agent as an agent version, which is an immutable snapshot
29
+ # of your agent.
30
+ #
31
+ # When you save the draft agent, it is published to the default environment.
32
+ # When you create agent versions, you can publish them to custom environments.
33
+ # You can create a variety of custom environments for:
34
+ #
35
+ # - testing
36
+ # - development
37
+ # - production
38
+ # - etc.
39
+ #
40
+ # For more information, see the [versions and environments
41
+ # guide](https://cloud.google.com/dialogflow/docs/agents-versions).
25
42
  # @!attribute [r] name
26
43
  # @return [::String]
27
44
  # Output only. The unique identifier of this agent environment.
28
- # Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
29
- # For Environment ID, "-" is reserved for 'draft' environment.
45
+ # Supported formats:
46
+ # - `projects/<Project ID>/agent/environments/<Environment ID>`
47
+ # - `projects/<Project ID>/locations/<Location
48
+ # ID>/agent/environments/<Environment ID>`
30
49
  # @!attribute [rw] description
31
50
  # @return [::String]
32
51
  # Optional. The developer-provided description for this environment.
@@ -34,7 +53,10 @@ module Google
34
53
  # @!attribute [rw] agent_version
35
54
  # @return [::String]
36
55
  # Optional. The agent version loaded into this environment.
37
- # Format: `projects/<Project ID>/agent/versions/<Version ID>`.
56
+ # Supported formats:
57
+ # - `projects/<Project ID>/agent/versions/<Version ID>`
58
+ # - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
59
+ # ID>`
38
60
  # @!attribute [r] state
39
61
  # @return [::Google::Cloud::Dialogflow::V2::Environment::State]
40
62
  # Output only. The state of this environment. This field is read-only, i.e., it cannot be
@@ -43,6 +65,12 @@ module Google
43
65
  # @return [::Google::Protobuf::Timestamp]
44
66
  # Output only. The last update time of this environment. This field is read-only, i.e., it
45
67
  # cannot be set by create and update methods.
68
+ # @!attribute [rw] text_to_speech_settings
69
+ # @return [::Google::Cloud::Dialogflow::V2::TextToSpeechSettings]
70
+ # Optional. Text to speech settings for this environment.
71
+ # @!attribute [rw] fulfillment
72
+ # @return [::Google::Cloud::Dialogflow::V2::Fulfillment]
73
+ # Optional. The fulfillment settings to use for this environment.
46
74
  class Environment
47
75
  include ::Google::Protobuf::MessageExts
48
76
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -67,11 +95,47 @@ module Google
67
95
  end
68
96
  end
69
97
 
98
+ # Instructs the speech synthesizer on how to generate the output audio content.
99
+ # @!attribute [rw] enable_text_to_speech
100
+ # @return [::Boolean]
101
+ # Optional. Indicates whether text to speech is enabled. Even when this field is false,
102
+ # other settings in this proto are still retained.
103
+ # @!attribute [rw] output_audio_encoding
104
+ # @return [::Google::Cloud::Dialogflow::V2::OutputAudioEncoding]
105
+ # Required. Audio encoding of the synthesized audio content.
106
+ # @!attribute [rw] sample_rate_hertz
107
+ # @return [::Integer]
108
+ # Optional. The synthesis sample rate (in hertz) for this audio. If not provided, then
109
+ # the synthesizer will use the default sample rate based on the audio
110
+ # encoding. If this is different from the voice's natural sample rate, then
111
+ # the synthesizer will honor this request by converting to the desired sample
112
+ # rate (which might result in worse audio quality).
113
+ # @!attribute [rw] synthesize_speech_configs
114
+ # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig}]
115
+ # Optional. Configuration of how speech should be synthesized, mapping from language
116
+ # (https://cloud.google.com/dialogflow/docs/reference/language) to
117
+ # SynthesizeSpeechConfig.
118
+ class TextToSpeechSettings
119
+ include ::Google::Protobuf::MessageExts
120
+ extend ::Google::Protobuf::MessageExts::ClassMethods
121
+
122
+ # @!attribute [rw] key
123
+ # @return [::String]
124
+ # @!attribute [rw] value
125
+ # @return [::Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig]
126
+ class SynthesizeSpeechConfigsEntry
127
+ include ::Google::Protobuf::MessageExts
128
+ extend ::Google::Protobuf::MessageExts::ClassMethods
129
+ end
130
+ end
131
+
70
132
  # The request message for {::Google::Cloud::Dialogflow::V2::Environments::Client#list_environments Environments.ListEnvironments}.
71
133
  # @!attribute [rw] parent
72
134
  # @return [::String]
73
135
  # Required. The agent to list all environments from.
74
- # Format: `projects/<Project ID>/agent`.
136
+ # Format:
137
+ # - `projects/<Project ID>/agent`
138
+ # - `projects/<Project ID>/locations/<Location ID>/agent`
75
139
  # @!attribute [rw] page_size
76
140
  # @return [::Integer]
77
141
  # Optional. The maximum number of items to return in a single page. By default 100 and
@@ -97,6 +161,124 @@ module Google
97
161
  include ::Google::Protobuf::MessageExts
98
162
  extend ::Google::Protobuf::MessageExts::ClassMethods
99
163
  end
164
+
165
+ # The request message for {::Google::Cloud::Dialogflow::V2::Environments::Client#get_environment Environments.GetEnvironment}.
166
+ # @!attribute [rw] name
167
+ # @return [::String]
168
+ # Required. The name of the environment.
169
+ # Supported formats:
170
+ # - `projects/<Project ID>/agent/environments/<Environment ID>`
171
+ # - `projects/<Project ID>/locations/<Location
172
+ # ID>/agent/environments/<Environment ID>`
173
+ class GetEnvironmentRequest
174
+ include ::Google::Protobuf::MessageExts
175
+ extend ::Google::Protobuf::MessageExts::ClassMethods
176
+ end
177
+
178
+ # The request message for {::Google::Cloud::Dialogflow::V2::Environments::Client#create_environment Environments.CreateEnvironment}.
179
+ # @!attribute [rw] parent
180
+ # @return [::String]
181
+ # Required. The agent to create an environment for.
182
+ # Supported formats:
183
+ # - `projects/<Project ID>/agent`
184
+ # - `projects/<Project ID>/locations/<Location ID>/agent`
185
+ # @!attribute [rw] environment
186
+ # @return [::Google::Cloud::Dialogflow::V2::Environment]
187
+ # Required. The environment to create.
188
+ # @!attribute [rw] environment_id
189
+ # @return [::String]
190
+ # Required. The unique id of the new environment.
191
+ class CreateEnvironmentRequest
192
+ include ::Google::Protobuf::MessageExts
193
+ extend ::Google::Protobuf::MessageExts::ClassMethods
194
+ end
195
+
196
+ # The request message for {::Google::Cloud::Dialogflow::V2::Environments::Client#update_environment Environments.UpdateEnvironment}.
197
+ # @!attribute [rw] environment
198
+ # @return [::Google::Cloud::Dialogflow::V2::Environment]
199
+ # Required. The environment to update.
200
+ # @!attribute [rw] update_mask
201
+ # @return [::Google::Protobuf::FieldMask]
202
+ # Required. The mask to control which fields get updated.
203
+ # @!attribute [rw] allow_load_to_draft_and_discard_changes
204
+ # @return [::Boolean]
205
+ # Optional. This field is used to prevent accidental overwrite of the draft
206
+ # environment, which is an operation that cannot be undone. To confirm that
207
+ # the caller desires this overwrite, this field must be explicitly set to
208
+ # true when updating the draft environment (environment ID = `-`).
209
+ class UpdateEnvironmentRequest
210
+ include ::Google::Protobuf::MessageExts
211
+ extend ::Google::Protobuf::MessageExts::ClassMethods
212
+ end
213
+
214
+ # The request message for {::Google::Cloud::Dialogflow::V2::Environments::Client#delete_environment Environments.DeleteEnvironment}.
215
+ # @!attribute [rw] name
216
+ # @return [::String]
217
+ # Required. The name of the environment to delete.
218
+ # / Format:
219
+ # - `projects/<Project ID>/agent/environments/<Environment ID>`
220
+ # - `projects/<Project ID>/locations/<Location
221
+ # ID>/agent/environments/<Environment ID>`
222
+ class DeleteEnvironmentRequest
223
+ include ::Google::Protobuf::MessageExts
224
+ extend ::Google::Protobuf::MessageExts::ClassMethods
225
+ end
226
+
227
+ # The request message for {::Google::Cloud::Dialogflow::V2::Environments::Client#get_environment_history Environments.GetEnvironmentHistory}.
228
+ # @!attribute [rw] parent
229
+ # @return [::String]
230
+ # Required. The name of the environment to retrieve history for.
231
+ # Supported formats:
232
+ # - `projects/<Project ID>/agent/environments/<Environment ID>`
233
+ # - `projects/<Project ID>/locations/<Location
234
+ # ID>/agent/environments/<Environment ID>`
235
+ # @!attribute [rw] page_size
236
+ # @return [::Integer]
237
+ # Optional. The maximum number of items to return in a single page. By default 100 and
238
+ # at most 1000.
239
+ # @!attribute [rw] page_token
240
+ # @return [::String]
241
+ # Optional. The next_page_token value returned from a previous list request.
242
+ class GetEnvironmentHistoryRequest
243
+ include ::Google::Protobuf::MessageExts
244
+ extend ::Google::Protobuf::MessageExts::ClassMethods
245
+ end
246
+
247
+ # The response message for {::Google::Cloud::Dialogflow::V2::Environments::Client#get_environment_history Environments.GetEnvironmentHistory}.
248
+ # @!attribute [r] parent
249
+ # @return [::String]
250
+ # Output only. The name of the environment this history is for.
251
+ # Supported formats:
252
+ # - `projects/<Project ID>/agent/environments/<Environment ID>`
253
+ # - `projects/<Project ID>/locations/<Location
254
+ # ID>/agent/environments/<Environment ID>`
255
+ # @!attribute [r] entries
256
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::EnvironmentHistory::Entry>]
257
+ # Output only. The list of agent environments. There will be a maximum number of items
258
+ # returned based on the page_size field in the request.
259
+ # @!attribute [r] next_page_token
260
+ # @return [::String]
261
+ # Output only. Token to retrieve the next page of results, or empty if there are no
262
+ # more results in the list.
263
+ class EnvironmentHistory
264
+ include ::Google::Protobuf::MessageExts
265
+ extend ::Google::Protobuf::MessageExts::ClassMethods
266
+
267
+ # Represents an environment history entry.
268
+ # @!attribute [rw] agent_version
269
+ # @return [::String]
270
+ # The agent version loaded into this environment history entry.
271
+ # @!attribute [rw] description
272
+ # @return [::String]
273
+ # The developer-provided description for this environment history entry.
274
+ # @!attribute [rw] create_time
275
+ # @return [::Google::Protobuf::Timestamp]
276
+ # The creation time of this environment history entry.
277
+ class Entry
278
+ include ::Google::Protobuf::MessageExts
279
+ extend ::Google::Protobuf::MessageExts::ClassMethods
280
+ end
281
+ end
100
282
  end
101
283
  end
102
284
  end