-
Notifications
You must be signed in to change notification settings - Fork 185
/
transfer.pb.go
814 lines (738 loc) · 35.3 KB
/
transfer.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/storagetransfer/v1/transfer.proto
package storagetransfer
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
_ "google.golang.org/genproto/googleapis/api/annotations"
field_mask "google.golang.org/genproto/protobuf/field_mask"
grpc "google.golang.org/grpc"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Request passed to GetGoogleServiceAccount.
type GetGoogleServiceAccountRequest struct {
// The ID of the Google Cloud Platform Console project that the Google service
// account is associated with.
// Required.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetGoogleServiceAccountRequest) Reset() { *m = GetGoogleServiceAccountRequest{} }
func (m *GetGoogleServiceAccountRequest) String() string { return proto.CompactTextString(m) }
func (*GetGoogleServiceAccountRequest) ProtoMessage() {}
func (*GetGoogleServiceAccountRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9e3f640a3e036c8f, []int{0}
}
func (m *GetGoogleServiceAccountRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetGoogleServiceAccountRequest.Unmarshal(m, b)
}
func (m *GetGoogleServiceAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetGoogleServiceAccountRequest.Marshal(b, m, deterministic)
}
func (m *GetGoogleServiceAccountRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetGoogleServiceAccountRequest.Merge(m, src)
}
func (m *GetGoogleServiceAccountRequest) XXX_Size() int {
return xxx_messageInfo_GetGoogleServiceAccountRequest.Size(m)
}
func (m *GetGoogleServiceAccountRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetGoogleServiceAccountRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetGoogleServiceAccountRequest proto.InternalMessageInfo
func (m *GetGoogleServiceAccountRequest) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
// Request passed to CreateTransferJob.
type CreateTransferJobRequest struct {
// The job to create.
// Required.
TransferJob *TransferJob `protobuf:"bytes,1,opt,name=transfer_job,json=transferJob,proto3" json:"transfer_job,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateTransferJobRequest) Reset() { *m = CreateTransferJobRequest{} }
func (m *CreateTransferJobRequest) String() string { return proto.CompactTextString(m) }
func (*CreateTransferJobRequest) ProtoMessage() {}
func (*CreateTransferJobRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9e3f640a3e036c8f, []int{1}
}
func (m *CreateTransferJobRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateTransferJobRequest.Unmarshal(m, b)
}
func (m *CreateTransferJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateTransferJobRequest.Marshal(b, m, deterministic)
}
func (m *CreateTransferJobRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateTransferJobRequest.Merge(m, src)
}
func (m *CreateTransferJobRequest) XXX_Size() int {
return xxx_messageInfo_CreateTransferJobRequest.Size(m)
}
func (m *CreateTransferJobRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateTransferJobRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateTransferJobRequest proto.InternalMessageInfo
func (m *CreateTransferJobRequest) GetTransferJob() *TransferJob {
if m != nil {
return m.TransferJob
}
return nil
}
// Request passed to UpdateTransferJob.
type UpdateTransferJobRequest struct {
// The name of job to update.
// Required.
JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"`
// The ID of the Google Cloud Platform Console project that owns the job.
// Required.
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// The job to update. `transferJob` is expected to specify only three fields:
// `description`, `transferSpec`, and `status`. An UpdateTransferJobRequest
// that specifies other fields will be rejected with an error
// `INVALID_ARGUMENT`.
// Required.
TransferJob *TransferJob `protobuf:"bytes,3,opt,name=transfer_job,json=transferJob,proto3" json:"transfer_job,omitempty"`
// The field mask of the fields in `transferJob` that are to be updated in
// this request. Fields in `transferJob` that can be updated are:
// `description`, `transferSpec`, and `status`. To update the `transferSpec`
// of the job, a complete transfer specification has to be provided. An
// incomplete specification which misses any required fields will be rejected
// with the error `INVALID_ARGUMENT`.
UpdateTransferJobFieldMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=update_transfer_job_field_mask,json=updateTransferJobFieldMask,proto3" json:"update_transfer_job_field_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateTransferJobRequest) Reset() { *m = UpdateTransferJobRequest{} }
func (m *UpdateTransferJobRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateTransferJobRequest) ProtoMessage() {}
func (*UpdateTransferJobRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9e3f640a3e036c8f, []int{2}
}
func (m *UpdateTransferJobRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateTransferJobRequest.Unmarshal(m, b)
}
func (m *UpdateTransferJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateTransferJobRequest.Marshal(b, m, deterministic)
}
func (m *UpdateTransferJobRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateTransferJobRequest.Merge(m, src)
}
func (m *UpdateTransferJobRequest) XXX_Size() int {
return xxx_messageInfo_UpdateTransferJobRequest.Size(m)
}
func (m *UpdateTransferJobRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateTransferJobRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateTransferJobRequest proto.InternalMessageInfo
func (m *UpdateTransferJobRequest) GetJobName() string {
if m != nil {
return m.JobName
}
return ""
}
func (m *UpdateTransferJobRequest) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *UpdateTransferJobRequest) GetTransferJob() *TransferJob {
if m != nil {
return m.TransferJob
}
return nil
}
func (m *UpdateTransferJobRequest) GetUpdateTransferJobFieldMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateTransferJobFieldMask
}
return nil
}
// Request passed to GetTransferJob.
type GetTransferJobRequest struct {
// The job to get.
// Required.
JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"`
// The ID of the Google Cloud Platform Console project that owns the job.
// Required.
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetTransferJobRequest) Reset() { *m = GetTransferJobRequest{} }
func (m *GetTransferJobRequest) String() string { return proto.CompactTextString(m) }
func (*GetTransferJobRequest) ProtoMessage() {}
func (*GetTransferJobRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9e3f640a3e036c8f, []int{3}
}
func (m *GetTransferJobRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetTransferJobRequest.Unmarshal(m, b)
}
func (m *GetTransferJobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetTransferJobRequest.Marshal(b, m, deterministic)
}
func (m *GetTransferJobRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetTransferJobRequest.Merge(m, src)
}
func (m *GetTransferJobRequest) XXX_Size() int {
return xxx_messageInfo_GetTransferJobRequest.Size(m)
}
func (m *GetTransferJobRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetTransferJobRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetTransferJobRequest proto.InternalMessageInfo
func (m *GetTransferJobRequest) GetJobName() string {
if m != nil {
return m.JobName
}
return ""
}
func (m *GetTransferJobRequest) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
// `project_id`, `job_names`, and `job_statuses` are query parameters that can
// be specified when listing transfer jobs.
type ListTransferJobsRequest struct {
// A list of query parameters specified as JSON text in the form of
// {"project_id":"my_project_id",
// "job_names":["jobid1","jobid2",...],
// "job_statuses":["status1","status2",...]}.
// Since `job_names` and `job_statuses` support multiple values, their values
// must be specified with array notation. `project_id` is required. `job_names`
// and `job_statuses` are optional. The valid values for `job_statuses` are
// case-insensitive: `ENABLED`, `DISABLED`, and `DELETED`.
Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
// The list page size. The max allowed value is 256.
PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The list page token.
PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListTransferJobsRequest) Reset() { *m = ListTransferJobsRequest{} }
func (m *ListTransferJobsRequest) String() string { return proto.CompactTextString(m) }
func (*ListTransferJobsRequest) ProtoMessage() {}
func (*ListTransferJobsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9e3f640a3e036c8f, []int{4}
}
func (m *ListTransferJobsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListTransferJobsRequest.Unmarshal(m, b)
}
func (m *ListTransferJobsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListTransferJobsRequest.Marshal(b, m, deterministic)
}
func (m *ListTransferJobsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListTransferJobsRequest.Merge(m, src)
}
func (m *ListTransferJobsRequest) XXX_Size() int {
return xxx_messageInfo_ListTransferJobsRequest.Size(m)
}
func (m *ListTransferJobsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListTransferJobsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListTransferJobsRequest proto.InternalMessageInfo
func (m *ListTransferJobsRequest) GetFilter() string {
if m != nil {
return m.Filter
}
return ""
}
func (m *ListTransferJobsRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListTransferJobsRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
// Response from ListTransferJobs.
type ListTransferJobsResponse struct {
// A list of transfer jobs.
TransferJobs []*TransferJob `protobuf:"bytes,1,rep,name=transfer_jobs,json=transferJobs,proto3" json:"transfer_jobs,omitempty"`
// The list next page token.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListTransferJobsResponse) Reset() { *m = ListTransferJobsResponse{} }
func (m *ListTransferJobsResponse) String() string { return proto.CompactTextString(m) }
func (*ListTransferJobsResponse) ProtoMessage() {}
func (*ListTransferJobsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9e3f640a3e036c8f, []int{5}
}
func (m *ListTransferJobsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListTransferJobsResponse.Unmarshal(m, b)
}
func (m *ListTransferJobsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListTransferJobsResponse.Marshal(b, m, deterministic)
}
func (m *ListTransferJobsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListTransferJobsResponse.Merge(m, src)
}
func (m *ListTransferJobsResponse) XXX_Size() int {
return xxx_messageInfo_ListTransferJobsResponse.Size(m)
}
func (m *ListTransferJobsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListTransferJobsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListTransferJobsResponse proto.InternalMessageInfo
func (m *ListTransferJobsResponse) GetTransferJobs() []*TransferJob {
if m != nil {
return m.TransferJobs
}
return nil
}
func (m *ListTransferJobsResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
// Request passed to PauseTransferOperation.
type PauseTransferOperationRequest struct {
// The name of the transfer operation.
// Required.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PauseTransferOperationRequest) Reset() { *m = PauseTransferOperationRequest{} }
func (m *PauseTransferOperationRequest) String() string { return proto.CompactTextString(m) }
func (*PauseTransferOperationRequest) ProtoMessage() {}
func (*PauseTransferOperationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9e3f640a3e036c8f, []int{6}
}
func (m *PauseTransferOperationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PauseTransferOperationRequest.Unmarshal(m, b)
}
func (m *PauseTransferOperationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PauseTransferOperationRequest.Marshal(b, m, deterministic)
}
func (m *PauseTransferOperationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PauseTransferOperationRequest.Merge(m, src)
}
func (m *PauseTransferOperationRequest) XXX_Size() int {
return xxx_messageInfo_PauseTransferOperationRequest.Size(m)
}
func (m *PauseTransferOperationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PauseTransferOperationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PauseTransferOperationRequest proto.InternalMessageInfo
func (m *PauseTransferOperationRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Request passed to ResumeTransferOperation.
type ResumeTransferOperationRequest struct {
// The name of the transfer operation.
// Required.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ResumeTransferOperationRequest) Reset() { *m = ResumeTransferOperationRequest{} }
func (m *ResumeTransferOperationRequest) String() string { return proto.CompactTextString(m) }
func (*ResumeTransferOperationRequest) ProtoMessage() {}
func (*ResumeTransferOperationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9e3f640a3e036c8f, []int{7}
}
func (m *ResumeTransferOperationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ResumeTransferOperationRequest.Unmarshal(m, b)
}
func (m *ResumeTransferOperationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ResumeTransferOperationRequest.Marshal(b, m, deterministic)
}
func (m *ResumeTransferOperationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResumeTransferOperationRequest.Merge(m, src)
}
func (m *ResumeTransferOperationRequest) XXX_Size() int {
return xxx_messageInfo_ResumeTransferOperationRequest.Size(m)
}
func (m *ResumeTransferOperationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ResumeTransferOperationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ResumeTransferOperationRequest proto.InternalMessageInfo
func (m *ResumeTransferOperationRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func init() {
proto.RegisterType((*GetGoogleServiceAccountRequest)(nil), "google.storagetransfer.v1.GetGoogleServiceAccountRequest")
proto.RegisterType((*CreateTransferJobRequest)(nil), "google.storagetransfer.v1.CreateTransferJobRequest")
proto.RegisterType((*UpdateTransferJobRequest)(nil), "google.storagetransfer.v1.UpdateTransferJobRequest")
proto.RegisterType((*GetTransferJobRequest)(nil), "google.storagetransfer.v1.GetTransferJobRequest")
proto.RegisterType((*ListTransferJobsRequest)(nil), "google.storagetransfer.v1.ListTransferJobsRequest")
proto.RegisterType((*ListTransferJobsResponse)(nil), "google.storagetransfer.v1.ListTransferJobsResponse")
proto.RegisterType((*PauseTransferOperationRequest)(nil), "google.storagetransfer.v1.PauseTransferOperationRequest")
proto.RegisterType((*ResumeTransferOperationRequest)(nil), "google.storagetransfer.v1.ResumeTransferOperationRequest")
}
func init() {
proto.RegisterFile("google/storagetransfer/v1/transfer.proto", fileDescriptor_9e3f640a3e036c8f)
}
var fileDescriptor_9e3f640a3e036c8f = []byte{
// 786 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdf, 0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6a, 0x5a,
0xcc, 0x0a, 0xb5, 0x8d, 0xc2, 0xd7, 0x30, 0x62, 0x53, 0x44, 0x6c, 0xc6, 0x22, 0x36, 0x37, 0x0a,
0x95, 0x21, 0x81, 0x5d, 0xfa, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x9e, 0x71, 0x04, 0x73, 0x87, 0x09,
0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// StorageTransferServiceClient is the client API for StorageTransferService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type StorageTransferServiceClient interface {
// Returns the Google service account that is used by Storage Transfer
// Service to access buckets in the project where transfers
// run or in other projects. Each Google service account is associated
// with one Google Cloud Platform Console project. Users
// should add this service account to the Google Cloud Storage bucket
// ACLs to grant access to Storage Transfer Service. This service
// account is created and owned by Storage Transfer Service and can
// only be used by Storage Transfer Service.
GetGoogleServiceAccount(ctx context.Context, in *GetGoogleServiceAccountRequest, opts ...grpc.CallOption) (*GoogleServiceAccount, error)
// Creates a transfer job that runs periodically.
CreateTransferJob(ctx context.Context, in *CreateTransferJobRequest, opts ...grpc.CallOption) (*TransferJob, error)
// Updates a transfer job. Updating a job's transfer spec does not affect
// transfer operations that are running already. Updating the scheduling
// of a job is not allowed.
UpdateTransferJob(ctx context.Context, in *UpdateTransferJobRequest, opts ...grpc.CallOption) (*TransferJob, error)
// Gets a transfer job.
GetTransferJob(ctx context.Context, in *GetTransferJobRequest, opts ...grpc.CallOption) (*TransferJob, error)
// Lists transfer jobs.
ListTransferJobs(ctx context.Context, in *ListTransferJobsRequest, opts ...grpc.CallOption) (*ListTransferJobsResponse, error)
// Pauses a transfer operation.
PauseTransferOperation(ctx context.Context, in *PauseTransferOperationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Resumes a transfer operation that is paused.
ResumeTransferOperation(ctx context.Context, in *ResumeTransferOperationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
type storageTransferServiceClient struct {
cc *grpc.ClientConn
}
func NewStorageTransferServiceClient(cc *grpc.ClientConn) StorageTransferServiceClient {
return &storageTransferServiceClient{cc}
}
func (c *storageTransferServiceClient) GetGoogleServiceAccount(ctx context.Context, in *GetGoogleServiceAccountRequest, opts ...grpc.CallOption) (*GoogleServiceAccount, error) {
out := new(GoogleServiceAccount)
err := c.cc.Invoke(ctx, "/google.storagetransfer.v1.StorageTransferService/GetGoogleServiceAccount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *storageTransferServiceClient) CreateTransferJob(ctx context.Context, in *CreateTransferJobRequest, opts ...grpc.CallOption) (*TransferJob, error) {
out := new(TransferJob)
err := c.cc.Invoke(ctx, "/google.storagetransfer.v1.StorageTransferService/CreateTransferJob", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *storageTransferServiceClient) UpdateTransferJob(ctx context.Context, in *UpdateTransferJobRequest, opts ...grpc.CallOption) (*TransferJob, error) {
out := new(TransferJob)
err := c.cc.Invoke(ctx, "/google.storagetransfer.v1.StorageTransferService/UpdateTransferJob", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *storageTransferServiceClient) GetTransferJob(ctx context.Context, in *GetTransferJobRequest, opts ...grpc.CallOption) (*TransferJob, error) {
out := new(TransferJob)
err := c.cc.Invoke(ctx, "/google.storagetransfer.v1.StorageTransferService/GetTransferJob", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *storageTransferServiceClient) ListTransferJobs(ctx context.Context, in *ListTransferJobsRequest, opts ...grpc.CallOption) (*ListTransferJobsResponse, error) {
out := new(ListTransferJobsResponse)
err := c.cc.Invoke(ctx, "/google.storagetransfer.v1.StorageTransferService/ListTransferJobs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *storageTransferServiceClient) PauseTransferOperation(ctx context.Context, in *PauseTransferOperationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.storagetransfer.v1.StorageTransferService/PauseTransferOperation", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *storageTransferServiceClient) ResumeTransferOperation(ctx context.Context, in *ResumeTransferOperationRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.storagetransfer.v1.StorageTransferService/ResumeTransferOperation", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// StorageTransferServiceServer is the server API for StorageTransferService service.
type StorageTransferServiceServer interface {
// Returns the Google service account that is used by Storage Transfer
// Service to access buckets in the project where transfers
// run or in other projects. Each Google service account is associated
// with one Google Cloud Platform Console project. Users
// should add this service account to the Google Cloud Storage bucket
// ACLs to grant access to Storage Transfer Service. This service
// account is created and owned by Storage Transfer Service and can
// only be used by Storage Transfer Service.
GetGoogleServiceAccount(context.Context, *GetGoogleServiceAccountRequest) (*GoogleServiceAccount, error)
// Creates a transfer job that runs periodically.
CreateTransferJob(context.Context, *CreateTransferJobRequest) (*TransferJob, error)
// Updates a transfer job. Updating a job's transfer spec does not affect
// transfer operations that are running already. Updating the scheduling
// of a job is not allowed.
UpdateTransferJob(context.Context, *UpdateTransferJobRequest) (*TransferJob, error)
// Gets a transfer job.
GetTransferJob(context.Context, *GetTransferJobRequest) (*TransferJob, error)
// Lists transfer jobs.
ListTransferJobs(context.Context, *ListTransferJobsRequest) (*ListTransferJobsResponse, error)
// Pauses a transfer operation.
PauseTransferOperation(context.Context, *PauseTransferOperationRequest) (*empty.Empty, error)
// Resumes a transfer operation that is paused.
ResumeTransferOperation(context.Context, *ResumeTransferOperationRequest) (*empty.Empty, error)
}
func RegisterStorageTransferServiceServer(s *grpc.Server, srv StorageTransferServiceServer) {
s.RegisterService(&_StorageTransferService_serviceDesc, srv)
}
func _StorageTransferService_GetGoogleServiceAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetGoogleServiceAccountRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(StorageTransferServiceServer).GetGoogleServiceAccount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.storagetransfer.v1.StorageTransferService/GetGoogleServiceAccount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(StorageTransferServiceServer).GetGoogleServiceAccount(ctx, req.(*GetGoogleServiceAccountRequest))
}
return interceptor(ctx, in, info, handler)
}
func _StorageTransferService_CreateTransferJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateTransferJobRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(StorageTransferServiceServer).CreateTransferJob(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.storagetransfer.v1.StorageTransferService/CreateTransferJob",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(StorageTransferServiceServer).CreateTransferJob(ctx, req.(*CreateTransferJobRequest))
}
return interceptor(ctx, in, info, handler)
}
func _StorageTransferService_UpdateTransferJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateTransferJobRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(StorageTransferServiceServer).UpdateTransferJob(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.storagetransfer.v1.StorageTransferService/UpdateTransferJob",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(StorageTransferServiceServer).UpdateTransferJob(ctx, req.(*UpdateTransferJobRequest))
}
return interceptor(ctx, in, info, handler)
}
func _StorageTransferService_GetTransferJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetTransferJobRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(StorageTransferServiceServer).GetTransferJob(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.storagetransfer.v1.StorageTransferService/GetTransferJob",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(StorageTransferServiceServer).GetTransferJob(ctx, req.(*GetTransferJobRequest))
}
return interceptor(ctx, in, info, handler)
}
func _StorageTransferService_ListTransferJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListTransferJobsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(StorageTransferServiceServer).ListTransferJobs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.storagetransfer.v1.StorageTransferService/ListTransferJobs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(StorageTransferServiceServer).ListTransferJobs(ctx, req.(*ListTransferJobsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _StorageTransferService_PauseTransferOperation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PauseTransferOperationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(StorageTransferServiceServer).PauseTransferOperation(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.storagetransfer.v1.StorageTransferService/PauseTransferOperation",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(StorageTransferServiceServer).PauseTransferOperation(ctx, req.(*PauseTransferOperationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _StorageTransferService_ResumeTransferOperation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ResumeTransferOperationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(StorageTransferServiceServer).ResumeTransferOperation(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.storagetransfer.v1.StorageTransferService/ResumeTransferOperation",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(StorageTransferServiceServer).ResumeTransferOperation(ctx, req.(*ResumeTransferOperationRequest))
}
return interceptor(ctx, in, info, handler)
}
var _StorageTransferService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.storagetransfer.v1.StorageTransferService",
HandlerType: (*StorageTransferServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetGoogleServiceAccount",
Handler: _StorageTransferService_GetGoogleServiceAccount_Handler,
},
{
MethodName: "CreateTransferJob",
Handler: _StorageTransferService_CreateTransferJob_Handler,
},
{
MethodName: "UpdateTransferJob",
Handler: _StorageTransferService_UpdateTransferJob_Handler,
},
{
MethodName: "GetTransferJob",
Handler: _StorageTransferService_GetTransferJob_Handler,
},
{
MethodName: "ListTransferJobs",
Handler: _StorageTransferService_ListTransferJobs_Handler,
},
{
MethodName: "PauseTransferOperation",
Handler: _StorageTransferService_PauseTransferOperation_Handler,
},
{
MethodName: "ResumeTransferOperation",
Handler: _StorageTransferService_ResumeTransferOperation_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/storagetransfer/v1/transfer.proto",
}