gsuite.pb.go 92.5 KB
Newer Older
Lukas Möller's avatar
update  
Lukas Möller committed
1
2
3
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.26.0
Go Protoc Bot's avatar
update    
Go Protoc Bot committed
4
// 	protoc        v3.18.1
Lukas Möller's avatar
update  
Lukas Möller committed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// source: sip/gsuite/gsuite.proto

package gsuite

import (
	empty "github.com/golang/protobuf/ptypes/empty"
	timestamp "github.com/golang/protobuf/ptypes/timestamp"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
25
type SharingType int32
Lukas Möller's avatar
update  
Lukas Möller committed
26
27

const (
Go Protoc Bot's avatar
update    
Go Protoc Bot committed
28
29
30
31
	SharingType_USER   SharingType = 0
	SharingType_GROUP  SharingType = 1
	SharingType_VSETH  SharingType = 2
	SharingType_PUBLIC SharingType = 3
Lukas Möller's avatar
update  
Lukas Möller committed
32
33
)

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
34
// Enum value maps for SharingType.
Lukas Möller's avatar
update  
Lukas Möller committed
35
var (
Go Protoc Bot's avatar
update    
Go Protoc Bot committed
36
37
38
39
40
41
42
43
44
45
46
	SharingType_name = map[int32]string{
		0: "USER",
		1: "GROUP",
		2: "VSETH",
		3: "PUBLIC",
	}
	SharingType_value = map[string]int32{
		"USER":   0,
		"GROUP":  1,
		"VSETH":  2,
		"PUBLIC": 3,
Lukas Möller's avatar
update  
Lukas Möller committed
47
48
49
	}
)

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
50
51
func (x SharingType) Enum() *SharingType {
	p := new(SharingType)
Lukas Möller's avatar
update  
Lukas Möller committed
52
53
54
55
	*p = x
	return p
}

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
56
func (x SharingType) String() string {
Lukas Möller's avatar
update  
Lukas Möller committed
57
58
59
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
60
func (SharingType) Descriptor() protoreflect.EnumDescriptor {
Lukas Möller's avatar
update  
Lukas Möller committed
61
62
63
	return file_sip_gsuite_gsuite_proto_enumTypes[0].Descriptor()
}

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
64
func (SharingType) Type() protoreflect.EnumType {
Lukas Möller's avatar
update  
Lukas Möller committed
65
66
67
	return &file_sip_gsuite_gsuite_proto_enumTypes[0]
}

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
68
func (x SharingType) Number() protoreflect.EnumNumber {
Lukas Möller's avatar
update  
Lukas Möller committed
69
70
71
	return protoreflect.EnumNumber(x)
}

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
72
73
// Deprecated: Use SharingType.Descriptor instead.
func (SharingType) EnumDescriptor() ([]byte, []int) {
Lukas Möller's avatar
update  
Lukas Möller committed
74
75
76
	return file_sip_gsuite_gsuite_proto_rawDescGZIP(), []int{0}
}

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
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
// roles from https://developers.google.com/drive/api/v3/reference/permissions
type FileSharingRole int32

const (
	FileSharingRole_FILEPEROLE_OWNER         FileSharingRole = 0
	FileSharingRole_FILEPEROLE_ORGANIZER     FileSharingRole = 1
	FileSharingRole_FILEPEROLE_FILEORGANIZER FileSharingRole = 2
	FileSharingRole_FILEPEROLE_WRITER        FileSharingRole = 3
	FileSharingRole_FILEPEROLE_COMMENTER     FileSharingRole = 4
	FileSharingRole_FILEPEROLE_READER        FileSharingRole = 5
)

// Enum value maps for FileSharingRole.
var (
	FileSharingRole_name = map[int32]string{
		0: "FILEPEROLE_OWNER",
		1: "FILEPEROLE_ORGANIZER",
		2: "FILEPEROLE_FILEORGANIZER",
		3: "FILEPEROLE_WRITER",
		4: "FILEPEROLE_COMMENTER",
		5: "FILEPEROLE_READER",
	}
	FileSharingRole_value = map[string]int32{
		"FILEPEROLE_OWNER":         0,
		"FILEPEROLE_ORGANIZER":     1,
		"FILEPEROLE_FILEORGANIZER": 2,
		"FILEPEROLE_WRITER":        3,
		"FILEPEROLE_COMMENTER":     4,
		"FILEPEROLE_READER":        5,
	}
)

func (x FileSharingRole) Enum() *FileSharingRole {
	p := new(FileSharingRole)
	*p = x
	return p
}

func (x FileSharingRole) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (FileSharingRole) Descriptor() protoreflect.EnumDescriptor {
	return file_sip_gsuite_gsuite_proto_enumTypes[1].Descriptor()
}

func (FileSharingRole) Type() protoreflect.EnumType {
	return &file_sip_gsuite_gsuite_proto_enumTypes[1]
}

func (x FileSharingRole) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use FileSharingRole.Descriptor instead.
func (FileSharingRole) EnumDescriptor() ([]byte, []int) {
	return file_sip_gsuite_gsuite_proto_rawDescGZIP(), []int{1}
}

// roles from https://developers.google.com/calendar/api/concepts/sharing
type CalendarSharingRole int32

const (
	CalendarSharingRole_CALENDARROLE_NONE           CalendarSharingRole = 0
	CalendarSharingRole_CALENDARROLE_FREEBUSYREADER CalendarSharingRole = 1
	CalendarSharingRole_CALENDARROLE_READER         CalendarSharingRole = 2
	CalendarSharingRole_CALENDARROLE_WRITER         CalendarSharingRole = 3
	CalendarSharingRole_CALENDARROLE_OWNER          CalendarSharingRole = 4
)

// Enum value maps for CalendarSharingRole.
var (
	CalendarSharingRole_name = map[int32]string{
		0: "CALENDARROLE_NONE",
		1: "CALENDARROLE_FREEBUSYREADER",
		2: "CALENDARROLE_READER",
		3: "CALENDARROLE_WRITER",
		4: "CALENDARROLE_OWNER",
	}
	CalendarSharingRole_value = map[string]int32{
		"CALENDARROLE_NONE":           0,
		"CALENDARROLE_FREEBUSYREADER": 1,
		"CALENDARROLE_READER":         2,
		"CALENDARROLE_WRITER":         3,
		"CALENDARROLE_OWNER":          4,
	}
)

func (x CalendarSharingRole) Enum() *CalendarSharingRole {
	p := new(CalendarSharingRole)
	*p = x
	return p
}

func (x CalendarSharingRole) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (CalendarSharingRole) Descriptor() protoreflect.EnumDescriptor {
	return file_sip_gsuite_gsuite_proto_enumTypes[2].Descriptor()
}

func (CalendarSharingRole) Type() protoreflect.EnumType {
	return &file_sip_gsuite_gsuite_proto_enumTypes[2]
}

func (x CalendarSharingRole) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use CalendarSharingRole.Descriptor instead.
func (CalendarSharingRole) EnumDescriptor() ([]byte, []int) {
	return file_sip_gsuite_gsuite_proto_rawDescGZIP(), []int{2}
}

Lukas Möller's avatar
update  
Lukas Möller committed
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
type FileRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
}

func (x *FileRequest) Reset() {
	*x = FileRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_sip_gsuite_gsuite_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *FileRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*FileRequest) ProtoMessage() {}

func (x *FileRequest) ProtoReflect() protoreflect.Message {
	mi := &file_sip_gsuite_gsuite_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use FileRequest.ProtoReflect.Descriptor instead.
func (*FileRequest) Descriptor() ([]byte, []int) {
	return file_sip_gsuite_gsuite_proto_rawDescGZIP(), []int{0}
}

func (x *FileRequest) GetFileId() string {
	if x != nil {
		return x.FileId
	}
	return ""
}

type FileReply struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
}

func (x *FileReply) Reset() {
	*x = FileReply{}
	if protoimpl.UnsafeEnabled {
		mi := &file_sip_gsuite_gsuite_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *FileReply) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*FileReply) ProtoMessage() {}

func (x *FileReply) ProtoReflect() protoreflect.Message {
	mi := &file_sip_gsuite_gsuite_proto_msgTypes[1]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use FileReply.ProtoReflect.Descriptor instead.
func (*FileReply) Descriptor() ([]byte, []int) {
	return file_sip_gsuite_gsuite_proto_rawDescGZIP(), []int{1}
}

func (x *FileReply) GetFileId() string {
	if x != nil {
		return x.FileId
	}
	return ""
}

type UploadFileReply struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	FileId  string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	SheetId string `protobuf:"bytes,2,opt,name=sheet_id,json=sheetId,proto3" json:"sheet_id,omitempty"`
}

func (x *UploadFileReply) Reset() {
	*x = UploadFileReply{}
	if protoimpl.UnsafeEnabled {
		mi := &file_sip_gsuite_gsuite_proto_msgTypes[2]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *UploadFileReply) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UploadFileReply) ProtoMessage() {}

func (x *UploadFileReply) ProtoReflect() protoreflect.Message {
	mi := &file_sip_gsuite_gsuite_proto_msgTypes[2]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use UploadFileReply.ProtoReflect.Descriptor instead.
func (*UploadFileReply) Descriptor() ([]byte, []int) {
	return file_sip_gsuite_gsuite_proto_rawDescGZIP(), []int{2}
}

func (x *UploadFileReply) GetFileId() string {
	if x != nil {
		return x.FileId
	}
	return ""
}

func (x *UploadFileReply) GetSheetId() string {
	if x != nil {
		return x.SheetId
	}
	return ""
}

type DownloadFileReply struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

func (x *DownloadFileReply) Reset() {
	*x = DownloadFileReply{}
	if protoimpl.UnsafeEnabled {
		mi := &file_sip_gsuite_gsuite_proto_msgTypes[3]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *DownloadFileReply) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DownloadFileReply) ProtoMessage() {}

func (x *DownloadFileReply) ProtoReflect() protoreflect.Message {
	mi := &file_sip_gsuite_gsuite_proto_msgTypes[3]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use DownloadFileReply.ProtoReflect.Descriptor instead.
func (*DownloadFileReply) Descriptor() ([]byte, []int) {
	return file_sip_gsuite_gsuite_proto_rawDescGZIP(), []int{3}
}

func (x *DownloadFileReply) GetData() []byte {
	if x != nil {
		return x.Data
	}
	return nil
}

type UploadFileInfo struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	ParentFolderId string `protobuf:"bytes,1,opt,name=parent_folder_id,json=parentFolderId,proto3" json:"parent_folder_id,omitempty"`
	Filename       string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
	MimeType       string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
}

func (x *UploadFileInfo) Reset() {
	*x = UploadFileInfo{}
	if protoimpl.UnsafeEnabled {
		mi := &file_sip_gsuite_gsuite_proto_msgTypes[4]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *UploadFileInfo) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UploadFileInfo) ProtoMessage() {}

func (x *UploadFileInfo) ProtoReflect() protoreflect.Message {
	mi := &file_sip_gsuite_gsuite_proto_msgTypes[4]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use UploadFileInfo.ProtoReflect.Descriptor instead.
func (*UploadFileInfo) Descriptor() ([]byte, []int) {
	return file_sip_gsuite_gsuite_proto_rawDescGZIP(), []int{4}
}

func (x *UploadFileInfo) GetParentFolderId() string {
	if x != nil {
		return x.ParentFolderId
	}
	return ""
}

func (x *UploadFileInfo) GetFilename() string {
	if x != nil {
		return x.Filename
	}
	return ""
}

func (x *UploadFileInfo) GetMimeType() string {
	if x != nil {
		return x.MimeType
	}
	return ""
}

type UploadFileRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Types that are assignable to UploadData:
	//	*UploadFileRequest_Info
	//	*UploadFileRequest_Data
	UploadData isUploadFileRequest_UploadData `protobuf_oneof:"uploadData"`
}

func (x *UploadFileRequest) Reset() {
	*x = UploadFileRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_sip_gsuite_gsuite_proto_msgTypes[5]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *UploadFileRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UploadFileRequest) ProtoMessage() {}

func (x *UploadFileRequest) ProtoReflect() protoreflect.Message {
	mi := &file_sip_gsuite_gsuite_proto_msgTypes[5]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use UploadFileRequest.ProtoReflect.Descriptor instead.
func (*UploadFileRequest) Descriptor() ([]byte, []int) {
	return file_sip_gsuite_gsuite_proto_rawDescGZIP(), []int{5}
}

func (m *UploadFileRequest) GetUploadData() isUploadFileRequest_UploadData {
	if m != nil {
		return m.UploadData
	}
	return nil
}

func (x *UploadFileRequest) GetInfo() *UploadFileInfo {
	if x, ok := x.GetUploadData().(*UploadFileRequest_Info); ok {
		return x.Info
	}
	return nil
}

func (x *UploadFileRequest) GetData() []byte {
	if x, ok := x.GetUploadData().(*UploadFileRequest_Data); ok {
		return x.Data
	}
	return nil
}

type isUploadFileRequest_UploadData interface {
	isUploadFileRequest_UploadData()
}

type UploadFileRequest_Info struct {
	Info *UploadFileInfo `protobuf:"bytes,1,opt,name=info,proto3,oneof"`
}

type UploadFileRequest_Data struct {
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof"`
}

func (*UploadFileRequest_Info) isUploadFileRequest_UploadData() {}

func (*UploadFileRequest_Data) isUploadFileRequest_UploadData() {}

type FolderRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
}

func (x *FolderRequest) Reset() {
	*x = FolderRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_sip_gsuite_gsuite_proto_msgTypes[6]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *FolderRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*FolderRequest) ProtoMessage() {}

func (x *FolderRequest) ProtoReflect() protoreflect.Message {
	mi := &file_sip_gsuite_gsuite_proto_msgTypes[6]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use FolderRequest.ProtoReflect.Descriptor instead.
func (*FolderRequest) Descriptor() ([]byte, []int) {
	return file_sip_gsuite_gsuite_proto_rawDescGZIP(), []int{6}
}

func (x *FolderRequest) GetFolderId() string {
	if x != nil {
		return x.FolderId
	}
	return ""
}

type CreateFolderRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Foldername     string `protobuf:"bytes,1,opt,name=foldername,proto3" json:"foldername,omitempty"`
	ParentFolderId string `protobuf:"bytes,2,opt,name=parent_folder_id,json=parentFolderId,proto3" json:"parent_folder_id,omitempty"`
}

func (x *CreateFolderRequest) Reset() {
	*x = CreateFolderRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_sip_gsuite_gsuite_proto_msgTypes[7]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *CreateFolderRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CreateFolderRequest) ProtoMessage() {}

func (x *CreateFolderRequest) ProtoReflect() protoreflect.Message {
	mi := &file_sip_gsuite_gsuite_proto_msgTypes[7]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CreateFolderRequest.ProtoReflect.Descriptor instead.
func (*CreateFolderRequest) Descriptor() ([]byte, []int) {
	return file_sip_gsuite_gsuite_proto_rawDescGZIP(), []int{7}
}

func (x *CreateFolderRequest) GetFoldername() string {
	if x != nil {
		return x.Foldername
	}
	return ""
}

func (x *CreateFolderRequest) GetParentFolderId() string {
	if x != nil {
		return x.ParentFolderId
	}
	return ""
}

type FolderReply struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
}

func (x *FolderReply) Reset() {
	*x = FolderReply{}
	if protoimpl.UnsafeEnabled {
		mi := &file_sip_gsuite_gsuite_proto_msgTypes[8]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *FolderReply) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*FolderReply) ProtoMessage() {}

func (x *FolderReply) ProtoReflect() protoreflect.Message {
	mi := &file_sip_gsuite_gsuite_proto_msgTypes[8]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use FolderReply.ProtoReflect.Descriptor instead.
func (*FolderReply) Descriptor() ([]byte, []int) {
	return file_sip_gsuite_gsuite_proto_rawDescGZIP(), []int{8}
}

func (x *FolderReply) GetFolderId() string {
	if x != nil {
		return x.FolderId
	}
	return ""
}

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
680
type ShareRequest struct {
Lukas Möller's avatar
update  
Lukas Möller committed
681
682
683
684
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
685
686
687
688
689
690
691
	Id    string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Email string      `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Type  SharingType `protobuf:"varint,3,opt,name=type,proto3,enum=sip.gsuite.SharingType" json:"type,omitempty"`
	// Types that are assignable to Role:
	//	*ShareRequest_FileSharingRole
	//	*ShareRequest_CalendarSharingRole
	Role isShareRequest_Role `protobuf_oneof:"role"`
Lukas Möller's avatar
update  
Lukas Möller committed
692
693
}

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
694
695
func (x *ShareRequest) Reset() {
	*x = ShareRequest{}
Lukas Möller's avatar
update  
Lukas Möller committed
696
697
698
699
700
701
702
	if protoimpl.UnsafeEnabled {
		mi := &file_sip_gsuite_gsuite_proto_msgTypes[9]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
703
func (x *ShareRequest) String() string {
Lukas Möller's avatar
update  
Lukas Möller committed
704
705
706
	return protoimpl.X.MessageStringOf(x)
}

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
707
func (*ShareRequest) ProtoMessage() {}
Lukas Möller's avatar
update  
Lukas Möller committed
708

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
709
func (x *ShareRequest) ProtoReflect() protoreflect.Message {
Lukas Möller's avatar
update  
Lukas Möller committed
710
711
712
713
714
715
716
717
718
719
720
	mi := &file_sip_gsuite_gsuite_proto_msgTypes[9]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
721
722
// Deprecated: Use ShareRequest.ProtoReflect.Descriptor instead.
func (*ShareRequest) Descriptor() ([]byte, []int) {
Lukas Möller's avatar
update  
Lukas Möller committed
723
724
725
	return file_sip_gsuite_gsuite_proto_rawDescGZIP(), []int{9}
}

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
726
func (x *ShareRequest) GetId() string {
Lukas Möller's avatar
update  
Lukas Möller committed
727
	if x != nil {
Go Protoc Bot's avatar
update    
Go Protoc Bot committed
728
		return x.Id
Lukas Möller's avatar
update  
Lukas Möller committed
729
730
731
732
	}
	return ""
}

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
733
func (x *ShareRequest) GetEmail() string {
Lukas Möller's avatar
update  
Lukas Möller committed
734
735
736
737
738
739
	if x != nil {
		return x.Email
	}
	return ""
}

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
740
func (x *ShareRequest) GetType() SharingType {
Lukas Möller's avatar
update  
Lukas Möller committed
741
742
743
	if x != nil {
		return x.Type
	}
Go Protoc Bot's avatar
update    
Go Protoc Bot committed
744
	return SharingType_USER
Lukas Möller's avatar
update  
Lukas Möller committed
745
746
}

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
747
748
749
func (m *ShareRequest) GetRole() isShareRequest_Role {
	if m != nil {
		return m.Role
Lukas Möller's avatar
update  
Lukas Möller committed
750
	}
Go Protoc Bot's avatar
update    
Go Protoc Bot committed
751
752
753
754
755
756
757
758
	return nil
}

func (x *ShareRequest) GetFileSharingRole() FileSharingRole {
	if x, ok := x.GetRole().(*ShareRequest_FileSharingRole); ok {
		return x.FileSharingRole
	}
	return FileSharingRole_FILEPEROLE_OWNER
Lukas Möller's avatar
update  
Lukas Möller committed
759
760
}

Go Protoc Bot's avatar
update    
Go Protoc Bot committed
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
func (x *ShareRequest) GetCalendarSharingRole() CalendarSharingRole {
	if x, ok := x.GetRole().(*ShareRequest_CalendarSharingRole); ok {
		return x.CalendarSharingRole
	}
	return CalendarSharingRole_CALENDARROLE_NONE
}

type isShareRequest_Role interface {
	isShareRequest_Role()
}

type ShareRequest_FileSharingRole struct {
	FileSharingRole FileSharingRole `protobuf:"varint,4,opt,name=file_sharing_role,json=fileSharingRole,proto3,enum=sip.gsuite.FileSharingRole,oneof"`
}

type ShareRequest_CalendarSharingRole struct {
	CalendarSharingRole CalendarSharingRole `protobuf:"varint,5,opt,name=calendar_sharing_role,json=calendarSharingRole,proto3,enum=sip.gsuite.CalendarSharingRole,oneof"`
}

func (*ShareRequest_FileSharingRole) isShareRequest_Role() {}

func (*ShareRequest_CalendarSharingRole) isShareRequest_Role() {}

Lukas Möller's avatar
update  
Lukas Möller committed
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
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
type ShareFileWithAnyoneRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	Role   string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
}

func (x *ShareFileWithAnyoneRequest) Reset() {
	*x = ShareFileWithAnyoneRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_sip_gsuite_gsuite_proto_msgTypes[10]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *ShareFileWithAnyoneRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ShareFileWithAnyoneRequest) ProtoMessage() {}

func (x *ShareFileWithAnyoneRequest) ProtoReflect() protoreflect.Message {
	mi := &file_sip_gsuite_gsuite_proto_msgTypes[10]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ShareFileWithAnyoneRequest.ProtoReflect.Descriptor instead.
func (*ShareFileWithAnyoneRequest) Descriptor() ([]byte, []int) {
	return file_sip_gsuite_gsuite_proto_rawDescGZIP(), []int{10}
}

func (x *ShareFileWithAnyoneRequest) GetFileId() string {
	if x != nil {
		return x.FileId
	}
	return ""
}

func (x *ShareFileWithAnyoneRequest) GetRole() string {
	if x != nil {
		return x.Role
	}
	return ""
}

type FileLinkReply struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"`
}

func (x *FileLinkReply) Reset() {
	*x = FileLinkReply{}
	if protoimpl.UnsafeEnabled {
		mi := &file_sip_gsuite_gsuite_proto_msgTypes[11]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *FileLinkReply) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*FileLinkReply) ProtoMessage() {}

func (x *FileLinkReply) ProtoReflect() protoreflect.Message {
	mi := &file_sip_gsuite_gsuite_proto_msgTypes[11]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use FileLinkReply.ProtoReflect.Descriptor instead.
func (*FileLinkReply) Descriptor() ([]byte, []int) {
	return file_sip_gsuite_gsuite_proto_rawDescGZIP(), []int{11}
}

func (x *FileLinkReply) GetLink() string {
	if x != nil {
		return x.Link
	}
	return ""
}

type CopyFileRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	FileId             string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	CopyFilename       string `protobuf:"bytes,2,opt,name=copy_filename,json=copyFilename,proto3" json:"copy_filename,omitempty"`
	CopyParentFolderId string `protobuf:"bytes,3,opt,name=copy_parent_folder_id,json=copyParentFolderId,proto3" json:"copy_parent_folder_id,omitempty"`
}

func (x *CopyFileRequest) Reset() {
	*x = CopyFileRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_sip_gsuite_gsuite_proto_msgTypes[12]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *CopyFileRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CopyFileRequest) ProtoMessage() {}

func (x *CopyFileRequest) ProtoReflect() protoreflect.Message {
	mi := &file_sip_gsuite_gsuite_proto_msgTypes[12]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CopyFileRequest.ProtoReflect.Descriptor instead.
func (*CopyFileRequest) Descriptor() ([]byte, []int) {
	return file_sip_gsuite_gsuite_proto_rawDescGZIP(), []int{12}
}

func (x *CopyFileRequest) GetFileId() string {
	if x != nil {
		return x.FileId
	}
	return ""
}

func (x *CopyFileRequest) GetCopyFilename() string {
	if x != nil {
		return x.CopyFilename
	}
	return ""
}

func (x *CopyFileRequest) GetCopyParentFolderId() string {
	if x != nil {
		return x.CopyParentFolderId
	}
	return ""
}

type GenerateRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	FileId            string                         `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	NewFilename       string                         `protobuf:"bytes,2,opt,name=new_filename,json=newFilename,proto3" json:"new_filename,omitempty"`
	NewParentFolderId string                         `protobuf:"bytes,3,opt,name=new_parent_folder_id,json=newParentFolderId,proto3" json:"new_parent_folder_id,omitempty"`
	Replace           []*GenerateRequest_ReplaceText `protobuf:"bytes,4,rep,name=replace,proto3" json:"replace,omitempty"`
}

func (x *GenerateRequest) Reset() {
	*x = GenerateRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_sip_gsuite_gsuite_proto_msgTypes[13]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *GenerateRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GenerateRequest) ProtoMessage() {}

func (x *GenerateRequest) ProtoReflect() protoreflect.Message {
	mi := &file_sip_gsuite_gsuite_proto_msgTypes[13]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GenerateRequest.ProtoReflect.Descriptor instead.
func (*GenerateRequest) Descriptor() ([]byte, []int) {
	return file_sip_gsuite_gsuite_proto_rawDescGZIP(), []int{13}
}

func (x *GenerateRequest) GetFileId() string {
	if x != nil {
		return x.FileId
	}
	return ""
}

func (x *GenerateRequest) GetNewFilename() string {
	if x != nil {
For faster browsing, not all history is shown. View entire blame