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