google-cloud-translate-v3 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,247 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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 Api
22
+ # A simple descriptor of a resource type.
23
+ #
24
+ # ResourceDescriptor annotates a resource message (either by means of a
25
+ # protobuf annotation or use in the service config), and associates the
26
+ # resource's schema, the resource type, and the pattern of the resource name.
27
+ #
28
+ # Example:
29
+ #
30
+ # message Topic {
31
+ # // Indicates this message defines a resource schema.
32
+ # // Declares the resource type in the format of {service}/{kind}.
33
+ # // For Kubernetes resources, the format is {api group}/{kind}.
34
+ # option (google.api.resource) = {
35
+ # type: "pubsub.googleapis.com/Topic"
36
+ # name_descriptor: {
37
+ # pattern: "projects/{project}/topics/{topic}"
38
+ # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
+ # parent_name_extractor: "projects/{project}"
40
+ # }
41
+ # };
42
+ # }
43
+ #
44
+ # The ResourceDescriptor Yaml config will look like:
45
+ #
46
+ # resources:
47
+ # - type: "pubsub.googleapis.com/Topic"
48
+ # name_descriptor:
49
+ # - pattern: "projects/\\{project}/topics/\\{topic}"
50
+ # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
+ # parent_name_extractor: "projects/\\{project}"
52
+ #
53
+ # Sometimes, resources have multiple patterns, typically because they can
54
+ # live under multiple parents.
55
+ #
56
+ # Example:
57
+ #
58
+ # message LogEntry {
59
+ # option (google.api.resource) = {
60
+ # type: "logging.googleapis.com/LogEntry"
61
+ # name_descriptor: {
62
+ # pattern: "projects/{project}/logs/{log}"
63
+ # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
+ # parent_name_extractor: "projects/{project}"
65
+ # }
66
+ # name_descriptor: {
67
+ # pattern: "folders/{folder}/logs/{log}"
68
+ # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
+ # parent_name_extractor: "folders/{folder}"
70
+ # }
71
+ # name_descriptor: {
72
+ # pattern: "organizations/{organization}/logs/{log}"
73
+ # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
+ # parent_name_extractor: "organizations/{organization}"
75
+ # }
76
+ # name_descriptor: {
77
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
+ # parent_type: "billing.googleapis.com/BillingAccount"
79
+ # parent_name_extractor: "billingAccounts/{billing_account}"
80
+ # }
81
+ # };
82
+ # }
83
+ #
84
+ # The ResourceDescriptor Yaml config will look like:
85
+ #
86
+ # resources:
87
+ # - type: 'logging.googleapis.com/LogEntry'
88
+ # name_descriptor:
89
+ # - pattern: "projects/{project}/logs/{log}"
90
+ # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
+ # parent_name_extractor: "projects/{project}"
92
+ # - pattern: "folders/{folder}/logs/{log}"
93
+ # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
+ # parent_name_extractor: "folders/{folder}"
95
+ # - pattern: "organizations/{organization}/logs/{log}"
96
+ # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
+ # parent_name_extractor: "organizations/{organization}"
98
+ # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
+ # parent_type: "billing.googleapis.com/BillingAccount"
100
+ # parent_name_extractor: "billingAccounts/{billing_account}"
101
+ #
102
+ # For flexible resources, the resource name doesn't contain parent names, but
103
+ # the resource itself has parents for policy evaluation.
104
+ #
105
+ # Example:
106
+ #
107
+ # message Shelf {
108
+ # option (google.api.resource) = {
109
+ # type: "library.googleapis.com/Shelf"
110
+ # name_descriptor: {
111
+ # pattern: "shelves/{shelf}"
112
+ # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
+ # }
114
+ # name_descriptor: {
115
+ # pattern: "shelves/{shelf}"
116
+ # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
+ # }
118
+ # };
119
+ # }
120
+ #
121
+ # The ResourceDescriptor Yaml config will look like:
122
+ #
123
+ # resources:
124
+ # - type: 'library.googleapis.com/Shelf'
125
+ # name_descriptor:
126
+ # - pattern: "shelves/{shelf}"
127
+ # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
+ # - pattern: "shelves/{shelf}"
129
+ # parent_type: "cloudresourcemanager.googleapis.com/Folder"
130
+ # @!attribute [rw] type
131
+ # @return [::String]
132
+ # The resource type. It must be in the format of
133
+ # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be
134
+ # singular and must not include version numbers.
135
+ #
136
+ # Example: `storage.googleapis.com/Bucket`
137
+ #
138
+ # The value of the resource_type_kind must follow the regular expression
139
+ # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
140
+ # should use PascalCase (UpperCamelCase). The maximum number of
141
+ # characters allowed for the `resource_type_kind` is 100.
142
+ # @!attribute [rw] pattern
143
+ # @return [::Array<::String>]
144
+ # Optional. The relative resource name pattern associated with this resource
145
+ # type. The DNS prefix of the full resource name shouldn't be specified here.
146
+ #
147
+ # The path pattern must follow the syntax, which aligns with HTTP binding
148
+ # syntax:
149
+ #
150
+ # Template = Segment { "/" Segment } ;
151
+ # Segment = LITERAL | Variable ;
152
+ # Variable = "{" LITERAL "}" ;
153
+ #
154
+ # Examples:
155
+ #
156
+ # - "projects/\\{project}/topics/\\{topic}"
157
+ # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}"
158
+ #
159
+ # The components in braces correspond to the IDs for each resource in the
160
+ # hierarchy. It is expected that, if multiple patterns are provided,
161
+ # the same component name (e.g. "project") refers to IDs of the same
162
+ # type of resource.
163
+ # @!attribute [rw] name_field
164
+ # @return [::String]
165
+ # Optional. The field on the resource that designates the resource name
166
+ # field. If omitted, this is assumed to be "name".
167
+ # @!attribute [rw] history
168
+ # @return [::Google::Api::ResourceDescriptor::History]
169
+ # Optional. The historical or future-looking state of the resource pattern.
170
+ #
171
+ # Example:
172
+ #
173
+ # // The InspectTemplate message originally only supported resource
174
+ # // names with organization, and project was added later.
175
+ # message InspectTemplate {
176
+ # option (google.api.resource) = {
177
+ # type: "dlp.googleapis.com/InspectTemplate"
178
+ # pattern:
179
+ # "organizations/{organization}/inspectTemplates/{inspect_template}"
180
+ # pattern: "projects/{project}/inspectTemplates/{inspect_template}"
181
+ # history: ORIGINALLY_SINGLE_PATTERN
182
+ # };
183
+ # }
184
+ # @!attribute [rw] plural
185
+ # @return [::String]
186
+ # The plural name used in the resource name, such as 'projects' for
187
+ # the name of 'projects/\\{project}'. It is the same concept of the `plural`
188
+ # field in k8s CRD spec
189
+ # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
190
+ # @!attribute [rw] singular
191
+ # @return [::String]
192
+ # The same concept of the `singular` field in k8s CRD spec
193
+ # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
194
+ # Such as "project" for the `resourcemanager.googleapis.com/Project` type.
195
+ class ResourceDescriptor
196
+ include ::Google::Protobuf::MessageExts
197
+ extend ::Google::Protobuf::MessageExts::ClassMethods
198
+
199
+ # A description of the historical or future-looking state of the
200
+ # resource pattern.
201
+ module History
202
+ # The "unset" value.
203
+ HISTORY_UNSPECIFIED = 0
204
+
205
+ # The resource originally had one pattern and launched as such, and
206
+ # additional patterns were added later.
207
+ ORIGINALLY_SINGLE_PATTERN = 1
208
+
209
+ # The resource has one pattern, but the API owner expects to add more
210
+ # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents
211
+ # that from being necessary once there are multiple patterns.)
212
+ FUTURE_MULTI_PATTERN = 2
213
+ end
214
+ end
215
+
216
+ # Defines a proto annotation that describes a string field that refers to
217
+ # an API resource.
218
+ # @!attribute [rw] type
219
+ # @return [::String]
220
+ # The resource type that the annotated field references.
221
+ #
222
+ # Example:
223
+ #
224
+ # message Subscription {
225
+ # string topic = 2 [(google.api.resource_reference) = {
226
+ # type: "pubsub.googleapis.com/Topic"
227
+ # }];
228
+ # }
229
+ # @!attribute [rw] child_type
230
+ # @return [::String]
231
+ # The resource type of a child collection that the annotated field
232
+ # references. This is useful for annotating the `parent` field that
233
+ # doesn't have a fixed resource type.
234
+ #
235
+ # Example:
236
+ #
237
+ # message ListLogEntriesRequest {
238
+ # string parent = 1 [(google.api.resource_reference) = {
239
+ # child_type: "logging.googleapis.com/LogEntry"
240
+ # };
241
+ # }
242
+ class ResourceReference
243
+ include ::Google::Protobuf::MessageExts
244
+ extend ::Google::Protobuf::MessageExts::ClassMethods
245
+ end
246
+ end
247
+ end
@@ -0,0 +1,868 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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 Translate
23
+ module V3
24
+ # Configures which glossary should be used for a specific target language,
25
+ # and defines options for applying that glossary.
26
+ # @!attribute [rw] glossary
27
+ # @return [::String]
28
+ # Required. Specifies the glossary used for this translation. Use
29
+ # this format: projects/*/locations/*/glossaries/*
30
+ # @!attribute [rw] ignore_case
31
+ # @return [::Boolean]
32
+ # Optional. Indicates match is case-insensitive.
33
+ # Default value is false if missing.
34
+ class TranslateTextGlossaryConfig
35
+ include ::Google::Protobuf::MessageExts
36
+ extend ::Google::Protobuf::MessageExts::ClassMethods
37
+ end
38
+
39
+ # The request message for synchronous translation.
40
+ # @!attribute [rw] contents
41
+ # @return [::Array<::String>]
42
+ # Required. The content of the input in string format.
43
+ # We recommend the total content be less than 30k codepoints.
44
+ # Use BatchTranslateText for larger text.
45
+ # @!attribute [rw] mime_type
46
+ # @return [::String]
47
+ # Optional. The format of the source text, for example, "text/html",
48
+ # "text/plain". If left blank, the MIME type defaults to "text/html".
49
+ # @!attribute [rw] source_language_code
50
+ # @return [::String]
51
+ # Optional. The BCP-47 language code of the input text if
52
+ # known, for example, "en-US" or "sr-Latn". Supported language codes are
53
+ # listed in Language Support. If the source language isn't specified, the API
54
+ # attempts to identify the source language automatically and returns the
55
+ # source language within the response.
56
+ # @!attribute [rw] target_language_code
57
+ # @return [::String]
58
+ # Required. The BCP-47 language code to use for translation of the input
59
+ # text, set to one of the language codes listed in Language Support.
60
+ # @!attribute [rw] parent
61
+ # @return [::String]
62
+ # Required. Project or location to make a call. Must refer to a caller's
63
+ # project.
64
+ #
65
+ # Format: `projects/{project-number-or-id}` or
66
+ # `projects/{project-number-or-id}/locations/{location-id}`.
67
+ #
68
+ # For global calls, use `projects/{project-number-or-id}/locations/global` or
69
+ # `projects/{project-number-or-id}`.
70
+ #
71
+ # Non-global location is required for requests using AutoML models or
72
+ # custom glossaries.
73
+ #
74
+ # Models and glossaries must be within the same region (have same
75
+ # location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
76
+ # @!attribute [rw] model
77
+ # @return [::String]
78
+ # Optional. The `model` type requested for this translation.
79
+ #
80
+ # The format depends on model type:
81
+ #
82
+ # - AutoML Translation models:
83
+ # `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}`
84
+ #
85
+ # - General (built-in) models:
86
+ # `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,
87
+ # `projects/{project-number-or-id}/locations/{location-id}/models/general/base`
88
+ #
89
+ #
90
+ # For global (non-regionalized) requests, use `location-id` `global`.
91
+ # For example,
92
+ # `projects/{project-number-or-id}/locations/global/models/general/nmt`.
93
+ #
94
+ # If missing, the system decides which google base model to use.
95
+ # @!attribute [rw] glossary_config
96
+ # @return [::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig]
97
+ # Optional. Glossary to be applied. The glossary must be
98
+ # within the same region (have the same location-id) as the model, otherwise
99
+ # an INVALID_ARGUMENT (400) error is returned.
100
+ # @!attribute [rw] labels
101
+ # @return [::Google::Protobuf::Map{::String => ::String}]
102
+ # Optional. The labels with user-defined metadata for the request.
103
+ #
104
+ # Label keys and values can be no longer than 63 characters
105
+ # (Unicode codepoints), can only contain lowercase letters, numeric
106
+ # characters, underscores and dashes. International characters are allowed.
107
+ # Label values are optional. Label keys must start with a letter.
108
+ #
109
+ # See https://cloud.google.com/translate/docs/labels for more information.
110
+ class TranslateTextRequest
111
+ include ::Google::Protobuf::MessageExts
112
+ extend ::Google::Protobuf::MessageExts::ClassMethods
113
+
114
+ # @!attribute [rw] key
115
+ # @return [::String]
116
+ # @!attribute [rw] value
117
+ # @return [::String]
118
+ class LabelsEntry
119
+ include ::Google::Protobuf::MessageExts
120
+ extend ::Google::Protobuf::MessageExts::ClassMethods
121
+ end
122
+ end
123
+
124
+ # @!attribute [rw] translations
125
+ # @return [::Array<::Google::Cloud::Translate::V3::Translation>]
126
+ # Text translation responses with no glossary applied.
127
+ # This field has the same length as
128
+ # {::Google::Cloud::Translate::V3::TranslateTextRequest#contents `contents`}.
129
+ # @!attribute [rw] glossary_translations
130
+ # @return [::Array<::Google::Cloud::Translate::V3::Translation>]
131
+ # Text translation responses if a glossary is provided in the request.
132
+ # This can be the same as
133
+ # {::Google::Cloud::Translate::V3::TranslateTextResponse#translations `translations`}
134
+ # if no terms apply. This field has the same length as
135
+ # {::Google::Cloud::Translate::V3::TranslateTextRequest#contents `contents`}.
136
+ class TranslateTextResponse
137
+ include ::Google::Protobuf::MessageExts
138
+ extend ::Google::Protobuf::MessageExts::ClassMethods
139
+ end
140
+
141
+ # A single translation response.
142
+ # @!attribute [rw] translated_text
143
+ # @return [::String]
144
+ # Text translated into the target language.
145
+ # @!attribute [rw] model
146
+ # @return [::String]
147
+ # Only present when `model` is present in the request.
148
+ # `model` here is normalized to have project number.
149
+ #
150
+ # For example:
151
+ # If the `model` requested in TranslationTextRequest is
152
+ # `projects/{project-id}/locations/{location-id}/models/general/nmt` then
153
+ # `model` here would be normalized to
154
+ # `projects/{project-number}/locations/{location-id}/models/general/nmt`.
155
+ # @!attribute [rw] detected_language_code
156
+ # @return [::String]
157
+ # The BCP-47 language code of source text in the initial request, detected
158
+ # automatically, if no source language was passed within the initial
159
+ # request. If the source language was passed, auto-detection of the language
160
+ # does not occur and this field is empty.
161
+ # @!attribute [rw] glossary_config
162
+ # @return [::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig]
163
+ # The `glossary_config` used for this translation.
164
+ class Translation
165
+ include ::Google::Protobuf::MessageExts
166
+ extend ::Google::Protobuf::MessageExts::ClassMethods
167
+ end
168
+
169
+ # The request message for language detection.
170
+ # @!attribute [rw] parent
171
+ # @return [::String]
172
+ # Required. Project or location to make a call. Must refer to a caller's
173
+ # project.
174
+ #
175
+ # Format: `projects/{project-number-or-id}/locations/{location-id}` or
176
+ # `projects/{project-number-or-id}`.
177
+ #
178
+ # For global calls, use `projects/{project-number-or-id}/locations/global` or
179
+ # `projects/{project-number-or-id}`.
180
+ #
181
+ # Only models within the same region (has same location-id) can be used.
182
+ # Otherwise an INVALID_ARGUMENT (400) error is returned.
183
+ # @!attribute [rw] model
184
+ # @return [::String]
185
+ # Optional. The language detection model to be used.
186
+ #
187
+ # Format:
188
+ # `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}`
189
+ #
190
+ # Only one language detection model is currently supported:
191
+ # `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`.
192
+ #
193
+ # If not specified, the default model is used.
194
+ # @!attribute [rw] content
195
+ # @return [::String]
196
+ # The content of the input stored as a string.
197
+ # @!attribute [rw] mime_type
198
+ # @return [::String]
199
+ # Optional. The format of the source text, for example, "text/html",
200
+ # "text/plain". If left blank, the MIME type defaults to "text/html".
201
+ # @!attribute [rw] labels
202
+ # @return [::Google::Protobuf::Map{::String => ::String}]
203
+ # Optional. The labels with user-defined metadata for the request.
204
+ #
205
+ # Label keys and values can be no longer than 63 characters
206
+ # (Unicode codepoints), can only contain lowercase letters, numeric
207
+ # characters, underscores and dashes. International characters are allowed.
208
+ # Label values are optional. Label keys must start with a letter.
209
+ #
210
+ # See https://cloud.google.com/translate/docs/labels for more information.
211
+ class DetectLanguageRequest
212
+ include ::Google::Protobuf::MessageExts
213
+ extend ::Google::Protobuf::MessageExts::ClassMethods
214
+
215
+ # @!attribute [rw] key
216
+ # @return [::String]
217
+ # @!attribute [rw] value
218
+ # @return [::String]
219
+ class LabelsEntry
220
+ include ::Google::Protobuf::MessageExts
221
+ extend ::Google::Protobuf::MessageExts::ClassMethods
222
+ end
223
+ end
224
+
225
+ # The response message for language detection.
226
+ # @!attribute [rw] language_code
227
+ # @return [::String]
228
+ # The BCP-47 language code of source content in the request, detected
229
+ # automatically.
230
+ # @!attribute [rw] confidence
231
+ # @return [::Float]
232
+ # The confidence of the detection result for this language.
233
+ class DetectedLanguage
234
+ include ::Google::Protobuf::MessageExts
235
+ extend ::Google::Protobuf::MessageExts::ClassMethods
236
+ end
237
+
238
+ # The response message for language detection.
239
+ # @!attribute [rw] languages
240
+ # @return [::Array<::Google::Cloud::Translate::V3::DetectedLanguage>]
241
+ # A list of detected languages sorted by detection confidence in descending
242
+ # order. The most probable language first.
243
+ class DetectLanguageResponse
244
+ include ::Google::Protobuf::MessageExts
245
+ extend ::Google::Protobuf::MessageExts::ClassMethods
246
+ end
247
+
248
+ # The request message for discovering supported languages.
249
+ # @!attribute [rw] parent
250
+ # @return [::String]
251
+ # Required. Project or location to make a call. Must refer to a caller's
252
+ # project.
253
+ #
254
+ # Format: `projects/{project-number-or-id}` or
255
+ # `projects/{project-number-or-id}/locations/{location-id}`.
256
+ #
257
+ # For global calls, use `projects/{project-number-or-id}/locations/global` or
258
+ # `projects/{project-number-or-id}`.
259
+ #
260
+ # Non-global location is required for AutoML models.
261
+ #
262
+ # Only models within the same region (have same location-id) can be used,
263
+ # otherwise an INVALID_ARGUMENT (400) error is returned.
264
+ # @!attribute [rw] display_language_code
265
+ # @return [::String]
266
+ # Optional. The language to use to return localized, human readable names
267
+ # of supported languages. If missing, then display names are not returned
268
+ # in a response.
269
+ # @!attribute [rw] model
270
+ # @return [::String]
271
+ # Optional. Get supported languages of this model.
272
+ #
273
+ # The format depends on model type:
274
+ #
275
+ # - AutoML Translation models:
276
+ # `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}`
277
+ #
278
+ # - General (built-in) models:
279
+ # `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,
280
+ # `projects/{project-number-or-id}/locations/{location-id}/models/general/base`
281
+ #
282
+ #
283
+ # Returns languages supported by the specified model.
284
+ # If missing, we get supported languages of Google general base (PBMT) model.
285
+ class GetSupportedLanguagesRequest
286
+ include ::Google::Protobuf::MessageExts
287
+ extend ::Google::Protobuf::MessageExts::ClassMethods
288
+ end
289
+
290
+ # The response message for discovering supported languages.
291
+ # @!attribute [rw] languages
292
+ # @return [::Array<::Google::Cloud::Translate::V3::SupportedLanguage>]
293
+ # A list of supported language responses. This list contains an entry
294
+ # for each language the Translation API supports.
295
+ class SupportedLanguages
296
+ include ::Google::Protobuf::MessageExts
297
+ extend ::Google::Protobuf::MessageExts::ClassMethods
298
+ end
299
+
300
+ # A single supported language response corresponds to information related
301
+ # to one supported language.
302
+ # @!attribute [rw] language_code
303
+ # @return [::String]
304
+ # Supported language code, generally consisting of its ISO 639-1
305
+ # identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
306
+ # including language and region identifiers are returned (for example,
307
+ # 'zh-TW' and 'zh-CN')
308
+ # @!attribute [rw] display_name
309
+ # @return [::String]
310
+ # Human readable name of the language localized in the display language
311
+ # specified in the request.
312
+ # @!attribute [rw] support_source
313
+ # @return [::Boolean]
314
+ # Can be used as source language.
315
+ # @!attribute [rw] support_target
316
+ # @return [::Boolean]
317
+ # Can be used as target language.
318
+ class SupportedLanguage
319
+ include ::Google::Protobuf::MessageExts
320
+ extend ::Google::Protobuf::MessageExts::ClassMethods
321
+ end
322
+
323
+ # The Google Cloud Storage location for the input content.
324
+ # @!attribute [rw] input_uri
325
+ # @return [::String]
326
+ # Required. Source data URI. For example, `gs://my_bucket/my_object`.
327
+ class GcsSource
328
+ include ::Google::Protobuf::MessageExts
329
+ extend ::Google::Protobuf::MessageExts::ClassMethods
330
+ end
331
+
332
+ # Input configuration for BatchTranslateText request.
333
+ # @!attribute [rw] mime_type
334
+ # @return [::String]
335
+ # Optional. Can be "text/plain" or "text/html".
336
+ # For `.tsv`, "text/html" is used if mime_type is missing.
337
+ # For `.html`, this field must be "text/html" or empty.
338
+ # For `.txt`, this field must be "text/plain" or empty.
339
+ # @!attribute [rw] gcs_source
340
+ # @return [::Google::Cloud::Translate::V3::GcsSource]
341
+ # Required. Google Cloud Storage location for the source input.
342
+ # This can be a single file (for example,
343
+ # `gs://translation-test/input.tsv`) or a wildcard (for example,
344
+ # `gs://translation-test/*`). If a file extension is `.tsv`, it can
345
+ # contain either one or two columns. The first column (optional) is the id
346
+ # of the text request. If the first column is missing, we use the row
347
+ # number (0-based) from the input file as the ID in the output file. The
348
+ # second column is the actual text to be
349
+ # translated. We recommend each row be <= 10K Unicode codepoints,
350
+ # otherwise an error might be returned.
351
+ # Note that the input tsv must be RFC 4180 compliant.
352
+ #
353
+ # You could use https://github.com/Clever/csvlint to check potential
354
+ # formatting errors in your tsv file.
355
+ # csvlint --delimiter='\t' your_input_file.tsv
356
+ #
357
+ # The other supported file extensions are `.txt` or `.html`, which is
358
+ # treated as a single large chunk of text.
359
+ class InputConfig
360
+ include ::Google::Protobuf::MessageExts
361
+ extend ::Google::Protobuf::MessageExts::ClassMethods
362
+ end
363
+
364
+ # The Google Cloud Storage location for the output content.
365
+ # @!attribute [rw] output_uri_prefix
366
+ # @return [::String]
367
+ # Required. There must be no files under 'output_uri_prefix'.
368
+ # 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
369
+ # INVALID_ARGUMENT (400) error is returned.
370
+ class GcsDestination
371
+ include ::Google::Protobuf::MessageExts
372
+ extend ::Google::Protobuf::MessageExts::ClassMethods
373
+ end
374
+
375
+ # Output configuration for BatchTranslateText request.
376
+ # @!attribute [rw] gcs_destination
377
+ # @return [::Google::Cloud::Translate::V3::GcsDestination]
378
+ # Google Cloud Storage destination for output content.
379
+ # For every single input file (for example, gs://a/b/c.[extension]), we
380
+ # generate at most 2 * n output files. (n is the # of target_language_codes
381
+ # in the BatchTranslateTextRequest).
382
+ #
383
+ # Output files (tsv) generated are compliant with RFC 4180 except that
384
+ # record delimiters are '\n' instead of '\r\n'. We don't provide any way to
385
+ # change record delimiters.
386
+ #
387
+ # While the input files are being processed, we write/update an index file
388
+ # 'index.csv' under 'output_uri_prefix' (for example,
389
+ # gs://translation-test/index.csv) The index file is generated/updated as
390
+ # new files are being translated. The format is:
391
+ #
392
+ # input_file,target_language_code,translations_file,errors_file,
393
+ # glossary_translations_file,glossary_errors_file
394
+ #
395
+ # input_file is one file we matched using gcs_source.input_uri.
396
+ # target_language_code is provided in the request.
397
+ # translations_file contains the translations. (details provided below)
398
+ # errors_file contains the errors during processing of the file. (details
399
+ # below). Both translations_file and errors_file could be empty
400
+ # strings if we have no content to output.
401
+ # glossary_translations_file and glossary_errors_file are always empty
402
+ # strings if the input_file is tsv. They could also be empty if we have no
403
+ # content to output.
404
+ #
405
+ # Once a row is present in index.csv, the input/output matching never
406
+ # changes. Callers should also expect all the content in input_file are
407
+ # processed and ready to be consumed (that is, no partial output file is
408
+ # written).
409
+ #
410
+ # The format of translations_file (for target language code 'trg') is:
411
+ # gs://translation_test/a_b_c_'trg'_translations.[extension]
412
+ #
413
+ # If the input file extension is tsv, the output has the following
414
+ # columns:
415
+ # Column 1: ID of the request provided in the input, if it's not
416
+ # provided in the input, then the input row number is used (0-based).
417
+ # Column 2: source sentence.
418
+ # Column 3: translation without applying a glossary. Empty string if there
419
+ # is an error.
420
+ # Column 4 (only present if a glossary is provided in the request):
421
+ # translation after applying the glossary. Empty string if there is an
422
+ # error applying the glossary. Could be same string as column 3 if there is
423
+ # no glossary applied.
424
+ #
425
+ # If input file extension is a txt or html, the translation is directly
426
+ # written to the output file. If glossary is requested, a separate
427
+ # glossary_translations_file has format of
428
+ # gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
429
+ #
430
+ # The format of errors file (for target language code 'trg') is:
431
+ # gs://translation_test/a_b_c_'trg'_errors.[extension]
432
+ #
433
+ # If the input file extension is tsv, errors_file contains the following:
434
+ # Column 1: ID of the request provided in the input, if it's not
435
+ # provided in the input, then the input row number is used (0-based).
436
+ # Column 2: source sentence.
437
+ # Column 3: Error detail for the translation. Could be empty.
438
+ # Column 4 (only present if a glossary is provided in the request):
439
+ # Error when applying the glossary.
440
+ #
441
+ # If the input file extension is txt or html, glossary_error_file will be
442
+ # generated that contains error details. glossary_error_file has format of
443
+ # gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
444
+ class OutputConfig
445
+ include ::Google::Protobuf::MessageExts
446
+ extend ::Google::Protobuf::MessageExts::ClassMethods
447
+ end
448
+
449
+ # The batch translation request.
450
+ # @!attribute [rw] parent
451
+ # @return [::String]
452
+ # Required. Location to make a call. Must refer to a caller's project.
453
+ #
454
+ # Format: `projects/{project-number-or-id}/locations/{location-id}`.
455
+ #
456
+ # The `global` location is not supported for batch translation.
457
+ #
458
+ # Only AutoML Translation models or glossaries within the same region (have
459
+ # the same location-id) can be used, otherwise an INVALID_ARGUMENT (400)
460
+ # error is returned.
461
+ # @!attribute [rw] source_language_code
462
+ # @return [::String]
463
+ # Required. Source language code.
464
+ # @!attribute [rw] target_language_codes
465
+ # @return [::Array<::String>]
466
+ # Required. Specify up to 10 language codes here.
467
+ # @!attribute [rw] models
468
+ # @return [::Google::Protobuf::Map{::String => ::String}]
469
+ # Optional. The models to use for translation. Map's key is target language
470
+ # code. Map's value is model name. Value can be a built-in general model,
471
+ # or an AutoML Translation model.
472
+ #
473
+ # The value format depends on model type:
474
+ #
475
+ # - AutoML Translation models:
476
+ # `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}`
477
+ #
478
+ # - General (built-in) models:
479
+ # `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,
480
+ # `projects/{project-number-or-id}/locations/{location-id}/models/general/base`
481
+ #
482
+ #
483
+ # If the map is empty or a specific model is
484
+ # not requested for a language pair, then default google model (nmt) is used.
485
+ # @!attribute [rw] input_configs
486
+ # @return [::Array<::Google::Cloud::Translate::V3::InputConfig>]
487
+ # Required. Input configurations.
488
+ # The total number of files matched should be <= 1000.
489
+ # The total content size should be <= 100M Unicode codepoints.
490
+ # The files must use UTF-8 encoding.
491
+ # @!attribute [rw] output_config
492
+ # @return [::Google::Cloud::Translate::V3::OutputConfig]
493
+ # Required. Output configuration.
494
+ # If 2 input configs match to the same file (that is, same input path),
495
+ # we don't generate output for duplicate inputs.
496
+ # @!attribute [rw] glossaries
497
+ # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig}]
498
+ # Optional. Glossaries to be applied for translation.
499
+ # It's keyed by target language code.
500
+ # @!attribute [rw] labels
501
+ # @return [::Google::Protobuf::Map{::String => ::String}]
502
+ # Optional. The labels with user-defined metadata for the request.
503
+ #
504
+ # Label keys and values can be no longer than 63 characters
505
+ # (Unicode codepoints), can only contain lowercase letters, numeric
506
+ # characters, underscores and dashes. International characters are allowed.
507
+ # Label values are optional. Label keys must start with a letter.
508
+ #
509
+ # See https://cloud.google.com/translate/docs/labels for more information.
510
+ class BatchTranslateTextRequest
511
+ include ::Google::Protobuf::MessageExts
512
+ extend ::Google::Protobuf::MessageExts::ClassMethods
513
+
514
+ # @!attribute [rw] key
515
+ # @return [::String]
516
+ # @!attribute [rw] value
517
+ # @return [::String]
518
+ class ModelsEntry
519
+ include ::Google::Protobuf::MessageExts
520
+ extend ::Google::Protobuf::MessageExts::ClassMethods
521
+ end
522
+
523
+ # @!attribute [rw] key
524
+ # @return [::String]
525
+ # @!attribute [rw] value
526
+ # @return [::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig]
527
+ class GlossariesEntry
528
+ include ::Google::Protobuf::MessageExts
529
+ extend ::Google::Protobuf::MessageExts::ClassMethods
530
+ end
531
+
532
+ # @!attribute [rw] key
533
+ # @return [::String]
534
+ # @!attribute [rw] value
535
+ # @return [::String]
536
+ class LabelsEntry
537
+ include ::Google::Protobuf::MessageExts
538
+ extend ::Google::Protobuf::MessageExts::ClassMethods
539
+ end
540
+ end
541
+
542
+ # State metadata for the batch translation operation.
543
+ # @!attribute [rw] state
544
+ # @return [::Google::Cloud::Translate::V3::BatchTranslateMetadata::State]
545
+ # The state of the operation.
546
+ # @!attribute [rw] translated_characters
547
+ # @return [::Integer]
548
+ # Number of successfully translated characters so far (Unicode codepoints).
549
+ # @!attribute [rw] failed_characters
550
+ # @return [::Integer]
551
+ # Number of characters that have failed to process so far (Unicode
552
+ # codepoints).
553
+ # @!attribute [rw] total_characters
554
+ # @return [::Integer]
555
+ # Total number of characters (Unicode codepoints).
556
+ # This is the total number of codepoints from input files times the number of
557
+ # target languages and appears here shortly after the call is submitted.
558
+ # @!attribute [rw] submit_time
559
+ # @return [::Google::Protobuf::Timestamp]
560
+ # Time when the operation was submitted.
561
+ class BatchTranslateMetadata
562
+ include ::Google::Protobuf::MessageExts
563
+ extend ::Google::Protobuf::MessageExts::ClassMethods
564
+
565
+ # State of the job.
566
+ module State
567
+ # Invalid.
568
+ STATE_UNSPECIFIED = 0
569
+
570
+ # Request is being processed.
571
+ RUNNING = 1
572
+
573
+ # The batch is processed, and at least one item was successfully
574
+ # processed.
575
+ SUCCEEDED = 2
576
+
577
+ # The batch is done and no item was successfully processed.
578
+ FAILED = 3
579
+
580
+ # Request is in the process of being canceled after caller invoked
581
+ # longrunning.Operations.CancelOperation on the request id.
582
+ CANCELLING = 4
583
+
584
+ # The batch is done after the user has called the
585
+ # longrunning.Operations.CancelOperation. Any records processed before the
586
+ # cancel command are output as specified in the request.
587
+ CANCELLED = 5
588
+ end
589
+ end
590
+
591
+ # Stored in the
592
+ # {::Google::Longrunning::Operation#response google.longrunning.Operation.response}
593
+ # field returned by BatchTranslateText if at least one sentence is translated
594
+ # successfully.
595
+ # @!attribute [rw] total_characters
596
+ # @return [::Integer]
597
+ # Total number of characters (Unicode codepoints).
598
+ # @!attribute [rw] translated_characters
599
+ # @return [::Integer]
600
+ # Number of successfully translated characters (Unicode codepoints).
601
+ # @!attribute [rw] failed_characters
602
+ # @return [::Integer]
603
+ # Number of characters that have failed to process (Unicode codepoints).
604
+ # @!attribute [rw] submit_time
605
+ # @return [::Google::Protobuf::Timestamp]
606
+ # Time when the operation was submitted.
607
+ # @!attribute [rw] end_time
608
+ # @return [::Google::Protobuf::Timestamp]
609
+ # The time when the operation is finished and
610
+ # {::Google::Longrunning::Operation#done google.longrunning.Operation.done} is
611
+ # set to true.
612
+ class BatchTranslateResponse
613
+ include ::Google::Protobuf::MessageExts
614
+ extend ::Google::Protobuf::MessageExts::ClassMethods
615
+ end
616
+
617
+ # Input configuration for glossaries.
618
+ # @!attribute [rw] gcs_source
619
+ # @return [::Google::Cloud::Translate::V3::GcsSource]
620
+ # Required. Google Cloud Storage location of glossary data.
621
+ # File format is determined based on the filename extension. API returns
622
+ # [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file
623
+ # formats. Wildcards are not allowed. This must be a single file in one of
624
+ # the following formats:
625
+ #
626
+ # For unidirectional glossaries:
627
+ #
628
+ # - TSV/CSV (`.tsv`/`.csv`): 2 column file, tab- or comma-separated.
629
+ # The first column is source text. The second column is target text.
630
+ # The file must not contain headers. That is, the first row is data, not
631
+ # column names.
632
+ #
633
+ # - TMX (`.tmx`): TMX file with parallel data defining source/target term
634
+ # pairs.
635
+ #
636
+ # For equivalent term sets glossaries:
637
+ #
638
+ # - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms
639
+ # in multiple languages. The format is defined for Google Translation
640
+ # Toolkit and documented in [Use a
641
+ # glossary](https://support.google.com/translatortoolkit/answer/6306379?hl=en).
642
+ class GlossaryInputConfig
643
+ include ::Google::Protobuf::MessageExts
644
+ extend ::Google::Protobuf::MessageExts::ClassMethods
645
+ end
646
+
647
+ # Represents a glossary built from user provided data.
648
+ # @!attribute [rw] name
649
+ # @return [::String]
650
+ # Required. The resource name of the glossary. Glossary names have the form
651
+ # `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
652
+ # @!attribute [rw] language_pair
653
+ # @return [::Google::Cloud::Translate::V3::Glossary::LanguageCodePair]
654
+ # Used with unidirectional glossaries.
655
+ # @!attribute [rw] language_codes_set
656
+ # @return [::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet]
657
+ # Used with equivalent term set glossaries.
658
+ # @!attribute [rw] input_config
659
+ # @return [::Google::Cloud::Translate::V3::GlossaryInputConfig]
660
+ # Required. Provides examples to build the glossary from.
661
+ # Total glossary must not exceed 10M Unicode codepoints.
662
+ # @!attribute [r] entry_count
663
+ # @return [::Integer]
664
+ # Output only. The number of entries defined in the glossary.
665
+ # @!attribute [r] submit_time
666
+ # @return [::Google::Protobuf::Timestamp]
667
+ # Output only. When CreateGlossary was called.
668
+ # @!attribute [r] end_time
669
+ # @return [::Google::Protobuf::Timestamp]
670
+ # Output only. When the glossary creation was finished.
671
+ class Glossary
672
+ include ::Google::Protobuf::MessageExts
673
+ extend ::Google::Protobuf::MessageExts::ClassMethods
674
+
675
+ # Used with unidirectional glossaries.
676
+ # @!attribute [rw] source_language_code
677
+ # @return [::String]
678
+ # Required. The BCP-47 language code of the input text, for example,
679
+ # "en-US". Expected to be an exact match for GlossaryTerm.language_code.
680
+ # @!attribute [rw] target_language_code
681
+ # @return [::String]
682
+ # Required. The BCP-47 language code for translation output, for example,
683
+ # "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
684
+ class LanguageCodePair
685
+ include ::Google::Protobuf::MessageExts
686
+ extend ::Google::Protobuf::MessageExts::ClassMethods
687
+ end
688
+
689
+ # Used with equivalent term set glossaries.
690
+ # @!attribute [rw] language_codes
691
+ # @return [::Array<::String>]
692
+ # The BCP-47 language code(s) for terms defined in the glossary.
693
+ # All entries are unique. The list contains at least two entries.
694
+ # Expected to be an exact match for GlossaryTerm.language_code.
695
+ class LanguageCodesSet
696
+ include ::Google::Protobuf::MessageExts
697
+ extend ::Google::Protobuf::MessageExts::ClassMethods
698
+ end
699
+ end
700
+
701
+ # Request message for CreateGlossary.
702
+ # @!attribute [rw] parent
703
+ # @return [::String]
704
+ # Required. The project name.
705
+ # @!attribute [rw] glossary
706
+ # @return [::Google::Cloud::Translate::V3::Glossary]
707
+ # Required. The glossary to create.
708
+ class CreateGlossaryRequest
709
+ include ::Google::Protobuf::MessageExts
710
+ extend ::Google::Protobuf::MessageExts::ClassMethods
711
+ end
712
+
713
+ # Request message for GetGlossary.
714
+ # @!attribute [rw] name
715
+ # @return [::String]
716
+ # Required. The name of the glossary to retrieve.
717
+ class GetGlossaryRequest
718
+ include ::Google::Protobuf::MessageExts
719
+ extend ::Google::Protobuf::MessageExts::ClassMethods
720
+ end
721
+
722
+ # Request message for DeleteGlossary.
723
+ # @!attribute [rw] name
724
+ # @return [::String]
725
+ # Required. The name of the glossary to delete.
726
+ class DeleteGlossaryRequest
727
+ include ::Google::Protobuf::MessageExts
728
+ extend ::Google::Protobuf::MessageExts::ClassMethods
729
+ end
730
+
731
+ # Request message for ListGlossaries.
732
+ # @!attribute [rw] parent
733
+ # @return [::String]
734
+ # Required. The name of the project from which to list all of the glossaries.
735
+ # @!attribute [rw] page_size
736
+ # @return [::Integer]
737
+ # Optional. Requested page size. The server may return fewer glossaries than
738
+ # requested. If unspecified, the server picks an appropriate default.
739
+ # @!attribute [rw] page_token
740
+ # @return [::String]
741
+ # Optional. A token identifying a page of results the server should return.
742
+ # Typically, this is the value of [ListGlossariesResponse.next_page_token]
743
+ # returned from the previous call to `ListGlossaries` method.
744
+ # The first page is returned if `page_token`is empty or missing.
745
+ # @!attribute [rw] filter
746
+ # @return [::String]
747
+ # Optional. Filter specifying constraints of a list operation.
748
+ # Filtering is not supported yet, and the parameter currently has no effect.
749
+ # If missing, no filtering is performed.
750
+ class ListGlossariesRequest
751
+ include ::Google::Protobuf::MessageExts
752
+ extend ::Google::Protobuf::MessageExts::ClassMethods
753
+ end
754
+
755
+ # Response message for ListGlossaries.
756
+ # @!attribute [rw] glossaries
757
+ # @return [::Array<::Google::Cloud::Translate::V3::Glossary>]
758
+ # The list of glossaries for a project.
759
+ # @!attribute [rw] next_page_token
760
+ # @return [::String]
761
+ # A token to retrieve a page of results. Pass this value in the
762
+ # [ListGlossariesRequest.page_token] field in the subsequent call to
763
+ # `ListGlossaries` method to retrieve the next page of results.
764
+ class ListGlossariesResponse
765
+ include ::Google::Protobuf::MessageExts
766
+ extend ::Google::Protobuf::MessageExts::ClassMethods
767
+ end
768
+
769
+ # Stored in the
770
+ # {::Google::Longrunning::Operation#metadata google.longrunning.Operation.metadata}
771
+ # field returned by CreateGlossary.
772
+ # @!attribute [rw] name
773
+ # @return [::String]
774
+ # The name of the glossary that is being created.
775
+ # @!attribute [rw] state
776
+ # @return [::Google::Cloud::Translate::V3::CreateGlossaryMetadata::State]
777
+ # The current state of the glossary creation operation.
778
+ # @!attribute [rw] submit_time
779
+ # @return [::Google::Protobuf::Timestamp]
780
+ # The time when the operation was submitted to the server.
781
+ class CreateGlossaryMetadata
782
+ include ::Google::Protobuf::MessageExts
783
+ extend ::Google::Protobuf::MessageExts::ClassMethods
784
+
785
+ # Enumerates the possible states that the creation request can be in.
786
+ module State
787
+ # Invalid.
788
+ STATE_UNSPECIFIED = 0
789
+
790
+ # Request is being processed.
791
+ RUNNING = 1
792
+
793
+ # The glossary was successfully created.
794
+ SUCCEEDED = 2
795
+
796
+ # Failed to create the glossary.
797
+ FAILED = 3
798
+
799
+ # Request is in the process of being canceled after caller invoked
800
+ # longrunning.Operations.CancelOperation on the request id.
801
+ CANCELLING = 4
802
+
803
+ # The glossary creation request was successfully canceled.
804
+ CANCELLED = 5
805
+ end
806
+ end
807
+
808
+ # Stored in the
809
+ # {::Google::Longrunning::Operation#metadata google.longrunning.Operation.metadata}
810
+ # field returned by DeleteGlossary.
811
+ # @!attribute [rw] name
812
+ # @return [::String]
813
+ # The name of the glossary that is being deleted.
814
+ # @!attribute [rw] state
815
+ # @return [::Google::Cloud::Translate::V3::DeleteGlossaryMetadata::State]
816
+ # The current state of the glossary deletion operation.
817
+ # @!attribute [rw] submit_time
818
+ # @return [::Google::Protobuf::Timestamp]
819
+ # The time when the operation was submitted to the server.
820
+ class DeleteGlossaryMetadata
821
+ include ::Google::Protobuf::MessageExts
822
+ extend ::Google::Protobuf::MessageExts::ClassMethods
823
+
824
+ # Enumerates the possible states that the creation request can be in.
825
+ module State
826
+ # Invalid.
827
+ STATE_UNSPECIFIED = 0
828
+
829
+ # Request is being processed.
830
+ RUNNING = 1
831
+
832
+ # The glossary was successfully deleted.
833
+ SUCCEEDED = 2
834
+
835
+ # Failed to delete the glossary.
836
+ FAILED = 3
837
+
838
+ # Request is in the process of being canceled after caller invoked
839
+ # longrunning.Operations.CancelOperation on the request id.
840
+ CANCELLING = 4
841
+
842
+ # The glossary deletion request was successfully canceled.
843
+ CANCELLED = 5
844
+ end
845
+ end
846
+
847
+ # Stored in the
848
+ # {::Google::Longrunning::Operation#response google.longrunning.Operation.response}
849
+ # field returned by DeleteGlossary.
850
+ # @!attribute [rw] name
851
+ # @return [::String]
852
+ # The name of the deleted glossary.
853
+ # @!attribute [rw] submit_time
854
+ # @return [::Google::Protobuf::Timestamp]
855
+ # The time when the operation was submitted to the server.
856
+ # @!attribute [rw] end_time
857
+ # @return [::Google::Protobuf::Timestamp]
858
+ # The time when the glossary deletion is finished and
859
+ # {::Google::Longrunning::Operation#done google.longrunning.Operation.done} is
860
+ # set to true.
861
+ class DeleteGlossaryResponse
862
+ include ::Google::Protobuf::MessageExts
863
+ extend ::Google::Protobuf::MessageExts::ClassMethods
864
+ end
865
+ end
866
+ end
867
+ end
868
+ end