1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package migrationpb
22
23 import (
24 context "context"
25 reflect "reflect"
26 sync "sync"
27
28 _ "google.golang.org/genproto/googleapis/api/annotations"
29 grpc "google.golang.org/grpc"
30 codes "google.golang.org/grpc/codes"
31 status "google.golang.org/grpc/status"
32 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
33 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
34 )
35
36 const (
37
38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
39
40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
41 )
42
43
44 type TranslateQueryRequest_SqlTranslationSourceDialect int32
45
46 const (
47
48 TranslateQueryRequest_SQL_TRANSLATION_SOURCE_DIALECT_UNSPECIFIED TranslateQueryRequest_SqlTranslationSourceDialect = 0
49
50 TranslateQueryRequest_TERADATA TranslateQueryRequest_SqlTranslationSourceDialect = 1
51 )
52
53
54 var (
55 TranslateQueryRequest_SqlTranslationSourceDialect_name = map[int32]string{
56 0: "SQL_TRANSLATION_SOURCE_DIALECT_UNSPECIFIED",
57 1: "TERADATA",
58 }
59 TranslateQueryRequest_SqlTranslationSourceDialect_value = map[string]int32{
60 "SQL_TRANSLATION_SOURCE_DIALECT_UNSPECIFIED": 0,
61 "TERADATA": 1,
62 }
63 )
64
65 func (x TranslateQueryRequest_SqlTranslationSourceDialect) Enum() *TranslateQueryRequest_SqlTranslationSourceDialect {
66 p := new(TranslateQueryRequest_SqlTranslationSourceDialect)
67 *p = x
68 return p
69 }
70
71 func (x TranslateQueryRequest_SqlTranslationSourceDialect) String() string {
72 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
73 }
74
75 func (TranslateQueryRequest_SqlTranslationSourceDialect) Descriptor() protoreflect.EnumDescriptor {
76 return file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_enumTypes[0].Descriptor()
77 }
78
79 func (TranslateQueryRequest_SqlTranslationSourceDialect) Type() protoreflect.EnumType {
80 return &file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_enumTypes[0]
81 }
82
83 func (x TranslateQueryRequest_SqlTranslationSourceDialect) Number() protoreflect.EnumNumber {
84 return protoreflect.EnumNumber(x)
85 }
86
87
88 func (TranslateQueryRequest_SqlTranslationSourceDialect) EnumDescriptor() ([]byte, []int) {
89 return file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_rawDescGZIP(), []int{0, 0}
90 }
91
92
93 type SqlTranslationError_SqlTranslationErrorType int32
94
95 const (
96
97 SqlTranslationError_SQL_TRANSLATION_ERROR_TYPE_UNSPECIFIED SqlTranslationError_SqlTranslationErrorType = 0
98
99 SqlTranslationError_SQL_PARSE_ERROR SqlTranslationError_SqlTranslationErrorType = 1
100
101
102 SqlTranslationError_UNSUPPORTED_SQL_FUNCTION SqlTranslationError_SqlTranslationErrorType = 2
103 )
104
105
106 var (
107 SqlTranslationError_SqlTranslationErrorType_name = map[int32]string{
108 0: "SQL_TRANSLATION_ERROR_TYPE_UNSPECIFIED",
109 1: "SQL_PARSE_ERROR",
110 2: "UNSUPPORTED_SQL_FUNCTION",
111 }
112 SqlTranslationError_SqlTranslationErrorType_value = map[string]int32{
113 "SQL_TRANSLATION_ERROR_TYPE_UNSPECIFIED": 0,
114 "SQL_PARSE_ERROR": 1,
115 "UNSUPPORTED_SQL_FUNCTION": 2,
116 }
117 )
118
119 func (x SqlTranslationError_SqlTranslationErrorType) Enum() *SqlTranslationError_SqlTranslationErrorType {
120 p := new(SqlTranslationError_SqlTranslationErrorType)
121 *p = x
122 return p
123 }
124
125 func (x SqlTranslationError_SqlTranslationErrorType) String() string {
126 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
127 }
128
129 func (SqlTranslationError_SqlTranslationErrorType) Descriptor() protoreflect.EnumDescriptor {
130 return file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_enumTypes[1].Descriptor()
131 }
132
133 func (SqlTranslationError_SqlTranslationErrorType) Type() protoreflect.EnumType {
134 return &file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_enumTypes[1]
135 }
136
137 func (x SqlTranslationError_SqlTranslationErrorType) Number() protoreflect.EnumNumber {
138 return protoreflect.EnumNumber(x)
139 }
140
141
142 func (SqlTranslationError_SqlTranslationErrorType) EnumDescriptor() ([]byte, []int) {
143 return file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_rawDescGZIP(), []int{3, 0}
144 }
145
146
147 type TranslateQueryRequest struct {
148 state protoimpl.MessageState
149 sizeCache protoimpl.SizeCache
150 unknownFields protoimpl.UnknownFields
151
152
153
154 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
155
156 SourceDialect TranslateQueryRequest_SqlTranslationSourceDialect `protobuf:"varint,2,opt,name=source_dialect,json=sourceDialect,proto3,enum=google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest_SqlTranslationSourceDialect" json:"source_dialect,omitempty"`
157
158 Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"`
159 }
160
161 func (x *TranslateQueryRequest) Reset() {
162 *x = TranslateQueryRequest{}
163 if protoimpl.UnsafeEnabled {
164 mi := &file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_msgTypes[0]
165 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
166 ms.StoreMessageInfo(mi)
167 }
168 }
169
170 func (x *TranslateQueryRequest) String() string {
171 return protoimpl.X.MessageStringOf(x)
172 }
173
174 func (*TranslateQueryRequest) ProtoMessage() {}
175
176 func (x *TranslateQueryRequest) ProtoReflect() protoreflect.Message {
177 mi := &file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_msgTypes[0]
178 if protoimpl.UnsafeEnabled && x != nil {
179 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
180 if ms.LoadMessageInfo() == nil {
181 ms.StoreMessageInfo(mi)
182 }
183 return ms
184 }
185 return mi.MessageOf(x)
186 }
187
188
189 func (*TranslateQueryRequest) Descriptor() ([]byte, []int) {
190 return file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_rawDescGZIP(), []int{0}
191 }
192
193 func (x *TranslateQueryRequest) GetParent() string {
194 if x != nil {
195 return x.Parent
196 }
197 return ""
198 }
199
200 func (x *TranslateQueryRequest) GetSourceDialect() TranslateQueryRequest_SqlTranslationSourceDialect {
201 if x != nil {
202 return x.SourceDialect
203 }
204 return TranslateQueryRequest_SQL_TRANSLATION_SOURCE_DIALECT_UNSPECIFIED
205 }
206
207 func (x *TranslateQueryRequest) GetQuery() string {
208 if x != nil {
209 return x.Query
210 }
211 return ""
212 }
213
214
215 type TranslateQueryResponse struct {
216 state protoimpl.MessageState
217 sizeCache protoimpl.SizeCache
218 unknownFields protoimpl.UnknownFields
219
220
221
222 TranslationJob string `protobuf:"bytes,4,opt,name=translation_job,json=translationJob,proto3" json:"translation_job,omitempty"`
223
224 TranslatedQuery string `protobuf:"bytes,1,opt,name=translated_query,json=translatedQuery,proto3" json:"translated_query,omitempty"`
225
226 Errors []*SqlTranslationError `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"`
227
228
229 Warnings []*SqlTranslationWarning `protobuf:"bytes,3,rep,name=warnings,proto3" json:"warnings,omitempty"`
230 }
231
232 func (x *TranslateQueryResponse) Reset() {
233 *x = TranslateQueryResponse{}
234 if protoimpl.UnsafeEnabled {
235 mi := &file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_msgTypes[1]
236 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
237 ms.StoreMessageInfo(mi)
238 }
239 }
240
241 func (x *TranslateQueryResponse) String() string {
242 return protoimpl.X.MessageStringOf(x)
243 }
244
245 func (*TranslateQueryResponse) ProtoMessage() {}
246
247 func (x *TranslateQueryResponse) ProtoReflect() protoreflect.Message {
248 mi := &file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_msgTypes[1]
249 if protoimpl.UnsafeEnabled && x != nil {
250 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
251 if ms.LoadMessageInfo() == nil {
252 ms.StoreMessageInfo(mi)
253 }
254 return ms
255 }
256 return mi.MessageOf(x)
257 }
258
259
260 func (*TranslateQueryResponse) Descriptor() ([]byte, []int) {
261 return file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_rawDescGZIP(), []int{1}
262 }
263
264 func (x *TranslateQueryResponse) GetTranslationJob() string {
265 if x != nil {
266 return x.TranslationJob
267 }
268 return ""
269 }
270
271 func (x *TranslateQueryResponse) GetTranslatedQuery() string {
272 if x != nil {
273 return x.TranslatedQuery
274 }
275 return ""
276 }
277
278 func (x *TranslateQueryResponse) GetErrors() []*SqlTranslationError {
279 if x != nil {
280 return x.Errors
281 }
282 return nil
283 }
284
285 func (x *TranslateQueryResponse) GetWarnings() []*SqlTranslationWarning {
286 if x != nil {
287 return x.Warnings
288 }
289 return nil
290 }
291
292
293
294 type SqlTranslationErrorDetail struct {
295 state protoimpl.MessageState
296 sizeCache protoimpl.SizeCache
297 unknownFields protoimpl.UnknownFields
298
299
300 Row int64 `protobuf:"varint,1,opt,name=row,proto3" json:"row,omitempty"`
301
302 Column int64 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"`
303
304 Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
305 }
306
307 func (x *SqlTranslationErrorDetail) Reset() {
308 *x = SqlTranslationErrorDetail{}
309 if protoimpl.UnsafeEnabled {
310 mi := &file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_msgTypes[2]
311 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
312 ms.StoreMessageInfo(mi)
313 }
314 }
315
316 func (x *SqlTranslationErrorDetail) String() string {
317 return protoimpl.X.MessageStringOf(x)
318 }
319
320 func (*SqlTranslationErrorDetail) ProtoMessage() {}
321
322 func (x *SqlTranslationErrorDetail) ProtoReflect() protoreflect.Message {
323 mi := &file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_msgTypes[2]
324 if protoimpl.UnsafeEnabled && x != nil {
325 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
326 if ms.LoadMessageInfo() == nil {
327 ms.StoreMessageInfo(mi)
328 }
329 return ms
330 }
331 return mi.MessageOf(x)
332 }
333
334
335 func (*SqlTranslationErrorDetail) Descriptor() ([]byte, []int) {
336 return file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_rawDescGZIP(), []int{2}
337 }
338
339 func (x *SqlTranslationErrorDetail) GetRow() int64 {
340 if x != nil {
341 return x.Row
342 }
343 return 0
344 }
345
346 func (x *SqlTranslationErrorDetail) GetColumn() int64 {
347 if x != nil {
348 return x.Column
349 }
350 return 0
351 }
352
353 func (x *SqlTranslationErrorDetail) GetMessage() string {
354 if x != nil {
355 return x.Message
356 }
357 return ""
358 }
359
360
361 type SqlTranslationError struct {
362 state protoimpl.MessageState
363 sizeCache protoimpl.SizeCache
364 unknownFields protoimpl.UnknownFields
365
366
367 ErrorType SqlTranslationError_SqlTranslationErrorType `protobuf:"varint,1,opt,name=error_type,json=errorType,proto3,enum=google.cloud.bigquery.migration.v2alpha.SqlTranslationError_SqlTranslationErrorType" json:"error_type,omitempty"`
368
369
370 ErrorDetail *SqlTranslationErrorDetail `protobuf:"bytes,2,opt,name=error_detail,json=errorDetail,proto3" json:"error_detail,omitempty"`
371 }
372
373 func (x *SqlTranslationError) Reset() {
374 *x = SqlTranslationError{}
375 if protoimpl.UnsafeEnabled {
376 mi := &file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_msgTypes[3]
377 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
378 ms.StoreMessageInfo(mi)
379 }
380 }
381
382 func (x *SqlTranslationError) String() string {
383 return protoimpl.X.MessageStringOf(x)
384 }
385
386 func (*SqlTranslationError) ProtoMessage() {}
387
388 func (x *SqlTranslationError) ProtoReflect() protoreflect.Message {
389 mi := &file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_msgTypes[3]
390 if protoimpl.UnsafeEnabled && x != nil {
391 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
392 if ms.LoadMessageInfo() == nil {
393 ms.StoreMessageInfo(mi)
394 }
395 return ms
396 }
397 return mi.MessageOf(x)
398 }
399
400
401 func (*SqlTranslationError) Descriptor() ([]byte, []int) {
402 return file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_rawDescGZIP(), []int{3}
403 }
404
405 func (x *SqlTranslationError) GetErrorType() SqlTranslationError_SqlTranslationErrorType {
406 if x != nil {
407 return x.ErrorType
408 }
409 return SqlTranslationError_SQL_TRANSLATION_ERROR_TYPE_UNSPECIFIED
410 }
411
412 func (x *SqlTranslationError) GetErrorDetail() *SqlTranslationErrorDetail {
413 if x != nil {
414 return x.ErrorDetail
415 }
416 return nil
417 }
418
419
420
421 type SqlTranslationWarning struct {
422 state protoimpl.MessageState
423 sizeCache protoimpl.SizeCache
424 unknownFields protoimpl.UnknownFields
425
426
427
428 WarningDetail *SqlTranslationErrorDetail `protobuf:"bytes,1,opt,name=warning_detail,json=warningDetail,proto3" json:"warning_detail,omitempty"`
429 }
430
431 func (x *SqlTranslationWarning) Reset() {
432 *x = SqlTranslationWarning{}
433 if protoimpl.UnsafeEnabled {
434 mi := &file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_msgTypes[4]
435 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
436 ms.StoreMessageInfo(mi)
437 }
438 }
439
440 func (x *SqlTranslationWarning) String() string {
441 return protoimpl.X.MessageStringOf(x)
442 }
443
444 func (*SqlTranslationWarning) ProtoMessage() {}
445
446 func (x *SqlTranslationWarning) ProtoReflect() protoreflect.Message {
447 mi := &file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_msgTypes[4]
448 if protoimpl.UnsafeEnabled && x != nil {
449 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
450 if ms.LoadMessageInfo() == nil {
451 ms.StoreMessageInfo(mi)
452 }
453 return ms
454 }
455 return mi.MessageOf(x)
456 }
457
458
459 func (*SqlTranslationWarning) Descriptor() ([]byte, []int) {
460 return file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_rawDescGZIP(), []int{4}
461 }
462
463 func (x *SqlTranslationWarning) GetWarningDetail() *SqlTranslationErrorDetail {
464 if x != nil {
465 return x.WarningDetail
466 }
467 return nil
468 }
469
470 var File_google_cloud_bigquery_migration_v2alpha_translation_service_proto protoreflect.FileDescriptor
471
472 var file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_rawDesc = []byte{
473 0x0a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62,
474 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f,
475 0x6e, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c,
476 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72,
477 0x6f, 0x74, 0x6f, 0x12, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
478 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61,
479 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x1c, 0x67, 0x6f,
480 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
481 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67,
482 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72,
483 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
484 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70,
485 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
486 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
487 0xdb, 0x02, 0x0a, 0x15, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65,
488 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x06, 0x70, 0x61, 0x72,
489 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41,
490 0x23, 0x0a, 0x21, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x67, 0x6f, 0x6f,
491 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4c, 0x6f, 0x63, 0x61,
492 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x86, 0x01, 0x0a,
493 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x69, 0x61, 0x6c, 0x65, 0x63, 0x74, 0x18,
494 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x5a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
495 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x6d, 0x69,
496 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e,
497 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65,
498 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x71, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61,
499 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x69, 0x61, 0x6c, 0x65, 0x63,
500 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x69,
501 0x61, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x19, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x03,
502 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79,
503 0x22, 0x5b, 0x0a, 0x1b, 0x53, 0x71, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69,
504 0x6f, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x69, 0x61, 0x6c, 0x65, 0x63, 0x74, 0x12,
505 0x2e, 0x0a, 0x2a, 0x53, 0x51, 0x4c, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x4c, 0x41, 0x54, 0x49,
506 0x4f, 0x4e, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x44, 0x49, 0x41, 0x4c, 0x45, 0x43,
507 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
508 0x0c, 0x0a, 0x08, 0x54, 0x45, 0x52, 0x41, 0x44, 0x41, 0x54, 0x41, 0x10, 0x01, 0x22, 0xa6, 0x02,
509 0x0a, 0x16, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79,
510 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x6e,
511 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x04, 0x20, 0x01, 0x28,
512 0x09, 0x42, 0x06, 0xe0, 0x41, 0x03, 0xe0, 0x41, 0x05, 0x52, 0x0e, 0x74, 0x72, 0x61, 0x6e, 0x73,
513 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x72, 0x61,
514 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20,
515 0x01, 0x28, 0x09, 0x52, 0x0f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x51,
516 0x75, 0x65, 0x72, 0x79, 0x12, 0x54, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x02,
517 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
518 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x6d, 0x69, 0x67,
519 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53,
520 0x71, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72,
521 0x6f, 0x72, 0x52, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x5a, 0x0a, 0x08, 0x77, 0x61,
522 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x67,
523 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71,
524 0x75, 0x65, 0x72, 0x79, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76,
525 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x71, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c,
526 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x77, 0x61,
527 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x5f, 0x0a, 0x19, 0x53, 0x71, 0x6c, 0x54, 0x72, 0x61,
528 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x65, 0x74,
529 0x61, 0x69, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
530 0x52, 0x03, 0x72, 0x6f, 0x77, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18,
531 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x18, 0x0a,
532 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
533 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xeb, 0x02, 0x0a, 0x13, 0x53, 0x71, 0x6c, 0x54,
534 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12,
535 0x73, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,
536 0x01, 0x28, 0x0e, 0x32, 0x54, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
537 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x6d, 0x69, 0x67, 0x72,
538 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x71,
539 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f,
540 0x72, 0x2e, 0x53, 0x71, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
541 0x45, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72,
542 0x54, 0x79, 0x70, 0x65, 0x12, 0x65, 0x0a, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x64, 0x65,
543 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x67, 0x6f, 0x6f,
544 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65,
545 0x72, 0x79, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x32, 0x61,
546 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x71, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74,
547 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x0b,
548 0x65, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0x78, 0x0a, 0x17, 0x53,
549 0x71, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72,
550 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x26, 0x53, 0x51, 0x4c, 0x5f, 0x54, 0x52,
551 0x41, 0x4e, 0x53, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f,
552 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
553 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x51, 0x4c, 0x5f, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f,
554 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x55, 0x4e, 0x53, 0x55, 0x50,
555 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x46, 0x55, 0x4e, 0x43, 0x54,
556 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x22, 0x82, 0x01, 0x0a, 0x15, 0x53, 0x71, 0x6c, 0x54, 0x72, 0x61,
557 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x12,
558 0x69, 0x0a, 0x0e, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69,
559 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
560 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e,
561 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68,
562 0x61, 0x2e, 0x53, 0x71, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
563 0x45, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x0d, 0x77, 0x61, 0x72,
564 0x6e, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x32, 0xe3, 0x02, 0x0a, 0x15, 0x53,
565 0x71, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72,
566 0x76, 0x69, 0x63, 0x65, 0x12, 0xf3, 0x01, 0x0a, 0x0e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61,
567 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
568 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e,
569 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68,
570 0x61, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79,
571 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
572 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e,
573 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68,
574 0x61, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79,
575 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x60, 0xda, 0x41, 0x1b, 0x70, 0x61, 0x72,
576 0x65, 0x6e, 0x74, 0x2c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x69, 0x61, 0x6c, 0x65,
577 0x63, 0x74, 0x2c, 0x71, 0x75, 0x65, 0x72, 0x79, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x3a, 0x01,
578 0x2a, 0x22, 0x37, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72,
579 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c,
580 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x74, 0x72, 0x61, 0x6e,
581 0x73, 0x6c, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x54, 0xca, 0x41, 0x20, 0x62,
582 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
583 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2,
584 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f,
585 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74,
586 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
587 0x42, 0xe7, 0x01, 0x0a, 0x2b, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
588 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x6d,
589 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61,
590 0x42, 0x17, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72,
591 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 0x63, 0x6c, 0x6f,
592 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f,
593 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74,
594 0x69, 0x6f, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x6d,
595 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x70, 0x62, 0x3b, 0x6d, 0x69, 0x67, 0x72, 0x61,
596 0x74, 0x69, 0x6f, 0x6e, 0x70, 0x62, 0xaa, 0x02, 0x27, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
597 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x4d,
598 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x32, 0x41, 0x6c, 0x70, 0x68, 0x61,
599 0xca, 0x02, 0x27, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c,
600 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x5c, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69,
601 0x6f, 0x6e, 0x5c, 0x56, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
602 0x6f, 0x33,
603 }
604
605 var (
606 file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_rawDescOnce sync.Once
607 file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_rawDescData = file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_rawDesc
608 )
609
610 func file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_rawDescGZIP() []byte {
611 file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_rawDescOnce.Do(func() {
612 file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_rawDescData)
613 })
614 return file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_rawDescData
615 }
616
617 var file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
618 var file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
619 var file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_goTypes = []interface{}{
620 (TranslateQueryRequest_SqlTranslationSourceDialect)(0),
621 (SqlTranslationError_SqlTranslationErrorType)(0),
622 (*TranslateQueryRequest)(nil),
623 (*TranslateQueryResponse)(nil),
624 (*SqlTranslationErrorDetail)(nil),
625 (*SqlTranslationError)(nil),
626 (*SqlTranslationWarning)(nil),
627 }
628 var file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_depIdxs = []int32{
629 0,
630 5,
631 6,
632 1,
633 4,
634 4,
635 2,
636 3,
637 7,
638 6,
639 6,
640 6,
641 0,
642 }
643
644 func init() { file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_init() }
645 func file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_init() {
646 if File_google_cloud_bigquery_migration_v2alpha_translation_service_proto != nil {
647 return
648 }
649 if !protoimpl.UnsafeEnabled {
650 file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
651 switch v := v.(*TranslateQueryRequest); i {
652 case 0:
653 return &v.state
654 case 1:
655 return &v.sizeCache
656 case 2:
657 return &v.unknownFields
658 default:
659 return nil
660 }
661 }
662 file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
663 switch v := v.(*TranslateQueryResponse); i {
664 case 0:
665 return &v.state
666 case 1:
667 return &v.sizeCache
668 case 2:
669 return &v.unknownFields
670 default:
671 return nil
672 }
673 }
674 file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
675 switch v := v.(*SqlTranslationErrorDetail); i {
676 case 0:
677 return &v.state
678 case 1:
679 return &v.sizeCache
680 case 2:
681 return &v.unknownFields
682 default:
683 return nil
684 }
685 }
686 file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
687 switch v := v.(*SqlTranslationError); i {
688 case 0:
689 return &v.state
690 case 1:
691 return &v.sizeCache
692 case 2:
693 return &v.unknownFields
694 default:
695 return nil
696 }
697 }
698 file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
699 switch v := v.(*SqlTranslationWarning); i {
700 case 0:
701 return &v.state
702 case 1:
703 return &v.sizeCache
704 case 2:
705 return &v.unknownFields
706 default:
707 return nil
708 }
709 }
710 }
711 type x struct{}
712 out := protoimpl.TypeBuilder{
713 File: protoimpl.DescBuilder{
714 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
715 RawDescriptor: file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_rawDesc,
716 NumEnums: 2,
717 NumMessages: 5,
718 NumExtensions: 0,
719 NumServices: 1,
720 },
721 GoTypes: file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_goTypes,
722 DependencyIndexes: file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_depIdxs,
723 EnumInfos: file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_enumTypes,
724 MessageInfos: file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_msgTypes,
725 }.Build()
726 File_google_cloud_bigquery_migration_v2alpha_translation_service_proto = out.File
727 file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_rawDesc = nil
728 file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_goTypes = nil
729 file_google_cloud_bigquery_migration_v2alpha_translation_service_proto_depIdxs = nil
730 }
731
732
733 var _ context.Context
734 var _ grpc.ClientConnInterface
735
736
737
738 const _ = grpc.SupportPackageIsVersion6
739
740
741
742
743 type SqlTranslationServiceClient interface {
744
745 TranslateQuery(ctx context.Context, in *TranslateQueryRequest, opts ...grpc.CallOption) (*TranslateQueryResponse, error)
746 }
747
748 type sqlTranslationServiceClient struct {
749 cc grpc.ClientConnInterface
750 }
751
752 func NewSqlTranslationServiceClient(cc grpc.ClientConnInterface) SqlTranslationServiceClient {
753 return &sqlTranslationServiceClient{cc}
754 }
755
756 func (c *sqlTranslationServiceClient) TranslateQuery(ctx context.Context, in *TranslateQueryRequest, opts ...grpc.CallOption) (*TranslateQueryResponse, error) {
757 out := new(TranslateQueryResponse)
758 err := c.cc.Invoke(ctx, "/google.cloud.bigquery.migration.v2alpha.SqlTranslationService/TranslateQuery", in, out, opts...)
759 if err != nil {
760 return nil, err
761 }
762 return out, nil
763 }
764
765
766 type SqlTranslationServiceServer interface {
767
768 TranslateQuery(context.Context, *TranslateQueryRequest) (*TranslateQueryResponse, error)
769 }
770
771
772 type UnimplementedSqlTranslationServiceServer struct {
773 }
774
775 func (*UnimplementedSqlTranslationServiceServer) TranslateQuery(context.Context, *TranslateQueryRequest) (*TranslateQueryResponse, error) {
776 return nil, status.Errorf(codes.Unimplemented, "method TranslateQuery not implemented")
777 }
778
779 func RegisterSqlTranslationServiceServer(s *grpc.Server, srv SqlTranslationServiceServer) {
780 s.RegisterService(&_SqlTranslationService_serviceDesc, srv)
781 }
782
783 func _SqlTranslationService_TranslateQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
784 in := new(TranslateQueryRequest)
785 if err := dec(in); err != nil {
786 return nil, err
787 }
788 if interceptor == nil {
789 return srv.(SqlTranslationServiceServer).TranslateQuery(ctx, in)
790 }
791 info := &grpc.UnaryServerInfo{
792 Server: srv,
793 FullMethod: "/google.cloud.bigquery.migration.v2alpha.SqlTranslationService/TranslateQuery",
794 }
795 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
796 return srv.(SqlTranslationServiceServer).TranslateQuery(ctx, req.(*TranslateQueryRequest))
797 }
798 return interceptor(ctx, in, info, handler)
799 }
800
801 var _SqlTranslationService_serviceDesc = grpc.ServiceDesc{
802 ServiceName: "google.cloud.bigquery.migration.v2alpha.SqlTranslationService",
803 HandlerType: (*SqlTranslationServiceServer)(nil),
804 Methods: []grpc.MethodDesc{
805 {
806 MethodName: "TranslateQuery",
807 Handler: _SqlTranslationService_TranslateQuery_Handler,
808 },
809 },
810 Streams: []grpc.StreamDesc{},
811 Metadata: "google/cloud/bigquery/migration/v2alpha/translation_service.proto",
812 }
813
View as plain text