1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package longrunningpb
22
23 import (
24 context "context"
25 reflect "reflect"
26 sync "sync"
27
28 _ "google.golang.org/genproto/googleapis/api/annotations"
29 status "google.golang.org/genproto/googleapis/rpc/status"
30 grpc "google.golang.org/grpc"
31 codes "google.golang.org/grpc/codes"
32 status1 "google.golang.org/grpc/status"
33 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
34 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
35 descriptorpb "google.golang.org/protobuf/types/descriptorpb"
36 anypb "google.golang.org/protobuf/types/known/anypb"
37 durationpb "google.golang.org/protobuf/types/known/durationpb"
38 emptypb "google.golang.org/protobuf/types/known/emptypb"
39 )
40
41 const (
42
43 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
44
45 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
46 )
47
48
49
50 type Operation struct {
51 state protoimpl.MessageState
52 sizeCache protoimpl.SizeCache
53 unknownFields protoimpl.UnknownFields
54
55
56
57
58 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
59
60
61
62
63 Metadata *anypb.Any `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
64
65
66
67 Done bool `protobuf:"varint,3,opt,name=done,proto3" json:"done,omitempty"`
68
69
70
71
72
73
74
75
76 Result isOperation_Result `protobuf_oneof:"result"`
77 }
78
79 func (x *Operation) Reset() {
80 *x = Operation{}
81 if protoimpl.UnsafeEnabled {
82 mi := &file_google_longrunning_operations_proto_msgTypes[0]
83 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
84 ms.StoreMessageInfo(mi)
85 }
86 }
87
88 func (x *Operation) String() string {
89 return protoimpl.X.MessageStringOf(x)
90 }
91
92 func (*Operation) ProtoMessage() {}
93
94 func (x *Operation) ProtoReflect() protoreflect.Message {
95 mi := &file_google_longrunning_operations_proto_msgTypes[0]
96 if protoimpl.UnsafeEnabled && x != nil {
97 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
98 if ms.LoadMessageInfo() == nil {
99 ms.StoreMessageInfo(mi)
100 }
101 return ms
102 }
103 return mi.MessageOf(x)
104 }
105
106
107 func (*Operation) Descriptor() ([]byte, []int) {
108 return file_google_longrunning_operations_proto_rawDescGZIP(), []int{0}
109 }
110
111 func (x *Operation) GetName() string {
112 if x != nil {
113 return x.Name
114 }
115 return ""
116 }
117
118 func (x *Operation) GetMetadata() *anypb.Any {
119 if x != nil {
120 return x.Metadata
121 }
122 return nil
123 }
124
125 func (x *Operation) GetDone() bool {
126 if x != nil {
127 return x.Done
128 }
129 return false
130 }
131
132 func (m *Operation) GetResult() isOperation_Result {
133 if m != nil {
134 return m.Result
135 }
136 return nil
137 }
138
139 func (x *Operation) GetError() *status.Status {
140 if x, ok := x.GetResult().(*Operation_Error); ok {
141 return x.Error
142 }
143 return nil
144 }
145
146 func (x *Operation) GetResponse() *anypb.Any {
147 if x, ok := x.GetResult().(*Operation_Response); ok {
148 return x.Response
149 }
150 return nil
151 }
152
153 type isOperation_Result interface {
154 isOperation_Result()
155 }
156
157 type Operation_Error struct {
158
159 Error *status.Status `protobuf:"bytes,4,opt,name=error,proto3,oneof"`
160 }
161
162 type Operation_Response struct {
163
164
165
166
167
168
169
170
171 Response *anypb.Any `protobuf:"bytes,5,opt,name=response,proto3,oneof"`
172 }
173
174 func (*Operation_Error) isOperation_Result() {}
175
176 func (*Operation_Response) isOperation_Result() {}
177
178
179 type GetOperationRequest struct {
180 state protoimpl.MessageState
181 sizeCache protoimpl.SizeCache
182 unknownFields protoimpl.UnknownFields
183
184
185 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
186 }
187
188 func (x *GetOperationRequest) Reset() {
189 *x = GetOperationRequest{}
190 if protoimpl.UnsafeEnabled {
191 mi := &file_google_longrunning_operations_proto_msgTypes[1]
192 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
193 ms.StoreMessageInfo(mi)
194 }
195 }
196
197 func (x *GetOperationRequest) String() string {
198 return protoimpl.X.MessageStringOf(x)
199 }
200
201 func (*GetOperationRequest) ProtoMessage() {}
202
203 func (x *GetOperationRequest) ProtoReflect() protoreflect.Message {
204 mi := &file_google_longrunning_operations_proto_msgTypes[1]
205 if protoimpl.UnsafeEnabled && x != nil {
206 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
207 if ms.LoadMessageInfo() == nil {
208 ms.StoreMessageInfo(mi)
209 }
210 return ms
211 }
212 return mi.MessageOf(x)
213 }
214
215
216 func (*GetOperationRequest) Descriptor() ([]byte, []int) {
217 return file_google_longrunning_operations_proto_rawDescGZIP(), []int{1}
218 }
219
220 func (x *GetOperationRequest) GetName() string {
221 if x != nil {
222 return x.Name
223 }
224 return ""
225 }
226
227
228 type ListOperationsRequest struct {
229 state protoimpl.MessageState
230 sizeCache protoimpl.SizeCache
231 unknownFields protoimpl.UnknownFields
232
233
234 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
235
236 Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
237
238 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
239
240 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
241 }
242
243 func (x *ListOperationsRequest) Reset() {
244 *x = ListOperationsRequest{}
245 if protoimpl.UnsafeEnabled {
246 mi := &file_google_longrunning_operations_proto_msgTypes[2]
247 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
248 ms.StoreMessageInfo(mi)
249 }
250 }
251
252 func (x *ListOperationsRequest) String() string {
253 return protoimpl.X.MessageStringOf(x)
254 }
255
256 func (*ListOperationsRequest) ProtoMessage() {}
257
258 func (x *ListOperationsRequest) ProtoReflect() protoreflect.Message {
259 mi := &file_google_longrunning_operations_proto_msgTypes[2]
260 if protoimpl.UnsafeEnabled && x != nil {
261 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
262 if ms.LoadMessageInfo() == nil {
263 ms.StoreMessageInfo(mi)
264 }
265 return ms
266 }
267 return mi.MessageOf(x)
268 }
269
270
271 func (*ListOperationsRequest) Descriptor() ([]byte, []int) {
272 return file_google_longrunning_operations_proto_rawDescGZIP(), []int{2}
273 }
274
275 func (x *ListOperationsRequest) GetName() string {
276 if x != nil {
277 return x.Name
278 }
279 return ""
280 }
281
282 func (x *ListOperationsRequest) GetFilter() string {
283 if x != nil {
284 return x.Filter
285 }
286 return ""
287 }
288
289 func (x *ListOperationsRequest) GetPageSize() int32 {
290 if x != nil {
291 return x.PageSize
292 }
293 return 0
294 }
295
296 func (x *ListOperationsRequest) GetPageToken() string {
297 if x != nil {
298 return x.PageToken
299 }
300 return ""
301 }
302
303
304 type ListOperationsResponse struct {
305 state protoimpl.MessageState
306 sizeCache protoimpl.SizeCache
307 unknownFields protoimpl.UnknownFields
308
309
310 Operations []*Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"`
311
312 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
313 }
314
315 func (x *ListOperationsResponse) Reset() {
316 *x = ListOperationsResponse{}
317 if protoimpl.UnsafeEnabled {
318 mi := &file_google_longrunning_operations_proto_msgTypes[3]
319 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
320 ms.StoreMessageInfo(mi)
321 }
322 }
323
324 func (x *ListOperationsResponse) String() string {
325 return protoimpl.X.MessageStringOf(x)
326 }
327
328 func (*ListOperationsResponse) ProtoMessage() {}
329
330 func (x *ListOperationsResponse) ProtoReflect() protoreflect.Message {
331 mi := &file_google_longrunning_operations_proto_msgTypes[3]
332 if protoimpl.UnsafeEnabled && x != nil {
333 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
334 if ms.LoadMessageInfo() == nil {
335 ms.StoreMessageInfo(mi)
336 }
337 return ms
338 }
339 return mi.MessageOf(x)
340 }
341
342
343 func (*ListOperationsResponse) Descriptor() ([]byte, []int) {
344 return file_google_longrunning_operations_proto_rawDescGZIP(), []int{3}
345 }
346
347 func (x *ListOperationsResponse) GetOperations() []*Operation {
348 if x != nil {
349 return x.Operations
350 }
351 return nil
352 }
353
354 func (x *ListOperationsResponse) GetNextPageToken() string {
355 if x != nil {
356 return x.NextPageToken
357 }
358 return ""
359 }
360
361
362 type CancelOperationRequest struct {
363 state protoimpl.MessageState
364 sizeCache protoimpl.SizeCache
365 unknownFields protoimpl.UnknownFields
366
367
368 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
369 }
370
371 func (x *CancelOperationRequest) Reset() {
372 *x = CancelOperationRequest{}
373 if protoimpl.UnsafeEnabled {
374 mi := &file_google_longrunning_operations_proto_msgTypes[4]
375 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
376 ms.StoreMessageInfo(mi)
377 }
378 }
379
380 func (x *CancelOperationRequest) String() string {
381 return protoimpl.X.MessageStringOf(x)
382 }
383
384 func (*CancelOperationRequest) ProtoMessage() {}
385
386 func (x *CancelOperationRequest) ProtoReflect() protoreflect.Message {
387 mi := &file_google_longrunning_operations_proto_msgTypes[4]
388 if protoimpl.UnsafeEnabled && x != nil {
389 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
390 if ms.LoadMessageInfo() == nil {
391 ms.StoreMessageInfo(mi)
392 }
393 return ms
394 }
395 return mi.MessageOf(x)
396 }
397
398
399 func (*CancelOperationRequest) Descriptor() ([]byte, []int) {
400 return file_google_longrunning_operations_proto_rawDescGZIP(), []int{4}
401 }
402
403 func (x *CancelOperationRequest) GetName() string {
404 if x != nil {
405 return x.Name
406 }
407 return ""
408 }
409
410
411 type DeleteOperationRequest struct {
412 state protoimpl.MessageState
413 sizeCache protoimpl.SizeCache
414 unknownFields protoimpl.UnknownFields
415
416
417 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
418 }
419
420 func (x *DeleteOperationRequest) Reset() {
421 *x = DeleteOperationRequest{}
422 if protoimpl.UnsafeEnabled {
423 mi := &file_google_longrunning_operations_proto_msgTypes[5]
424 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
425 ms.StoreMessageInfo(mi)
426 }
427 }
428
429 func (x *DeleteOperationRequest) String() string {
430 return protoimpl.X.MessageStringOf(x)
431 }
432
433 func (*DeleteOperationRequest) ProtoMessage() {}
434
435 func (x *DeleteOperationRequest) ProtoReflect() protoreflect.Message {
436 mi := &file_google_longrunning_operations_proto_msgTypes[5]
437 if protoimpl.UnsafeEnabled && x != nil {
438 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
439 if ms.LoadMessageInfo() == nil {
440 ms.StoreMessageInfo(mi)
441 }
442 return ms
443 }
444 return mi.MessageOf(x)
445 }
446
447
448 func (*DeleteOperationRequest) Descriptor() ([]byte, []int) {
449 return file_google_longrunning_operations_proto_rawDescGZIP(), []int{5}
450 }
451
452 func (x *DeleteOperationRequest) GetName() string {
453 if x != nil {
454 return x.Name
455 }
456 return ""
457 }
458
459
460 type WaitOperationRequest struct {
461 state protoimpl.MessageState
462 sizeCache protoimpl.SizeCache
463 unknownFields protoimpl.UnknownFields
464
465
466 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
467
468
469
470 Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
471 }
472
473 func (x *WaitOperationRequest) Reset() {
474 *x = WaitOperationRequest{}
475 if protoimpl.UnsafeEnabled {
476 mi := &file_google_longrunning_operations_proto_msgTypes[6]
477 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
478 ms.StoreMessageInfo(mi)
479 }
480 }
481
482 func (x *WaitOperationRequest) String() string {
483 return protoimpl.X.MessageStringOf(x)
484 }
485
486 func (*WaitOperationRequest) ProtoMessage() {}
487
488 func (x *WaitOperationRequest) ProtoReflect() protoreflect.Message {
489 mi := &file_google_longrunning_operations_proto_msgTypes[6]
490 if protoimpl.UnsafeEnabled && x != nil {
491 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
492 if ms.LoadMessageInfo() == nil {
493 ms.StoreMessageInfo(mi)
494 }
495 return ms
496 }
497 return mi.MessageOf(x)
498 }
499
500
501 func (*WaitOperationRequest) Descriptor() ([]byte, []int) {
502 return file_google_longrunning_operations_proto_rawDescGZIP(), []int{6}
503 }
504
505 func (x *WaitOperationRequest) GetName() string {
506 if x != nil {
507 return x.Name
508 }
509 return ""
510 }
511
512 func (x *WaitOperationRequest) GetTimeout() *durationpb.Duration {
513 if x != nil {
514 return x.Timeout
515 }
516 return nil
517 }
518
519
520
521
522
523
524
525
526
527
528
529
530 type OperationInfo struct {
531 state protoimpl.MessageState
532 sizeCache protoimpl.SizeCache
533 unknownFields protoimpl.UnknownFields
534
535
536
537
538
539
540
541
542
543 ResponseType string `protobuf:"bytes,1,opt,name=response_type,json=responseType,proto3" json:"response_type,omitempty"`
544
545
546
547
548
549
550
551 MetadataType string `protobuf:"bytes,2,opt,name=metadata_type,json=metadataType,proto3" json:"metadata_type,omitempty"`
552 }
553
554 func (x *OperationInfo) Reset() {
555 *x = OperationInfo{}
556 if protoimpl.UnsafeEnabled {
557 mi := &file_google_longrunning_operations_proto_msgTypes[7]
558 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
559 ms.StoreMessageInfo(mi)
560 }
561 }
562
563 func (x *OperationInfo) String() string {
564 return protoimpl.X.MessageStringOf(x)
565 }
566
567 func (*OperationInfo) ProtoMessage() {}
568
569 func (x *OperationInfo) ProtoReflect() protoreflect.Message {
570 mi := &file_google_longrunning_operations_proto_msgTypes[7]
571 if protoimpl.UnsafeEnabled && x != nil {
572 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
573 if ms.LoadMessageInfo() == nil {
574 ms.StoreMessageInfo(mi)
575 }
576 return ms
577 }
578 return mi.MessageOf(x)
579 }
580
581
582 func (*OperationInfo) Descriptor() ([]byte, []int) {
583 return file_google_longrunning_operations_proto_rawDescGZIP(), []int{7}
584 }
585
586 func (x *OperationInfo) GetResponseType() string {
587 if x != nil {
588 return x.ResponseType
589 }
590 return ""
591 }
592
593 func (x *OperationInfo) GetMetadataType() string {
594 if x != nil {
595 return x.MetadataType
596 }
597 return ""
598 }
599
600 var file_google_longrunning_operations_proto_extTypes = []protoimpl.ExtensionInfo{
601 {
602 ExtendedType: (*descriptorpb.MethodOptions)(nil),
603 ExtensionType: (*OperationInfo)(nil),
604 Field: 1049,
605 Name: "google.longrunning.operation_info",
606 Tag: "bytes,1049,opt,name=operation_info",
607 Filename: "google/longrunning/operations.proto",
608 },
609 }
610
611
612 var (
613
614
615
616
617
618
619
620
621 E_OperationInfo = &file_google_longrunning_operations_proto_extTypes[0]
622 )
623
624 var File_google_longrunning_operations_proto protoreflect.FileDescriptor
625
626 var file_google_longrunning_operations_proto_rawDesc = []byte{
627 0x0a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e,
628 0x6e, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
629 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f,
630 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
631 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
632 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
633 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
634 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
635 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f,
636 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72,
637 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f,
638 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70,
639 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
640 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
641 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
642 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72,
643 0x6f, 0x74, 0x6f, 0x22, 0xcf, 0x01, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
644 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
645 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
646 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
647 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x08, 0x6d,
648 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18,
649 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x65,
650 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f,
651 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x00,
652 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x32, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f,
653 0x6e, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
654 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x48,
655 0x00, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x72,
656 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x29, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4f, 0x70, 0x65, 0x72,
657 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04,
658 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
659 0x22, 0x7f, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
660 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
661 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a,
662 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66,
663 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69,
664 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69,
665 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
666 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65,
667 0x6e, 0x22, 0x7f, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
668 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0a, 0x6f,
669 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
670 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e,
671 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a,
672 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65,
673 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20,
674 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b,
675 0x65, 0x6e, 0x22, 0x2c, 0x0a, 0x16, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72,
676 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04,
677 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
678 0x22, 0x2c, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74,
679 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
680 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x5f,
681 0x0a, 0x14, 0x57, 0x61, 0x69, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
682 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
683 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69,
684 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f,
685 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75,
686 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x22,
687 0x59, 0x0a, 0x0d, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f,
688 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74, 0x79, 0x70,
689 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
690 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
691 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x65,
692 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x32, 0xaa, 0x05, 0x0a, 0x0a, 0x4f,
693 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x94, 0x01, 0x0a, 0x0e, 0x4c, 0x69,
694 0x73, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x29, 0x2e, 0x67,
695 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e,
696 0x67, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
697 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
698 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4c, 0x69, 0x73,
699 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
700 0x6e, 0x73, 0x65, 0x22, 0x2b, 0xda, 0x41, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x66, 0x69, 0x6c,
701 0x74, 0x65, 0x72, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
702 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x7d,
703 0x12, 0x7f, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
704 0x12, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75,
705 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
706 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
707 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f,
708 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x27, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d,
709 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,
710 0x6d, 0x65, 0x3d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2a,
711 0x7d, 0x12, 0x7e, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61,
712 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f,
713 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
714 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
715 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
716 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x27, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d,
717 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x2a, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,
718 0x6d, 0x65, 0x3d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2a,
719 0x7d, 0x12, 0x88, 0x01, 0x0a, 0x0f, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72,
720 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c,
721 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65,
722 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
723 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
724 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x31, 0xda, 0x41, 0x04, 0x6e, 0x61,
725 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, 0x76, 0x31,
726 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
727 0x73, 0x2f, 0x2a, 0x2a, 0x7d, 0x3a, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x5a, 0x0a, 0x0d,
728 0x57, 0x61, 0x69, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x2e,
729 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69,
730 0x6e, 0x67, 0x2e, 0x57, 0x61, 0x69, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
731 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
732 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65,
733 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x1a, 0x1d, 0xca, 0x41, 0x1a, 0x6c, 0x6f, 0x6e,
734 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
735 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x3a, 0x69, 0x0a, 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61,
736 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
737 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68,
738 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x99, 0x08, 0x20, 0x01, 0x28, 0x0b,
739 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75,
740 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49,
741 0x6e, 0x66, 0x6f, 0x52, 0x0d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e,
742 0x66, 0x6f, 0x42, 0x9d, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
743 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x42, 0x0f, 0x4f,
744 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
745 0x5a, 0x43, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
746 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e,
747 0x67, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x67, 0x65, 0x6e, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75,
748 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x3b, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e,
749 0x69, 0x6e, 0x67, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xaa, 0x02, 0x12, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
750 0x65, 0x2e, 0x4c, 0x6f, 0x6e, 0x67, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0xca, 0x02, 0x12,
751 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x4c, 0x6f, 0x6e, 0x67, 0x52, 0x75, 0x6e, 0x6e, 0x69,
752 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
753 }
754
755 var (
756 file_google_longrunning_operations_proto_rawDescOnce sync.Once
757 file_google_longrunning_operations_proto_rawDescData = file_google_longrunning_operations_proto_rawDesc
758 )
759
760 func file_google_longrunning_operations_proto_rawDescGZIP() []byte {
761 file_google_longrunning_operations_proto_rawDescOnce.Do(func() {
762 file_google_longrunning_operations_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_longrunning_operations_proto_rawDescData)
763 })
764 return file_google_longrunning_operations_proto_rawDescData
765 }
766
767 var file_google_longrunning_operations_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
768 var file_google_longrunning_operations_proto_goTypes = []interface{}{
769 (*Operation)(nil),
770 (*GetOperationRequest)(nil),
771 (*ListOperationsRequest)(nil),
772 (*ListOperationsResponse)(nil),
773 (*CancelOperationRequest)(nil),
774 (*DeleteOperationRequest)(nil),
775 (*WaitOperationRequest)(nil),
776 (*OperationInfo)(nil),
777 (*anypb.Any)(nil),
778 (*status.Status)(nil),
779 (*durationpb.Duration)(nil),
780 (*descriptorpb.MethodOptions)(nil),
781 (*emptypb.Empty)(nil),
782 }
783 var file_google_longrunning_operations_proto_depIdxs = []int32{
784 8,
785 9,
786 8,
787 0,
788 10,
789 11,
790 7,
791 2,
792 1,
793 5,
794 4,
795 6,
796 3,
797 0,
798 12,
799 12,
800 0,
801 12,
802 7,
803 6,
804 5,
805 0,
806 }
807
808 func init() { file_google_longrunning_operations_proto_init() }
809 func file_google_longrunning_operations_proto_init() {
810 if File_google_longrunning_operations_proto != nil {
811 return
812 }
813 if !protoimpl.UnsafeEnabled {
814 file_google_longrunning_operations_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
815 switch v := v.(*Operation); i {
816 case 0:
817 return &v.state
818 case 1:
819 return &v.sizeCache
820 case 2:
821 return &v.unknownFields
822 default:
823 return nil
824 }
825 }
826 file_google_longrunning_operations_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
827 switch v := v.(*GetOperationRequest); i {
828 case 0:
829 return &v.state
830 case 1:
831 return &v.sizeCache
832 case 2:
833 return &v.unknownFields
834 default:
835 return nil
836 }
837 }
838 file_google_longrunning_operations_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
839 switch v := v.(*ListOperationsRequest); i {
840 case 0:
841 return &v.state
842 case 1:
843 return &v.sizeCache
844 case 2:
845 return &v.unknownFields
846 default:
847 return nil
848 }
849 }
850 file_google_longrunning_operations_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
851 switch v := v.(*ListOperationsResponse); i {
852 case 0:
853 return &v.state
854 case 1:
855 return &v.sizeCache
856 case 2:
857 return &v.unknownFields
858 default:
859 return nil
860 }
861 }
862 file_google_longrunning_operations_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
863 switch v := v.(*CancelOperationRequest); i {
864 case 0:
865 return &v.state
866 case 1:
867 return &v.sizeCache
868 case 2:
869 return &v.unknownFields
870 default:
871 return nil
872 }
873 }
874 file_google_longrunning_operations_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
875 switch v := v.(*DeleteOperationRequest); i {
876 case 0:
877 return &v.state
878 case 1:
879 return &v.sizeCache
880 case 2:
881 return &v.unknownFields
882 default:
883 return nil
884 }
885 }
886 file_google_longrunning_operations_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
887 switch v := v.(*WaitOperationRequest); i {
888 case 0:
889 return &v.state
890 case 1:
891 return &v.sizeCache
892 case 2:
893 return &v.unknownFields
894 default:
895 return nil
896 }
897 }
898 file_google_longrunning_operations_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
899 switch v := v.(*OperationInfo); i {
900 case 0:
901 return &v.state
902 case 1:
903 return &v.sizeCache
904 case 2:
905 return &v.unknownFields
906 default:
907 return nil
908 }
909 }
910 }
911 file_google_longrunning_operations_proto_msgTypes[0].OneofWrappers = []interface{}{
912 (*Operation_Error)(nil),
913 (*Operation_Response)(nil),
914 }
915 type x struct{}
916 out := protoimpl.TypeBuilder{
917 File: protoimpl.DescBuilder{
918 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
919 RawDescriptor: file_google_longrunning_operations_proto_rawDesc,
920 NumEnums: 0,
921 NumMessages: 8,
922 NumExtensions: 1,
923 NumServices: 1,
924 },
925 GoTypes: file_google_longrunning_operations_proto_goTypes,
926 DependencyIndexes: file_google_longrunning_operations_proto_depIdxs,
927 MessageInfos: file_google_longrunning_operations_proto_msgTypes,
928 ExtensionInfos: file_google_longrunning_operations_proto_extTypes,
929 }.Build()
930 File_google_longrunning_operations_proto = out.File
931 file_google_longrunning_operations_proto_rawDesc = nil
932 file_google_longrunning_operations_proto_goTypes = nil
933 file_google_longrunning_operations_proto_depIdxs = nil
934 }
935
936
937 var _ context.Context
938 var _ grpc.ClientConnInterface
939
940
941
942 const _ = grpc.SupportPackageIsVersion6
943
944
945
946
947 type OperationsClient interface {
948
949
950
951
952
953
954
955
956
957
958 ListOperations(ctx context.Context, in *ListOperationsRequest, opts ...grpc.CallOption) (*ListOperationsResponse, error)
959
960
961
962 GetOperation(ctx context.Context, in *GetOperationRequest, opts ...grpc.CallOption) (*Operation, error)
963
964
965
966
967 DeleteOperation(ctx context.Context, in *DeleteOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
968
969
970
971
972
973
974
975
976
977
978 CancelOperation(ctx context.Context, in *CancelOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
979
980
981
982
983
984
985
986
987
988 WaitOperation(ctx context.Context, in *WaitOperationRequest, opts ...grpc.CallOption) (*Operation, error)
989 }
990
991 type operationsClient struct {
992 cc grpc.ClientConnInterface
993 }
994
995 func NewOperationsClient(cc grpc.ClientConnInterface) OperationsClient {
996 return &operationsClient{cc}
997 }
998
999 func (c *operationsClient) ListOperations(ctx context.Context, in *ListOperationsRequest, opts ...grpc.CallOption) (*ListOperationsResponse, error) {
1000 out := new(ListOperationsResponse)
1001 err := c.cc.Invoke(ctx, "/google.longrunning.Operations/ListOperations", in, out, opts...)
1002 if err != nil {
1003 return nil, err
1004 }
1005 return out, nil
1006 }
1007
1008 func (c *operationsClient) GetOperation(ctx context.Context, in *GetOperationRequest, opts ...grpc.CallOption) (*Operation, error) {
1009 out := new(Operation)
1010 err := c.cc.Invoke(ctx, "/google.longrunning.Operations/GetOperation", in, out, opts...)
1011 if err != nil {
1012 return nil, err
1013 }
1014 return out, nil
1015 }
1016
1017 func (c *operationsClient) DeleteOperation(ctx context.Context, in *DeleteOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
1018 out := new(emptypb.Empty)
1019 err := c.cc.Invoke(ctx, "/google.longrunning.Operations/DeleteOperation", in, out, opts...)
1020 if err != nil {
1021 return nil, err
1022 }
1023 return out, nil
1024 }
1025
1026 func (c *operationsClient) CancelOperation(ctx context.Context, in *CancelOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
1027 out := new(emptypb.Empty)
1028 err := c.cc.Invoke(ctx, "/google.longrunning.Operations/CancelOperation", in, out, opts...)
1029 if err != nil {
1030 return nil, err
1031 }
1032 return out, nil
1033 }
1034
1035 func (c *operationsClient) WaitOperation(ctx context.Context, in *WaitOperationRequest, opts ...grpc.CallOption) (*Operation, error) {
1036 out := new(Operation)
1037 err := c.cc.Invoke(ctx, "/google.longrunning.Operations/WaitOperation", in, out, opts...)
1038 if err != nil {
1039 return nil, err
1040 }
1041 return out, nil
1042 }
1043
1044
1045 type OperationsServer interface {
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056 ListOperations(context.Context, *ListOperationsRequest) (*ListOperationsResponse, error)
1057
1058
1059
1060 GetOperation(context.Context, *GetOperationRequest) (*Operation, error)
1061
1062
1063
1064
1065 DeleteOperation(context.Context, *DeleteOperationRequest) (*emptypb.Empty, error)
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076 CancelOperation(context.Context, *CancelOperationRequest) (*emptypb.Empty, error)
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086 WaitOperation(context.Context, *WaitOperationRequest) (*Operation, error)
1087 }
1088
1089
1090 type UnimplementedOperationsServer struct {
1091 }
1092
1093 func (*UnimplementedOperationsServer) ListOperations(context.Context, *ListOperationsRequest) (*ListOperationsResponse, error) {
1094 return nil, status1.Errorf(codes.Unimplemented, "method ListOperations not implemented")
1095 }
1096 func (*UnimplementedOperationsServer) GetOperation(context.Context, *GetOperationRequest) (*Operation, error) {
1097 return nil, status1.Errorf(codes.Unimplemented, "method GetOperation not implemented")
1098 }
1099 func (*UnimplementedOperationsServer) DeleteOperation(context.Context, *DeleteOperationRequest) (*emptypb.Empty, error) {
1100 return nil, status1.Errorf(codes.Unimplemented, "method DeleteOperation not implemented")
1101 }
1102 func (*UnimplementedOperationsServer) CancelOperation(context.Context, *CancelOperationRequest) (*emptypb.Empty, error) {
1103 return nil, status1.Errorf(codes.Unimplemented, "method CancelOperation not implemented")
1104 }
1105 func (*UnimplementedOperationsServer) WaitOperation(context.Context, *WaitOperationRequest) (*Operation, error) {
1106 return nil, status1.Errorf(codes.Unimplemented, "method WaitOperation not implemented")
1107 }
1108
1109 func RegisterOperationsServer(s *grpc.Server, srv OperationsServer) {
1110 s.RegisterService(&_Operations_serviceDesc, srv)
1111 }
1112
1113 func _Operations_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1114 in := new(ListOperationsRequest)
1115 if err := dec(in); err != nil {
1116 return nil, err
1117 }
1118 if interceptor == nil {
1119 return srv.(OperationsServer).ListOperations(ctx, in)
1120 }
1121 info := &grpc.UnaryServerInfo{
1122 Server: srv,
1123 FullMethod: "/google.longrunning.Operations/ListOperations",
1124 }
1125 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1126 return srv.(OperationsServer).ListOperations(ctx, req.(*ListOperationsRequest))
1127 }
1128 return interceptor(ctx, in, info, handler)
1129 }
1130
1131 func _Operations_GetOperation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1132 in := new(GetOperationRequest)
1133 if err := dec(in); err != nil {
1134 return nil, err
1135 }
1136 if interceptor == nil {
1137 return srv.(OperationsServer).GetOperation(ctx, in)
1138 }
1139 info := &grpc.UnaryServerInfo{
1140 Server: srv,
1141 FullMethod: "/google.longrunning.Operations/GetOperation",
1142 }
1143 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1144 return srv.(OperationsServer).GetOperation(ctx, req.(*GetOperationRequest))
1145 }
1146 return interceptor(ctx, in, info, handler)
1147 }
1148
1149 func _Operations_DeleteOperation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1150 in := new(DeleteOperationRequest)
1151 if err := dec(in); err != nil {
1152 return nil, err
1153 }
1154 if interceptor == nil {
1155 return srv.(OperationsServer).DeleteOperation(ctx, in)
1156 }
1157 info := &grpc.UnaryServerInfo{
1158 Server: srv,
1159 FullMethod: "/google.longrunning.Operations/DeleteOperation",
1160 }
1161 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1162 return srv.(OperationsServer).DeleteOperation(ctx, req.(*DeleteOperationRequest))
1163 }
1164 return interceptor(ctx, in, info, handler)
1165 }
1166
1167 func _Operations_CancelOperation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1168 in := new(CancelOperationRequest)
1169 if err := dec(in); err != nil {
1170 return nil, err
1171 }
1172 if interceptor == nil {
1173 return srv.(OperationsServer).CancelOperation(ctx, in)
1174 }
1175 info := &grpc.UnaryServerInfo{
1176 Server: srv,
1177 FullMethod: "/google.longrunning.Operations/CancelOperation",
1178 }
1179 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1180 return srv.(OperationsServer).CancelOperation(ctx, req.(*CancelOperationRequest))
1181 }
1182 return interceptor(ctx, in, info, handler)
1183 }
1184
1185 func _Operations_WaitOperation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1186 in := new(WaitOperationRequest)
1187 if err := dec(in); err != nil {
1188 return nil, err
1189 }
1190 if interceptor == nil {
1191 return srv.(OperationsServer).WaitOperation(ctx, in)
1192 }
1193 info := &grpc.UnaryServerInfo{
1194 Server: srv,
1195 FullMethod: "/google.longrunning.Operations/WaitOperation",
1196 }
1197 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1198 return srv.(OperationsServer).WaitOperation(ctx, req.(*WaitOperationRequest))
1199 }
1200 return interceptor(ctx, in, info, handler)
1201 }
1202
1203 var _Operations_serviceDesc = grpc.ServiceDesc{
1204 ServiceName: "google.longrunning.Operations",
1205 HandlerType: (*OperationsServer)(nil),
1206 Methods: []grpc.MethodDesc{
1207 {
1208 MethodName: "ListOperations",
1209 Handler: _Operations_ListOperations_Handler,
1210 },
1211 {
1212 MethodName: "GetOperation",
1213 Handler: _Operations_GetOperation_Handler,
1214 },
1215 {
1216 MethodName: "DeleteOperation",
1217 Handler: _Operations_DeleteOperation_Handler,
1218 },
1219 {
1220 MethodName: "CancelOperation",
1221 Handler: _Operations_CancelOperation_Handler,
1222 },
1223 {
1224 MethodName: "WaitOperation",
1225 Handler: _Operations_WaitOperation_Handler,
1226 },
1227 },
1228 Streams: []grpc.StreamDesc{},
1229 Metadata: "google/longrunning/operations.proto",
1230 }
1231
View as plain text