Debian Codegraph @

translate/apiv3/translatepb/common.pb.go

raw
1 // Copyright 2025 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 // http://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 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/translate/v3/common.proto
20
21 package translatepb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 reflect "reflect"
28 sync "sync"
29 )
30
31 const (
32 // Verify that this generated code is sufficiently up-to-date.
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 // Verify that runtime/protoimpl is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 // Possible states of long running operations.
39 type OperationState int32
40
41 const (
42 // Invalid.
43 OperationState_OPERATION_STATE_UNSPECIFIED OperationState = 0
44 // Request is being processed.
45 OperationState_OPERATION_STATE_RUNNING OperationState = 1
46 // The operation was successful.
47 OperationState_OPERATION_STATE_SUCCEEDED OperationState = 2
48 // Failed to process operation.
49 OperationState_OPERATION_STATE_FAILED OperationState = 3
50 // Request is in the process of being canceled after caller invoked
51 // longrunning.Operations.CancelOperation on the request id.
52 OperationState_OPERATION_STATE_CANCELLING OperationState = 4
53 // The operation request was successfully canceled.
54 OperationState_OPERATION_STATE_CANCELLED OperationState = 5
55 )
56
57 // Enum value maps for OperationState.
58 var (
59 OperationState_name = map[int32]string{
60 0: "OPERATION_STATE_UNSPECIFIED",
61 1: "OPERATION_STATE_RUNNING",
62 2: "OPERATION_STATE_SUCCEEDED",
63 3: "OPERATION_STATE_FAILED",
64 4: "OPERATION_STATE_CANCELLING",
65 5: "OPERATION_STATE_CANCELLED",
66 }
67 OperationState_value = map[string]int32{
68 "OPERATION_STATE_UNSPECIFIED": 0,
69 "OPERATION_STATE_RUNNING": 1,
70 "OPERATION_STATE_SUCCEEDED": 2,
71 "OPERATION_STATE_FAILED": 3,
72 "OPERATION_STATE_CANCELLING": 4,
73 "OPERATION_STATE_CANCELLED": 5,
74 }
75 )
76
77 func (x OperationState) Enum() *OperationState {
78 p := new(OperationState)
79 *p = x
80 return p
81 }
82
83 func (x OperationState) String() string {
84 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
85 }
86
87 func (OperationState) Descriptor() protoreflect.EnumDescriptor {
88 return file_google_cloud_translate_v3_common_proto_enumTypes[0].Descriptor()
89 }
90
91 func (OperationState) Type() protoreflect.EnumType {
92 return &file_google_cloud_translate_v3_common_proto_enumTypes[0]
93 }
94
95 func (x OperationState) Number() protoreflect.EnumNumber {
96 return protoreflect.EnumNumber(x)
97 }
98
99 // Deprecated: Use OperationState.Descriptor instead.
100 func (OperationState) EnumDescriptor() ([]byte, []int) {
101 return file_google_cloud_translate_v3_common_proto_rawDescGZIP(), []int{0}
102 }
103
104 // The Google Cloud Storage location for the input content.
105 type GcsInputSource struct {
106 state protoimpl.MessageState
107 sizeCache protoimpl.SizeCache
108 unknownFields protoimpl.UnknownFields
109
110 // Required. Source data URI. For example, `gs://my_bucket/my_object`.
111 InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"`
112 }
113
114 func (x *GcsInputSource) Reset() {
115 *x = GcsInputSource{}
116 mi := &file_google_cloud_translate_v3_common_proto_msgTypes[0]
117 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
118 ms.StoreMessageInfo(mi)
119 }
120
121 func (x *GcsInputSource) String() string {
122 return protoimpl.X.MessageStringOf(x)
123 }
124
125 func (*GcsInputSource) ProtoMessage() {}
126
127 func (x *GcsInputSource) ProtoReflect() protoreflect.Message {
128 mi := &file_google_cloud_translate_v3_common_proto_msgTypes[0]
129 if x != nil {
130 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
131 if ms.LoadMessageInfo() == nil {
132 ms.StoreMessageInfo(mi)
133 }
134 return ms
135 }
136 return mi.MessageOf(x)
137 }
138
139 // Deprecated: Use GcsInputSource.ProtoReflect.Descriptor instead.
140 func (*GcsInputSource) Descriptor() ([]byte, []int) {
141 return file_google_cloud_translate_v3_common_proto_rawDescGZIP(), []int{0}
142 }
143
144 func (x *GcsInputSource) GetInputUri() string {
145 if x != nil {
146 return x.InputUri
147 }
148 return ""
149 }
150
151 // An inlined file.
152 type FileInputSource struct {
153 state protoimpl.MessageState
154 sizeCache protoimpl.SizeCache
155 unknownFields protoimpl.UnknownFields
156
157 // Required. The file's mime type.
158 MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
159 // Required. The file's byte contents.
160 Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
161 // Required. The file's display name.
162 DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
163 }
164
165 func (x *FileInputSource) Reset() {
166 *x = FileInputSource{}
167 mi := &file_google_cloud_translate_v3_common_proto_msgTypes[1]
168 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
169 ms.StoreMessageInfo(mi)
170 }
171
172 func (x *FileInputSource) String() string {
173 return protoimpl.X.MessageStringOf(x)
174 }
175
176 func (*FileInputSource) ProtoMessage() {}
177
178 func (x *FileInputSource) ProtoReflect() protoreflect.Message {
179 mi := &file_google_cloud_translate_v3_common_proto_msgTypes[1]
180 if x != nil {
181 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
182 if ms.LoadMessageInfo() == nil {
183 ms.StoreMessageInfo(mi)
184 }
185 return ms
186 }
187 return mi.MessageOf(x)
188 }
189
190 // Deprecated: Use FileInputSource.ProtoReflect.Descriptor instead.
191 func (*FileInputSource) Descriptor() ([]byte, []int) {
192 return file_google_cloud_translate_v3_common_proto_rawDescGZIP(), []int{1}
193 }
194
195 func (x *FileInputSource) GetMimeType() string {
196 if x != nil {
197 return x.MimeType
198 }
199 return ""
200 }
201
202 func (x *FileInputSource) GetContent() []byte {
203 if x != nil {
204 return x.Content
205 }
206 return nil
207 }
208
209 func (x *FileInputSource) GetDisplayName() string {
210 if x != nil {
211 return x.DisplayName
212 }
213 return ""
214 }
215
216 // The Google Cloud Storage location for the output content.
217 type GcsOutputDestination struct {
218 state protoimpl.MessageState
219 sizeCache protoimpl.SizeCache
220 unknownFields protoimpl.UnknownFields
221
222 // Required. Google Cloud Storage URI to output directory. For example,
223 // `gs://bucket/directory`. The requesting user must have write permission to
224 // the bucket. The directory will be created if it doesn't exist.
225 OutputUriPrefix string `protobuf:"bytes,1,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"`
226 }
227
228 func (x *GcsOutputDestination) Reset() {
229 *x = GcsOutputDestination{}
230 mi := &file_google_cloud_translate_v3_common_proto_msgTypes[2]
231 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
232 ms.StoreMessageInfo(mi)
233 }
234
235 func (x *GcsOutputDestination) String() string {
236 return protoimpl.X.MessageStringOf(x)
237 }
238
239 func (*GcsOutputDestination) ProtoMessage() {}
240
241 func (x *GcsOutputDestination) ProtoReflect() protoreflect.Message {
242 mi := &file_google_cloud_translate_v3_common_proto_msgTypes[2]
243 if x != nil {
244 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
245 if ms.LoadMessageInfo() == nil {
246 ms.StoreMessageInfo(mi)
247 }
248 return ms
249 }
250 return mi.MessageOf(x)
251 }
252
253 // Deprecated: Use GcsOutputDestination.ProtoReflect.Descriptor instead.
254 func (*GcsOutputDestination) Descriptor() ([]byte, []int) {
255 return file_google_cloud_translate_v3_common_proto_rawDescGZIP(), []int{2}
256 }
257
258 func (x *GcsOutputDestination) GetOutputUriPrefix() string {
259 if x != nil {
260 return x.OutputUriPrefix
261 }
262 return ""
263 }
264
265 // Represents a single entry in a glossary.
266 type GlossaryEntry struct {
267 state protoimpl.MessageState
268 sizeCache protoimpl.SizeCache
269 unknownFields protoimpl.UnknownFields
270
271 // Identifier. The resource name of the entry.
272 // Format:
273 //
274 // `projects/*/locations/*/glossaries/*/glossaryEntries/*`
275 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
276 // The different data for the glossary types (Unidirectional, Equivalent term
277 // sets).
278 //
279 // Types that are assignable to Data:
280 //
281 // *GlossaryEntry_TermsPair
282 // *GlossaryEntry_TermsSet
283 Data isGlossaryEntry_Data `protobuf_oneof:"data"`
284 // Describes the glossary entry.
285 Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
286 }
287
288 func (x *GlossaryEntry) Reset() {
289 *x = GlossaryEntry{}
290 mi := &file_google_cloud_translate_v3_common_proto_msgTypes[3]
291 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
292 ms.StoreMessageInfo(mi)
293 }
294
295 func (x *GlossaryEntry) String() string {
296 return protoimpl.X.MessageStringOf(x)
297 }
298
299 func (*GlossaryEntry) ProtoMessage() {}
300
301 func (x *GlossaryEntry) ProtoReflect() protoreflect.Message {
302 mi := &file_google_cloud_translate_v3_common_proto_msgTypes[3]
303 if x != nil {
304 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
305 if ms.LoadMessageInfo() == nil {
306 ms.StoreMessageInfo(mi)
307 }
308 return ms
309 }
310 return mi.MessageOf(x)
311 }
312
313 // Deprecated: Use GlossaryEntry.ProtoReflect.Descriptor instead.
314 func (*GlossaryEntry) Descriptor() ([]byte, []int) {
315 return file_google_cloud_translate_v3_common_proto_rawDescGZIP(), []int{3}
316 }
317
318 func (x *GlossaryEntry) GetName() string {
319 if x != nil {
320 return x.Name
321 }
322 return ""
323 }
324
325 func (m *GlossaryEntry) GetData() isGlossaryEntry_Data {
326 if m != nil {
327 return m.Data
328 }
329 return nil
330 }
331
332 func (x *GlossaryEntry) GetTermsPair() *GlossaryEntry_GlossaryTermsPair {
333 if x, ok := x.GetData().(*GlossaryEntry_TermsPair); ok {
334 return x.TermsPair
335 }
336 return nil
337 }
338
339 func (x *GlossaryEntry) GetTermsSet() *GlossaryEntry_GlossaryTermsSet {
340 if x, ok := x.GetData().(*GlossaryEntry_TermsSet); ok {
341 return x.TermsSet
342 }
343 return nil
344 }
345
346 func (x *GlossaryEntry) GetDescription() string {
347 if x != nil {
348 return x.Description
349 }
350 return ""
351 }
352
353 type isGlossaryEntry_Data interface {
354 isGlossaryEntry_Data()
355 }
356
357 type GlossaryEntry_TermsPair struct {
358 // Used for an unidirectional glossary.
359 TermsPair *GlossaryEntry_GlossaryTermsPair `protobuf:"bytes,2,opt,name=terms_pair,json=termsPair,proto3,oneof"`
360 }
361
362 type GlossaryEntry_TermsSet struct {
363 // Used for an equivalent term sets glossary.
364 TermsSet *GlossaryEntry_GlossaryTermsSet `protobuf:"bytes,3,opt,name=terms_set,json=termsSet,proto3,oneof"`
365 }
366
367 func (*GlossaryEntry_TermsPair) isGlossaryEntry_Data() {}
368
369 func (*GlossaryEntry_TermsSet) isGlossaryEntry_Data() {}
370
371 // Represents a single glossary term
372 type GlossaryTerm struct {
373 state protoimpl.MessageState
374 sizeCache protoimpl.SizeCache
375 unknownFields protoimpl.UnknownFields
376
377 // The language for this glossary term.
378 LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
379 // The text for the glossary term.
380 Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
381 }
382
383 func (x *GlossaryTerm) Reset() {
384 *x = GlossaryTerm{}
385 mi := &file_google_cloud_translate_v3_common_proto_msgTypes[4]
386 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
387 ms.StoreMessageInfo(mi)
388 }
389
390 func (x *GlossaryTerm) String() string {
391 return protoimpl.X.MessageStringOf(x)
392 }
393
394 func (*GlossaryTerm) ProtoMessage() {}
395
396 func (x *GlossaryTerm) ProtoReflect() protoreflect.Message {
397 mi := &file_google_cloud_translate_v3_common_proto_msgTypes[4]
398 if x != nil {
399 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
400 if ms.LoadMessageInfo() == nil {
401 ms.StoreMessageInfo(mi)
402 }
403 return ms
404 }
405 return mi.MessageOf(x)
406 }
407
408 // Deprecated: Use GlossaryTerm.ProtoReflect.Descriptor instead.
409 func (*GlossaryTerm) Descriptor() ([]byte, []int) {
410 return file_google_cloud_translate_v3_common_proto_rawDescGZIP(), []int{4}
411 }
412
413 func (x *GlossaryTerm) GetLanguageCode() string {
414 if x != nil {
415 return x.LanguageCode
416 }
417 return ""
418 }
419
420 func (x *GlossaryTerm) GetText() string {
421 if x != nil {
422 return x.Text
423 }
424 return ""
425 }
426
427 // Represents a single entry for an unidirectional glossary.
428 type GlossaryEntry_GlossaryTermsPair struct {
429 state protoimpl.MessageState
430 sizeCache protoimpl.SizeCache
431 unknownFields protoimpl.UnknownFields
432
433 // The source term is the term that will get match in the text,
434 SourceTerm *GlossaryTerm `protobuf:"bytes,1,opt,name=source_term,json=sourceTerm,proto3" json:"source_term,omitempty"`
435 // The term that will replace the match source term.
436 TargetTerm *GlossaryTerm `protobuf:"bytes,2,opt,name=target_term,json=targetTerm,proto3" json:"target_term,omitempty"`
437 }
438
439 func (x *GlossaryEntry_GlossaryTermsPair) Reset() {
440 *x = GlossaryEntry_GlossaryTermsPair{}
441 mi := &file_google_cloud_translate_v3_common_proto_msgTypes[5]
442 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
443 ms.StoreMessageInfo(mi)
444 }
445
446 func (x *GlossaryEntry_GlossaryTermsPair) String() string {
447 return protoimpl.X.MessageStringOf(x)
448 }
449
450 func (*GlossaryEntry_GlossaryTermsPair) ProtoMessage() {}
451
452 func (x *GlossaryEntry_GlossaryTermsPair) ProtoReflect() protoreflect.Message {
453 mi := &file_google_cloud_translate_v3_common_proto_msgTypes[5]
454 if x != nil {
455 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
456 if ms.LoadMessageInfo() == nil {
457 ms.StoreMessageInfo(mi)
458 }
459 return ms
460 }
461 return mi.MessageOf(x)
462 }
463
464 // Deprecated: Use GlossaryEntry_GlossaryTermsPair.ProtoReflect.Descriptor instead.
465 func (*GlossaryEntry_GlossaryTermsPair) Descriptor() ([]byte, []int) {
466 return file_google_cloud_translate_v3_common_proto_rawDescGZIP(), []int{3, 0}
467 }
468
469 func (x *GlossaryEntry_GlossaryTermsPair) GetSourceTerm() *GlossaryTerm {
470 if x != nil {
471 return x.SourceTerm
472 }
473 return nil
474 }
475
476 func (x *GlossaryEntry_GlossaryTermsPair) GetTargetTerm() *GlossaryTerm {
477 if x != nil {
478 return x.TargetTerm
479 }
480 return nil
481 }
482
483 // Represents a single entry for an equivalent term set glossary. This is used
484 // for equivalent term sets where each term can be replaced by the other terms
485 // in the set.
486 type GlossaryEntry_GlossaryTermsSet struct {
487 state protoimpl.MessageState
488 sizeCache protoimpl.SizeCache
489 unknownFields protoimpl.UnknownFields
490
491 // Each term in the set represents a term that can be replaced by the other
492 // terms.
493 Terms []*GlossaryTerm `protobuf:"bytes,1,rep,name=terms,proto3" json:"terms,omitempty"`
494 }
495
496 func (x *GlossaryEntry_GlossaryTermsSet) Reset() {
497 *x = GlossaryEntry_GlossaryTermsSet{}
498 mi := &file_google_cloud_translate_v3_common_proto_msgTypes[6]
499 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
500 ms.StoreMessageInfo(mi)
501 }
502
503 func (x *GlossaryEntry_GlossaryTermsSet) String() string {
504 return protoimpl.X.MessageStringOf(x)
505 }
506
507 func (*GlossaryEntry_GlossaryTermsSet) ProtoMessage() {}
508
509 func (x *GlossaryEntry_GlossaryTermsSet) ProtoReflect() protoreflect.Message {
510 mi := &file_google_cloud_translate_v3_common_proto_msgTypes[6]
511 if x != nil {
512 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
513 if ms.LoadMessageInfo() == nil {
514 ms.StoreMessageInfo(mi)
515 }
516 return ms
517 }
518 return mi.MessageOf(x)
519 }
520
521 // Deprecated: Use GlossaryEntry_GlossaryTermsSet.ProtoReflect.Descriptor instead.
522 func (*GlossaryEntry_GlossaryTermsSet) Descriptor() ([]byte, []int) {
523 return file_google_cloud_translate_v3_common_proto_rawDescGZIP(), []int{3, 1}
524 }
525
526 func (x *GlossaryEntry_GlossaryTermsSet) GetTerms() []*GlossaryTerm {
527 if x != nil {
528 return x.Terms
529 }
530 return nil
531 }
532
533 var File_google_cloud_translate_v3_common_proto protoreflect.FileDescriptor
534
535 var file_google_cloud_translate_v3_common_proto_rawDesc = []byte{
536 0x0a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74,
537 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
538 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
539 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69,
540 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
541 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72,
542 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
543 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
544 0x6f, 0x22, 0x32, 0x0a, 0x0e, 0x47, 0x63, 0x73, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x53, 0x6f, 0x75,
545 0x72, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69,
546 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x69, 0x6e, 0x70,
547 0x75, 0x74, 0x55, 0x72, 0x69, 0x22, 0x7a, 0x0a, 0x0f, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x70,
548 0x75, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65,
549 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,
550 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x63, 0x6f,
551 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x03, 0xe0, 0x41, 0x02,
552 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0c, 0x64, 0x69, 0x73,
553 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42,
554 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d,
555 0x65, 0x22, 0x47, 0x0a, 0x14, 0x47, 0x63, 0x73, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x65,
556 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x11, 0x6f, 0x75, 0x74,
557 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x01,
558 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x6f, 0x75, 0x74, 0x70, 0x75,
559 0x74, 0x55, 0x72, 0x69, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x22, 0xbf, 0x05, 0x0a, 0x0d, 0x47,
560 0x6c, 0x6f, 0x73, 0x73, 0x61, 0x72, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x04,
561 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x08, 0x52,
562 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x5d, 0x0a, 0x0a, 0x74, 0x65, 0x72, 0x6d, 0x73, 0x5f, 0x70,
563 0x61, 0x69, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
564 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61,
565 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x6c, 0x6f, 0x73, 0x73, 0x61, 0x72, 0x79,
566 0x45, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x47, 0x6c, 0x6f, 0x73, 0x73, 0x61, 0x72, 0x79, 0x54, 0x65,
567 0x72, 0x6d, 0x73, 0x50, 0x61, 0x69, 0x72, 0x48, 0x00, 0x52, 0x09, 0x74, 0x65, 0x72, 0x6d, 0x73,
568 0x50, 0x61, 0x69, 0x72, 0x12, 0x5a, 0x0a, 0x09, 0x74, 0x65, 0x72, 0x6d, 0x73, 0x5f, 0x73, 0x65,
569 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
570 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69,
571 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x6c, 0x6f, 0x73, 0x73, 0x61, 0x72, 0x79, 0x45, 0x6e,
572 0x74, 0x72, 0x79, 0x2e, 0x47, 0x6c, 0x6f, 0x73, 0x73, 0x61, 0x72, 0x79, 0x54, 0x65, 0x72, 0x6d,
573 0x73, 0x53, 0x65, 0x74, 0x48, 0x00, 0x52, 0x08, 0x74, 0x65, 0x72, 0x6d, 0x73, 0x53, 0x65, 0x74,
574 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
575 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
576 0x6f, 0x6e, 0x1a, 0xab, 0x01, 0x0a, 0x11, 0x47, 0x6c, 0x6f, 0x73, 0x73, 0x61, 0x72, 0x79, 0x54,
577 0x65, 0x72, 0x6d, 0x73, 0x50, 0x61, 0x69, 0x72, 0x12, 0x4a, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72,
578 0x63, 0x65, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e,
579 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x72, 0x61,
580 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x6c, 0x6f, 0x73,
581 0x73, 0x61, 0x72, 0x79, 0x54, 0x65, 0x72, 0x6d, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
582 0x54, 0x65, 0x72, 0x6d, 0x12, 0x4a, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74,
583 0x65, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
584 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61,
585 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x6c, 0x6f, 0x73, 0x73, 0x61, 0x72, 0x79,
586 0x54, 0x65, 0x72, 0x6d, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x65, 0x72, 0x6d,
587 0x1a, 0x53, 0x0a, 0x10, 0x47, 0x6c, 0x6f, 0x73, 0x73, 0x61, 0x72, 0x79, 0x54, 0x65, 0x72, 0x6d,
588 0x73, 0x53, 0x65, 0x74, 0x12, 0x3f, 0x0a, 0x05, 0x74, 0x65, 0x72, 0x6d, 0x73, 0x18, 0x01, 0x20,
589 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
590 0x75, 0x64, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76,
591 0x33, 0x2e, 0x47, 0x6c, 0x6f, 0x73, 0x73, 0x61, 0x72, 0x79, 0x54, 0x65, 0x72, 0x6d, 0x52, 0x05,
592 0x74, 0x65, 0x72, 0x6d, 0x73, 0x3a, 0xac, 0x01, 0xea, 0x41, 0xa8, 0x01, 0x0a, 0x26, 0x74, 0x72,
593 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
594 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x6c, 0x6f, 0x73, 0x73, 0x61, 0x72, 0x79, 0x45,
595 0x6e, 0x74, 0x72, 0x79, 0x12, 0x5e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b,
596 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
597 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x67, 0x6c,
598 0x6f, 0x73, 0x73, 0x61, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x67, 0x6c, 0x6f, 0x73, 0x73, 0x61,
599 0x72, 0x79, 0x7d, 0x2f, 0x67, 0x6c, 0x6f, 0x73, 0x73, 0x61, 0x72, 0x79, 0x45, 0x6e, 0x74, 0x72,
600 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x67, 0x6c, 0x6f, 0x73, 0x73, 0x61, 0x72, 0x79, 0x5f, 0x65, 0x6e,
601 0x74, 0x72, 0x79, 0x7d, 0x2a, 0x0f, 0x67, 0x6c, 0x6f, 0x73, 0x73, 0x61, 0x72, 0x79, 0x45, 0x6e,
602 0x74, 0x72, 0x69, 0x65, 0x73, 0x32, 0x0d, 0x67, 0x6c, 0x6f, 0x73, 0x73, 0x61, 0x72, 0x79, 0x45,
603 0x6e, 0x74, 0x72, 0x79, 0x42, 0x06, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x47, 0x0a, 0x0c,
604 0x47, 0x6c, 0x6f, 0x73, 0x73, 0x61, 0x72, 0x79, 0x54, 0x65, 0x72, 0x6d, 0x12, 0x23, 0x0a, 0x0d,
605 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
606 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64,
607 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
608 0x04, 0x74, 0x65, 0x78, 0x74, 0x2a, 0xc8, 0x01, 0x0a, 0x0e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74,
609 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x4f, 0x50, 0x45, 0x52,
610 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50,
611 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x4f, 0x50, 0x45,
612 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x55, 0x4e,
613 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54,
614 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45,
615 0x44, 0x45, 0x44, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49,
616 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10,
617 0x03, 0x12, 0x1e, 0x0a, 0x1a, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53,
618 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x49, 0x4e, 0x47, 0x10,
619 0x04, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53,
620 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x05,
621 0x42, 0xc2, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
622 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x2e,
623 0x76, 0x33, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
624 0x01, 0x5a, 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
625 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65,
626 0x2f, 0x61, 0x70, 0x69, 0x76, 0x33, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65,
627 0x70, 0x62, 0x3b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x70, 0x62, 0xaa, 0x02,
628 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x54, 0x72,
629 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x19, 0x47, 0x6f, 0x6f,
630 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c,
631 0x61, 0x74, 0x65, 0x5c, 0x56, 0x33, 0xea, 0x02, 0x1c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a,
632 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74,
633 0x65, 0x3a, 0x3a, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
634 }
635
636 var (
637 file_google_cloud_translate_v3_common_proto_rawDescOnce sync.Once
638 file_google_cloud_translate_v3_common_proto_rawDescData = file_google_cloud_translate_v3_common_proto_rawDesc
639 )
640
641 func file_google_cloud_translate_v3_common_proto_rawDescGZIP() []byte {
642 file_google_cloud_translate_v3_common_proto_rawDescOnce.Do(func() {
643 file_google_cloud_translate_v3_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_translate_v3_common_proto_rawDescData)
644 })
645 return file_google_cloud_translate_v3_common_proto_rawDescData
646 }
647
648 var file_google_cloud_translate_v3_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
649 var file_google_cloud_translate_v3_common_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
650 var file_google_cloud_translate_v3_common_proto_goTypes = []any{
651 (OperationState)(0), // 0: google.cloud.translation.v3.OperationState
652 (*GcsInputSource)(nil), // 1: google.cloud.translation.v3.GcsInputSource
653 (*FileInputSource)(nil), // 2: google.cloud.translation.v3.FileInputSource
654 (*GcsOutputDestination)(nil), // 3: google.cloud.translation.v3.GcsOutputDestination
655 (*GlossaryEntry)(nil), // 4: google.cloud.translation.v3.GlossaryEntry
656 (*GlossaryTerm)(nil), // 5: google.cloud.translation.v3.GlossaryTerm
657 (*GlossaryEntry_GlossaryTermsPair)(nil), // 6: google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair
658 (*GlossaryEntry_GlossaryTermsSet)(nil), // 7: google.cloud.translation.v3.GlossaryEntry.GlossaryTermsSet
659 }
660 var file_google_cloud_translate_v3_common_proto_depIdxs = []int32{
661 6, // 0: google.cloud.translation.v3.GlossaryEntry.terms_pair:type_name -> google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair
662 7, // 1: google.cloud.translation.v3.GlossaryEntry.terms_set:type_name -> google.cloud.translation.v3.GlossaryEntry.GlossaryTermsSet
663 5, // 2: google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair.source_term:type_name -> google.cloud.translation.v3.GlossaryTerm
664 5, // 3: google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair.target_term:type_name -> google.cloud.translation.v3.GlossaryTerm
665 5, // 4: google.cloud.translation.v3.GlossaryEntry.GlossaryTermsSet.terms:type_name -> google.cloud.translation.v3.GlossaryTerm
666 5, // [5:5] is the sub-list for method output_type
667 5, // [5:5] is the sub-list for method input_type
668 5, // [5:5] is the sub-list for extension type_name
669 5, // [5:5] is the sub-list for extension extendee
670 0, // [0:5] is the sub-list for field type_name
671 }
672
673 func init() { file_google_cloud_translate_v3_common_proto_init() }
674 func file_google_cloud_translate_v3_common_proto_init() {
675 if File_google_cloud_translate_v3_common_proto != nil {
676 return
677 }
678 file_google_cloud_translate_v3_common_proto_msgTypes[3].OneofWrappers = []any{
679 (*GlossaryEntry_TermsPair)(nil),
680 (*GlossaryEntry_TermsSet)(nil),
681 }
682 type x struct{}
683 out := protoimpl.TypeBuilder{
684 File: protoimpl.DescBuilder{
685 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
686 RawDescriptor: file_google_cloud_translate_v3_common_proto_rawDesc,
687 NumEnums: 1,
688 NumMessages: 7,
689 NumExtensions: 0,
690 NumServices: 0,
691 },
692 GoTypes: file_google_cloud_translate_v3_common_proto_goTypes,
693 DependencyIndexes: file_google_cloud_translate_v3_common_proto_depIdxs,
694 EnumInfos: file_google_cloud_translate_v3_common_proto_enumTypes,
695 MessageInfos: file_google_cloud_translate_v3_common_proto_msgTypes,
696 }.Build()
697 File_google_cloud_translate_v3_common_proto = out.File
698 file_google_cloud_translate_v3_common_proto_rawDesc = nil
699 file_google_cloud_translate_v3_common_proto_goTypes = nil
700 file_google_cloud_translate_v3_common_proto_depIdxs = nil
701 }