1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/cloud/translate/v3/translation_service.proto
3
4package translate
5
6import (
7	context "context"
8	fmt "fmt"
9	math "math"
10
11	proto "github.com/golang/protobuf/proto"
12	timestamp "github.com/golang/protobuf/ptypes/timestamp"
13	_ "google.golang.org/genproto/googleapis/api/annotations"
14	longrunning "google.golang.org/genproto/googleapis/longrunning"
15	grpc "google.golang.org/grpc"
16	codes "google.golang.org/grpc/codes"
17	status "google.golang.org/grpc/status"
18)
19
20// Reference imports to suppress errors if they are not otherwise used.
21var _ = proto.Marshal
22var _ = fmt.Errorf
23var _ = math.Inf
24
25// This is a compile-time assertion to ensure that this generated file
26// is compatible with the proto package it is being compiled against.
27// A compilation error at this line likely means your copy of the
28// proto package needs to be updated.
29const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
30
31// State of the job.
32type BatchTranslateMetadata_State int32
33
34const (
35	// Invalid.
36	BatchTranslateMetadata_STATE_UNSPECIFIED BatchTranslateMetadata_State = 0
37	// Request is being processed.
38	BatchTranslateMetadata_RUNNING BatchTranslateMetadata_State = 1
39	// The batch is processed, and at least one item was successfully
40	// processed.
41	BatchTranslateMetadata_SUCCEEDED BatchTranslateMetadata_State = 2
42	// The batch is done and no item was successfully processed.
43	BatchTranslateMetadata_FAILED BatchTranslateMetadata_State = 3
44	// Request is in the process of being canceled after caller invoked
45	// longrunning.Operations.CancelOperation on the request id.
46	BatchTranslateMetadata_CANCELLING BatchTranslateMetadata_State = 4
47	// The batch is done after the user has called the
48	// longrunning.Operations.CancelOperation. Any records processed before the
49	// cancel command are output as specified in the request.
50	BatchTranslateMetadata_CANCELLED BatchTranslateMetadata_State = 5
51)
52
53var BatchTranslateMetadata_State_name = map[int32]string{
54	0: "STATE_UNSPECIFIED",
55	1: "RUNNING",
56	2: "SUCCEEDED",
57	3: "FAILED",
58	4: "CANCELLING",
59	5: "CANCELLED",
60}
61
62var BatchTranslateMetadata_State_value = map[string]int32{
63	"STATE_UNSPECIFIED": 0,
64	"RUNNING":           1,
65	"SUCCEEDED":         2,
66	"FAILED":            3,
67	"CANCELLING":        4,
68	"CANCELLED":         5,
69}
70
71func (x BatchTranslateMetadata_State) String() string {
72	return proto.EnumName(BatchTranslateMetadata_State_name, int32(x))
73}
74
75func (BatchTranslateMetadata_State) EnumDescriptor() ([]byte, []int) {
76	return fileDescriptor_310ad52ac0a2661e, []int{15, 0}
77}
78
79// Enumerates the possible states that the creation request can be in.
80type CreateGlossaryMetadata_State int32
81
82const (
83	// Invalid.
84	CreateGlossaryMetadata_STATE_UNSPECIFIED CreateGlossaryMetadata_State = 0
85	// Request is being processed.
86	CreateGlossaryMetadata_RUNNING CreateGlossaryMetadata_State = 1
87	// The glossary was successfully created.
88	CreateGlossaryMetadata_SUCCEEDED CreateGlossaryMetadata_State = 2
89	// Failed to create the glossary.
90	CreateGlossaryMetadata_FAILED CreateGlossaryMetadata_State = 3
91	// Request is in the process of being canceled after caller invoked
92	// longrunning.Operations.CancelOperation on the request id.
93	CreateGlossaryMetadata_CANCELLING CreateGlossaryMetadata_State = 4
94	// The glossary creation request was successfully canceled.
95	CreateGlossaryMetadata_CANCELLED CreateGlossaryMetadata_State = 5
96)
97
98var CreateGlossaryMetadata_State_name = map[int32]string{
99	0: "STATE_UNSPECIFIED",
100	1: "RUNNING",
101	2: "SUCCEEDED",
102	3: "FAILED",
103	4: "CANCELLING",
104	5: "CANCELLED",
105}
106
107var CreateGlossaryMetadata_State_value = map[string]int32{
108	"STATE_UNSPECIFIED": 0,
109	"RUNNING":           1,
110	"SUCCEEDED":         2,
111	"FAILED":            3,
112	"CANCELLING":        4,
113	"CANCELLED":         5,
114}
115
116func (x CreateGlossaryMetadata_State) String() string {
117	return proto.EnumName(CreateGlossaryMetadata_State_name, int32(x))
118}
119
120func (CreateGlossaryMetadata_State) EnumDescriptor() ([]byte, []int) {
121	return fileDescriptor_310ad52ac0a2661e, []int{24, 0}
122}
123
124// Enumerates the possible states that the creation request can be in.
125type DeleteGlossaryMetadata_State int32
126
127const (
128	// Invalid.
129	DeleteGlossaryMetadata_STATE_UNSPECIFIED DeleteGlossaryMetadata_State = 0
130	// Request is being processed.
131	DeleteGlossaryMetadata_RUNNING DeleteGlossaryMetadata_State = 1
132	// The glossary was successfully deleted.
133	DeleteGlossaryMetadata_SUCCEEDED DeleteGlossaryMetadata_State = 2
134	// Failed to delete the glossary.
135	DeleteGlossaryMetadata_FAILED DeleteGlossaryMetadata_State = 3
136	// Request is in the process of being canceled after caller invoked
137	// longrunning.Operations.CancelOperation on the request id.
138	DeleteGlossaryMetadata_CANCELLING DeleteGlossaryMetadata_State = 4
139	// The glossary deletion request was successfully canceled.
140	DeleteGlossaryMetadata_CANCELLED DeleteGlossaryMetadata_State = 5
141)
142
143var DeleteGlossaryMetadata_State_name = map[int32]string{
144	0: "STATE_UNSPECIFIED",
145	1: "RUNNING",
146	2: "SUCCEEDED",
147	3: "FAILED",
148	4: "CANCELLING",
149	5: "CANCELLED",
150}
151
152var DeleteGlossaryMetadata_State_value = map[string]int32{
153	"STATE_UNSPECIFIED": 0,
154	"RUNNING":           1,
155	"SUCCEEDED":         2,
156	"FAILED":            3,
157	"CANCELLING":        4,
158	"CANCELLED":         5,
159}
160
161func (x DeleteGlossaryMetadata_State) String() string {
162	return proto.EnumName(DeleteGlossaryMetadata_State_name, int32(x))
163}
164
165func (DeleteGlossaryMetadata_State) EnumDescriptor() ([]byte, []int) {
166	return fileDescriptor_310ad52ac0a2661e, []int{25, 0}
167}
168
169// Configures which glossary should be used for a specific target language,
170// and defines options for applying that glossary.
171type TranslateTextGlossaryConfig struct {
172	// Required. Specifies the glossary used for this translation. Use
173	// this format: projects/*/locations/*/glossaries/*
174	Glossary string `protobuf:"bytes,1,opt,name=glossary,proto3" json:"glossary,omitempty"`
175	// Optional. Indicates match is case-insensitive.
176	// Default value is false if missing.
177	IgnoreCase           bool     `protobuf:"varint,2,opt,name=ignore_case,json=ignoreCase,proto3" json:"ignore_case,omitempty"`
178	XXX_NoUnkeyedLiteral struct{} `json:"-"`
179	XXX_unrecognized     []byte   `json:"-"`
180	XXX_sizecache        int32    `json:"-"`
181}
182
183func (m *TranslateTextGlossaryConfig) Reset()         { *m = TranslateTextGlossaryConfig{} }
184func (m *TranslateTextGlossaryConfig) String() string { return proto.CompactTextString(m) }
185func (*TranslateTextGlossaryConfig) ProtoMessage()    {}
186func (*TranslateTextGlossaryConfig) Descriptor() ([]byte, []int) {
187	return fileDescriptor_310ad52ac0a2661e, []int{0}
188}
189
190func (m *TranslateTextGlossaryConfig) XXX_Unmarshal(b []byte) error {
191	return xxx_messageInfo_TranslateTextGlossaryConfig.Unmarshal(m, b)
192}
193func (m *TranslateTextGlossaryConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
194	return xxx_messageInfo_TranslateTextGlossaryConfig.Marshal(b, m, deterministic)
195}
196func (m *TranslateTextGlossaryConfig) XXX_Merge(src proto.Message) {
197	xxx_messageInfo_TranslateTextGlossaryConfig.Merge(m, src)
198}
199func (m *TranslateTextGlossaryConfig) XXX_Size() int {
200	return xxx_messageInfo_TranslateTextGlossaryConfig.Size(m)
201}
202func (m *TranslateTextGlossaryConfig) XXX_DiscardUnknown() {
203	xxx_messageInfo_TranslateTextGlossaryConfig.DiscardUnknown(m)
204}
205
206var xxx_messageInfo_TranslateTextGlossaryConfig proto.InternalMessageInfo
207
208func (m *TranslateTextGlossaryConfig) GetGlossary() string {
209	if m != nil {
210		return m.Glossary
211	}
212	return ""
213}
214
215func (m *TranslateTextGlossaryConfig) GetIgnoreCase() bool {
216	if m != nil {
217		return m.IgnoreCase
218	}
219	return false
220}
221
222// The request message for synchronous translation.
223type TranslateTextRequest struct {
224	// Required. The content of the input in string format.
225	// We recommend the total content be less than 30k codepoints.
226	// Use BatchTranslateText for larger text.
227	Contents []string `protobuf:"bytes,1,rep,name=contents,proto3" json:"contents,omitempty"`
228	// Optional. The format of the source text, for example, "text/html",
229	//  "text/plain". If left blank, the MIME type defaults to "text/html".
230	MimeType string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
231	// Optional. The BCP-47 language code of the input text if
232	// known, for example, "en-US" or "sr-Latn". Supported language codes are
233	// listed in Language Support. If the source language isn't specified, the API
234	// attempts to identify the source language automatically and returns the
235	// source language within the response.
236	SourceLanguageCode string `protobuf:"bytes,4,opt,name=source_language_code,json=sourceLanguageCode,proto3" json:"source_language_code,omitempty"`
237	// Required. The BCP-47 language code to use for translation of the input
238	// text, set to one of the language codes listed in Language Support.
239	TargetLanguageCode string `protobuf:"bytes,5,opt,name=target_language_code,json=targetLanguageCode,proto3" json:"target_language_code,omitempty"`
240	// Required. Project or location to make a call. Must refer to a caller's
241	// project.
242	//
243	// Format: `projects/{project-number-or-id}` or
244	// `projects/{project-number-or-id}/locations/{location-id}`.
245	//
246	// For global calls, use `projects/{project-number-or-id}/locations/global` or
247	// `projects/{project-number-or-id}`.
248	//
249	// Non-global location is required for requests using AutoML models or
250	// custom glossaries.
251	//
252	// Models and glossaries must be within the same region (have same
253	// location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
254	Parent string `protobuf:"bytes,8,opt,name=parent,proto3" json:"parent,omitempty"`
255	// Optional. The `model` type requested for this translation.
256	//
257	// The format depends on model type:
258	//
259	// - AutoML Translation models:
260	//   `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}`
261	//
262	// - General (built-in) models:
263	//   `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,
264	//   `projects/{project-number-or-id}/locations/{location-id}/models/general/base`
265	//
266	//
267	// For global (non-regionalized) requests, use `location-id` `global`.
268	// For example,
269	// `projects/{project-number-or-id}/locations/global/models/general/nmt`.
270	//
271	// If missing, the system decides which google base model to use.
272	Model string `protobuf:"bytes,6,opt,name=model,proto3" json:"model,omitempty"`
273	// Optional. Glossary to be applied. The glossary must be
274	// within the same region (have the same location-id) as the model, otherwise
275	// an INVALID_ARGUMENT (400) error is returned.
276	GlossaryConfig *TranslateTextGlossaryConfig `protobuf:"bytes,7,opt,name=glossary_config,json=glossaryConfig,proto3" json:"glossary_config,omitempty"`
277	// Optional. The labels with user-defined metadata for the request.
278	//
279	// Label keys and values can be no longer than 63 characters
280	// (Unicode codepoints), can only contain lowercase letters, numeric
281	// characters, underscores and dashes. International characters are allowed.
282	// Label values are optional. Label keys must start with a letter.
283	//
284	// See https://cloud.google.com/translate/docs/labels for more information.
285	Labels               map[string]string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
286	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
287	XXX_unrecognized     []byte            `json:"-"`
288	XXX_sizecache        int32             `json:"-"`
289}
290
291func (m *TranslateTextRequest) Reset()         { *m = TranslateTextRequest{} }
292func (m *TranslateTextRequest) String() string { return proto.CompactTextString(m) }
293func (*TranslateTextRequest) ProtoMessage()    {}
294func (*TranslateTextRequest) Descriptor() ([]byte, []int) {
295	return fileDescriptor_310ad52ac0a2661e, []int{1}
296}
297
298func (m *TranslateTextRequest) XXX_Unmarshal(b []byte) error {
299	return xxx_messageInfo_TranslateTextRequest.Unmarshal(m, b)
300}
301func (m *TranslateTextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
302	return xxx_messageInfo_TranslateTextRequest.Marshal(b, m, deterministic)
303}
304func (m *TranslateTextRequest) XXX_Merge(src proto.Message) {
305	xxx_messageInfo_TranslateTextRequest.Merge(m, src)
306}
307func (m *TranslateTextRequest) XXX_Size() int {
308	return xxx_messageInfo_TranslateTextRequest.Size(m)
309}
310func (m *TranslateTextRequest) XXX_DiscardUnknown() {
311	xxx_messageInfo_TranslateTextRequest.DiscardUnknown(m)
312}
313
314var xxx_messageInfo_TranslateTextRequest proto.InternalMessageInfo
315
316func (m *TranslateTextRequest) GetContents() []string {
317	if m != nil {
318		return m.Contents
319	}
320	return nil
321}
322
323func (m *TranslateTextRequest) GetMimeType() string {
324	if m != nil {
325		return m.MimeType
326	}
327	return ""
328}
329
330func (m *TranslateTextRequest) GetSourceLanguageCode() string {
331	if m != nil {
332		return m.SourceLanguageCode
333	}
334	return ""
335}
336
337func (m *TranslateTextRequest) GetTargetLanguageCode() string {
338	if m != nil {
339		return m.TargetLanguageCode
340	}
341	return ""
342}
343
344func (m *TranslateTextRequest) GetParent() string {
345	if m != nil {
346		return m.Parent
347	}
348	return ""
349}
350
351func (m *TranslateTextRequest) GetModel() string {
352	if m != nil {
353		return m.Model
354	}
355	return ""
356}
357
358func (m *TranslateTextRequest) GetGlossaryConfig() *TranslateTextGlossaryConfig {
359	if m != nil {
360		return m.GlossaryConfig
361	}
362	return nil
363}
364
365func (m *TranslateTextRequest) GetLabels() map[string]string {
366	if m != nil {
367		return m.Labels
368	}
369	return nil
370}
371
372type TranslateTextResponse struct {
373	// Text translation responses with no glossary applied.
374	// This field has the same length as
375	// [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
376	Translations []*Translation `protobuf:"bytes,1,rep,name=translations,proto3" json:"translations,omitempty"`
377	// Text translation responses if a glossary is provided in the request.
378	// This can be the same as
379	// [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations]
380	// if no terms apply. This field has the same length as
381	// [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
382	GlossaryTranslations []*Translation `protobuf:"bytes,3,rep,name=glossary_translations,json=glossaryTranslations,proto3" json:"glossary_translations,omitempty"`
383	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
384	XXX_unrecognized     []byte         `json:"-"`
385	XXX_sizecache        int32          `json:"-"`
386}
387
388func (m *TranslateTextResponse) Reset()         { *m = TranslateTextResponse{} }
389func (m *TranslateTextResponse) String() string { return proto.CompactTextString(m) }
390func (*TranslateTextResponse) ProtoMessage()    {}
391func (*TranslateTextResponse) Descriptor() ([]byte, []int) {
392	return fileDescriptor_310ad52ac0a2661e, []int{2}
393}
394
395func (m *TranslateTextResponse) XXX_Unmarshal(b []byte) error {
396	return xxx_messageInfo_TranslateTextResponse.Unmarshal(m, b)
397}
398func (m *TranslateTextResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
399	return xxx_messageInfo_TranslateTextResponse.Marshal(b, m, deterministic)
400}
401func (m *TranslateTextResponse) XXX_Merge(src proto.Message) {
402	xxx_messageInfo_TranslateTextResponse.Merge(m, src)
403}
404func (m *TranslateTextResponse) XXX_Size() int {
405	return xxx_messageInfo_TranslateTextResponse.Size(m)
406}
407func (m *TranslateTextResponse) XXX_DiscardUnknown() {
408	xxx_messageInfo_TranslateTextResponse.DiscardUnknown(m)
409}
410
411var xxx_messageInfo_TranslateTextResponse proto.InternalMessageInfo
412
413func (m *TranslateTextResponse) GetTranslations() []*Translation {
414	if m != nil {
415		return m.Translations
416	}
417	return nil
418}
419
420func (m *TranslateTextResponse) GetGlossaryTranslations() []*Translation {
421	if m != nil {
422		return m.GlossaryTranslations
423	}
424	return nil
425}
426
427// A single translation response.
428type Translation struct {
429	// Text translated into the target language.
430	TranslatedText string `protobuf:"bytes,1,opt,name=translated_text,json=translatedText,proto3" json:"translated_text,omitempty"`
431	// Only present when `model` is present in the request.
432	// `model` here is normalized to have project number.
433	//
434	// For example:
435	// If the `model` requested in TranslationTextRequest is
436	// `projects/{project-id}/locations/{location-id}/models/general/nmt` then
437	// `model` here would be normalized to
438	// `projects/{project-number}/locations/{location-id}/models/general/nmt`.
439	Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"`
440	// The BCP-47 language code of source text in the initial request, detected
441	// automatically, if no source language was passed within the initial
442	// request. If the source language was passed, auto-detection of the language
443	// does not occur and this field is empty.
444	DetectedLanguageCode string `protobuf:"bytes,4,opt,name=detected_language_code,json=detectedLanguageCode,proto3" json:"detected_language_code,omitempty"`
445	// The `glossary_config` used for this translation.
446	GlossaryConfig       *TranslateTextGlossaryConfig `protobuf:"bytes,3,opt,name=glossary_config,json=glossaryConfig,proto3" json:"glossary_config,omitempty"`
447	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
448	XXX_unrecognized     []byte                       `json:"-"`
449	XXX_sizecache        int32                        `json:"-"`
450}
451
452func (m *Translation) Reset()         { *m = Translation{} }
453func (m *Translation) String() string { return proto.CompactTextString(m) }
454func (*Translation) ProtoMessage()    {}
455func (*Translation) Descriptor() ([]byte, []int) {
456	return fileDescriptor_310ad52ac0a2661e, []int{3}
457}
458
459func (m *Translation) XXX_Unmarshal(b []byte) error {
460	return xxx_messageInfo_Translation.Unmarshal(m, b)
461}
462func (m *Translation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
463	return xxx_messageInfo_Translation.Marshal(b, m, deterministic)
464}
465func (m *Translation) XXX_Merge(src proto.Message) {
466	xxx_messageInfo_Translation.Merge(m, src)
467}
468func (m *Translation) XXX_Size() int {
469	return xxx_messageInfo_Translation.Size(m)
470}
471func (m *Translation) XXX_DiscardUnknown() {
472	xxx_messageInfo_Translation.DiscardUnknown(m)
473}
474
475var xxx_messageInfo_Translation proto.InternalMessageInfo
476
477func (m *Translation) GetTranslatedText() string {
478	if m != nil {
479		return m.TranslatedText
480	}
481	return ""
482}
483
484func (m *Translation) GetModel() string {
485	if m != nil {
486		return m.Model
487	}
488	return ""
489}
490
491func (m *Translation) GetDetectedLanguageCode() string {
492	if m != nil {
493		return m.DetectedLanguageCode
494	}
495	return ""
496}
497
498func (m *Translation) GetGlossaryConfig() *TranslateTextGlossaryConfig {
499	if m != nil {
500		return m.GlossaryConfig
501	}
502	return nil
503}
504
505// The request message for language detection.
506type DetectLanguageRequest struct {
507	// Required. Project or location to make a call. Must refer to a caller's
508	// project.
509	//
510	// Format: `projects/{project-number-or-id}/locations/{location-id}` or
511	// `projects/{project-number-or-id}`.
512	//
513	// For global calls, use `projects/{project-number-or-id}/locations/global` or
514	// `projects/{project-number-or-id}`.
515	//
516	// Only models within the same region (has same location-id) can be used.
517	// Otherwise an INVALID_ARGUMENT (400) error is returned.
518	Parent string `protobuf:"bytes,5,opt,name=parent,proto3" json:"parent,omitempty"`
519	// Optional. The language detection model to be used.
520	//
521	// Format:
522	// `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}`
523	//
524	// Only one language detection model is currently supported:
525	// `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`.
526	//
527	// If not specified, the default model is used.
528	Model string `protobuf:"bytes,4,opt,name=model,proto3" json:"model,omitempty"`
529	// Required. The source of the document from which to detect the language.
530	//
531	// Types that are valid to be assigned to Source:
532	//	*DetectLanguageRequest_Content
533	Source isDetectLanguageRequest_Source `protobuf_oneof:"source"`
534	// Optional. The format of the source text, for example, "text/html",
535	// "text/plain". If left blank, the MIME type defaults to "text/html".
536	MimeType string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
537	// Optional. The labels with user-defined metadata for the request.
538	//
539	// Label keys and values can be no longer than 63 characters
540	// (Unicode codepoints), can only contain lowercase letters, numeric
541	// characters, underscores and dashes. International characters are allowed.
542	// Label values are optional. Label keys must start with a letter.
543	//
544	// See https://cloud.google.com/translate/docs/labels for more information.
545	Labels               map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
546	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
547	XXX_unrecognized     []byte            `json:"-"`
548	XXX_sizecache        int32             `json:"-"`
549}
550
551func (m *DetectLanguageRequest) Reset()         { *m = DetectLanguageRequest{} }
552func (m *DetectLanguageRequest) String() string { return proto.CompactTextString(m) }
553func (*DetectLanguageRequest) ProtoMessage()    {}
554func (*DetectLanguageRequest) Descriptor() ([]byte, []int) {
555	return fileDescriptor_310ad52ac0a2661e, []int{4}
556}
557
558func (m *DetectLanguageRequest) XXX_Unmarshal(b []byte) error {
559	return xxx_messageInfo_DetectLanguageRequest.Unmarshal(m, b)
560}
561func (m *DetectLanguageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
562	return xxx_messageInfo_DetectLanguageRequest.Marshal(b, m, deterministic)
563}
564func (m *DetectLanguageRequest) XXX_Merge(src proto.Message) {
565	xxx_messageInfo_DetectLanguageRequest.Merge(m, src)
566}
567func (m *DetectLanguageRequest) XXX_Size() int {
568	return xxx_messageInfo_DetectLanguageRequest.Size(m)
569}
570func (m *DetectLanguageRequest) XXX_DiscardUnknown() {
571	xxx_messageInfo_DetectLanguageRequest.DiscardUnknown(m)
572}
573
574var xxx_messageInfo_DetectLanguageRequest proto.InternalMessageInfo
575
576func (m *DetectLanguageRequest) GetParent() string {
577	if m != nil {
578		return m.Parent
579	}
580	return ""
581}
582
583func (m *DetectLanguageRequest) GetModel() string {
584	if m != nil {
585		return m.Model
586	}
587	return ""
588}
589
590type isDetectLanguageRequest_Source interface {
591	isDetectLanguageRequest_Source()
592}
593
594type DetectLanguageRequest_Content struct {
595	Content string `protobuf:"bytes,1,opt,name=content,proto3,oneof"`
596}
597
598func (*DetectLanguageRequest_Content) isDetectLanguageRequest_Source() {}
599
600func (m *DetectLanguageRequest) GetSource() isDetectLanguageRequest_Source {
601	if m != nil {
602		return m.Source
603	}
604	return nil
605}
606
607func (m *DetectLanguageRequest) GetContent() string {
608	if x, ok := m.GetSource().(*DetectLanguageRequest_Content); ok {
609		return x.Content
610	}
611	return ""
612}
613
614func (m *DetectLanguageRequest) GetMimeType() string {
615	if m != nil {
616		return m.MimeType
617	}
618	return ""
619}
620
621func (m *DetectLanguageRequest) GetLabels() map[string]string {
622	if m != nil {
623		return m.Labels
624	}
625	return nil
626}
627
628// XXX_OneofWrappers is for the internal use of the proto package.
629func (*DetectLanguageRequest) XXX_OneofWrappers() []interface{} {
630	return []interface{}{
631		(*DetectLanguageRequest_Content)(nil),
632	}
633}
634
635// The response message for language detection.
636type DetectedLanguage struct {
637	// The BCP-47 language code of source content in the request, detected
638	// automatically.
639	LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
640	// The confidence of the detection result for this language.
641	Confidence           float32  `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
642	XXX_NoUnkeyedLiteral struct{} `json:"-"`
643	XXX_unrecognized     []byte   `json:"-"`
644	XXX_sizecache        int32    `json:"-"`
645}
646
647func (m *DetectedLanguage) Reset()         { *m = DetectedLanguage{} }
648func (m *DetectedLanguage) String() string { return proto.CompactTextString(m) }
649func (*DetectedLanguage) ProtoMessage()    {}
650func (*DetectedLanguage) Descriptor() ([]byte, []int) {
651	return fileDescriptor_310ad52ac0a2661e, []int{5}
652}
653
654func (m *DetectedLanguage) XXX_Unmarshal(b []byte) error {
655	return xxx_messageInfo_DetectedLanguage.Unmarshal(m, b)
656}
657func (m *DetectedLanguage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
658	return xxx_messageInfo_DetectedLanguage.Marshal(b, m, deterministic)
659}
660func (m *DetectedLanguage) XXX_Merge(src proto.Message) {
661	xxx_messageInfo_DetectedLanguage.Merge(m, src)
662}
663func (m *DetectedLanguage) XXX_Size() int {
664	return xxx_messageInfo_DetectedLanguage.Size(m)
665}
666func (m *DetectedLanguage) XXX_DiscardUnknown() {
667	xxx_messageInfo_DetectedLanguage.DiscardUnknown(m)
668}
669
670var xxx_messageInfo_DetectedLanguage proto.InternalMessageInfo
671
672func (m *DetectedLanguage) GetLanguageCode() string {
673	if m != nil {
674		return m.LanguageCode
675	}
676	return ""
677}
678
679func (m *DetectedLanguage) GetConfidence() float32 {
680	if m != nil {
681		return m.Confidence
682	}
683	return 0
684}
685
686// The response message for language detection.
687type DetectLanguageResponse struct {
688	// A list of detected languages sorted by detection confidence in descending
689	// order. The most probable language first.
690	Languages            []*DetectedLanguage `protobuf:"bytes,1,rep,name=languages,proto3" json:"languages,omitempty"`
691	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
692	XXX_unrecognized     []byte              `json:"-"`
693	XXX_sizecache        int32               `json:"-"`
694}
695
696func (m *DetectLanguageResponse) Reset()         { *m = DetectLanguageResponse{} }
697func (m *DetectLanguageResponse) String() string { return proto.CompactTextString(m) }
698func (*DetectLanguageResponse) ProtoMessage()    {}
699func (*DetectLanguageResponse) Descriptor() ([]byte, []int) {
700	return fileDescriptor_310ad52ac0a2661e, []int{6}
701}
702
703func (m *DetectLanguageResponse) XXX_Unmarshal(b []byte) error {
704	return xxx_messageInfo_DetectLanguageResponse.Unmarshal(m, b)
705}
706func (m *DetectLanguageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
707	return xxx_messageInfo_DetectLanguageResponse.Marshal(b, m, deterministic)
708}
709func (m *DetectLanguageResponse) XXX_Merge(src proto.Message) {
710	xxx_messageInfo_DetectLanguageResponse.Merge(m, src)
711}
712func (m *DetectLanguageResponse) XXX_Size() int {
713	return xxx_messageInfo_DetectLanguageResponse.Size(m)
714}
715func (m *DetectLanguageResponse) XXX_DiscardUnknown() {
716	xxx_messageInfo_DetectLanguageResponse.DiscardUnknown(m)
717}
718
719var xxx_messageInfo_DetectLanguageResponse proto.InternalMessageInfo
720
721func (m *DetectLanguageResponse) GetLanguages() []*DetectedLanguage {
722	if m != nil {
723		return m.Languages
724	}
725	return nil
726}
727
728// The request message for discovering supported languages.
729type GetSupportedLanguagesRequest struct {
730	// Required. Project or location to make a call. Must refer to a caller's
731	// project.
732	//
733	// Format: `projects/{project-number-or-id}` or
734	// `projects/{project-number-or-id}/locations/{location-id}`.
735	//
736	// For global calls, use `projects/{project-number-or-id}/locations/global` or
737	// `projects/{project-number-or-id}`.
738	//
739	// Non-global location is required for AutoML models.
740	//
741	// Only models within the same region (have same location-id) can be used,
742	// otherwise an INVALID_ARGUMENT (400) error is returned.
743	Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
744	// Optional. The language to use to return localized, human readable names
745	// of supported languages. If missing, then display names are not returned
746	// in a response.
747	DisplayLanguageCode string `protobuf:"bytes,1,opt,name=display_language_code,json=displayLanguageCode,proto3" json:"display_language_code,omitempty"`
748	// Optional. Get supported languages of this model.
749	//
750	// The format depends on model type:
751	//
752	// - AutoML Translation models:
753	//   `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}`
754	//
755	// - General (built-in) models:
756	//   `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,
757	//   `projects/{project-number-or-id}/locations/{location-id}/models/general/base`
758	//
759	//
760	// Returns languages supported by the specified model.
761	// If missing, we get supported languages of Google general base (PBMT) model.
762	Model                string   `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"`
763	XXX_NoUnkeyedLiteral struct{} `json:"-"`
764	XXX_unrecognized     []byte   `json:"-"`
765	XXX_sizecache        int32    `json:"-"`
766}
767
768func (m *GetSupportedLanguagesRequest) Reset()         { *m = GetSupportedLanguagesRequest{} }
769func (m *GetSupportedLanguagesRequest) String() string { return proto.CompactTextString(m) }
770func (*GetSupportedLanguagesRequest) ProtoMessage()    {}
771func (*GetSupportedLanguagesRequest) Descriptor() ([]byte, []int) {
772	return fileDescriptor_310ad52ac0a2661e, []int{7}
773}
774
775func (m *GetSupportedLanguagesRequest) XXX_Unmarshal(b []byte) error {
776	return xxx_messageInfo_GetSupportedLanguagesRequest.Unmarshal(m, b)
777}
778func (m *GetSupportedLanguagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
779	return xxx_messageInfo_GetSupportedLanguagesRequest.Marshal(b, m, deterministic)
780}
781func (m *GetSupportedLanguagesRequest) XXX_Merge(src proto.Message) {
782	xxx_messageInfo_GetSupportedLanguagesRequest.Merge(m, src)
783}
784func (m *GetSupportedLanguagesRequest) XXX_Size() int {
785	return xxx_messageInfo_GetSupportedLanguagesRequest.Size(m)
786}
787func (m *GetSupportedLanguagesRequest) XXX_DiscardUnknown() {
788	xxx_messageInfo_GetSupportedLanguagesRequest.DiscardUnknown(m)
789}
790
791var xxx_messageInfo_GetSupportedLanguagesRequest proto.InternalMessageInfo
792
793func (m *GetSupportedLanguagesRequest) GetParent() string {
794	if m != nil {
795		return m.Parent
796	}
797	return ""
798}
799
800func (m *GetSupportedLanguagesRequest) GetDisplayLanguageCode() string {
801	if m != nil {
802		return m.DisplayLanguageCode
803	}
804	return ""
805}
806
807func (m *GetSupportedLanguagesRequest) GetModel() string {
808	if m != nil {
809		return m.Model
810	}
811	return ""
812}
813
814// The response message for discovering supported languages.
815type SupportedLanguages struct {
816	// A list of supported language responses. This list contains an entry
817	// for each language the Translation API supports.
818	Languages            []*SupportedLanguage `protobuf:"bytes,1,rep,name=languages,proto3" json:"languages,omitempty"`
819	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
820	XXX_unrecognized     []byte               `json:"-"`
821	XXX_sizecache        int32                `json:"-"`
822}
823
824func (m *SupportedLanguages) Reset()         { *m = SupportedLanguages{} }
825func (m *SupportedLanguages) String() string { return proto.CompactTextString(m) }
826func (*SupportedLanguages) ProtoMessage()    {}
827func (*SupportedLanguages) Descriptor() ([]byte, []int) {
828	return fileDescriptor_310ad52ac0a2661e, []int{8}
829}
830
831func (m *SupportedLanguages) XXX_Unmarshal(b []byte) error {
832	return xxx_messageInfo_SupportedLanguages.Unmarshal(m, b)
833}
834func (m *SupportedLanguages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
835	return xxx_messageInfo_SupportedLanguages.Marshal(b, m, deterministic)
836}
837func (m *SupportedLanguages) XXX_Merge(src proto.Message) {
838	xxx_messageInfo_SupportedLanguages.Merge(m, src)
839}
840func (m *SupportedLanguages) XXX_Size() int {
841	return xxx_messageInfo_SupportedLanguages.Size(m)
842}
843func (m *SupportedLanguages) XXX_DiscardUnknown() {
844	xxx_messageInfo_SupportedLanguages.DiscardUnknown(m)
845}
846
847var xxx_messageInfo_SupportedLanguages proto.InternalMessageInfo
848
849func (m *SupportedLanguages) GetLanguages() []*SupportedLanguage {
850	if m != nil {
851		return m.Languages
852	}
853	return nil
854}
855
856// A single supported language response corresponds to information related
857// to one supported language.
858type SupportedLanguage struct {
859	// Supported language code, generally consisting of its ISO 639-1
860	// identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
861	// including language and region identifiers are returned (for example,
862	// 'zh-TW' and 'zh-CN')
863	LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
864	// Human readable name of the language localized in the display language
865	// specified in the request.
866	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
867	// Can be used as source language.
868	SupportSource bool `protobuf:"varint,3,opt,name=support_source,json=supportSource,proto3" json:"support_source,omitempty"`
869	// Can be used as target language.
870	SupportTarget        bool     `protobuf:"varint,4,opt,name=support_target,json=supportTarget,proto3" json:"support_target,omitempty"`
871	XXX_NoUnkeyedLiteral struct{} `json:"-"`
872	XXX_unrecognized     []byte   `json:"-"`
873	XXX_sizecache        int32    `json:"-"`
874}
875
876func (m *SupportedLanguage) Reset()         { *m = SupportedLanguage{} }
877func (m *SupportedLanguage) String() string { return proto.CompactTextString(m) }
878func (*SupportedLanguage) ProtoMessage()    {}
879func (*SupportedLanguage) Descriptor() ([]byte, []int) {
880	return fileDescriptor_310ad52ac0a2661e, []int{9}
881}
882
883func (m *SupportedLanguage) XXX_Unmarshal(b []byte) error {
884	return xxx_messageInfo_SupportedLanguage.Unmarshal(m, b)
885}
886func (m *SupportedLanguage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
887	return xxx_messageInfo_SupportedLanguage.Marshal(b, m, deterministic)
888}
889func (m *SupportedLanguage) XXX_Merge(src proto.Message) {
890	xxx_messageInfo_SupportedLanguage.Merge(m, src)
891}
892func (m *SupportedLanguage) XXX_Size() int {
893	return xxx_messageInfo_SupportedLanguage.Size(m)
894}
895func (m *SupportedLanguage) XXX_DiscardUnknown() {
896	xxx_messageInfo_SupportedLanguage.DiscardUnknown(m)
897}
898
899var xxx_messageInfo_SupportedLanguage proto.InternalMessageInfo
900
901func (m *SupportedLanguage) GetLanguageCode() string {
902	if m != nil {
903		return m.LanguageCode
904	}
905	return ""
906}
907
908func (m *SupportedLanguage) GetDisplayName() string {
909	if m != nil {
910		return m.DisplayName
911	}
912	return ""
913}
914
915func (m *SupportedLanguage) GetSupportSource() bool {
916	if m != nil {
917		return m.SupportSource
918	}
919	return false
920}
921
922func (m *SupportedLanguage) GetSupportTarget() bool {
923	if m != nil {
924		return m.SupportTarget
925	}
926	return false
927}
928
929// The Google Cloud Storage location for the input content.
930type GcsSource struct {
931	// Required. Source data URI. For example, `gs://my_bucket/my_object`.
932	InputUri             string   `protobuf:"bytes,1,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"`
933	XXX_NoUnkeyedLiteral struct{} `json:"-"`
934	XXX_unrecognized     []byte   `json:"-"`
935	XXX_sizecache        int32    `json:"-"`
936}
937
938func (m *GcsSource) Reset()         { *m = GcsSource{} }
939func (m *GcsSource) String() string { return proto.CompactTextString(m) }
940func (*GcsSource) ProtoMessage()    {}
941func (*GcsSource) Descriptor() ([]byte, []int) {
942	return fileDescriptor_310ad52ac0a2661e, []int{10}
943}
944
945func (m *GcsSource) XXX_Unmarshal(b []byte) error {
946	return xxx_messageInfo_GcsSource.Unmarshal(m, b)
947}
948func (m *GcsSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
949	return xxx_messageInfo_GcsSource.Marshal(b, m, deterministic)
950}
951func (m *GcsSource) XXX_Merge(src proto.Message) {
952	xxx_messageInfo_GcsSource.Merge(m, src)
953}
954func (m *GcsSource) XXX_Size() int {
955	return xxx_messageInfo_GcsSource.Size(m)
956}
957func (m *GcsSource) XXX_DiscardUnknown() {
958	xxx_messageInfo_GcsSource.DiscardUnknown(m)
959}
960
961var xxx_messageInfo_GcsSource proto.InternalMessageInfo
962
963func (m *GcsSource) GetInputUri() string {
964	if m != nil {
965		return m.InputUri
966	}
967	return ""
968}
969
970// Input configuration for BatchTranslateText request.
971type InputConfig struct {
972	// Optional. Can be "text/plain" or "text/html".
973	// For `.tsv`, "text/html" is used if mime_type is missing.
974	// For `.html`, this field must be "text/html" or empty.
975	// For `.txt`, this field must be "text/plain" or empty.
976	MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
977	// Required. Specify the input.
978	//
979	// Types that are valid to be assigned to Source:
980	//	*InputConfig_GcsSource
981	Source               isInputConfig_Source `protobuf_oneof:"source"`
982	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
983	XXX_unrecognized     []byte               `json:"-"`
984	XXX_sizecache        int32                `json:"-"`
985}
986
987func (m *InputConfig) Reset()         { *m = InputConfig{} }
988func (m *InputConfig) String() string { return proto.CompactTextString(m) }
989func (*InputConfig) ProtoMessage()    {}
990func (*InputConfig) Descriptor() ([]byte, []int) {
991	return fileDescriptor_310ad52ac0a2661e, []int{11}
992}
993
994func (m *InputConfig) XXX_Unmarshal(b []byte) error {
995	return xxx_messageInfo_InputConfig.Unmarshal(m, b)
996}
997func (m *InputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
998	return xxx_messageInfo_InputConfig.Marshal(b, m, deterministic)
999}
1000func (m *InputConfig) XXX_Merge(src proto.Message) {
1001	xxx_messageInfo_InputConfig.Merge(m, src)
1002}
1003func (m *InputConfig) XXX_Size() int {
1004	return xxx_messageInfo_InputConfig.Size(m)
1005}
1006func (m *InputConfig) XXX_DiscardUnknown() {
1007	xxx_messageInfo_InputConfig.DiscardUnknown(m)
1008}
1009
1010var xxx_messageInfo_InputConfig proto.InternalMessageInfo
1011
1012func (m *InputConfig) GetMimeType() string {
1013	if m != nil {
1014		return m.MimeType
1015	}
1016	return ""
1017}
1018
1019type isInputConfig_Source interface {
1020	isInputConfig_Source()
1021}
1022
1023type InputConfig_GcsSource struct {
1024	GcsSource *GcsSource `protobuf:"bytes,2,opt,name=gcs_source,json=gcsSource,proto3,oneof"`
1025}
1026
1027func (*InputConfig_GcsSource) isInputConfig_Source() {}
1028
1029func (m *InputConfig) GetSource() isInputConfig_Source {
1030	if m != nil {
1031		return m.Source
1032	}
1033	return nil
1034}
1035
1036func (m *InputConfig) GetGcsSource() *GcsSource {
1037	if x, ok := m.GetSource().(*InputConfig_GcsSource); ok {
1038		return x.GcsSource
1039	}
1040	return nil
1041}
1042
1043// XXX_OneofWrappers is for the internal use of the proto package.
1044func (*InputConfig) XXX_OneofWrappers() []interface{} {
1045	return []interface{}{
1046		(*InputConfig_GcsSource)(nil),
1047	}
1048}
1049
1050// The Google Cloud Storage location for the output content.
1051type GcsDestination struct {
1052	// Required. There must be no files under 'output_uri_prefix'.
1053	// 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an
1054	// INVALID_ARGUMENT (400) error is returned.
1055	OutputUriPrefix      string   `protobuf:"bytes,1,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"`
1056	XXX_NoUnkeyedLiteral struct{} `json:"-"`
1057	XXX_unrecognized     []byte   `json:"-"`
1058	XXX_sizecache        int32    `json:"-"`
1059}
1060
1061func (m *GcsDestination) Reset()         { *m = GcsDestination{} }
1062func (m *GcsDestination) String() string { return proto.CompactTextString(m) }
1063func (*GcsDestination) ProtoMessage()    {}
1064func (*GcsDestination) Descriptor() ([]byte, []int) {
1065	return fileDescriptor_310ad52ac0a2661e, []int{12}
1066}
1067
1068func (m *GcsDestination) XXX_Unmarshal(b []byte) error {
1069	return xxx_messageInfo_GcsDestination.Unmarshal(m, b)
1070}
1071func (m *GcsDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1072	return xxx_messageInfo_GcsDestination.Marshal(b, m, deterministic)
1073}
1074func (m *GcsDestination) XXX_Merge(src proto.Message) {
1075	xxx_messageInfo_GcsDestination.Merge(m, src)
1076}
1077func (m *GcsDestination) XXX_Size() int {
1078	return xxx_messageInfo_GcsDestination.Size(m)
1079}
1080func (m *GcsDestination) XXX_DiscardUnknown() {
1081	xxx_messageInfo_GcsDestination.DiscardUnknown(m)
1082}
1083
1084var xxx_messageInfo_GcsDestination proto.InternalMessageInfo
1085
1086func (m *GcsDestination) GetOutputUriPrefix() string {
1087	if m != nil {
1088		return m.OutputUriPrefix
1089	}
1090	return ""
1091}
1092
1093// Output configuration for BatchTranslateText request.
1094type OutputConfig struct {
1095	// Required. The destination of output.
1096	//
1097	// Types that are valid to be assigned to Destination:
1098	//	*OutputConfig_GcsDestination
1099	Destination          isOutputConfig_Destination `protobuf_oneof:"destination"`
1100	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
1101	XXX_unrecognized     []byte                     `json:"-"`
1102	XXX_sizecache        int32                      `json:"-"`
1103}
1104
1105func (m *OutputConfig) Reset()         { *m = OutputConfig{} }
1106func (m *OutputConfig) String() string { return proto.CompactTextString(m) }
1107func (*OutputConfig) ProtoMessage()    {}
1108func (*OutputConfig) Descriptor() ([]byte, []int) {
1109	return fileDescriptor_310ad52ac0a2661e, []int{13}
1110}
1111
1112func (m *OutputConfig) XXX_Unmarshal(b []byte) error {
1113	return xxx_messageInfo_OutputConfig.Unmarshal(m, b)
1114}
1115func (m *OutputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1116	return xxx_messageInfo_OutputConfig.Marshal(b, m, deterministic)
1117}
1118func (m *OutputConfig) XXX_Merge(src proto.Message) {
1119	xxx_messageInfo_OutputConfig.Merge(m, src)
1120}
1121func (m *OutputConfig) XXX_Size() int {
1122	return xxx_messageInfo_OutputConfig.Size(m)
1123}
1124func (m *OutputConfig) XXX_DiscardUnknown() {
1125	xxx_messageInfo_OutputConfig.DiscardUnknown(m)
1126}
1127
1128var xxx_messageInfo_OutputConfig proto.InternalMessageInfo
1129
1130type isOutputConfig_Destination interface {
1131	isOutputConfig_Destination()
1132}
1133
1134type OutputConfig_GcsDestination struct {
1135	GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
1136}
1137
1138func (*OutputConfig_GcsDestination) isOutputConfig_Destination() {}
1139
1140func (m *OutputConfig) GetDestination() isOutputConfig_Destination {
1141	if m != nil {
1142		return m.Destination
1143	}
1144	return nil
1145}
1146
1147func (m *OutputConfig) GetGcsDestination() *GcsDestination {
1148	if x, ok := m.GetDestination().(*OutputConfig_GcsDestination); ok {
1149		return x.GcsDestination
1150	}
1151	return nil
1152}
1153
1154// XXX_OneofWrappers is for the internal use of the proto package.
1155func (*OutputConfig) XXX_OneofWrappers() []interface{} {
1156	return []interface{}{
1157		(*OutputConfig_GcsDestination)(nil),
1158	}
1159}
1160
1161// The batch translation request.
1162type BatchTranslateTextRequest struct {
1163	// Required. Location to make a call. Must refer to a caller's project.
1164	//
1165	// Format: `projects/{project-number-or-id}/locations/{location-id}`.
1166	//
1167	// The `global` location is not supported for batch translation.
1168	//
1169	// Only AutoML Translation models or glossaries within the same region (have
1170	// the same location-id) can be used, otherwise an INVALID_ARGUMENT (400)
1171	// error is returned.
1172	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
1173	// Required. Source language code.
1174	SourceLanguageCode string `protobuf:"bytes,2,opt,name=source_language_code,json=sourceLanguageCode,proto3" json:"source_language_code,omitempty"`
1175	// Required. Specify up to 10 language codes here.
1176	TargetLanguageCodes []string `protobuf:"bytes,3,rep,name=target_language_codes,json=targetLanguageCodes,proto3" json:"target_language_codes,omitempty"`
1177	// Optional. The models to use for translation. Map's key is target language
1178	// code. Map's value is model name. Value can be a built-in general model,
1179	// or an AutoML Translation model.
1180	//
1181	// The value format depends on model type:
1182	//
1183	// - AutoML Translation models:
1184	//   `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}`
1185	//
1186	// - General (built-in) models:
1187	//   `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,
1188	//   `projects/{project-number-or-id}/locations/{location-id}/models/general/base`
1189	//
1190	//
1191	// If the map is empty or a specific model is
1192	// not requested for a language pair, then default google model (nmt) is used.
1193	Models map[string]string `protobuf:"bytes,4,rep,name=models,proto3" json:"models,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
1194	// Required. Input configurations.
1195	// The total number of files matched should be <= 1000.
1196	// The total content size should be <= 100M Unicode codepoints.
1197	// The files must use UTF-8 encoding.
1198	InputConfigs []*InputConfig `protobuf:"bytes,5,rep,name=input_configs,json=inputConfigs,proto3" json:"input_configs,omitempty"`
1199	// Required. Output configuration.
1200	// If 2 input configs match to the same file (that is, same input path),
1201	// we don't generate output for duplicate inputs.
1202	OutputConfig *OutputConfig `protobuf:"bytes,6,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
1203	// Optional. Glossaries to be applied for translation.
1204	// It's keyed by target language code.
1205	Glossaries map[string]*TranslateTextGlossaryConfig `protobuf:"bytes,7,rep,name=glossaries,proto3" json:"glossaries,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
1206	// Optional. The labels with user-defined metadata for the request.
1207	//
1208	// Label keys and values can be no longer than 63 characters
1209	// (Unicode codepoints), can only contain lowercase letters, numeric
1210	// characters, underscores and dashes. International characters are allowed.
1211	// Label values are optional. Label keys must start with a letter.
1212	//
1213	// See https://cloud.google.com/translate/docs/labels for more information.
1214	Labels               map[string]string `protobuf:"bytes,9,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
1215	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
1216	XXX_unrecognized     []byte            `json:"-"`
1217	XXX_sizecache        int32             `json:"-"`
1218}
1219
1220func (m *BatchTranslateTextRequest) Reset()         { *m = BatchTranslateTextRequest{} }
1221func (m *BatchTranslateTextRequest) String() string { return proto.CompactTextString(m) }
1222func (*BatchTranslateTextRequest) ProtoMessage()    {}
1223func (*BatchTranslateTextRequest) Descriptor() ([]byte, []int) {
1224	return fileDescriptor_310ad52ac0a2661e, []int{14}
1225}
1226
1227func (m *BatchTranslateTextRequest) XXX_Unmarshal(b []byte) error {
1228	return xxx_messageInfo_BatchTranslateTextRequest.Unmarshal(m, b)
1229}
1230func (m *BatchTranslateTextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1231	return xxx_messageInfo_BatchTranslateTextRequest.Marshal(b, m, deterministic)
1232}
1233func (m *BatchTranslateTextRequest) XXX_Merge(src proto.Message) {
1234	xxx_messageInfo_BatchTranslateTextRequest.Merge(m, src)
1235}
1236func (m *BatchTranslateTextRequest) XXX_Size() int {
1237	return xxx_messageInfo_BatchTranslateTextRequest.Size(m)
1238}
1239func (m *BatchTranslateTextRequest) XXX_DiscardUnknown() {
1240	xxx_messageInfo_BatchTranslateTextRequest.DiscardUnknown(m)
1241}
1242
1243var xxx_messageInfo_BatchTranslateTextRequest proto.InternalMessageInfo
1244
1245func (m *BatchTranslateTextRequest) GetParent() string {
1246	if m != nil {
1247		return m.Parent
1248	}
1249	return ""
1250}
1251
1252func (m *BatchTranslateTextRequest) GetSourceLanguageCode() string {
1253	if m != nil {
1254		return m.SourceLanguageCode
1255	}
1256	return ""
1257}
1258
1259func (m *BatchTranslateTextRequest) GetTargetLanguageCodes() []string {
1260	if m != nil {
1261		return m.TargetLanguageCodes
1262	}
1263	return nil
1264}
1265
1266func (m *BatchTranslateTextRequest) GetModels() map[string]string {
1267	if m != nil {
1268		return m.Models
1269	}
1270	return nil
1271}
1272
1273func (m *BatchTranslateTextRequest) GetInputConfigs() []*InputConfig {
1274	if m != nil {
1275		return m.InputConfigs
1276	}
1277	return nil
1278}
1279
1280func (m *BatchTranslateTextRequest) GetOutputConfig() *OutputConfig {
1281	if m != nil {
1282		return m.OutputConfig
1283	}
1284	return nil
1285}
1286
1287func (m *BatchTranslateTextRequest) GetGlossaries() map[string]*TranslateTextGlossaryConfig {
1288	if m != nil {
1289		return m.Glossaries
1290	}
1291	return nil
1292}
1293
1294func (m *BatchTranslateTextRequest) GetLabels() map[string]string {
1295	if m != nil {
1296		return m.Labels
1297	}
1298	return nil
1299}
1300
1301// State metadata for the batch translation operation.
1302type BatchTranslateMetadata struct {
1303	// The state of the operation.
1304	State BatchTranslateMetadata_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.translation.v3.BatchTranslateMetadata_State" json:"state,omitempty"`
1305	// Number of successfully translated characters so far (Unicode codepoints).
1306	TranslatedCharacters int64 `protobuf:"varint,2,opt,name=translated_characters,json=translatedCharacters,proto3" json:"translated_characters,omitempty"`
1307	// Number of characters that have failed to process so far (Unicode
1308	// codepoints).
1309	FailedCharacters int64 `protobuf:"varint,3,opt,name=failed_characters,json=failedCharacters,proto3" json:"failed_characters,omitempty"`
1310	// Total number of characters (Unicode codepoints).
1311	// This is the total number of codepoints from input files times the number of
1312	// target languages and appears here shortly after the call is submitted.
1313	TotalCharacters int64 `protobuf:"varint,4,opt,name=total_characters,json=totalCharacters,proto3" json:"total_characters,omitempty"`
1314	// Time when the operation was submitted.
1315	SubmitTime           *timestamp.Timestamp `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"`
1316	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
1317	XXX_unrecognized     []byte               `json:"-"`
1318	XXX_sizecache        int32                `json:"-"`
1319}
1320
1321func (m *BatchTranslateMetadata) Reset()         { *m = BatchTranslateMetadata{} }
1322func (m *BatchTranslateMetadata) String() string { return proto.CompactTextString(m) }
1323func (*BatchTranslateMetadata) ProtoMessage()    {}
1324func (*BatchTranslateMetadata) Descriptor() ([]byte, []int) {
1325	return fileDescriptor_310ad52ac0a2661e, []int{15}
1326}
1327
1328func (m *BatchTranslateMetadata) XXX_Unmarshal(b []byte) error {
1329	return xxx_messageInfo_BatchTranslateMetadata.Unmarshal(m, b)
1330}
1331func (m *BatchTranslateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1332	return xxx_messageInfo_BatchTranslateMetadata.Marshal(b, m, deterministic)
1333}
1334func (m *BatchTranslateMetadata) XXX_Merge(src proto.Message) {
1335	xxx_messageInfo_BatchTranslateMetadata.Merge(m, src)
1336}
1337func (m *BatchTranslateMetadata) XXX_Size() int {
1338	return xxx_messageInfo_BatchTranslateMetadata.Size(m)
1339}
1340func (m *BatchTranslateMetadata) XXX_DiscardUnknown() {
1341	xxx_messageInfo_BatchTranslateMetadata.DiscardUnknown(m)
1342}
1343
1344var xxx_messageInfo_BatchTranslateMetadata proto.InternalMessageInfo
1345
1346func (m *BatchTranslateMetadata) GetState() BatchTranslateMetadata_State {
1347	if m != nil {
1348		return m.State
1349	}
1350	return BatchTranslateMetadata_STATE_UNSPECIFIED
1351}
1352
1353func (m *BatchTranslateMetadata) GetTranslatedCharacters() int64 {
1354	if m != nil {
1355		return m.TranslatedCharacters
1356	}
1357	return 0
1358}
1359
1360func (m *BatchTranslateMetadata) GetFailedCharacters() int64 {
1361	if m != nil {
1362		return m.FailedCharacters
1363	}
1364	return 0
1365}
1366
1367func (m *BatchTranslateMetadata) GetTotalCharacters() int64 {
1368	if m != nil {
1369		return m.TotalCharacters
1370	}
1371	return 0
1372}
1373
1374func (m *BatchTranslateMetadata) GetSubmitTime() *timestamp.Timestamp {
1375	if m != nil {
1376		return m.SubmitTime
1377	}
1378	return nil
1379}
1380
1381// Stored in the
1382// [google.longrunning.Operation.response][google.longrunning.Operation.response]
1383// field returned by BatchTranslateText if at least one sentence is translated
1384// successfully.
1385type BatchTranslateResponse struct {
1386	// Total number of characters (Unicode codepoints).
1387	TotalCharacters int64 `protobuf:"varint,1,opt,name=total_characters,json=totalCharacters,proto3" json:"total_characters,omitempty"`
1388	// Number of successfully translated characters (Unicode codepoints).
1389	TranslatedCharacters int64 `protobuf:"varint,2,opt,name=translated_characters,json=translatedCharacters,proto3" json:"translated_characters,omitempty"`
1390	// Number of characters that have failed to process (Unicode codepoints).
1391	FailedCharacters int64 `protobuf:"varint,3,opt,name=failed_characters,json=failedCharacters,proto3" json:"failed_characters,omitempty"`
1392	// Time when the operation was submitted.
1393	SubmitTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"`
1394	// The time when the operation is finished and
1395	// [google.longrunning.Operation.done][google.longrunning.Operation.done] is
1396	// set to true.
1397	EndTime              *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
1398	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
1399	XXX_unrecognized     []byte               `json:"-"`
1400	XXX_sizecache        int32                `json:"-"`
1401}
1402
1403func (m *BatchTranslateResponse) Reset()         { *m = BatchTranslateResponse{} }
1404func (m *BatchTranslateResponse) String() string { return proto.CompactTextString(m) }
1405func (*BatchTranslateResponse) ProtoMessage()    {}
1406func (*BatchTranslateResponse) Descriptor() ([]byte, []int) {
1407	return fileDescriptor_310ad52ac0a2661e, []int{16}
1408}
1409
1410func (m *BatchTranslateResponse) XXX_Unmarshal(b []byte) error {
1411	return xxx_messageInfo_BatchTranslateResponse.Unmarshal(m, b)
1412}
1413func (m *BatchTranslateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1414	return xxx_messageInfo_BatchTranslateResponse.Marshal(b, m, deterministic)
1415}
1416func (m *BatchTranslateResponse) XXX_Merge(src proto.Message) {
1417	xxx_messageInfo_BatchTranslateResponse.Merge(m, src)
1418}
1419func (m *BatchTranslateResponse) XXX_Size() int {
1420	return xxx_messageInfo_BatchTranslateResponse.Size(m)
1421}
1422func (m *BatchTranslateResponse) XXX_DiscardUnknown() {
1423	xxx_messageInfo_BatchTranslateResponse.DiscardUnknown(m)
1424}
1425
1426var xxx_messageInfo_BatchTranslateResponse proto.InternalMessageInfo
1427
1428func (m *BatchTranslateResponse) GetTotalCharacters() int64 {
1429	if m != nil {
1430		return m.TotalCharacters
1431	}
1432	return 0
1433}
1434
1435func (m *BatchTranslateResponse) GetTranslatedCharacters() int64 {
1436	if m != nil {
1437		return m.TranslatedCharacters
1438	}
1439	return 0
1440}
1441
1442func (m *BatchTranslateResponse) GetFailedCharacters() int64 {
1443	if m != nil {
1444		return m.FailedCharacters
1445	}
1446	return 0
1447}
1448
1449func (m *BatchTranslateResponse) GetSubmitTime() *timestamp.Timestamp {
1450	if m != nil {
1451		return m.SubmitTime
1452	}
1453	return nil
1454}
1455
1456func (m *BatchTranslateResponse) GetEndTime() *timestamp.Timestamp {
1457	if m != nil {
1458		return m.EndTime
1459	}
1460	return nil
1461}
1462
1463// Input configuration for glossaries.
1464type GlossaryInputConfig struct {
1465	// Required. Specify the input.
1466	//
1467	// Types that are valid to be assigned to Source:
1468	//	*GlossaryInputConfig_GcsSource
1469	Source               isGlossaryInputConfig_Source `protobuf_oneof:"source"`
1470	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
1471	XXX_unrecognized     []byte                       `json:"-"`
1472	XXX_sizecache        int32                        `json:"-"`
1473}
1474
1475func (m *GlossaryInputConfig) Reset()         { *m = GlossaryInputConfig{} }
1476func (m *GlossaryInputConfig) String() string { return proto.CompactTextString(m) }
1477func (*GlossaryInputConfig) ProtoMessage()    {}
1478func (*GlossaryInputConfig) Descriptor() ([]byte, []int) {
1479	return fileDescriptor_310ad52ac0a2661e, []int{17}
1480}
1481
1482func (m *GlossaryInputConfig) XXX_Unmarshal(b []byte) error {
1483	return xxx_messageInfo_GlossaryInputConfig.Unmarshal(m, b)
1484}
1485func (m *GlossaryInputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1486	return xxx_messageInfo_GlossaryInputConfig.Marshal(b, m, deterministic)
1487}
1488func (m *GlossaryInputConfig) XXX_Merge(src proto.Message) {
1489	xxx_messageInfo_GlossaryInputConfig.Merge(m, src)
1490}
1491func (m *GlossaryInputConfig) XXX_Size() int {
1492	return xxx_messageInfo_GlossaryInputConfig.Size(m)
1493}
1494func (m *GlossaryInputConfig) XXX_DiscardUnknown() {
1495	xxx_messageInfo_GlossaryInputConfig.DiscardUnknown(m)
1496}
1497
1498var xxx_messageInfo_GlossaryInputConfig proto.InternalMessageInfo
1499
1500type isGlossaryInputConfig_Source interface {
1501	isGlossaryInputConfig_Source()
1502}
1503
1504type GlossaryInputConfig_GcsSource struct {
1505	GcsSource *GcsSource `protobuf:"bytes,1,opt,name=gcs_source,json=gcsSource,proto3,oneof"`
1506}
1507
1508func (*GlossaryInputConfig_GcsSource) isGlossaryInputConfig_Source() {}
1509
1510func (m *GlossaryInputConfig) GetSource() isGlossaryInputConfig_Source {
1511	if m != nil {
1512		return m.Source
1513	}
1514	return nil
1515}
1516
1517func (m *GlossaryInputConfig) GetGcsSource() *GcsSource {
1518	if x, ok := m.GetSource().(*GlossaryInputConfig_GcsSource); ok {
1519		return x.GcsSource
1520	}
1521	return nil
1522}
1523
1524// XXX_OneofWrappers is for the internal use of the proto package.
1525func (*GlossaryInputConfig) XXX_OneofWrappers() []interface{} {
1526	return []interface{}{
1527		(*GlossaryInputConfig_GcsSource)(nil),
1528	}
1529}
1530
1531// Represents a glossary built from user provided data.
1532type Glossary struct {
1533	// Required. The resource name of the glossary. Glossary names have the form
1534	// `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
1535	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
1536	// Languages supported by the glossary.
1537	//
1538	// Types that are valid to be assigned to Languages:
1539	//	*Glossary_LanguagePair
1540	//	*Glossary_LanguageCodesSet_
1541	Languages isGlossary_Languages `protobuf_oneof:"languages"`
1542	// Required. Provides examples to build the glossary from.
1543	// Total glossary must not exceed 10M Unicode codepoints.
1544	InputConfig *GlossaryInputConfig `protobuf:"bytes,5,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"`
1545	// Output only. The number of entries defined in the glossary.
1546	EntryCount int32 `protobuf:"varint,6,opt,name=entry_count,json=entryCount,proto3" json:"entry_count,omitempty"`
1547	// Output only. When CreateGlossary was called.
1548	SubmitTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"`
1549	// Output only. When the glossary creation was finished.
1550	EndTime              *timestamp.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
1551	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
1552	XXX_unrecognized     []byte               `json:"-"`
1553	XXX_sizecache        int32                `json:"-"`
1554}
1555
1556func (m *Glossary) Reset()         { *m = Glossary{} }
1557func (m *Glossary) String() string { return proto.CompactTextString(m) }
1558func (*Glossary) ProtoMessage()    {}
1559func (*Glossary) Descriptor() ([]byte, []int) {
1560	return fileDescriptor_310ad52ac0a2661e, []int{18}
1561}
1562
1563func (m *Glossary) XXX_Unmarshal(b []byte) error {
1564	return xxx_messageInfo_Glossary.Unmarshal(m, b)
1565}
1566func (m *Glossary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1567	return xxx_messageInfo_Glossary.Marshal(b, m, deterministic)
1568}
1569func (m *Glossary) XXX_Merge(src proto.Message) {
1570	xxx_messageInfo_Glossary.Merge(m, src)
1571}
1572func (m *Glossary) XXX_Size() int {
1573	return xxx_messageInfo_Glossary.Size(m)
1574}
1575func (m *Glossary) XXX_DiscardUnknown() {
1576	xxx_messageInfo_Glossary.DiscardUnknown(m)
1577}
1578
1579var xxx_messageInfo_Glossary proto.InternalMessageInfo
1580
1581func (m *Glossary) GetName() string {
1582	if m != nil {
1583		return m.Name
1584	}
1585	return ""
1586}
1587
1588type isGlossary_Languages interface {
1589	isGlossary_Languages()
1590}
1591
1592type Glossary_LanguagePair struct {
1593	LanguagePair *Glossary_LanguageCodePair `protobuf:"bytes,3,opt,name=language_pair,json=languagePair,proto3,oneof"`
1594}
1595
1596type Glossary_LanguageCodesSet_ struct {
1597	LanguageCodesSet *Glossary_LanguageCodesSet `protobuf:"bytes,4,opt,name=language_codes_set,json=languageCodesSet,proto3,oneof"`
1598}
1599
1600func (*Glossary_LanguagePair) isGlossary_Languages() {}
1601
1602func (*Glossary_LanguageCodesSet_) isGlossary_Languages() {}
1603
1604func (m *Glossary) GetLanguages() isGlossary_Languages {
1605	if m != nil {
1606		return m.Languages
1607	}
1608	return nil
1609}
1610
1611func (m *Glossary) GetLanguagePair() *Glossary_LanguageCodePair {
1612	if x, ok := m.GetLanguages().(*Glossary_LanguagePair); ok {
1613		return x.LanguagePair
1614	}
1615	return nil
1616}
1617
1618func (m *Glossary) GetLanguageCodesSet() *Glossary_LanguageCodesSet {
1619	if x, ok := m.GetLanguages().(*Glossary_LanguageCodesSet_); ok {
1620		return x.LanguageCodesSet
1621	}
1622	return nil
1623}
1624
1625func (m *Glossary) GetInputConfig() *GlossaryInputConfig {
1626	if m != nil {
1627		return m.InputConfig
1628	}
1629	return nil
1630}
1631
1632func (m *Glossary) GetEntryCount() int32 {
1633	if m != nil {
1634		return m.EntryCount
1635	}
1636	return 0
1637}
1638
1639func (m *Glossary) GetSubmitTime() *timestamp.Timestamp {
1640	if m != nil {
1641		return m.SubmitTime
1642	}
1643	return nil
1644}
1645
1646func (m *Glossary) GetEndTime() *timestamp.Timestamp {
1647	if m != nil {
1648		return m.EndTime
1649	}
1650	return nil
1651}
1652
1653// XXX_OneofWrappers is for the internal use of the proto package.
1654func (*Glossary) XXX_OneofWrappers() []interface{} {
1655	return []interface{}{
1656		(*Glossary_LanguagePair)(nil),
1657		(*Glossary_LanguageCodesSet_)(nil),
1658	}
1659}
1660
1661// Used with unidirectional glossaries.
1662type Glossary_LanguageCodePair struct {
1663	// Required. The BCP-47 language code of the input text, for example,
1664	// "en-US". Expected to be an exact match for GlossaryTerm.language_code.
1665	SourceLanguageCode string `protobuf:"bytes,1,opt,name=source_language_code,json=sourceLanguageCode,proto3" json:"source_language_code,omitempty"`
1666	// Required. The BCP-47 language code for translation output, for example,
1667	// "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
1668	TargetLanguageCode   string   `protobuf:"bytes,2,opt,name=target_language_code,json=targetLanguageCode,proto3" json:"target_language_code,omitempty"`
1669	XXX_NoUnkeyedLiteral struct{} `json:"-"`
1670	XXX_unrecognized     []byte   `json:"-"`
1671	XXX_sizecache        int32    `json:"-"`
1672}
1673
1674func (m *Glossary_LanguageCodePair) Reset()         { *m = Glossary_LanguageCodePair{} }
1675func (m *Glossary_LanguageCodePair) String() string { return proto.CompactTextString(m) }
1676func (*Glossary_LanguageCodePair) ProtoMessage()    {}
1677func (*Glossary_LanguageCodePair) Descriptor() ([]byte, []int) {
1678	return fileDescriptor_310ad52ac0a2661e, []int{18, 0}
1679}
1680
1681func (m *Glossary_LanguageCodePair) XXX_Unmarshal(b []byte) error {
1682	return xxx_messageInfo_Glossary_LanguageCodePair.Unmarshal(m, b)
1683}
1684func (m *Glossary_LanguageCodePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1685	return xxx_messageInfo_Glossary_LanguageCodePair.Marshal(b, m, deterministic)
1686}
1687func (m *Glossary_LanguageCodePair) XXX_Merge(src proto.Message) {
1688	xxx_messageInfo_Glossary_LanguageCodePair.Merge(m, src)
1689}
1690func (m *Glossary_LanguageCodePair) XXX_Size() int {
1691	return xxx_messageInfo_Glossary_LanguageCodePair.Size(m)
1692}
1693func (m *Glossary_LanguageCodePair) XXX_DiscardUnknown() {
1694	xxx_messageInfo_Glossary_LanguageCodePair.DiscardUnknown(m)
1695}
1696
1697var xxx_messageInfo_Glossary_LanguageCodePair proto.InternalMessageInfo
1698
1699func (m *Glossary_LanguageCodePair) GetSourceLanguageCode() string {
1700	if m != nil {
1701		return m.SourceLanguageCode
1702	}
1703	return ""
1704}
1705
1706func (m *Glossary_LanguageCodePair) GetTargetLanguageCode() string {
1707	if m != nil {
1708		return m.TargetLanguageCode
1709	}
1710	return ""
1711}
1712
1713// Used with equivalent term set glossaries.
1714type Glossary_LanguageCodesSet struct {
1715	// The BCP-47 language code(s) for terms defined in the glossary.
1716	// All entries are unique. The list contains at least two entries.
1717	// Expected to be an exact match for GlossaryTerm.language_code.
1718	LanguageCodes        []string `protobuf:"bytes,1,rep,name=language_codes,json=languageCodes,proto3" json:"language_codes,omitempty"`
1719	XXX_NoUnkeyedLiteral struct{} `json:"-"`
1720	XXX_unrecognized     []byte   `json:"-"`
1721	XXX_sizecache        int32    `json:"-"`
1722}
1723
1724func (m *Glossary_LanguageCodesSet) Reset()         { *m = Glossary_LanguageCodesSet{} }
1725func (m *Glossary_LanguageCodesSet) String() string { return proto.CompactTextString(m) }
1726func (*Glossary_LanguageCodesSet) ProtoMessage()    {}
1727func (*Glossary_LanguageCodesSet) Descriptor() ([]byte, []int) {
1728	return fileDescriptor_310ad52ac0a2661e, []int{18, 1}
1729}
1730
1731func (m *Glossary_LanguageCodesSet) XXX_Unmarshal(b []byte) error {
1732	return xxx_messageInfo_Glossary_LanguageCodesSet.Unmarshal(m, b)
1733}
1734func (m *Glossary_LanguageCodesSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1735	return xxx_messageInfo_Glossary_LanguageCodesSet.Marshal(b, m, deterministic)
1736}
1737func (m *Glossary_LanguageCodesSet) XXX_Merge(src proto.Message) {
1738	xxx_messageInfo_Glossary_LanguageCodesSet.Merge(m, src)
1739}
1740func (m *Glossary_LanguageCodesSet) XXX_Size() int {
1741	return xxx_messageInfo_Glossary_LanguageCodesSet.Size(m)
1742}
1743func (m *Glossary_LanguageCodesSet) XXX_DiscardUnknown() {
1744	xxx_messageInfo_Glossary_LanguageCodesSet.DiscardUnknown(m)
1745}
1746
1747var xxx_messageInfo_Glossary_LanguageCodesSet proto.InternalMessageInfo
1748
1749func (m *Glossary_LanguageCodesSet) GetLanguageCodes() []string {
1750	if m != nil {
1751		return m.LanguageCodes
1752	}
1753	return nil
1754}
1755
1756// Request message for CreateGlossary.
1757type CreateGlossaryRequest struct {
1758	// Required. The project name.
1759	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
1760	// Required. The glossary to create.
1761	Glossary             *Glossary `protobuf:"bytes,2,opt,name=glossary,proto3" json:"glossary,omitempty"`
1762	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
1763	XXX_unrecognized     []byte    `json:"-"`
1764	XXX_sizecache        int32     `json:"-"`
1765}
1766
1767func (m *CreateGlossaryRequest) Reset()         { *m = CreateGlossaryRequest{} }
1768func (m *CreateGlossaryRequest) String() string { return proto.CompactTextString(m) }
1769func (*CreateGlossaryRequest) ProtoMessage()    {}
1770func (*CreateGlossaryRequest) Descriptor() ([]byte, []int) {
1771	return fileDescriptor_310ad52ac0a2661e, []int{19}
1772}
1773
1774func (m *CreateGlossaryRequest) XXX_Unmarshal(b []byte) error {
1775	return xxx_messageInfo_CreateGlossaryRequest.Unmarshal(m, b)
1776}
1777func (m *CreateGlossaryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1778	return xxx_messageInfo_CreateGlossaryRequest.Marshal(b, m, deterministic)
1779}
1780func (m *CreateGlossaryRequest) XXX_Merge(src proto.Message) {
1781	xxx_messageInfo_CreateGlossaryRequest.Merge(m, src)
1782}
1783func (m *CreateGlossaryRequest) XXX_Size() int {
1784	return xxx_messageInfo_CreateGlossaryRequest.Size(m)
1785}
1786func (m *CreateGlossaryRequest) XXX_DiscardUnknown() {
1787	xxx_messageInfo_CreateGlossaryRequest.DiscardUnknown(m)
1788}
1789
1790var xxx_messageInfo_CreateGlossaryRequest proto.InternalMessageInfo
1791
1792func (m *CreateGlossaryRequest) GetParent() string {
1793	if m != nil {
1794		return m.Parent
1795	}
1796	return ""
1797}
1798
1799func (m *CreateGlossaryRequest) GetGlossary() *Glossary {
1800	if m != nil {
1801		return m.Glossary
1802	}
1803	return nil
1804}
1805
1806// Request message for GetGlossary.
1807type GetGlossaryRequest struct {
1808	// Required. The name of the glossary to retrieve.
1809	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
1810	XXX_NoUnkeyedLiteral struct{} `json:"-"`
1811	XXX_unrecognized     []byte   `json:"-"`
1812	XXX_sizecache        int32    `json:"-"`
1813}
1814
1815func (m *GetGlossaryRequest) Reset()         { *m = GetGlossaryRequest{} }
1816func (m *GetGlossaryRequest) String() string { return proto.CompactTextString(m) }
1817func (*GetGlossaryRequest) ProtoMessage()    {}
1818func (*GetGlossaryRequest) Descriptor() ([]byte, []int) {
1819	return fileDescriptor_310ad52ac0a2661e, []int{20}
1820}
1821
1822func (m *GetGlossaryRequest) XXX_Unmarshal(b []byte) error {
1823	return xxx_messageInfo_GetGlossaryRequest.Unmarshal(m, b)
1824}
1825func (m *GetGlossaryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1826	return xxx_messageInfo_GetGlossaryRequest.Marshal(b, m, deterministic)
1827}
1828func (m *GetGlossaryRequest) XXX_Merge(src proto.Message) {
1829	xxx_messageInfo_GetGlossaryRequest.Merge(m, src)
1830}
1831func (m *GetGlossaryRequest) XXX_Size() int {
1832	return xxx_messageInfo_GetGlossaryRequest.Size(m)
1833}
1834func (m *GetGlossaryRequest) XXX_DiscardUnknown() {
1835	xxx_messageInfo_GetGlossaryRequest.DiscardUnknown(m)
1836}
1837
1838var xxx_messageInfo_GetGlossaryRequest proto.InternalMessageInfo
1839
1840func (m *GetGlossaryRequest) GetName() string {
1841	if m != nil {
1842		return m.Name
1843	}
1844	return ""
1845}
1846
1847// Request message for DeleteGlossary.
1848type DeleteGlossaryRequest struct {
1849	// Required. The name of the glossary to delete.
1850	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
1851	XXX_NoUnkeyedLiteral struct{} `json:"-"`
1852	XXX_unrecognized     []byte   `json:"-"`
1853	XXX_sizecache        int32    `json:"-"`
1854}
1855
1856func (m *DeleteGlossaryRequest) Reset()         { *m = DeleteGlossaryRequest{} }
1857func (m *DeleteGlossaryRequest) String() string { return proto.CompactTextString(m) }
1858func (*DeleteGlossaryRequest) ProtoMessage()    {}
1859func (*DeleteGlossaryRequest) Descriptor() ([]byte, []int) {
1860	return fileDescriptor_310ad52ac0a2661e, []int{21}
1861}
1862
1863func (m *DeleteGlossaryRequest) XXX_Unmarshal(b []byte) error {
1864	return xxx_messageInfo_DeleteGlossaryRequest.Unmarshal(m, b)
1865}
1866func (m *DeleteGlossaryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1867	return xxx_messageInfo_DeleteGlossaryRequest.Marshal(b, m, deterministic)
1868}
1869func (m *DeleteGlossaryRequest) XXX_Merge(src proto.Message) {
1870	xxx_messageInfo_DeleteGlossaryRequest.Merge(m, src)
1871}
1872func (m *DeleteGlossaryRequest) XXX_Size() int {
1873	return xxx_messageInfo_DeleteGlossaryRequest.Size(m)
1874}
1875func (m *DeleteGlossaryRequest) XXX_DiscardUnknown() {
1876	xxx_messageInfo_DeleteGlossaryRequest.DiscardUnknown(m)
1877}
1878
1879var xxx_messageInfo_DeleteGlossaryRequest proto.InternalMessageInfo
1880
1881func (m *DeleteGlossaryRequest) GetName() string {
1882	if m != nil {
1883		return m.Name
1884	}
1885	return ""
1886}
1887
1888// Request message for ListGlossaries.
1889type ListGlossariesRequest struct {
1890	// Required. The name of the project from which to list all of the glossaries.
1891	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
1892	// Optional. Requested page size. The server may return fewer glossaries than
1893	// requested. If unspecified, the server picks an appropriate default.
1894	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
1895	// Optional. A token identifying a page of results the server should return.
1896	// Typically, this is the value of [ListGlossariesResponse.next_page_token]
1897	// returned from the previous call to `ListGlossaries` method.
1898	// The first page is returned if `page_token`is empty or missing.
1899	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
1900	// Optional. Filter specifying constraints of a list operation.
1901	// Filtering is not supported yet, and the parameter currently has no effect.
1902	// If missing, no filtering is performed.
1903	Filter               string   `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
1904	XXX_NoUnkeyedLiteral struct{} `json:"-"`
1905	XXX_unrecognized     []byte   `json:"-"`
1906	XXX_sizecache        int32    `json:"-"`
1907}
1908
1909func (m *ListGlossariesRequest) Reset()         { *m = ListGlossariesRequest{} }
1910func (m *ListGlossariesRequest) String() string { return proto.CompactTextString(m) }
1911func (*ListGlossariesRequest) ProtoMessage()    {}
1912func (*ListGlossariesRequest) Descriptor() ([]byte, []int) {
1913	return fileDescriptor_310ad52ac0a2661e, []int{22}
1914}
1915
1916func (m *ListGlossariesRequest) XXX_Unmarshal(b []byte) error {
1917	return xxx_messageInfo_ListGlossariesRequest.Unmarshal(m, b)
1918}
1919func (m *ListGlossariesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1920	return xxx_messageInfo_ListGlossariesRequest.Marshal(b, m, deterministic)
1921}
1922func (m *ListGlossariesRequest) XXX_Merge(src proto.Message) {
1923	xxx_messageInfo_ListGlossariesRequest.Merge(m, src)
1924}
1925func (m *ListGlossariesRequest) XXX_Size() int {
1926	return xxx_messageInfo_ListGlossariesRequest.Size(m)
1927}
1928func (m *ListGlossariesRequest) XXX_DiscardUnknown() {
1929	xxx_messageInfo_ListGlossariesRequest.DiscardUnknown(m)
1930}
1931
1932var xxx_messageInfo_ListGlossariesRequest proto.InternalMessageInfo
1933
1934func (m *ListGlossariesRequest) GetParent() string {
1935	if m != nil {
1936		return m.Parent
1937	}
1938	return ""
1939}
1940
1941func (m *ListGlossariesRequest) GetPageSize() int32 {
1942	if m != nil {
1943		return m.PageSize
1944	}
1945	return 0
1946}
1947
1948func (m *ListGlossariesRequest) GetPageToken() string {
1949	if m != nil {
1950		return m.PageToken
1951	}
1952	return ""
1953}
1954
1955func (m *ListGlossariesRequest) GetFilter() string {
1956	if m != nil {
1957		return m.Filter
1958	}
1959	return ""
1960}
1961
1962// Response message for ListGlossaries.
1963type ListGlossariesResponse struct {
1964	// The list of glossaries for a project.
1965	Glossaries []*Glossary `protobuf:"bytes,1,rep,name=glossaries,proto3" json:"glossaries,omitempty"`
1966	// A token to retrieve a page of results. Pass this value in the
1967	// [ListGlossariesRequest.page_token] field in the subsequent call to
1968	// `ListGlossaries` method to retrieve the next page of results.
1969	NextPageToken        string   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
1970	XXX_NoUnkeyedLiteral struct{} `json:"-"`
1971	XXX_unrecognized     []byte   `json:"-"`
1972	XXX_sizecache        int32    `json:"-"`
1973}
1974
1975func (m *ListGlossariesResponse) Reset()         { *m = ListGlossariesResponse{} }
1976func (m *ListGlossariesResponse) String() string { return proto.CompactTextString(m) }
1977func (*ListGlossariesResponse) ProtoMessage()    {}
1978func (*ListGlossariesResponse) Descriptor() ([]byte, []int) {
1979	return fileDescriptor_310ad52ac0a2661e, []int{23}
1980}
1981
1982func (m *ListGlossariesResponse) XXX_Unmarshal(b []byte) error {
1983	return xxx_messageInfo_ListGlossariesResponse.Unmarshal(m, b)
1984}
1985func (m *ListGlossariesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1986	return xxx_messageInfo_ListGlossariesResponse.Marshal(b, m, deterministic)
1987}
1988func (m *ListGlossariesResponse) XXX_Merge(src proto.Message) {
1989	xxx_messageInfo_ListGlossariesResponse.Merge(m, src)
1990}
1991func (m *ListGlossariesResponse) XXX_Size() int {
1992	return xxx_messageInfo_ListGlossariesResponse.Size(m)
1993}
1994func (m *ListGlossariesResponse) XXX_DiscardUnknown() {
1995	xxx_messageInfo_ListGlossariesResponse.DiscardUnknown(m)
1996}
1997
1998var xxx_messageInfo_ListGlossariesResponse proto.InternalMessageInfo
1999
2000func (m *ListGlossariesResponse) GetGlossaries() []*Glossary {
2001	if m != nil {
2002		return m.Glossaries
2003	}
2004	return nil
2005}
2006
2007func (m *ListGlossariesResponse) GetNextPageToken() string {
2008	if m != nil {
2009		return m.NextPageToken
2010	}
2011	return ""
2012}
2013
2014// Stored in the
2015// [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
2016// field returned by CreateGlossary.
2017type CreateGlossaryMetadata struct {
2018	// The name of the glossary that is being created.
2019	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
2020	// The current state of the glossary creation operation.
2021	State CreateGlossaryMetadata_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.translation.v3.CreateGlossaryMetadata_State" json:"state,omitempty"`
2022	// The time when the operation was submitted to the server.
2023	SubmitTime           *timestamp.Timestamp `protobuf:"bytes,3,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"`
2024	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
2025	XXX_unrecognized     []byte               `json:"-"`
2026	XXX_sizecache        int32                `json:"-"`
2027}
2028
2029func (m *CreateGlossaryMetadata) Reset()         { *m = CreateGlossaryMetadata{} }
2030func (m *CreateGlossaryMetadata) String() string { return proto.CompactTextString(m) }
2031func (*CreateGlossaryMetadata) ProtoMessage()    {}
2032func (*CreateGlossaryMetadata) Descriptor() ([]byte, []int) {
2033	return fileDescriptor_310ad52ac0a2661e, []int{24}
2034}
2035
2036func (m *CreateGlossaryMetadata) XXX_Unmarshal(b []byte) error {
2037	return xxx_messageInfo_CreateGlossaryMetadata.Unmarshal(m, b)
2038}
2039func (m *CreateGlossaryMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
2040	return xxx_messageInfo_CreateGlossaryMetadata.Marshal(b, m, deterministic)
2041}
2042func (m *CreateGlossaryMetadata) XXX_Merge(src proto.Message) {
2043	xxx_messageInfo_CreateGlossaryMetadata.Merge(m, src)
2044}
2045func (m *CreateGlossaryMetadata) XXX_Size() int {
2046	return xxx_messageInfo_CreateGlossaryMetadata.Size(m)
2047}
2048func (m *CreateGlossaryMetadata) XXX_DiscardUnknown() {
2049	xxx_messageInfo_CreateGlossaryMetadata.DiscardUnknown(m)
2050}
2051
2052var xxx_messageInfo_CreateGlossaryMetadata proto.InternalMessageInfo
2053
2054func (m *CreateGlossaryMetadata) GetName() string {
2055	if m != nil {
2056		return m.Name
2057	}
2058	return ""
2059}
2060
2061func (m *CreateGlossaryMetadata) GetState() CreateGlossaryMetadata_State {
2062	if m != nil {
2063		return m.State
2064	}
2065	return CreateGlossaryMetadata_STATE_UNSPECIFIED
2066}
2067
2068func (m *CreateGlossaryMetadata) GetSubmitTime() *timestamp.Timestamp {
2069	if m != nil {
2070		return m.SubmitTime
2071	}
2072	return nil
2073}
2074
2075// Stored in the
2076// [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]
2077// field returned by DeleteGlossary.
2078type DeleteGlossaryMetadata struct {
2079	// The name of the glossary that is being deleted.
2080	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
2081	// The current state of the glossary deletion operation.
2082	State DeleteGlossaryMetadata_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.translation.v3.DeleteGlossaryMetadata_State" json:"state,omitempty"`
2083	// The time when the operation was submitted to the server.
2084	SubmitTime           *timestamp.Timestamp `protobuf:"bytes,3,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"`
2085	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
2086	XXX_unrecognized     []byte               `json:"-"`
2087	XXX_sizecache        int32                `json:"-"`
2088}
2089
2090func (m *DeleteGlossaryMetadata) Reset()         { *m = DeleteGlossaryMetadata{} }
2091func (m *DeleteGlossaryMetadata) String() string { return proto.CompactTextString(m) }
2092func (*DeleteGlossaryMetadata) ProtoMessage()    {}
2093func (*DeleteGlossaryMetadata) Descriptor() ([]byte, []int) {
2094	return fileDescriptor_310ad52ac0a2661e, []int{25}
2095}
2096
2097func (m *DeleteGlossaryMetadata) XXX_Unmarshal(b []byte) error {
2098	return xxx_messageInfo_DeleteGlossaryMetadata.Unmarshal(m, b)
2099}
2100func (m *DeleteGlossaryMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
2101	return xxx_messageInfo_DeleteGlossaryMetadata.Marshal(b, m, deterministic)
2102}
2103func (m *DeleteGlossaryMetadata) XXX_Merge(src proto.Message) {
2104	xxx_messageInfo_DeleteGlossaryMetadata.Merge(m, src)
2105}
2106func (m *DeleteGlossaryMetadata) XXX_Size() int {
2107	return xxx_messageInfo_DeleteGlossaryMetadata.Size(m)
2108}
2109func (m *DeleteGlossaryMetadata) XXX_DiscardUnknown() {
2110	xxx_messageInfo_DeleteGlossaryMetadata.DiscardUnknown(m)
2111}
2112
2113var xxx_messageInfo_DeleteGlossaryMetadata proto.InternalMessageInfo
2114
2115func (m *DeleteGlossaryMetadata) GetName() string {
2116	if m != nil {
2117		return m.Name
2118	}
2119	return ""
2120}
2121
2122func (m *DeleteGlossaryMetadata) GetState() DeleteGlossaryMetadata_State {
2123	if m != nil {
2124		return m.State
2125	}
2126	return DeleteGlossaryMetadata_STATE_UNSPECIFIED
2127}
2128
2129func (m *DeleteGlossaryMetadata) GetSubmitTime() *timestamp.Timestamp {
2130	if m != nil {
2131		return m.SubmitTime
2132	}
2133	return nil
2134}
2135
2136// Stored in the
2137// [google.longrunning.Operation.response][google.longrunning.Operation.response]
2138// field returned by DeleteGlossary.
2139type DeleteGlossaryResponse struct {
2140	// The name of the deleted glossary.
2141	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
2142	// The time when the operation was submitted to the server.
2143	SubmitTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"`
2144	// The time when the glossary deletion is finished and
2145	// [google.longrunning.Operation.done][google.longrunning.Operation.done] is
2146	// set to true.
2147	EndTime              *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
2148	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
2149	XXX_unrecognized     []byte               `json:"-"`
2150	XXX_sizecache        int32                `json:"-"`
2151}
2152
2153func (m *DeleteGlossaryResponse) Reset()         { *m = DeleteGlossaryResponse{} }
2154func (m *DeleteGlossaryResponse) String() string { return proto.CompactTextString(m) }
2155func (*DeleteGlossaryResponse) ProtoMessage()    {}
2156func (*DeleteGlossaryResponse) Descriptor() ([]byte, []int) {
2157	return fileDescriptor_310ad52ac0a2661e, []int{26}
2158}
2159
2160func (m *DeleteGlossaryResponse) XXX_Unmarshal(b []byte) error {
2161	return xxx_messageInfo_DeleteGlossaryResponse.Unmarshal(m, b)
2162}
2163func (m *DeleteGlossaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
2164	return xxx_messageInfo_DeleteGlossaryResponse.Marshal(b, m, deterministic)
2165}
2166func (m *DeleteGlossaryResponse) XXX_Merge(src proto.Message) {
2167	xxx_messageInfo_DeleteGlossaryResponse.Merge(m, src)
2168}
2169func (m *DeleteGlossaryResponse) XXX_Size() int {
2170	return xxx_messageInfo_DeleteGlossaryResponse.Size(m)
2171}
2172func (m *DeleteGlossaryResponse) XXX_DiscardUnknown() {
2173	xxx_messageInfo_DeleteGlossaryResponse.DiscardUnknown(m)
2174}
2175
2176var xxx_messageInfo_DeleteGlossaryResponse proto.InternalMessageInfo
2177
2178func (m *DeleteGlossaryResponse) GetName() string {
2179	if m != nil {
2180		return m.Name
2181	}
2182	return ""
2183}
2184
2185func (m *DeleteGlossaryResponse) GetSubmitTime() *timestamp.Timestamp {
2186	if m != nil {
2187		return m.SubmitTime
2188	}
2189	return nil
2190}
2191
2192func (m *DeleteGlossaryResponse) GetEndTime() *timestamp.Timestamp {
2193	if m != nil {
2194		return m.EndTime
2195	}
2196	return nil
2197}
2198
2199func init() {
2200	proto.RegisterEnum("google.cloud.translation.v3.BatchTranslateMetadata_State", BatchTranslateMetadata_State_name, BatchTranslateMetadata_State_value)
2201	proto.RegisterEnum("google.cloud.translation.v3.CreateGlossaryMetadata_State", CreateGlossaryMetadata_State_name, CreateGlossaryMetadata_State_value)
2202	proto.RegisterEnum("google.cloud.translation.v3.DeleteGlossaryMetadata_State", DeleteGlossaryMetadata_State_name, DeleteGlossaryMetadata_State_value)
2203	proto.RegisterType((*TranslateTextGlossaryConfig)(nil), "google.cloud.translation.v3.TranslateTextGlossaryConfig")
2204	proto.RegisterType((*TranslateTextRequest)(nil), "google.cloud.translation.v3.TranslateTextRequest")
2205	proto.RegisterMapType((map[string]string)(nil), "google.cloud.translation.v3.TranslateTextRequest.LabelsEntry")
2206	proto.RegisterType((*TranslateTextResponse)(nil), "google.cloud.translation.v3.TranslateTextResponse")
2207	proto.RegisterType((*Translation)(nil), "google.cloud.translation.v3.Translation")
2208	proto.RegisterType((*DetectLanguageRequest)(nil), "google.cloud.translation.v3.DetectLanguageRequest")
2209	proto.RegisterMapType((map[string]string)(nil), "google.cloud.translation.v3.DetectLanguageRequest.LabelsEntry")
2210	proto.RegisterType((*DetectedLanguage)(nil), "google.cloud.translation.v3.DetectedLanguage")
2211	proto.RegisterType((*DetectLanguageResponse)(nil), "google.cloud.translation.v3.DetectLanguageResponse")
2212	proto.RegisterType((*GetSupportedLanguagesRequest)(nil), "google.cloud.translation.v3.GetSupportedLanguagesRequest")
2213	proto.RegisterType((*SupportedLanguages)(nil), "google.cloud.translation.v3.SupportedLanguages")
2214	proto.RegisterType((*SupportedLanguage)(nil), "google.cloud.translation.v3.SupportedLanguage")
2215	proto.RegisterType((*GcsSource)(nil), "google.cloud.translation.v3.GcsSource")
2216	proto.RegisterType((*InputConfig)(nil), "google.cloud.translation.v3.InputConfig")
2217	proto.RegisterType((*GcsDestination)(nil), "google.cloud.translation.v3.GcsDestination")
2218	proto.RegisterType((*OutputConfig)(nil), "google.cloud.translation.v3.OutputConfig")
2219	proto.RegisterType((*BatchTranslateTextRequest)(nil), "google.cloud.translation.v3.BatchTranslateTextRequest")
2220	proto.RegisterMapType((map[string]*TranslateTextGlossaryConfig)(nil), "google.cloud.translation.v3.BatchTranslateTextRequest.GlossariesEntry")
2221	proto.RegisterMapType((map[string]string)(nil), "google.cloud.translation.v3.BatchTranslateTextRequest.LabelsEntry")
2222	proto.RegisterMapType((map[string]string)(nil), "google.cloud.translation.v3.BatchTranslateTextRequest.ModelsEntry")
2223	proto.RegisterType((*BatchTranslateMetadata)(nil), "google.cloud.translation.v3.BatchTranslateMetadata")
2224	proto.RegisterType((*BatchTranslateResponse)(nil), "google.cloud.translation.v3.BatchTranslateResponse")
2225	proto.RegisterType((*GlossaryInputConfig)(nil), "google.cloud.translation.v3.GlossaryInputConfig")
2226	proto.RegisterType((*Glossary)(nil), "google.cloud.translation.v3.Glossary")
2227	proto.RegisterType((*Glossary_LanguageCodePair)(nil), "google.cloud.translation.v3.Glossary.LanguageCodePair")
2228	proto.RegisterType((*Glossary_LanguageCodesSet)(nil), "google.cloud.translation.v3.Glossary.LanguageCodesSet")
2229	proto.RegisterType((*CreateGlossaryRequest)(nil), "google.cloud.translation.v3.CreateGlossaryRequest")
2230	proto.RegisterType((*GetGlossaryRequest)(nil), "google.cloud.translation.v3.GetGlossaryRequest")
2231	proto.RegisterType((*DeleteGlossaryRequest)(nil), "google.cloud.translation.v3.DeleteGlossaryRequest")
2232	proto.RegisterType((*ListGlossariesRequest)(nil), "google.cloud.translation.v3.ListGlossariesRequest")
2233	proto.RegisterType((*ListGlossariesResponse)(nil), "google.cloud.translation.v3.ListGlossariesResponse")
2234	proto.RegisterType((*CreateGlossaryMetadata)(nil), "google.cloud.translation.v3.CreateGlossaryMetadata")
2235	proto.RegisterType((*DeleteGlossaryMetadata)(nil), "google.cloud.translation.v3.DeleteGlossaryMetadata")
2236	proto.RegisterType((*DeleteGlossaryResponse)(nil), "google.cloud.translation.v3.DeleteGlossaryResponse")
2237}
2238
2239func init() {
2240	proto.RegisterFile("google/cloud/translate/v3/translation_service.proto", fileDescriptor_310ad52ac0a2661e)
2241}
2242
2243var fileDescriptor_310ad52ac0a2661e = []byte{
2244	// 2371 bytes of a gzipped FileDescriptorProto
2245	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x5a, 0xcd, 0x6f, 0x1b, 0xc7,
2246	0x15, 0xd7, 0x92, 0x12, 0x25, 0x3d, 0x4a, 0x14, 0x3d, 0x96, 0x1c, 0x9a, 0x76, 0x12, 0x79, 0xfd,
2247	0x51, 0x59, 0x56, 0xb8, 0x8e, 0xd8, 0x38, 0x31, 0x5d, 0xb7, 0xa5, 0x28, 0x5a, 0x16, 0xaa, 0xc8,
2248	0xc2, 0x52, 0x76, 0x01, 0xd7, 0x01, 0xbb, 0x22, 0x47, 0xd4, 0xd6, 0xcb, 0x5d, 0x76, 0x77, 0x28,
2249	0xdb, 0x31, 0xdc, 0x43, 0x80, 0x22, 0x87, 0x02, 0x05, 0x8a, 0xa2, 0x28, 0xda, 0x53, 0x5b, 0xe4,
2250	0xd2, 0xde, 0x7b, 0x29, 0xd0, 0x5b, 0x4f, 0x3e, 0xb6, 0x0d, 0x50, 0xa8, 0x3d, 0xa4, 0x40, 0x7b,
2251	0xc9, 0x5f, 0x50, 0xf4, 0x54, 0xec, 0xcc, 0xec, 0x72, 0x76, 0xb9, 0xfc, 0x92, 0x1c, 0xa0, 0xb9,
2252	0x69, 0xdf, 0xbc, 0x79, 0xf3, 0xe6, 0xf7, 0xde, 0x9b, 0xf7, 0x9b, 0xa1, 0x20, 0xdf, 0xb0, 0xac,
2253	0x86, 0x81, 0x95, 0x9a, 0x61, 0xb5, 0xeb, 0x0a, 0xb1, 0x35, 0xd3, 0x31, 0x34, 0x82, 0x95, 0xc3,
2254	0xbc, 0xff, 0xa1, 0x5b, 0x66, 0xd5, 0xc1, 0xf6, 0xa1, 0x5e, 0xc3, 0xb9, 0x96, 0x6d, 0x11, 0x0b,
2255	0x9d, 0x63, 0x93, 0x72, 0x74, 0x52, 0x4e, 0xd0, 0xcb, 0x1d, 0xe6, 0xb3, 0xe7, 0xb9, 0x45, 0xad,
2256	0xa5, 0x2b, 0x9a, 0x69, 0x5a, 0x84, 0x8e, 0x38, 0x6c, 0x6a, 0xf6, 0x35, 0x61, 0xb4, 0x66, 0xe8,
2257	0xd8, 0x24, 0x7c, 0xe0, 0x4d, 0x61, 0x60, 0x5f, 0xc7, 0x46, 0xbd, 0xba, 0x87, 0x0f, 0xb4, 0x43,
2258	0xdd, 0xb2, 0xb9, 0xc2, 0x59, 0x41, 0xc1, 0xc6, 0x8e, 0xd5, 0xb6, 0x3d, 0x7f, 0xb2, 0x17, 0xf9,
2259	0x90, 0x61, 0x99, 0x0d, 0xbb, 0x6d, 0x9a, 0xba, 0xd9, 0x50, 0xac, 0x16, 0xb6, 0x03, 0x2b, 0x7b,
2260	0x0b, 0xd0, 0xaf, 0xbd, 0xf6, 0xbe, 0x42, 0xf4, 0x26, 0x76, 0x88, 0xd6, 0x6c, 0x31, 0x05, 0xb9,
2261	0x0e, 0xe7, 0x76, 0xbd, 0xfd, 0xef, 0xe2, 0xa7, 0x64, 0xc3, 0xb0, 0x1c, 0x47, 0xb3, 0x9f, 0x95,
2262	0x2c, 0x73, 0x5f, 0x6f, 0xa0, 0x37, 0x61, 0xaa, 0xc1, 0x25, 0x19, 0x69, 0x51, 0x5a, 0x9a, 0x5e,
2263	0x8b, 0x7f, 0x56, 0x8c, 0xa9, 0xbe, 0x10, 0x5d, 0x82, 0xa4, 0xde, 0x30, 0x2d, 0x1b, 0x57, 0x6b,
2264	0x9a, 0x83, 0x33, 0xb1, 0x45, 0x69, 0x69, 0xca, 0xd5, 0x91, 0x54, 0x60, 0xf2, 0x92, 0xe6, 0x60,
2265	0xf9, 0x93, 0x71, 0x98, 0x0f, 0x2c, 0xa3, 0xe2, 0xef, 0xb7, 0xb1, 0x43, 0x5c, 0xfb, 0x35, 0xcb,
2266	0x24, 0xd8, 0x24, 0x4e, 0x46, 0x5a, 0x8c, 0xfb, 0xf6, 0x3d, 0x21, 0x5a, 0x84, 0xe9, 0xa6, 0xde,
2267	0xc4, 0x55, 0xf2, 0xac, 0x85, 0x33, 0x71, 0xcf, 0x03, 0x49, 0x9d, 0x72, 0xa5, 0xbb, 0xcf, 0x5a,
2268	0x18, 0xbd, 0x03, 0xf3, 0x0c, 0x97, 0xaa, 0xa1, 0x99, 0x8d, 0xb6, 0xd6, 0xc0, 0xd5, 0x9a, 0x55,
2269	0xc7, 0x99, 0xf1, 0x8e, 0x32, 0x62, 0x0a, 0x5b, 0x7c, 0xbc, 0x64, 0xd5, 0xe9, 0x34, 0xa2, 0xd9,
2270	0x0d, 0x4c, 0x42, 0xd3, 0x26, 0x3a, 0xbb, 0x44, 0x4c, 0x21, 0x30, 0xad, 0x08, 0x89, 0x96, 0x66,
2271	0x63, 0x93, 0x64, 0xa6, 0xa8, 0xe2, 0xd5, 0xcf, 0x8a, 0xb1, 0xff, 0x16, 0x2f, 0xc2, 0x05, 0xc3,
2272	0xaa, 0x71, 0xe4, 0x19, 0xe4, 0x5a, 0x4b, 0x77, 0x72, 0x35, 0xab, 0xa9, 0x6c, 0xf1, 0x01, 0x95,
2273	0x4f, 0x44, 0x67, 0x61, 0xa2, 0x69, 0xd5, 0xb1, 0x91, 0x49, 0x74, 0x3c, 0x64, 0x12, 0xb4, 0x0f,
2274	0x73, 0x1e, 0xb2, 0xd5, 0x1a, 0x8d, 0x40, 0x66, 0x72, 0x51, 0x5a, 0x4a, 0xae, 0xbe, 0x97, 0xeb,
2275	0x93, 0x7d, 0xb9, 0x3e, 0x11, 0x64, 0xe6, 0x53, 0x8d, 0x60, 0x58, 0x1f, 0x42, 0xc2, 0xd0, 0xf6,
2276	0xb0, 0xe1, 0x64, 0x60, 0x31, 0xbe, 0x94, 0x5c, 0xbd, 0x3d, 0xbc, 0x79, 0x1e, 0xb9, 0xdc, 0x16,
2277	0x9d, 0x5f, 0x36, 0x89, 0xfd, 0x8c, 0xad, 0xc1, 0x2d, 0x66, 0x6f, 0x42, 0x52, 0x18, 0x43, 0x69,
2278	0x88, 0x3f, 0xc6, 0x3c, 0x79, 0x54, 0xf7, 0x4f, 0x34, 0x0f, 0x13, 0x87, 0x9a, 0xd1, 0x66, 0xc9,
2279	0x32, 0xad, 0xb2, 0x8f, 0x42, 0xec, 0x3d, 0x49, 0xfe, 0x93, 0x04, 0x0b, 0xa1, 0xc5, 0x9c, 0x96,
2280	0x65, 0x3a, 0x18, 0x6d, 0xc1, 0x8c, 0xe0, 0x14, 0xcb, 0x95, 0xe4, 0xea, 0xd2, 0x50, 0x6e, 0xbb,
2281	0xd8, 0x07, 0x66, 0xa3, 0x0f, 0x60, 0xc1, 0x87, 0x39, 0x60, 0x36, 0x3e, 0xa2, 0xd9, 0x79, 0xcf,
2282	0x8c, 0x20, 0x74, 0xe4, 0x7f, 0x4b, 0x90, 0x14, 0x04, 0xe8, 0x2b, 0x30, 0xe7, 0x9f, 0x31, 0xf5,
2283	0x2a, 0xc1, 0x4f, 0x09, 0x87, 0x23, 0xd5, 0x11, 0xbb, 0xbb, 0x75, 0x91, 0x61, 0x99, 0xc1, 0x91,
2284	0x61, 0x49, 0xf1, 0x55, 0x38, 0x53, 0xc7, 0x04, 0xd7, 0xdc, 0xc9, 0x11, 0x29, 0xae, 0xce, 0x7b,
2285	0xa3, 0x81, 0x44, 0xd5, 0xba, 0x53, 0x29, 0x7e, 0xb2, 0x54, 0x0a, 0x67, 0x91, 0xfc, 0x69, 0x0c,
2286	0x16, 0xd6, 0xe9, 0xda, 0xde, 0xca, 0x5e, 0x59, 0x77, 0xaa, 0x64, 0xe2, 0xc4, 0x55, 0x32, 0xde,
2287	0x55, 0x25, 0x59, 0x98, 0xe4, 0xe7, 0x03, 0xc3, 0xf1, 0xee, 0x98, 0xea, 0x09, 0x86, 0x38, 0x2f,
2288	0xbe, 0xe3, 0xe7, 0x7e, 0x82, 0x46, 0xfb, 0xeb, 0x7d, 0xf1, 0x88, 0xdc, 0xdf, 0x17, 0x91, 0xfc,
2289	0x6b, 0x53, 0x90, 0x60, 0xc7, 0x94, 0xfc, 0x6d, 0x48, 0xaf, 0x87, 0x42, 0x8a, 0x2e, 0xc2, 0x6c,
2290	0x30, 0xf6, 0xcc, 0xe6, 0x8c, 0x21, 0xc6, 0xfc, 0x0d, 0x00, 0x1a, 0xea, 0x3a, 0x36, 0x6b, 0x6c,
2291	0x85, 0x98, 0x2a, 0x48, 0x64, 0x0c, 0x67, 0xc2, 0xfb, 0xe1, 0xf5, 0xf5, 0x2d, 0x98, 0xf6, 0x2c,
2292	0x79, 0xc5, 0xf5, 0xd6, 0x10, 0xb8, 0x74, 0x1c, 0x54, 0x3b, 0xf3, 0xe5, 0xdf, 0x4b, 0x70, 0x7e,
2293	0x03, 0x93, 0x4a, 0xbb, 0xd5, 0xb2, 0x6c, 0x41, 0xc7, 0xe9, 0x4e, 0x8f, 0xf8, 0x71, 0xd3, 0xe3,
2294	0x5d, 0x58, 0xa8, 0xeb, 0x4e, 0xcb, 0xd0, 0x9e, 0x55, 0x23, 0x70, 0x61, 0x41, 0x39, 0xcd, 0x35,
2295	0x02, 0x75, 0x71, 0x36, 0x50, 0x63, 0x62, 0x5e, 0xc9, 0x7b, 0x80, 0xba, 0x7d, 0x46, 0x5b, 0xdd,
2296	0xd0, 0xe4, 0xfa, 0x42, 0xd3, 0x65, 0x43, 0xc4, 0xe6, 0xb7, 0x12, 0x9c, 0xea, 0x52, 0x18, 0x2e,
2297	0xba, 0x17, 0x60, 0xc6, 0xdb, 0xb2, 0xa9, 0x35, 0xbd, 0x0c, 0x4a, 0x72, 0xd9, 0xb6, 0xd6, 0xc4,
2298	0xe8, 0x32, 0xa4, 0x1c, 0x66, 0xbc, 0xca, 0x72, 0x89, 0x02, 0x3c, 0xa5, 0xce, 0x72, 0x69, 0x85,
2299	0x0a, 0x45, 0x35, 0xd6, 0xe2, 0x68, 0x91, 0x75, 0xd4, 0x76, 0xa9, 0x50, 0x5e, 0x82, 0xe9, 0x8d,
2300	0x9a, 0xc3, 0xe7, 0x9c, 0x83, 0x69, 0xdd, 0x6c, 0xb5, 0x49, 0xb5, 0x6d, 0xeb, 0xdc, 0xbd, 0x29,
2301	0x2a, 0xb8, 0x6f, 0xeb, 0xf2, 0x47, 0x12, 0x24, 0x37, 0xdd, 0x0f, 0xde, 0x5f, 0x02, 0x55, 0x28,
2302	0x45, 0x55, 0xe1, 0x06, 0x40, 0xa3, 0xe6, 0x78, 0x5e, 0xc6, 0xe8, 0xc9, 0x74, 0xa5, 0x2f, 0xac,
2303	0xbe, 0x2b, 0x77, 0xc7, 0xd4, 0xe9, 0x86, 0xf7, 0x21, 0x94, 0xcd, 0xd7, 0x20, 0xb5, 0x51, 0x73,
2304	0xd6, 0xb1, 0x43, 0x74, 0x93, 0x1d, 0xbc, 0xcb, 0x70, 0xca, 0x6a, 0x13, 0xee, 0x74, 0xb5, 0x65,
2305	0xe3, 0x7d, 0xfd, 0x29, 0xf7, 0x7d, 0x8e, 0x0d, 0xdc, 0xb7, 0xf5, 0x1d, 0x2a, 0x96, 0xdb, 0x30,
2306	0x73, 0x8f, 0x8a, 0xf8, 0x16, 0x1e, 0xc0, 0x9c, 0xeb, 0x60, 0xbd, 0x63, 0x8e, 0xce, 0x4c, 0xae,
2307	0x5e, 0x1b, 0xe4, 0xa5, 0xe0, 0xc1, 0xdd, 0x31, 0x35, 0xd5, 0x08, 0x48, 0xd6, 0x66, 0x21, 0x29,
2308	0xd8, 0x94, 0x7f, 0x36, 0x09, 0x67, 0xd7, 0x34, 0x52, 0x3b, 0x88, 0xa4, 0x47, 0x9d, 0x42, 0x91,
2309	0x8e, 0x5b, 0x28, 0xbd, 0xe8, 0x51, 0x4c, 0xe0, 0x39, 0x11, 0xf4, 0xe8, 0x5d, 0x58, 0x88, 0xa2,
2310	0x47, 0xac, 0x45, 0xf2, 0x79, 0xa7, 0xbb, 0xf9, 0x91, 0x83, 0xaa, 0x90, 0xa0, 0xd5, 0xe4, 0x64,
2311	0xc6, 0x69, 0xad, 0xac, 0xf5, 0x85, 0xab, 0xe7, 0xd6, 0x73, 0xef, 0x53, 0x23, 0xe2, 0x11, 0xcb,
2312	0xcc, 0x22, 0x15, 0x66, 0x59, 0x22, 0xb2, 0xae, 0xe6, 0x64, 0x26, 0x86, 0x68, 0xda, 0x42, 0x72,
2313	0x32, 0xdf, 0x67, 0xf4, 0x8e, 0xc4, 0x41, 0x15, 0x98, 0xe5, 0x89, 0xc2, 0x5b, 0x65, 0x82, 0x86,
2314	0xfa, 0x6a, 0x5f, 0x9b, 0x62, 0xba, 0x70, 0xa3, 0x96, 0x98, 0x41, 0x8f, 0x01, 0x78, 0xc3, 0xd4,
2315	0xb1, 0x93, 0x99, 0xa4, 0x5e, 0xde, 0x39, 0x26, 0x1a, 0x1b, 0xbe, 0x21, 0x01, 0x11, 0xc1, 0xbc,
2316	0x0b, 0x3b, 0xef, 0x6a, 0xd3, 0x27, 0x82, 0xbd, 0x5f, 0x67, 0x13, 0x42, 0x32, 0x4a, 0x67, 0xcb,
2317	0x3e, 0x81, 0xb9, 0x90, 0xff, 0x11, 0xd3, 0xb7, 0xc5, 0xe9, 0x27, 0x61, 0x29, 0xc2, 0xc2, 0x27,
2318	0xa0, 0xa2, 0xbf, 0x8c, 0xc3, 0x99, 0x20, 0x4a, 0xef, 0x63, 0xa2, 0xd5, 0x35, 0xa2, 0xa1, 0x7b,
2319	0x30, 0xe1, 0x10, 0x8d, 0xb0, 0x83, 0x2d, 0xb5, 0x7a, 0x73, 0x04, 0xa4, 0x3d, 0x1b, 0xb9, 0x8a,
2320	0x6b, 0x40, 0x65, 0x76, 0x50, 0x1e, 0x16, 0x04, 0x7e, 0x58, 0x3b, 0xd0, 0x6c, 0xad, 0x46, 0xb0,
2321	0xed, 0x50, 0xaf, 0xe2, 0xea, 0x7c, 0x67, 0xb0, 0xe4, 0x8f, 0xa1, 0x6b, 0x70, 0x6a, 0x5f, 0xd3,
2322	0x8d, 0xe0, 0x84, 0x38, 0x9d, 0x90, 0x66, 0x03, 0x82, 0xf2, 0x55, 0x48, 0x13, 0x8b, 0x68, 0x86,
2323	0xa8, 0x3b, 0x4e, 0x75, 0xe7, 0xa8, 0x5c, 0x50, 0xbd, 0x05, 0x49, 0xa7, 0xbd, 0xd7, 0xd4, 0x49,
2324	0xd5, 0xbd, 0x2a, 0x52, 0xfe, 0x96, 0x5c, 0xcd, 0x7a, 0x7b, 0xf4, 0xee, 0x91, 0xb9, 0x5d, 0xef,
2325	0x1e, 0xa9, 0x02, 0x53, 0x77, 0x05, 0x32, 0x86, 0x09, 0xba, 0x33, 0xb4, 0x00, 0xa7, 0x2a, 0xbb,
2326	0xc5, 0xdd, 0x72, 0xf5, 0xfe, 0x76, 0x65, 0xa7, 0x5c, 0xda, 0xbc, 0xb3, 0x59, 0x5e, 0x4f, 0x8f,
2327	0xa1, 0x24, 0x4c, 0xaa, 0xf7, 0xb7, 0xb7, 0x37, 0xb7, 0x37, 0xd2, 0x12, 0x9a, 0x85, 0xe9, 0xca,
2328	0xfd, 0x52, 0xa9, 0x5c, 0x5e, 0x2f, 0xaf, 0xa7, 0x63, 0x08, 0x20, 0x71, 0xa7, 0xb8, 0xb9, 0x55,
2329	0x5e, 0x4f, 0xc7, 0x51, 0x0a, 0xa0, 0x54, 0xdc, 0x2e, 0x95, 0xb7, 0xb6, 0x5c, 0xd5, 0x71, 0x57,
2330	0x95, 0x7f, 0x97, 0xd7, 0xd3, 0x13, 0xf2, 0x2f, 0x62, 0xe1, 0xe0, 0xf8, 0x44, 0x26, 0x6a, 0xa7,
2331	0x52, 0xf4, 0x4e, 0xbf, 0x78, 0xd8, 0x43, 0x58, 0x8e, 0x8f, 0x82, 0x25, 0x7a, 0x07, 0xa6, 0xb0,
2332	0x59, 0x1f, 0x36, 0x0a, 0x93, 0xd8, 0xac, 0xd3, 0x10, 0x1c, 0xc0, 0x69, 0xaf, 0x20, 0xc4, 0x8e,
2333	0x1c, 0xec, 0xb7, 0xd2, 0xab, 0xe8, 0xb7, 0x3f, 0x4c, 0xc0, 0x94, 0xb7, 0x14, 0x42, 0x30, 0x4e,
2334	0x49, 0x09, 0x2b, 0x2e, 0xfa, 0x37, 0xfa, 0x40, 0x60, 0x35, 0x2d, 0x4d, 0xb7, 0xf9, 0x05, 0xe4,
2335	0x46, 0xff, 0x65, 0xb9, 0xc5, 0x9c, 0xd8, 0x56, 0x76, 0x34, 0xdd, 0xbe, 0x3b, 0xd6, 0xe1, 0x43,
2336	0xee, 0x37, 0xda, 0x07, 0x14, 0xec, 0x4d, 0x55, 0x87, 0x33, 0x99, 0x63, 0xad, 0xe1, 0x54, 0x30,
2337	0xb9, 0x3b, 0xa6, 0xa6, 0x8d, 0x90, 0x0c, 0x55, 0x60, 0x46, 0x6c, 0x38, 0x3c, 0x18, 0xd7, 0x87,
2338	0x5a, 0x41, 0x08, 0x81, 0x9a, 0x14, 0x5a, 0x0e, 0xba, 0x04, 0x49, 0xec, 0x1e, 0x4a, 0xd5, 0x9a,
2339	0xd5, 0x36, 0x09, 0xed, 0x37, 0x13, 0xee, 0x81, 0x1b, 0x57, 0x81, 0xca, 0x4b, 0xae, 0x18, 0x7d,
2340	0x33, 0x98, 0x40, 0x93, 0x83, 0xd2, 0x80, 0x5b, 0x10, 0xb2, 0xa8, 0x20, 0x64, 0xd1, 0xd4, 0x70,
2341	0xd3, 0xbd, 0x54, 0xca, 0x1e, 0x42, 0x3a, 0x1c, 0x04, 0x74, 0xbd, 0x07, 0x9d, 0x60, 0x71, 0x8f,
2342	0x62, 0x12, 0xd7, 0x7b, 0x3c, 0xb4, 0xb0, 0x23, 0x37, 0xe2, 0x8d, 0x25, 0x7b, 0x33, 0xb8, 0x2e,
2343	0x0d, 0xc2, 0x65, 0x48, 0x85, 0x88, 0x08, 0x7d, 0x2e, 0x52, 0x67, 0x03, 0xe1, 0x2a, 0xe0, 0xcf,
2344	0x8b, 0x7b, 0x70, 0xc1, 0xaf, 0xdc, 0x30, 0x3b, 0xf2, 0xd3, 0xf5, 0x76, 0xcb, 0xb6, 0xbe, 0x87,
2345	0x6b, 0xc4, 0x51, 0x9e, 0xf3, 0xbf, 0x5e, 0x28, 0x3e, 0xa7, 0x52, 0x9e, 0x7b, 0x7f, 0xbe, 0x50,
2346	0x3a, 0x2d, 0x56, 0x79, 0xee, 0x5d, 0x7f, 0x5f, 0xac, 0x25, 0x85, 0x3b, 0x81, 0xfc, 0x1b, 0x09,
2347	0x16, 0x4a, 0x36, 0xd6, 0x08, 0xf6, 0xcc, 0xbf, 0x42, 0xfa, 0x76, 0x47, 0x78, 0x80, 0x63, 0x9d,
2348	0xf1, 0xf2, 0x50, 0x89, 0x17, 0x7a, 0xa7, 0x93, 0x2b, 0x80, 0x36, 0x30, 0x09, 0x3b, 0x78, 0x5b,
2349	0xac, 0xda, 0x8e, 0x7b, 0x03, 0xf1, 0x63, 0x05, 0x2e, 0x3f, 0x70, 0xef, 0xff, 0x06, 0xee, 0xde,
2350	0xf8, 0x09, 0xed, 0xfe, 0x51, 0x82, 0x85, 0x2d, 0xdd, 0x21, 0x1d, 0xd6, 0xf0, 0x0a, 0x11, 0x5d,
2351	0x84, 0xe9, 0x96, 0x9b, 0x45, 0x8e, 0xfe, 0x21, 0x4b, 0xc2, 0x09, 0x7e, 0x37, 0x71, 0xa5, 0x15,
2352	0xfd, 0x43, 0x8c, 0x64, 0x00, 0xaa, 0x41, 0xac, 0xc7, 0xd8, 0x14, 0x1f, 0x11, 0xe8, 0xc4, 0x5d,
2353	0x57, 0x8a, 0xce, 0x41, 0x62, 0x5f, 0x37, 0x08, 0xb6, 0xc5, 0xf7, 0x09, 0x2e, 0x92, 0x3f, 0x96,
2354	0xe0, 0x4c, 0xd8, 0x7f, 0xde, 0x9f, 0xca, 0x01, 0x52, 0xc8, 0xae, 0x93, 0xc3, 0x45, 0x34, 0x40,
2355	0xf7, 0xae, 0xc0, 0x9c, 0x89, 0x9f, 0x92, 0xaa, 0xe0, 0x27, 0xab, 0xa7, 0x59, 0x57, 0xbc, 0xe3,
2356	0xb9, 0x29, 0xff, 0x3a, 0x06, 0x67, 0x82, 0xb9, 0xe9, 0xd3, 0x98, 0xa8, 0x13, 0xdb, 0xa7, 0x36,
2357	0xb1, 0x21, 0xa8, 0x4d, 0xb4, 0xdd, 0x20, 0xb5, 0x09, 0x75, 0xc0, 0xf8, 0xff, 0x23, 0x9b, 0x70,
2358	0x31, 0x0a, 0xa6, 0xf1, 0xab, 0xc3, 0x28, 0xda, 0xee, 0x97, 0x0f, 0xa3, 0x5f, 0x49, 0x61, 0x8c,
2359	0xfc, 0x8c, 0x8e, 0xc2, 0x28, 0xb4, 0xa5, 0xd8, 0xb1, 0x89, 0x4f, 0x7c, 0x68, 0xe2, 0xb3, 0xfa,
2360	0xe3, 0x34, 0x20, 0xe1, 0xd5, 0xb5, 0xc2, 0x7e, 0xbc, 0x41, 0x7f, 0x8d, 0xc1, 0x6c, 0xe0, 0xba,
2361	0x80, 0xde, 0x1e, 0xf9, 0xb1, 0x3b, 0xbb, 0x3a, 0xca, 0x14, 0x86, 0x8b, 0xfc, 0x77, 0xe9, 0xa8,
2362	0x78, 0x89, 0x9d, 0x39, 0x2b, 0x51, 0x0d, 0x70, 0xc5, 0xfb, 0x8d, 0xe3, 0xa8, 0xb8, 0xc9, 0xd5,
2363	0xe8, 0x0d, 0x77, 0xc5, 0x7f, 0x39, 0x59, 0x89, 0xea, 0xb4, 0xfd, 0x6d, 0x7d, 0xf4, 0x97, 0x7f,
2364	0xfd, 0x34, 0xb6, 0x27, 0xbf, 0xad, 0x1c, 0xe6, 0x95, 0xe7, 0xcc, 0x6a, 0xa7, 0xd5, 0x2d, 0x0b,
2365	0x2d, 0x6e, 0xf9, 0x45, 0x81, 0x88, 0x6e, 0x17, 0xa4, 0xe5, 0x87, 0xcb, 0xf2, 0xe5, 0xe8, 0x79,
2366	0xdd, 0xba, 0xe8, 0xe3, 0x18, 0xa4, 0x82, 0x6f, 0x89, 0x68, 0x75, 0xf4, 0x87, 0xd4, 0x6c, 0x7e,
2367	0xa4, 0x39, 0x1c, 0xd9, 0x1f, 0x49, 0x47, 0xc5, 0x37, 0x7a, 0x40, 0xc6, 0x81, 0xa0, 0x38, 0xd4,
2368	0xe5, 0xd5, 0x61, 0x70, 0xa8, 0x07, 0x56, 0x71, 0x81, 0xb8, 0x26, 0x5f, 0xe9, 0x05, 0x44, 0x97,
2369	0x32, 0xfa, 0x79, 0x0c, 0x16, 0x22, 0x5f, 0x3b, 0x51, 0xff, 0xa3, 0xa1, 0xdf, 0x0b, 0x69, 0x56,
2370	0x19, 0xed, 0x85, 0xd1, 0x91, 0x7f, 0x22, 0x1d, 0x15, 0xe5, 0x00, 0x26, 0x91, 0xcf, 0xa3, 0x14,
2371	0x97, 0x7d, 0x74, 0x63, 0x08, 0x5c, 0x14, 0xa7, 0x6b, 0x95, 0x87, 0x2b, 0x68, 0xb9, 0x07, 0x30,
2372	0x11, 0xda, 0xe8, 0x9f, 0x12, 0xa0, 0xee, 0x97, 0x06, 0x74, 0xe3, 0x78, 0x4f, 0x13, 0xd9, 0xd7,
2373	0xbd, 0x79, 0xc2, 0x2f, 0x9e, 0xb9, 0x7b, 0xde, 0x2f, 0x9e, 0x32, 0x79, 0x59, 0xbc, 0xde, 0xf3,
2374	0x5a, 0xd8, 0xe3, 0x2e, 0x4f, 0xe1, 0xb8, 0x25, 0x0f, 0x03, 0x47, 0x61, 0xaf, 0xcb, 0x31, 0x37,
2375	0xfa, 0xff, 0x90, 0x20, 0x15, 0x6c, 0x84, 0x03, 0xea, 0x20, 0x92, 0x29, 0x0e, 0xda, 0xdb, 0x93,
2376	0x97, 0x45, 0x59, 0xb8, 0x6c, 0xf5, 0x68, 0xe9, 0x47, 0xc5, 0x39, 0x9e, 0x01, 0x1e, 0xed, 0xa3,
2377	0xfb, 0x2b, 0xc8, 0xb9, 0x61, 0xc2, 0xdd, 0x61, 0x17, 0x85, 0xce, 0xcf, 0xbb, 0x7f, 0x90, 0x20,
2378	0x15, 0x64, 0x32, 0x03, 0xb6, 0x17, 0x49, 0xdb, 0x06, 0x94, 0x79, 0x34, 0x55, 0x92, 0xbf, 0x71,
2379	0x54, 0xe4, 0x9c, 0x8d, 0x6e, 0xe3, 0x3a, 0x1a, 0x71, 0x1b, 0xe8, 0x13, 0x09, 0x92, 0x02, 0xe9,
2380	0x45, 0xca, 0xa0, 0x7a, 0x0c, 0x47, 0x65, 0x38, 0x62, 0x26, 0xdf, 0x3e, 0x2a, 0xd2, 0xb6, 0x17,
2381	0x70, 0xd3, 0x15, 0xf4, 0x70, 0x52, 0xbc, 0x54, 0x2c, 0xbf, 0x40, 0x9f, 0x4a, 0xee, 0x51, 0x2a,
2382	0xf6, 0xd6, 0x81, 0x47, 0x69, 0x04, 0xe7, 0x1e, 0x94, 0x42, 0x2d, 0x5a, 0x1e, 0x3d, 0x7a, 0x78,
2383	0x0f, 0xfe, 0x13, 0xd8, 0xd7, 0xf2, 0x88, 0xfb, 0xca, 0xfe, 0xe0, 0x65, 0x31, 0xd3, 0x8b, 0xf1,
2384	0xff, 0xb9, 0xf8, 0xdd, 0x03, 0x42, 0x5a, 0x4e, 0x41, 0x51, 0x9e, 0x3c, 0x79, 0x12, 0xe6, 0xec,
2385	0x5a, 0x9b, 0x1c, 0xb0, 0x7f, 0xce, 0x78, 0xab, 0x65, 0x68, 0x64, 0xdf, 0xb2, 0x9b, 0x2b, 0xc3,
2386	0xa9, 0x0b, 0x48, 0xad, 0xfd, 0x4d, 0x82, 0xd7, 0x6b, 0x56, 0x33, 0x1a, 0x4a, 0x9c, 0x3b, 0xcc,
2387	0xaf, 0xbd, 0xd6, 0xcd, 0x17, 0x76, 0x5c, 0x86, 0xb1, 0x23, 0x3d, 0x5c, 0xe3, 0xb3, 0x1a, 0x96,
2388	0x7b, 0x7e, 0xe6, 0x2c, 0xbb, 0xa1, 0x34, 0xb0, 0x49, 0xf9, 0x87, 0xd2, 0x59, 0x3e, 0xe2, 0x3f,
2389	0x48, 0x6e, 0xf9, 0x1f, 0xff, 0x91, 0xa4, 0xdf, 0xc5, 0xce, 0x6e, 0x30, 0x3b, 0x25, 0xba, 0xba,
2390	0x7f, 0x7c, 0xe4, 0x1e, 0xe4, 0x5f, 0x7a, 0x63, 0x8f, 0xe8, 0xd8, 0x23, 0x7f, 0xec, 0xd1, 0x83,
2391	0xfc, 0xe7, 0xb1, 0xf3, 0x6c, 0xac, 0x50, 0xa0, 0x83, 0x85, 0x82, 0x3f, 0x5a, 0x28, 0x3c, 0xc8,
2392	0xef, 0x25, 0xa8, 0x23, 0xf9, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xdb, 0x76, 0xcf, 0x2d, 0xc9,
2393	0x22, 0x00, 0x00,
2394}
2395
2396// Reference imports to suppress errors if they are not otherwise used.
2397var _ context.Context
2398var _ grpc.ClientConnInterface
2399
2400// This is a compile-time assertion to ensure that this generated file
2401// is compatible with the grpc package it is being compiled against.
2402const _ = grpc.SupportPackageIsVersion6
2403
2404// TranslationServiceClient is the client API for TranslationService service.
2405//
2406// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
2407type TranslationServiceClient interface {
2408	// Translates input text and returns translated text.
2409	TranslateText(ctx context.Context, in *TranslateTextRequest, opts ...grpc.CallOption) (*TranslateTextResponse, error)
2410	// Detects the language of text within a request.
2411	DetectLanguage(ctx context.Context, in *DetectLanguageRequest, opts ...grpc.CallOption) (*DetectLanguageResponse, error)
2412	// Returns a list of supported languages for translation.
2413	GetSupportedLanguages(ctx context.Context, in *GetSupportedLanguagesRequest, opts ...grpc.CallOption) (*SupportedLanguages, error)
2414	// Translates a large volume of text in asynchronous batch mode.
2415	// This function provides real-time output as the inputs are being processed.
2416	// If caller cancels a request, the partial results (for an input file, it's
2417	// all or nothing) may still be available on the specified output location.
2418	//
2419	// This call returns immediately and you can
2420	// use google.longrunning.Operation.name to poll the status of the call.
2421	BatchTranslateText(ctx context.Context, in *BatchTranslateTextRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
2422	// Creates a glossary and returns the long-running operation. Returns
2423	// NOT_FOUND, if the project doesn't exist.
2424	CreateGlossary(ctx context.Context, in *CreateGlossaryRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
2425	// Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
2426	// exist.
2427	ListGlossaries(ctx context.Context, in *ListGlossariesRequest, opts ...grpc.CallOption) (*ListGlossariesResponse, error)
2428	// Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
2429	// exist.
2430	GetGlossary(ctx context.Context, in *GetGlossaryRequest, opts ...grpc.CallOption) (*Glossary, error)
2431	// Deletes a glossary, or cancels glossary construction
2432	// if the glossary isn't created yet.
2433	// Returns NOT_FOUND, if the glossary doesn't exist.
2434	DeleteGlossary(ctx context.Context, in *DeleteGlossaryRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
2435}
2436
2437type translationServiceClient struct {
2438	cc grpc.ClientConnInterface
2439}
2440
2441func NewTranslationServiceClient(cc grpc.ClientConnInterface) TranslationServiceClient {
2442	return &translationServiceClient{cc}
2443}
2444
2445func (c *translationServiceClient) TranslateText(ctx context.Context, in *TranslateTextRequest, opts ...grpc.CallOption) (*TranslateTextResponse, error) {
2446	out := new(TranslateTextResponse)
2447	err := c.cc.Invoke(ctx, "/google.cloud.translation.v3.TranslationService/TranslateText", in, out, opts...)
2448	if err != nil {
2449		return nil, err
2450	}
2451	return out, nil
2452}
2453
2454func (c *translationServiceClient) DetectLanguage(ctx context.Context, in *DetectLanguageRequest, opts ...grpc.CallOption) (*DetectLanguageResponse, error) {
2455	out := new(DetectLanguageResponse)
2456	err := c.cc.Invoke(ctx, "/google.cloud.translation.v3.TranslationService/DetectLanguage", in, out, opts...)
2457	if err != nil {
2458		return nil, err
2459	}
2460	return out, nil
2461}
2462
2463func (c *translationServiceClient) GetSupportedLanguages(ctx context.Context, in *GetSupportedLanguagesRequest, opts ...grpc.CallOption) (*SupportedLanguages, error) {
2464	out := new(SupportedLanguages)
2465	err := c.cc.Invoke(ctx, "/google.cloud.translation.v3.TranslationService/GetSupportedLanguages", in, out, opts...)
2466	if err != nil {
2467		return nil, err
2468	}
2469	return out, nil
2470}
2471
2472func (c *translationServiceClient) BatchTranslateText(ctx context.Context, in *BatchTranslateTextRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
2473	out := new(longrunning.Operation)
2474	err := c.cc.Invoke(ctx, "/google.cloud.translation.v3.TranslationService/BatchTranslateText", in, out, opts...)
2475	if err != nil {
2476		return nil, err
2477	}
2478	return out, nil
2479}
2480
2481func (c *translationServiceClient) CreateGlossary(ctx context.Context, in *CreateGlossaryRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
2482	out := new(longrunning.Operation)
2483	err := c.cc.Invoke(ctx, "/google.cloud.translation.v3.TranslationService/CreateGlossary", in, out, opts...)
2484	if err != nil {
2485		return nil, err
2486	}
2487	return out, nil
2488}
2489
2490func (c *translationServiceClient) ListGlossaries(ctx context.Context, in *ListGlossariesRequest, opts ...grpc.CallOption) (*ListGlossariesResponse, error) {
2491	out := new(ListGlossariesResponse)
2492	err := c.cc.Invoke(ctx, "/google.cloud.translation.v3.TranslationService/ListGlossaries", in, out, opts...)
2493	if err != nil {
2494		return nil, err
2495	}
2496	return out, nil
2497}
2498
2499func (c *translationServiceClient) GetGlossary(ctx context.Context, in *GetGlossaryRequest, opts ...grpc.CallOption) (*Glossary, error) {
2500	out := new(Glossary)
2501	err := c.cc.Invoke(ctx, "/google.cloud.translation.v3.TranslationService/GetGlossary", in, out, opts...)
2502	if err != nil {
2503		return nil, err
2504	}
2505	return out, nil
2506}
2507
2508func (c *translationServiceClient) DeleteGlossary(ctx context.Context, in *DeleteGlossaryRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
2509	out := new(longrunning.Operation)
2510	err := c.cc.Invoke(ctx, "/google.cloud.translation.v3.TranslationService/DeleteGlossary", in, out, opts...)
2511	if err != nil {
2512		return nil, err
2513	}
2514	return out, nil
2515}
2516
2517// TranslationServiceServer is the server API for TranslationService service.
2518type TranslationServiceServer interface {
2519	// Translates input text and returns translated text.
2520	TranslateText(context.Context, *TranslateTextRequest) (*TranslateTextResponse, error)
2521	// Detects the language of text within a request.
2522	DetectLanguage(context.Context, *DetectLanguageRequest) (*DetectLanguageResponse, error)
2523	// Returns a list of supported languages for translation.
2524	GetSupportedLanguages(context.Context, *GetSupportedLanguagesRequest) (*SupportedLanguages, error)
2525	// Translates a large volume of text in asynchronous batch mode.
2526	// This function provides real-time output as the inputs are being processed.
2527	// If caller cancels a request, the partial results (for an input file, it's
2528	// all or nothing) may still be available on the specified output location.
2529	//
2530	// This call returns immediately and you can
2531	// use google.longrunning.Operation.name to poll the status of the call.
2532	BatchTranslateText(context.Context, *BatchTranslateTextRequest) (*longrunning.Operation, error)
2533	// Creates a glossary and returns the long-running operation. Returns
2534	// NOT_FOUND, if the project doesn't exist.
2535	CreateGlossary(context.Context, *CreateGlossaryRequest) (*longrunning.Operation, error)
2536	// Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
2537	// exist.
2538	ListGlossaries(context.Context, *ListGlossariesRequest) (*ListGlossariesResponse, error)
2539	// Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
2540	// exist.
2541	GetGlossary(context.Context, *GetGlossaryRequest) (*Glossary, error)
2542	// Deletes a glossary, or cancels glossary construction
2543	// if the glossary isn't created yet.
2544	// Returns NOT_FOUND, if the glossary doesn't exist.
2545	DeleteGlossary(context.Context, *DeleteGlossaryRequest) (*longrunning.Operation, error)
2546}
2547
2548// UnimplementedTranslationServiceServer can be embedded to have forward compatible implementations.
2549type UnimplementedTranslationServiceServer struct {
2550}
2551
2552func (*UnimplementedTranslationServiceServer) TranslateText(ctx context.Context, req *TranslateTextRequest) (*TranslateTextResponse, error) {
2553	return nil, status.Errorf(codes.Unimplemented, "method TranslateText not implemented")
2554}
2555func (*UnimplementedTranslationServiceServer) DetectLanguage(ctx context.Context, req *DetectLanguageRequest) (*DetectLanguageResponse, error) {
2556	return nil, status.Errorf(codes.Unimplemented, "method DetectLanguage not implemented")
2557}
2558func (*UnimplementedTranslationServiceServer) GetSupportedLanguages(ctx context.Context, req *GetSupportedLanguagesRequest) (*SupportedLanguages, error) {
2559	return nil, status.Errorf(codes.Unimplemented, "method GetSupportedLanguages not implemented")
2560}
2561func (*UnimplementedTranslationServiceServer) BatchTranslateText(ctx context.Context, req *BatchTranslateTextRequest) (*longrunning.Operation, error) {
2562	return nil, status.Errorf(codes.Unimplemented, "method BatchTranslateText not implemented")
2563}
2564func (*UnimplementedTranslationServiceServer) CreateGlossary(ctx context.Context, req *CreateGlossaryRequest) (*longrunning.Operation, error) {
2565	return nil, status.Errorf(codes.Unimplemented, "method CreateGlossary not implemented")
2566}
2567func (*UnimplementedTranslationServiceServer) ListGlossaries(ctx context.Context, req *ListGlossariesRequest) (*ListGlossariesResponse, error) {
2568	return nil, status.Errorf(codes.Unimplemented, "method ListGlossaries not implemented")
2569}
2570func (*UnimplementedTranslationServiceServer) GetGlossary(ctx context.Context, req *GetGlossaryRequest) (*Glossary, error) {
2571	return nil, status.Errorf(codes.Unimplemented, "method GetGlossary not implemented")
2572}
2573func (*UnimplementedTranslationServiceServer) DeleteGlossary(ctx context.Context, req *DeleteGlossaryRequest) (*longrunning.Operation, error) {
2574	return nil, status.Errorf(codes.Unimplemented, "method DeleteGlossary not implemented")
2575}
2576
2577func RegisterTranslationServiceServer(s *grpc.Server, srv TranslationServiceServer) {
2578	s.RegisterService(&_TranslationService_serviceDesc, srv)
2579}
2580
2581func _TranslationService_TranslateText_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2582	in := new(TranslateTextRequest)
2583	if err := dec(in); err != nil {
2584		return nil, err
2585	}
2586	if interceptor == nil {
2587		return srv.(TranslationServiceServer).TranslateText(ctx, in)
2588	}
2589	info := &grpc.UnaryServerInfo{
2590		Server:     srv,
2591		FullMethod: "/google.cloud.translation.v3.TranslationService/TranslateText",
2592	}
2593	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2594		return srv.(TranslationServiceServer).TranslateText(ctx, req.(*TranslateTextRequest))
2595	}
2596	return interceptor(ctx, in, info, handler)
2597}
2598
2599func _TranslationService_DetectLanguage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2600	in := new(DetectLanguageRequest)
2601	if err := dec(in); err != nil {
2602		return nil, err
2603	}
2604	if interceptor == nil {
2605		return srv.(TranslationServiceServer).DetectLanguage(ctx, in)
2606	}
2607	info := &grpc.UnaryServerInfo{
2608		Server:     srv,
2609		FullMethod: "/google.cloud.translation.v3.TranslationService/DetectLanguage",
2610	}
2611	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2612		return srv.(TranslationServiceServer).DetectLanguage(ctx, req.(*DetectLanguageRequest))
2613	}
2614	return interceptor(ctx, in, info, handler)
2615}
2616
2617func _TranslationService_GetSupportedLanguages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2618	in := new(GetSupportedLanguagesRequest)
2619	if err := dec(in); err != nil {
2620		return nil, err
2621	}
2622	if interceptor == nil {
2623		return srv.(TranslationServiceServer).GetSupportedLanguages(ctx, in)
2624	}
2625	info := &grpc.UnaryServerInfo{
2626		Server:     srv,
2627		FullMethod: "/google.cloud.translation.v3.TranslationService/GetSupportedLanguages",
2628	}
2629	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2630		return srv.(TranslationServiceServer).GetSupportedLanguages(ctx, req.(*GetSupportedLanguagesRequest))
2631	}
2632	return interceptor(ctx, in, info, handler)
2633}
2634
2635func _TranslationService_BatchTranslateText_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2636	in := new(BatchTranslateTextRequest)
2637	if err := dec(in); err != nil {
2638		return nil, err
2639	}
2640	if interceptor == nil {
2641		return srv.(TranslationServiceServer).BatchTranslateText(ctx, in)
2642	}
2643	info := &grpc.UnaryServerInfo{
2644		Server:     srv,
2645		FullMethod: "/google.cloud.translation.v3.TranslationService/BatchTranslateText",
2646	}
2647	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2648		return srv.(TranslationServiceServer).BatchTranslateText(ctx, req.(*BatchTranslateTextRequest))
2649	}
2650	return interceptor(ctx, in, info, handler)
2651}
2652
2653func _TranslationService_CreateGlossary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2654	in := new(CreateGlossaryRequest)
2655	if err := dec(in); err != nil {
2656		return nil, err
2657	}
2658	if interceptor == nil {
2659		return srv.(TranslationServiceServer).CreateGlossary(ctx, in)
2660	}
2661	info := &grpc.UnaryServerInfo{
2662		Server:     srv,
2663		FullMethod: "/google.cloud.translation.v3.TranslationService/CreateGlossary",
2664	}
2665	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2666		return srv.(TranslationServiceServer).CreateGlossary(ctx, req.(*CreateGlossaryRequest))
2667	}
2668	return interceptor(ctx, in, info, handler)
2669}
2670
2671func _TranslationService_ListGlossaries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2672	in := new(ListGlossariesRequest)
2673	if err := dec(in); err != nil {
2674		return nil, err
2675	}
2676	if interceptor == nil {
2677		return srv.(TranslationServiceServer).ListGlossaries(ctx, in)
2678	}
2679	info := &grpc.UnaryServerInfo{
2680		Server:     srv,
2681		FullMethod: "/google.cloud.translation.v3.TranslationService/ListGlossaries",
2682	}
2683	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2684		return srv.(TranslationServiceServer).ListGlossaries(ctx, req.(*ListGlossariesRequest))
2685	}
2686	return interceptor(ctx, in, info, handler)
2687}
2688
2689func _TranslationService_GetGlossary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2690	in := new(GetGlossaryRequest)
2691	if err := dec(in); err != nil {
2692		return nil, err
2693	}
2694	if interceptor == nil {
2695		return srv.(TranslationServiceServer).GetGlossary(ctx, in)
2696	}
2697	info := &grpc.UnaryServerInfo{
2698		Server:     srv,
2699		FullMethod: "/google.cloud.translation.v3.TranslationService/GetGlossary",
2700	}
2701	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2702		return srv.(TranslationServiceServer).GetGlossary(ctx, req.(*GetGlossaryRequest))
2703	}
2704	return interceptor(ctx, in, info, handler)
2705}
2706
2707func _TranslationService_DeleteGlossary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2708	in := new(DeleteGlossaryRequest)
2709	if err := dec(in); err != nil {
2710		return nil, err
2711	}
2712	if interceptor == nil {
2713		return srv.(TranslationServiceServer).DeleteGlossary(ctx, in)
2714	}
2715	info := &grpc.UnaryServerInfo{
2716		Server:     srv,
2717		FullMethod: "/google.cloud.translation.v3.TranslationService/DeleteGlossary",
2718	}
2719	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2720		return srv.(TranslationServiceServer).DeleteGlossary(ctx, req.(*DeleteGlossaryRequest))
2721	}
2722	return interceptor(ctx, in, info, handler)
2723}
2724
2725var _TranslationService_serviceDesc = grpc.ServiceDesc{
2726	ServiceName: "google.cloud.translation.v3.TranslationService",
2727	HandlerType: (*TranslationServiceServer)(nil),
2728	Methods: []grpc.MethodDesc{
2729		{
2730			MethodName: "TranslateText",
2731			Handler:    _TranslationService_TranslateText_Handler,
2732		},
2733		{
2734			MethodName: "DetectLanguage",
2735			Handler:    _TranslationService_DetectLanguage_Handler,
2736		},
2737		{
2738			MethodName: "GetSupportedLanguages",
2739			Handler:    _TranslationService_GetSupportedLanguages_Handler,
2740		},
2741		{
2742			MethodName: "BatchTranslateText",
2743			Handler:    _TranslationService_BatchTranslateText_Handler,
2744		},
2745		{
2746			MethodName: "CreateGlossary",
2747			Handler:    _TranslationService_CreateGlossary_Handler,
2748		},
2749		{
2750			MethodName: "ListGlossaries",
2751			Handler:    _TranslationService_ListGlossaries_Handler,
2752		},
2753		{
2754			MethodName: "GetGlossary",
2755			Handler:    _TranslationService_GetGlossary_Handler,
2756		},
2757		{
2758			MethodName: "DeleteGlossary",
2759			Handler:    _TranslationService_DeleteGlossary_Handler,
2760		},
2761	},
2762	Streams:  []grpc.StreamDesc{},
2763	Metadata: "google/cloud/translate/v3/translation_service.proto",
2764}
2765