@barupost/contracts 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/events/account/email-changed.interface.d.ts +4 -0
  2. package/dist/events/account/email-changed.interface.js +2 -0
  3. package/dist/events/account/index.d.ts +2 -0
  4. package/dist/events/account/index.js +18 -0
  5. package/dist/events/account/phone-changed.interface.d.ts +4 -0
  6. package/dist/events/account/phone-changed.interface.js +2 -0
  7. package/dist/events/auth/index.d.ts +1 -0
  8. package/dist/events/auth/index.js +17 -0
  9. package/dist/events/auth/otp-requested.interface.d.ts +5 -0
  10. package/dist/events/auth/otp-requested.interface.js +2 -0
  11. package/dist/events/index.d.ts +2 -0
  12. package/dist/events/index.js +18 -0
  13. package/dist/generated/account.d.ts +70 -0
  14. package/dist/generated/account.js +45 -0
  15. package/dist/generated/auth.d.ts +83 -0
  16. package/dist/generated/auth.js +34 -0
  17. package/dist/generated/google/protobuf/empty.d.ts +13 -0
  18. package/dist/generated/google/protobuf/empty.js +11 -0
  19. package/dist/generated/google/protobuf/timestamp.d.ts +109 -0
  20. package/dist/generated/google/protobuf/timestamp.js +11 -0
  21. package/dist/generated/index.d.ts +6 -0
  22. package/dist/generated/index.js +22 -0
  23. package/dist/generated/media.d.ts +124 -0
  24. package/dist/generated/media.js +35 -0
  25. package/dist/generated/posts.d.ts +259 -0
  26. package/dist/generated/posts.js +57 -0
  27. package/dist/generated/session.d.ts +56 -0
  28. package/dist/generated/session.js +32 -0
  29. package/dist/generated/users.d.ts +87 -0
  30. package/dist/generated/users.js +40 -0
  31. package/dist/index.d.ts +3 -0
  32. package/dist/index.js +19 -0
  33. package/dist/proto/index.d.ts +1 -0
  34. package/dist/proto/index.js +17 -0
  35. package/dist/proto/paths.d.ts +8 -0
  36. package/dist/proto/paths.js +12 -0
  37. package/gen/go/.gitkeep +0 -0
  38. package/gen/go/media/media.pb.go +1545 -0
  39. package/gen/go/media/media_grpc.pb.go +342 -0
  40. package/gen/ts/.gitkeep +0 -0
  41. package/gen/ts/account.ts +133 -0
  42. package/gen/ts/auth.ts +135 -0
  43. package/gen/ts/google/protobuf/empty.ts +23 -0
  44. package/gen/ts/google/protobuf/struct.ts +197 -0
  45. package/gen/ts/google/protobuf/timestamp.ts +119 -0
  46. package/gen/ts/media.ts +205 -0
  47. package/gen/ts/posts.ts +417 -0
  48. package/gen/ts/session.ts +110 -0
  49. package/gen/ts/users.ts +140 -0
  50. package/package.json +28 -0
  51. package/proto/account.proto +75 -0
  52. package/proto/auth.proto +91 -0
  53. package/proto/media.proto +120 -0
  54. package/proto/posts.proto +270 -0
  55. package/proto/session.proto +61 -0
  56. package/proto/users.proto +105 -0
@@ -0,0 +1,1545 @@
1
+ // Code generated by protoc-gen-go. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-go v1.34.1
4
+ // protoc v6.33.2
5
+ // source: media.proto
6
+
7
+ package media
8
+
9
+ import (
10
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12
+ reflect "reflect"
13
+ sync "sync"
14
+ )
15
+
16
+ const (
17
+ // Verify that this generated code is sufficiently up-to-date.
18
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
19
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
20
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
21
+ )
22
+
23
+ type UploadRequest struct {
24
+ state protoimpl.MessageState
25
+ sizeCache protoimpl.SizeCache
26
+ unknownFields protoimpl.UnknownFields
27
+
28
+ FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
29
+ Folder string `protobuf:"bytes,2,opt,name=folder,proto3" json:"folder,omitempty"`
30
+ ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
31
+ Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
32
+ ResizeWidth *int32 `protobuf:"varint,5,opt,name=resize_width,json=resizeWidth,proto3,oneof" json:"resize_width,omitempty"`
33
+ ResizeHeight *int32 `protobuf:"varint,6,opt,name=resize_height,json=resizeHeight,proto3,oneof" json:"resize_height,omitempty"`
34
+ Watermark *bool `protobuf:"varint,7,opt,name=watermark,proto3,oneof" json:"watermark,omitempty"`
35
+ }
36
+
37
+ func (x *UploadRequest) Reset() {
38
+ *x = UploadRequest{}
39
+ if protoimpl.UnsafeEnabled {
40
+ mi := &file_media_proto_msgTypes[0]
41
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
42
+ ms.StoreMessageInfo(mi)
43
+ }
44
+ }
45
+
46
+ func (x *UploadRequest) String() string {
47
+ return protoimpl.X.MessageStringOf(x)
48
+ }
49
+
50
+ func (*UploadRequest) ProtoMessage() {}
51
+
52
+ func (x *UploadRequest) ProtoReflect() protoreflect.Message {
53
+ mi := &file_media_proto_msgTypes[0]
54
+ if protoimpl.UnsafeEnabled && x != nil {
55
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
56
+ if ms.LoadMessageInfo() == nil {
57
+ ms.StoreMessageInfo(mi)
58
+ }
59
+ return ms
60
+ }
61
+ return mi.MessageOf(x)
62
+ }
63
+
64
+ // Deprecated: Use UploadRequest.ProtoReflect.Descriptor instead.
65
+ func (*UploadRequest) Descriptor() ([]byte, []int) {
66
+ return file_media_proto_rawDescGZIP(), []int{0}
67
+ }
68
+
69
+ func (x *UploadRequest) GetFileName() string {
70
+ if x != nil {
71
+ return x.FileName
72
+ }
73
+ return ""
74
+ }
75
+
76
+ func (x *UploadRequest) GetFolder() string {
77
+ if x != nil {
78
+ return x.Folder
79
+ }
80
+ return ""
81
+ }
82
+
83
+ func (x *UploadRequest) GetContentType() string {
84
+ if x != nil {
85
+ return x.ContentType
86
+ }
87
+ return ""
88
+ }
89
+
90
+ func (x *UploadRequest) GetData() []byte {
91
+ if x != nil {
92
+ return x.Data
93
+ }
94
+ return nil
95
+ }
96
+
97
+ func (x *UploadRequest) GetResizeWidth() int32 {
98
+ if x != nil && x.ResizeWidth != nil {
99
+ return *x.ResizeWidth
100
+ }
101
+ return 0
102
+ }
103
+
104
+ func (x *UploadRequest) GetResizeHeight() int32 {
105
+ if x != nil && x.ResizeHeight != nil {
106
+ return *x.ResizeHeight
107
+ }
108
+ return 0
109
+ }
110
+
111
+ func (x *UploadRequest) GetWatermark() bool {
112
+ if x != nil && x.Watermark != nil {
113
+ return *x.Watermark
114
+ }
115
+ return false
116
+ }
117
+
118
+ type UploadResponse struct {
119
+ state protoimpl.MessageState
120
+ sizeCache protoimpl.SizeCache
121
+ unknownFields protoimpl.UnknownFields
122
+
123
+ Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
124
+ }
125
+
126
+ func (x *UploadResponse) Reset() {
127
+ *x = UploadResponse{}
128
+ if protoimpl.UnsafeEnabled {
129
+ mi := &file_media_proto_msgTypes[1]
130
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
131
+ ms.StoreMessageInfo(mi)
132
+ }
133
+ }
134
+
135
+ func (x *UploadResponse) String() string {
136
+ return protoimpl.X.MessageStringOf(x)
137
+ }
138
+
139
+ func (*UploadResponse) ProtoMessage() {}
140
+
141
+ func (x *UploadResponse) ProtoReflect() protoreflect.Message {
142
+ mi := &file_media_proto_msgTypes[1]
143
+ if protoimpl.UnsafeEnabled && x != nil {
144
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
145
+ if ms.LoadMessageInfo() == nil {
146
+ ms.StoreMessageInfo(mi)
147
+ }
148
+ return ms
149
+ }
150
+ return mi.MessageOf(x)
151
+ }
152
+
153
+ // Deprecated: Use UploadResponse.ProtoReflect.Descriptor instead.
154
+ func (*UploadResponse) Descriptor() ([]byte, []int) {
155
+ return file_media_proto_rawDescGZIP(), []int{1}
156
+ }
157
+
158
+ func (x *UploadResponse) GetKey() string {
159
+ if x != nil {
160
+ return x.Key
161
+ }
162
+ return ""
163
+ }
164
+
165
+ type GetRequest struct {
166
+ state protoimpl.MessageState
167
+ sizeCache protoimpl.SizeCache
168
+ unknownFields protoimpl.UnknownFields
169
+
170
+ Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
171
+ }
172
+
173
+ func (x *GetRequest) Reset() {
174
+ *x = GetRequest{}
175
+ if protoimpl.UnsafeEnabled {
176
+ mi := &file_media_proto_msgTypes[2]
177
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
178
+ ms.StoreMessageInfo(mi)
179
+ }
180
+ }
181
+
182
+ func (x *GetRequest) String() string {
183
+ return protoimpl.X.MessageStringOf(x)
184
+ }
185
+
186
+ func (*GetRequest) ProtoMessage() {}
187
+
188
+ func (x *GetRequest) ProtoReflect() protoreflect.Message {
189
+ mi := &file_media_proto_msgTypes[2]
190
+ if protoimpl.UnsafeEnabled && x != nil {
191
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
192
+ if ms.LoadMessageInfo() == nil {
193
+ ms.StoreMessageInfo(mi)
194
+ }
195
+ return ms
196
+ }
197
+ return mi.MessageOf(x)
198
+ }
199
+
200
+ // Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
201
+ func (*GetRequest) Descriptor() ([]byte, []int) {
202
+ return file_media_proto_rawDescGZIP(), []int{2}
203
+ }
204
+
205
+ func (x *GetRequest) GetKey() string {
206
+ if x != nil {
207
+ return x.Key
208
+ }
209
+ return ""
210
+ }
211
+
212
+ type GetResponse struct {
213
+ state protoimpl.MessageState
214
+ sizeCache protoimpl.SizeCache
215
+ unknownFields protoimpl.UnknownFields
216
+
217
+ Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
218
+ ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
219
+ }
220
+
221
+ func (x *GetResponse) Reset() {
222
+ *x = GetResponse{}
223
+ if protoimpl.UnsafeEnabled {
224
+ mi := &file_media_proto_msgTypes[3]
225
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
226
+ ms.StoreMessageInfo(mi)
227
+ }
228
+ }
229
+
230
+ func (x *GetResponse) String() string {
231
+ return protoimpl.X.MessageStringOf(x)
232
+ }
233
+
234
+ func (*GetResponse) ProtoMessage() {}
235
+
236
+ func (x *GetResponse) ProtoReflect() protoreflect.Message {
237
+ mi := &file_media_proto_msgTypes[3]
238
+ if protoimpl.UnsafeEnabled && x != nil {
239
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
240
+ if ms.LoadMessageInfo() == nil {
241
+ ms.StoreMessageInfo(mi)
242
+ }
243
+ return ms
244
+ }
245
+ return mi.MessageOf(x)
246
+ }
247
+
248
+ // Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
249
+ func (*GetResponse) Descriptor() ([]byte, []int) {
250
+ return file_media_proto_rawDescGZIP(), []int{3}
251
+ }
252
+
253
+ func (x *GetResponse) GetData() []byte {
254
+ if x != nil {
255
+ return x.Data
256
+ }
257
+ return nil
258
+ }
259
+
260
+ func (x *GetResponse) GetContentType() string {
261
+ if x != nil {
262
+ return x.ContentType
263
+ }
264
+ return ""
265
+ }
266
+
267
+ type DeleteRequest struct {
268
+ state protoimpl.MessageState
269
+ sizeCache protoimpl.SizeCache
270
+ unknownFields protoimpl.UnknownFields
271
+
272
+ Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
273
+ }
274
+
275
+ func (x *DeleteRequest) Reset() {
276
+ *x = DeleteRequest{}
277
+ if protoimpl.UnsafeEnabled {
278
+ mi := &file_media_proto_msgTypes[4]
279
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
280
+ ms.StoreMessageInfo(mi)
281
+ }
282
+ }
283
+
284
+ func (x *DeleteRequest) String() string {
285
+ return protoimpl.X.MessageStringOf(x)
286
+ }
287
+
288
+ func (*DeleteRequest) ProtoMessage() {}
289
+
290
+ func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
291
+ mi := &file_media_proto_msgTypes[4]
292
+ if protoimpl.UnsafeEnabled && x != nil {
293
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
294
+ if ms.LoadMessageInfo() == nil {
295
+ ms.StoreMessageInfo(mi)
296
+ }
297
+ return ms
298
+ }
299
+ return mi.MessageOf(x)
300
+ }
301
+
302
+ // Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
303
+ func (*DeleteRequest) Descriptor() ([]byte, []int) {
304
+ return file_media_proto_rawDescGZIP(), []int{4}
305
+ }
306
+
307
+ func (x *DeleteRequest) GetKey() string {
308
+ if x != nil {
309
+ return x.Key
310
+ }
311
+ return ""
312
+ }
313
+
314
+ type DeleteResponse struct {
315
+ state protoimpl.MessageState
316
+ sizeCache protoimpl.SizeCache
317
+ unknownFields protoimpl.UnknownFields
318
+
319
+ Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
320
+ }
321
+
322
+ func (x *DeleteResponse) Reset() {
323
+ *x = DeleteResponse{}
324
+ if protoimpl.UnsafeEnabled {
325
+ mi := &file_media_proto_msgTypes[5]
326
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
327
+ ms.StoreMessageInfo(mi)
328
+ }
329
+ }
330
+
331
+ func (x *DeleteResponse) String() string {
332
+ return protoimpl.X.MessageStringOf(x)
333
+ }
334
+
335
+ func (*DeleteResponse) ProtoMessage() {}
336
+
337
+ func (x *DeleteResponse) ProtoReflect() protoreflect.Message {
338
+ mi := &file_media_proto_msgTypes[5]
339
+ if protoimpl.UnsafeEnabled && x != nil {
340
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
341
+ if ms.LoadMessageInfo() == nil {
342
+ ms.StoreMessageInfo(mi)
343
+ }
344
+ return ms
345
+ }
346
+ return mi.MessageOf(x)
347
+ }
348
+
349
+ // Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
350
+ func (*DeleteResponse) Descriptor() ([]byte, []int) {
351
+ return file_media_proto_rawDescGZIP(), []int{5}
352
+ }
353
+
354
+ func (x *DeleteResponse) GetOk() bool {
355
+ if x != nil {
356
+ return x.Ok
357
+ }
358
+ return false
359
+ }
360
+
361
+ // === Presigned URLs ===
362
+ type GetPresignedURLsRequest struct {
363
+ state protoimpl.MessageState
364
+ sizeCache protoimpl.SizeCache
365
+ unknownFields protoimpl.UnknownFields
366
+
367
+ Files []*FileUploadInfo `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
368
+ }
369
+
370
+ func (x *GetPresignedURLsRequest) Reset() {
371
+ *x = GetPresignedURLsRequest{}
372
+ if protoimpl.UnsafeEnabled {
373
+ mi := &file_media_proto_msgTypes[6]
374
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
375
+ ms.StoreMessageInfo(mi)
376
+ }
377
+ }
378
+
379
+ func (x *GetPresignedURLsRequest) String() string {
380
+ return protoimpl.X.MessageStringOf(x)
381
+ }
382
+
383
+ func (*GetPresignedURLsRequest) ProtoMessage() {}
384
+
385
+ func (x *GetPresignedURLsRequest) ProtoReflect() protoreflect.Message {
386
+ mi := &file_media_proto_msgTypes[6]
387
+ if protoimpl.UnsafeEnabled && x != nil {
388
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
389
+ if ms.LoadMessageInfo() == nil {
390
+ ms.StoreMessageInfo(mi)
391
+ }
392
+ return ms
393
+ }
394
+ return mi.MessageOf(x)
395
+ }
396
+
397
+ // Deprecated: Use GetPresignedURLsRequest.ProtoReflect.Descriptor instead.
398
+ func (*GetPresignedURLsRequest) Descriptor() ([]byte, []int) {
399
+ return file_media_proto_rawDescGZIP(), []int{6}
400
+ }
401
+
402
+ func (x *GetPresignedURLsRequest) GetFiles() []*FileUploadInfo {
403
+ if x != nil {
404
+ return x.Files
405
+ }
406
+ return nil
407
+ }
408
+
409
+ type FileUploadInfo struct {
410
+ state protoimpl.MessageState
411
+ sizeCache protoimpl.SizeCache
412
+ unknownFields protoimpl.UnknownFields
413
+
414
+ FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
415
+ Folder string `protobuf:"bytes,2,opt,name=folder,proto3" json:"folder,omitempty"`
416
+ ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
417
+ Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` // Размер файла в байтах
418
+ }
419
+
420
+ func (x *FileUploadInfo) Reset() {
421
+ *x = FileUploadInfo{}
422
+ if protoimpl.UnsafeEnabled {
423
+ mi := &file_media_proto_msgTypes[7]
424
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
425
+ ms.StoreMessageInfo(mi)
426
+ }
427
+ }
428
+
429
+ func (x *FileUploadInfo) String() string {
430
+ return protoimpl.X.MessageStringOf(x)
431
+ }
432
+
433
+ func (*FileUploadInfo) ProtoMessage() {}
434
+
435
+ func (x *FileUploadInfo) ProtoReflect() protoreflect.Message {
436
+ mi := &file_media_proto_msgTypes[7]
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
+ // Deprecated: Use FileUploadInfo.ProtoReflect.Descriptor instead.
448
+ func (*FileUploadInfo) Descriptor() ([]byte, []int) {
449
+ return file_media_proto_rawDescGZIP(), []int{7}
450
+ }
451
+
452
+ func (x *FileUploadInfo) GetFileName() string {
453
+ if x != nil {
454
+ return x.FileName
455
+ }
456
+ return ""
457
+ }
458
+
459
+ func (x *FileUploadInfo) GetFolder() string {
460
+ if x != nil {
461
+ return x.Folder
462
+ }
463
+ return ""
464
+ }
465
+
466
+ func (x *FileUploadInfo) GetContentType() string {
467
+ if x != nil {
468
+ return x.ContentType
469
+ }
470
+ return ""
471
+ }
472
+
473
+ func (x *FileUploadInfo) GetSize() int64 {
474
+ if x != nil {
475
+ return x.Size
476
+ }
477
+ return 0
478
+ }
479
+
480
+ type GetPresignedURLsResponse struct {
481
+ state protoimpl.MessageState
482
+ sizeCache protoimpl.SizeCache
483
+ unknownFields protoimpl.UnknownFields
484
+
485
+ Urls []*PresignedURLInfo `protobuf:"bytes,1,rep,name=urls,proto3" json:"urls,omitempty"`
486
+ }
487
+
488
+ func (x *GetPresignedURLsResponse) Reset() {
489
+ *x = GetPresignedURLsResponse{}
490
+ if protoimpl.UnsafeEnabled {
491
+ mi := &file_media_proto_msgTypes[8]
492
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
493
+ ms.StoreMessageInfo(mi)
494
+ }
495
+ }
496
+
497
+ func (x *GetPresignedURLsResponse) String() string {
498
+ return protoimpl.X.MessageStringOf(x)
499
+ }
500
+
501
+ func (*GetPresignedURLsResponse) ProtoMessage() {}
502
+
503
+ func (x *GetPresignedURLsResponse) ProtoReflect() protoreflect.Message {
504
+ mi := &file_media_proto_msgTypes[8]
505
+ if protoimpl.UnsafeEnabled && x != nil {
506
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
507
+ if ms.LoadMessageInfo() == nil {
508
+ ms.StoreMessageInfo(mi)
509
+ }
510
+ return ms
511
+ }
512
+ return mi.MessageOf(x)
513
+ }
514
+
515
+ // Deprecated: Use GetPresignedURLsResponse.ProtoReflect.Descriptor instead.
516
+ func (*GetPresignedURLsResponse) Descriptor() ([]byte, []int) {
517
+ return file_media_proto_rawDescGZIP(), []int{8}
518
+ }
519
+
520
+ func (x *GetPresignedURLsResponse) GetUrls() []*PresignedURLInfo {
521
+ if x != nil {
522
+ return x.Urls
523
+ }
524
+ return nil
525
+ }
526
+
527
+ type PresignedURLInfo struct {
528
+ state protoimpl.MessageState
529
+ sizeCache protoimpl.SizeCache
530
+ unknownFields protoimpl.UnknownFields
531
+
532
+ Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` // Идентификатор файла (file0, file1, ...)
533
+ Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // Presigned URL для загрузки
534
+ Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` // HTTP метод (PUT)
535
+ SizeLimit int64 `protobuf:"varint,4,opt,name=size_limit,json=sizeLimit,proto3" json:"size_limit,omitempty"` // Максимальный размер в байтах
536
+ ContentType string `protobuf:"bytes,5,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` // Content-Type для загрузки
537
+ }
538
+
539
+ func (x *PresignedURLInfo) Reset() {
540
+ *x = PresignedURLInfo{}
541
+ if protoimpl.UnsafeEnabled {
542
+ mi := &file_media_proto_msgTypes[9]
543
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
544
+ ms.StoreMessageInfo(mi)
545
+ }
546
+ }
547
+
548
+ func (x *PresignedURLInfo) String() string {
549
+ return protoimpl.X.MessageStringOf(x)
550
+ }
551
+
552
+ func (*PresignedURLInfo) ProtoMessage() {}
553
+
554
+ func (x *PresignedURLInfo) ProtoReflect() protoreflect.Message {
555
+ mi := &file_media_proto_msgTypes[9]
556
+ if protoimpl.UnsafeEnabled && x != nil {
557
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
558
+ if ms.LoadMessageInfo() == nil {
559
+ ms.StoreMessageInfo(mi)
560
+ }
561
+ return ms
562
+ }
563
+ return mi.MessageOf(x)
564
+ }
565
+
566
+ // Deprecated: Use PresignedURLInfo.ProtoReflect.Descriptor instead.
567
+ func (*PresignedURLInfo) Descriptor() ([]byte, []int) {
568
+ return file_media_proto_rawDescGZIP(), []int{9}
569
+ }
570
+
571
+ func (x *PresignedURLInfo) GetField() string {
572
+ if x != nil {
573
+ return x.Field
574
+ }
575
+ return ""
576
+ }
577
+
578
+ func (x *PresignedURLInfo) GetUrl() string {
579
+ if x != nil {
580
+ return x.Url
581
+ }
582
+ return ""
583
+ }
584
+
585
+ func (x *PresignedURLInfo) GetMethod() string {
586
+ if x != nil {
587
+ return x.Method
588
+ }
589
+ return ""
590
+ }
591
+
592
+ func (x *PresignedURLInfo) GetSizeLimit() int64 {
593
+ if x != nil {
594
+ return x.SizeLimit
595
+ }
596
+ return 0
597
+ }
598
+
599
+ func (x *PresignedURLInfo) GetContentType() string {
600
+ if x != nil {
601
+ return x.ContentType
602
+ }
603
+ return ""
604
+ }
605
+
606
+ // === Multipart Upload ===
607
+ type CreateMultipartUploadRequest struct {
608
+ state protoimpl.MessageState
609
+ sizeCache protoimpl.SizeCache
610
+ unknownFields protoimpl.UnknownFields
611
+
612
+ FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
613
+ Folder string `protobuf:"bytes,2,opt,name=folder,proto3" json:"folder,omitempty"`
614
+ ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
615
+ }
616
+
617
+ func (x *CreateMultipartUploadRequest) Reset() {
618
+ *x = CreateMultipartUploadRequest{}
619
+ if protoimpl.UnsafeEnabled {
620
+ mi := &file_media_proto_msgTypes[10]
621
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
622
+ ms.StoreMessageInfo(mi)
623
+ }
624
+ }
625
+
626
+ func (x *CreateMultipartUploadRequest) String() string {
627
+ return protoimpl.X.MessageStringOf(x)
628
+ }
629
+
630
+ func (*CreateMultipartUploadRequest) ProtoMessage() {}
631
+
632
+ func (x *CreateMultipartUploadRequest) ProtoReflect() protoreflect.Message {
633
+ mi := &file_media_proto_msgTypes[10]
634
+ if protoimpl.UnsafeEnabled && x != nil {
635
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
636
+ if ms.LoadMessageInfo() == nil {
637
+ ms.StoreMessageInfo(mi)
638
+ }
639
+ return ms
640
+ }
641
+ return mi.MessageOf(x)
642
+ }
643
+
644
+ // Deprecated: Use CreateMultipartUploadRequest.ProtoReflect.Descriptor instead.
645
+ func (*CreateMultipartUploadRequest) Descriptor() ([]byte, []int) {
646
+ return file_media_proto_rawDescGZIP(), []int{10}
647
+ }
648
+
649
+ func (x *CreateMultipartUploadRequest) GetFileName() string {
650
+ if x != nil {
651
+ return x.FileName
652
+ }
653
+ return ""
654
+ }
655
+
656
+ func (x *CreateMultipartUploadRequest) GetFolder() string {
657
+ if x != nil {
658
+ return x.Folder
659
+ }
660
+ return ""
661
+ }
662
+
663
+ func (x *CreateMultipartUploadRequest) GetContentType() string {
664
+ if x != nil {
665
+ return x.ContentType
666
+ }
667
+ return ""
668
+ }
669
+
670
+ type CreateMultipartUploadResponse struct {
671
+ state protoimpl.MessageState
672
+ sizeCache protoimpl.SizeCache
673
+ unknownFields protoimpl.UnknownFields
674
+
675
+ UploadId string `protobuf:"bytes,1,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,omitempty"`
676
+ Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // S3 key для файла
677
+ }
678
+
679
+ func (x *CreateMultipartUploadResponse) Reset() {
680
+ *x = CreateMultipartUploadResponse{}
681
+ if protoimpl.UnsafeEnabled {
682
+ mi := &file_media_proto_msgTypes[11]
683
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
684
+ ms.StoreMessageInfo(mi)
685
+ }
686
+ }
687
+
688
+ func (x *CreateMultipartUploadResponse) String() string {
689
+ return protoimpl.X.MessageStringOf(x)
690
+ }
691
+
692
+ func (*CreateMultipartUploadResponse) ProtoMessage() {}
693
+
694
+ func (x *CreateMultipartUploadResponse) ProtoReflect() protoreflect.Message {
695
+ mi := &file_media_proto_msgTypes[11]
696
+ if protoimpl.UnsafeEnabled && x != nil {
697
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
698
+ if ms.LoadMessageInfo() == nil {
699
+ ms.StoreMessageInfo(mi)
700
+ }
701
+ return ms
702
+ }
703
+ return mi.MessageOf(x)
704
+ }
705
+
706
+ // Deprecated: Use CreateMultipartUploadResponse.ProtoReflect.Descriptor instead.
707
+ func (*CreateMultipartUploadResponse) Descriptor() ([]byte, []int) {
708
+ return file_media_proto_rawDescGZIP(), []int{11}
709
+ }
710
+
711
+ func (x *CreateMultipartUploadResponse) GetUploadId() string {
712
+ if x != nil {
713
+ return x.UploadId
714
+ }
715
+ return ""
716
+ }
717
+
718
+ func (x *CreateMultipartUploadResponse) GetKey() string {
719
+ if x != nil {
720
+ return x.Key
721
+ }
722
+ return ""
723
+ }
724
+
725
+ type GetPresignedPartURLsRequest struct {
726
+ state protoimpl.MessageState
727
+ sizeCache protoimpl.SizeCache
728
+ unknownFields protoimpl.UnknownFields
729
+
730
+ UploadId string `protobuf:"bytes,1,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,omitempty"`
731
+ Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
732
+ PartCount int32 `protobuf:"varint,3,opt,name=part_count,json=partCount,proto3" json:"part_count,omitempty"` // Количество частей
733
+ ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
734
+ }
735
+
736
+ func (x *GetPresignedPartURLsRequest) Reset() {
737
+ *x = GetPresignedPartURLsRequest{}
738
+ if protoimpl.UnsafeEnabled {
739
+ mi := &file_media_proto_msgTypes[12]
740
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
741
+ ms.StoreMessageInfo(mi)
742
+ }
743
+ }
744
+
745
+ func (x *GetPresignedPartURLsRequest) String() string {
746
+ return protoimpl.X.MessageStringOf(x)
747
+ }
748
+
749
+ func (*GetPresignedPartURLsRequest) ProtoMessage() {}
750
+
751
+ func (x *GetPresignedPartURLsRequest) ProtoReflect() protoreflect.Message {
752
+ mi := &file_media_proto_msgTypes[12]
753
+ if protoimpl.UnsafeEnabled && x != nil {
754
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
755
+ if ms.LoadMessageInfo() == nil {
756
+ ms.StoreMessageInfo(mi)
757
+ }
758
+ return ms
759
+ }
760
+ return mi.MessageOf(x)
761
+ }
762
+
763
+ // Deprecated: Use GetPresignedPartURLsRequest.ProtoReflect.Descriptor instead.
764
+ func (*GetPresignedPartURLsRequest) Descriptor() ([]byte, []int) {
765
+ return file_media_proto_rawDescGZIP(), []int{12}
766
+ }
767
+
768
+ func (x *GetPresignedPartURLsRequest) GetUploadId() string {
769
+ if x != nil {
770
+ return x.UploadId
771
+ }
772
+ return ""
773
+ }
774
+
775
+ func (x *GetPresignedPartURLsRequest) GetKey() string {
776
+ if x != nil {
777
+ return x.Key
778
+ }
779
+ return ""
780
+ }
781
+
782
+ func (x *GetPresignedPartURLsRequest) GetPartCount() int32 {
783
+ if x != nil {
784
+ return x.PartCount
785
+ }
786
+ return 0
787
+ }
788
+
789
+ func (x *GetPresignedPartURLsRequest) GetContentType() string {
790
+ if x != nil {
791
+ return x.ContentType
792
+ }
793
+ return ""
794
+ }
795
+
796
+ type GetPresignedPartURLsResponse struct {
797
+ state protoimpl.MessageState
798
+ sizeCache protoimpl.SizeCache
799
+ unknownFields protoimpl.UnknownFields
800
+
801
+ Parts []*PresignedPartURL `protobuf:"bytes,1,rep,name=parts,proto3" json:"parts,omitempty"`
802
+ }
803
+
804
+ func (x *GetPresignedPartURLsResponse) Reset() {
805
+ *x = GetPresignedPartURLsResponse{}
806
+ if protoimpl.UnsafeEnabled {
807
+ mi := &file_media_proto_msgTypes[13]
808
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
809
+ ms.StoreMessageInfo(mi)
810
+ }
811
+ }
812
+
813
+ func (x *GetPresignedPartURLsResponse) String() string {
814
+ return protoimpl.X.MessageStringOf(x)
815
+ }
816
+
817
+ func (*GetPresignedPartURLsResponse) ProtoMessage() {}
818
+
819
+ func (x *GetPresignedPartURLsResponse) ProtoReflect() protoreflect.Message {
820
+ mi := &file_media_proto_msgTypes[13]
821
+ if protoimpl.UnsafeEnabled && x != nil {
822
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
823
+ if ms.LoadMessageInfo() == nil {
824
+ ms.StoreMessageInfo(mi)
825
+ }
826
+ return ms
827
+ }
828
+ return mi.MessageOf(x)
829
+ }
830
+
831
+ // Deprecated: Use GetPresignedPartURLsResponse.ProtoReflect.Descriptor instead.
832
+ func (*GetPresignedPartURLsResponse) Descriptor() ([]byte, []int) {
833
+ return file_media_proto_rawDescGZIP(), []int{13}
834
+ }
835
+
836
+ func (x *GetPresignedPartURLsResponse) GetParts() []*PresignedPartURL {
837
+ if x != nil {
838
+ return x.Parts
839
+ }
840
+ return nil
841
+ }
842
+
843
+ type PresignedPartURL struct {
844
+ state protoimpl.MessageState
845
+ sizeCache protoimpl.SizeCache
846
+ unknownFields protoimpl.UnknownFields
847
+
848
+ PartNumber int32 `protobuf:"varint,1,opt,name=part_number,json=partNumber,proto3" json:"part_number,omitempty"` // Номер части (начинается с 1)
849
+ Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // Presigned URL для загрузки части
850
+ Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` // HTTP метод (PUT)
851
+ }
852
+
853
+ func (x *PresignedPartURL) Reset() {
854
+ *x = PresignedPartURL{}
855
+ if protoimpl.UnsafeEnabled {
856
+ mi := &file_media_proto_msgTypes[14]
857
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
858
+ ms.StoreMessageInfo(mi)
859
+ }
860
+ }
861
+
862
+ func (x *PresignedPartURL) String() string {
863
+ return protoimpl.X.MessageStringOf(x)
864
+ }
865
+
866
+ func (*PresignedPartURL) ProtoMessage() {}
867
+
868
+ func (x *PresignedPartURL) ProtoReflect() protoreflect.Message {
869
+ mi := &file_media_proto_msgTypes[14]
870
+ if protoimpl.UnsafeEnabled && x != nil {
871
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
872
+ if ms.LoadMessageInfo() == nil {
873
+ ms.StoreMessageInfo(mi)
874
+ }
875
+ return ms
876
+ }
877
+ return mi.MessageOf(x)
878
+ }
879
+
880
+ // Deprecated: Use PresignedPartURL.ProtoReflect.Descriptor instead.
881
+ func (*PresignedPartURL) Descriptor() ([]byte, []int) {
882
+ return file_media_proto_rawDescGZIP(), []int{14}
883
+ }
884
+
885
+ func (x *PresignedPartURL) GetPartNumber() int32 {
886
+ if x != nil {
887
+ return x.PartNumber
888
+ }
889
+ return 0
890
+ }
891
+
892
+ func (x *PresignedPartURL) GetUrl() string {
893
+ if x != nil {
894
+ return x.Url
895
+ }
896
+ return ""
897
+ }
898
+
899
+ func (x *PresignedPartURL) GetMethod() string {
900
+ if x != nil {
901
+ return x.Method
902
+ }
903
+ return ""
904
+ }
905
+
906
+ type CompleteMultipartUploadRequest struct {
907
+ state protoimpl.MessageState
908
+ sizeCache protoimpl.SizeCache
909
+ unknownFields protoimpl.UnknownFields
910
+
911
+ UploadId string `protobuf:"bytes,1,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,omitempty"`
912
+ Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
913
+ Parts []*CompletedPart `protobuf:"bytes,3,rep,name=parts,proto3" json:"parts,omitempty"` // Список загруженных частей с ETag
914
+ }
915
+
916
+ func (x *CompleteMultipartUploadRequest) Reset() {
917
+ *x = CompleteMultipartUploadRequest{}
918
+ if protoimpl.UnsafeEnabled {
919
+ mi := &file_media_proto_msgTypes[15]
920
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
921
+ ms.StoreMessageInfo(mi)
922
+ }
923
+ }
924
+
925
+ func (x *CompleteMultipartUploadRequest) String() string {
926
+ return protoimpl.X.MessageStringOf(x)
927
+ }
928
+
929
+ func (*CompleteMultipartUploadRequest) ProtoMessage() {}
930
+
931
+ func (x *CompleteMultipartUploadRequest) ProtoReflect() protoreflect.Message {
932
+ mi := &file_media_proto_msgTypes[15]
933
+ if protoimpl.UnsafeEnabled && x != nil {
934
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
935
+ if ms.LoadMessageInfo() == nil {
936
+ ms.StoreMessageInfo(mi)
937
+ }
938
+ return ms
939
+ }
940
+ return mi.MessageOf(x)
941
+ }
942
+
943
+ // Deprecated: Use CompleteMultipartUploadRequest.ProtoReflect.Descriptor instead.
944
+ func (*CompleteMultipartUploadRequest) Descriptor() ([]byte, []int) {
945
+ return file_media_proto_rawDescGZIP(), []int{15}
946
+ }
947
+
948
+ func (x *CompleteMultipartUploadRequest) GetUploadId() string {
949
+ if x != nil {
950
+ return x.UploadId
951
+ }
952
+ return ""
953
+ }
954
+
955
+ func (x *CompleteMultipartUploadRequest) GetKey() string {
956
+ if x != nil {
957
+ return x.Key
958
+ }
959
+ return ""
960
+ }
961
+
962
+ func (x *CompleteMultipartUploadRequest) GetParts() []*CompletedPart {
963
+ if x != nil {
964
+ return x.Parts
965
+ }
966
+ return nil
967
+ }
968
+
969
+ type CompletedPart struct {
970
+ state protoimpl.MessageState
971
+ sizeCache protoimpl.SizeCache
972
+ unknownFields protoimpl.UnknownFields
973
+
974
+ PartNumber int32 `protobuf:"varint,1,opt,name=part_number,json=partNumber,proto3" json:"part_number,omitempty"`
975
+ Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"` // ETag полученный после загрузки части
976
+ }
977
+
978
+ func (x *CompletedPart) Reset() {
979
+ *x = CompletedPart{}
980
+ if protoimpl.UnsafeEnabled {
981
+ mi := &file_media_proto_msgTypes[16]
982
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
983
+ ms.StoreMessageInfo(mi)
984
+ }
985
+ }
986
+
987
+ func (x *CompletedPart) String() string {
988
+ return protoimpl.X.MessageStringOf(x)
989
+ }
990
+
991
+ func (*CompletedPart) ProtoMessage() {}
992
+
993
+ func (x *CompletedPart) ProtoReflect() protoreflect.Message {
994
+ mi := &file_media_proto_msgTypes[16]
995
+ if protoimpl.UnsafeEnabled && x != nil {
996
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
997
+ if ms.LoadMessageInfo() == nil {
998
+ ms.StoreMessageInfo(mi)
999
+ }
1000
+ return ms
1001
+ }
1002
+ return mi.MessageOf(x)
1003
+ }
1004
+
1005
+ // Deprecated: Use CompletedPart.ProtoReflect.Descriptor instead.
1006
+ func (*CompletedPart) Descriptor() ([]byte, []int) {
1007
+ return file_media_proto_rawDescGZIP(), []int{16}
1008
+ }
1009
+
1010
+ func (x *CompletedPart) GetPartNumber() int32 {
1011
+ if x != nil {
1012
+ return x.PartNumber
1013
+ }
1014
+ return 0
1015
+ }
1016
+
1017
+ func (x *CompletedPart) GetEtag() string {
1018
+ if x != nil {
1019
+ return x.Etag
1020
+ }
1021
+ return ""
1022
+ }
1023
+
1024
+ type CompleteMultipartUploadResponse struct {
1025
+ state protoimpl.MessageState
1026
+ sizeCache protoimpl.SizeCache
1027
+ unknownFields protoimpl.UnknownFields
1028
+
1029
+ Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
1030
+ Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // Финальный S3 key
1031
+ Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` // Публичный URL файла
1032
+ }
1033
+
1034
+ func (x *CompleteMultipartUploadResponse) Reset() {
1035
+ *x = CompleteMultipartUploadResponse{}
1036
+ if protoimpl.UnsafeEnabled {
1037
+ mi := &file_media_proto_msgTypes[17]
1038
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1039
+ ms.StoreMessageInfo(mi)
1040
+ }
1041
+ }
1042
+
1043
+ func (x *CompleteMultipartUploadResponse) String() string {
1044
+ return protoimpl.X.MessageStringOf(x)
1045
+ }
1046
+
1047
+ func (*CompleteMultipartUploadResponse) ProtoMessage() {}
1048
+
1049
+ func (x *CompleteMultipartUploadResponse) ProtoReflect() protoreflect.Message {
1050
+ mi := &file_media_proto_msgTypes[17]
1051
+ if protoimpl.UnsafeEnabled && x != nil {
1052
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1053
+ if ms.LoadMessageInfo() == nil {
1054
+ ms.StoreMessageInfo(mi)
1055
+ }
1056
+ return ms
1057
+ }
1058
+ return mi.MessageOf(x)
1059
+ }
1060
+
1061
+ // Deprecated: Use CompleteMultipartUploadResponse.ProtoReflect.Descriptor instead.
1062
+ func (*CompleteMultipartUploadResponse) Descriptor() ([]byte, []int) {
1063
+ return file_media_proto_rawDescGZIP(), []int{17}
1064
+ }
1065
+
1066
+ func (x *CompleteMultipartUploadResponse) GetOk() bool {
1067
+ if x != nil {
1068
+ return x.Ok
1069
+ }
1070
+ return false
1071
+ }
1072
+
1073
+ func (x *CompleteMultipartUploadResponse) GetKey() string {
1074
+ if x != nil {
1075
+ return x.Key
1076
+ }
1077
+ return ""
1078
+ }
1079
+
1080
+ func (x *CompleteMultipartUploadResponse) GetUrl() string {
1081
+ if x != nil {
1082
+ return x.Url
1083
+ }
1084
+ return ""
1085
+ }
1086
+
1087
+ var File_media_proto protoreflect.FileDescriptor
1088
+
1089
+ var file_media_proto_rawDesc = []byte{
1090
+ 0x0a, 0x0b, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x6d,
1091
+ 0x65, 0x64, 0x69, 0x61, 0x2e, 0x76, 0x31, 0x22, 0xa1, 0x02, 0x0a, 0x0d, 0x55, 0x70, 0x6c, 0x6f,
1092
+ 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c,
1093
+ 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69,
1094
+ 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72,
1095
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x12, 0x21,
1096
+ 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03,
1097
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70,
1098
+ 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52,
1099
+ 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x26, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x5f,
1100
+ 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0b, 0x72,
1101
+ 0x65, 0x73, 0x69, 0x7a, 0x65, 0x57, 0x69, 0x64, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x28, 0x0a,
1102
+ 0x0d, 0x72, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06,
1103
+ 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x48, 0x65,
1104
+ 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, 0x01, 0x12, 0x21, 0x0a, 0x09, 0x77, 0x61, 0x74, 0x65, 0x72,
1105
+ 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, 0x52, 0x09, 0x77, 0x61,
1106
+ 0x74, 0x65, 0x72, 0x6d, 0x61, 0x72, 0x6b, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x72,
1107
+ 0x65, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x77, 0x69, 0x64, 0x74, 0x68, 0x42, 0x10, 0x0a, 0x0e, 0x5f,
1108
+ 0x72, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0x0c, 0x0a,
1109
+ 0x0a, 0x5f, 0x77, 0x61, 0x74, 0x65, 0x72, 0x6d, 0x61, 0x72, 0x6b, 0x22, 0x22, 0x0a, 0x0e, 0x55,
1110
+ 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a,
1111
+ 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22,
1112
+ 0x1e, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a,
1113
+ 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22,
1114
+ 0x44, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12,
1115
+ 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61,
1116
+ 0x74, 0x61, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79,
1117
+ 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
1118
+ 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x21, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52,
1119
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
1120
+ 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x20, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65,
1121
+ 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x6b,
1122
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x6f, 0x6b, 0x22, 0x49, 0x0a, 0x17, 0x47, 0x65,
1123
+ 0x74, 0x50, 0x72, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x52, 0x4c, 0x73, 0x52, 0x65,
1124
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01,
1125
+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x2e, 0x76, 0x31, 0x2e,
1126
+ 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05,
1127
+ 0x66, 0x69, 0x6c, 0x65, 0x73, 0x22, 0x7c, 0x0a, 0x0e, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c,
1128
+ 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f,
1129
+ 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65,
1130
+ 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x02,
1131
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c,
1132
+ 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
1133
+ 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12,
1134
+ 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73,
1135
+ 0x69, 0x7a, 0x65, 0x22, 0x4a, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x73, 0x69, 0x67,
1136
+ 0x6e, 0x65, 0x64, 0x55, 0x52, 0x4c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
1137
+ 0x2e, 0x0a, 0x04, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
1138
+ 0x6d, 0x65, 0x64, 0x69, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x73, 0x69, 0x67, 0x6e,
1139
+ 0x65, 0x64, 0x55, 0x52, 0x4c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x75, 0x72, 0x6c, 0x73, 0x22,
1140
+ 0x94, 0x01, 0x0a, 0x10, 0x50, 0x72, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x52, 0x4c,
1141
+ 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20,
1142
+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72,
1143
+ 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06,
1144
+ 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65,
1145
+ 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6c, 0x69, 0x6d,
1146
+ 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x69, 0x7a, 0x65, 0x4c, 0x69,
1147
+ 0x6d, 0x69, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74,
1148
+ 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65,
1149
+ 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x76, 0x0a, 0x1c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
1150
+ 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52,
1151
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x6e,
1152
+ 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e,
1153
+ 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20,
1154
+ 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63,
1155
+ 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
1156
+ 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x4e,
1157
+ 0x0a, 0x1d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72,
1158
+ 0x74, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
1159
+ 0x1b, 0x0a, 0x09, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
1160
+ 0x28, 0x09, 0x52, 0x08, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03,
1161
+ 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x8e,
1162
+ 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50,
1163
+ 0x61, 0x72, 0x74, 0x55, 0x52, 0x4c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b,
1164
+ 0x0a, 0x09, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
1165
+ 0x09, 0x52, 0x08, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b,
1166
+ 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1d, 0x0a,
1167
+ 0x0a, 0x70, 0x61, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
1168
+ 0x05, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c,
1169
+ 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01,
1170
+ 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22,
1171
+ 0x50, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50,
1172
+ 0x61, 0x72, 0x74, 0x55, 0x52, 0x4c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
1173
+ 0x30, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a,
1174
+ 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x73, 0x69, 0x67,
1175
+ 0x6e, 0x65, 0x64, 0x50, 0x61, 0x72, 0x74, 0x55, 0x52, 0x4c, 0x52, 0x05, 0x70, 0x61, 0x72, 0x74,
1176
+ 0x73, 0x22, 0x5d, 0x0a, 0x10, 0x50, 0x72, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50, 0x61,
1177
+ 0x72, 0x74, 0x55, 0x52, 0x4c, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x74, 0x5f, 0x6e, 0x75,
1178
+ 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x74,
1179
+ 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20,
1180
+ 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68,
1181
+ 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64,
1182
+ 0x22, 0x7e, 0x0a, 0x1e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74,
1183
+ 0x69, 0x70, 0x61, 0x72, 0x74, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
1184
+ 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x69, 0x64, 0x18,
1185
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x64, 0x12,
1186
+ 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
1187
+ 0x79, 0x12, 0x2d, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
1188
+ 0x32, 0x17, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70,
1189
+ 0x6c, 0x65, 0x74, 0x65, 0x64, 0x50, 0x61, 0x72, 0x74, 0x52, 0x05, 0x70, 0x61, 0x72, 0x74, 0x73,
1190
+ 0x22, 0x44, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x50, 0x61, 0x72,
1191
+ 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x74, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72,
1192
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x62,
1193
+ 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
1194
+ 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x22, 0x55, 0x0a, 0x1f, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65,
1195
+ 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x55, 0x70, 0x6c, 0x6f, 0x61,
1196
+ 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x6b, 0x18,
1197
+ 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x6f, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
1198
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x75,
1199
+ 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x32, 0xd8, 0x04,
1200
+ 0x0a, 0x0c, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3b,
1201
+ 0x0a, 0x06, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61,
1202
+ 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
1203
+ 0x74, 0x1a, 0x18, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x6c,
1204
+ 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x03, 0x47,
1205
+ 0x65, 0x74, 0x12, 0x14, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
1206
+ 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61,
1207
+ 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
1208
+ 0x3b, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x64, 0x69,
1209
+ 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
1210
+ 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65,
1211
+ 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x10,
1212
+ 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x52, 0x4c, 0x73,
1213
+ 0x12, 0x21, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50,
1214
+ 0x72, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x52, 0x4c, 0x73, 0x52, 0x65, 0x71, 0x75,
1215
+ 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47,
1216
+ 0x65, 0x74, 0x50, 0x72, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x52, 0x4c, 0x73, 0x52,
1217
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74,
1218
+ 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64,
1219
+ 0x12, 0x26, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61,
1220
+ 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x55, 0x70, 0x6c, 0x6f, 0x61,
1221
+ 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61,
1222
+ 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70,
1223
+ 0x61, 0x72, 0x74, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
1224
+ 0x65, 0x12, 0x65, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x65,
1225
+ 0x64, 0x50, 0x61, 0x72, 0x74, 0x55, 0x52, 0x4c, 0x73, 0x12, 0x25, 0x2e, 0x6d, 0x65, 0x64, 0x69,
1226
+ 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x65,
1227
+ 0x64, 0x50, 0x61, 0x72, 0x74, 0x55, 0x52, 0x4c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
1228
+ 0x1a, 0x26, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50,
1229
+ 0x72, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50, 0x61, 0x72, 0x74, 0x55, 0x52, 0x4c, 0x73,
1230
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x17, 0x43, 0x6f, 0x6d, 0x70,
1231
+ 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x55, 0x70, 0x6c,
1232
+ 0x6f, 0x61, 0x64, 0x12, 0x28, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x43,
1233
+ 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74,
1234
+ 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e,
1235
+ 0x6d, 0x65, 0x64, 0x69, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74,
1236
+ 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64,
1237
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x36, 0x50, 0x01, 0x5a, 0x32, 0x67, 0x69,
1238
+ 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x61, 0x72, 0x75, 0x6d, 0x65, 0x74,
1239
+ 0x72, 0x69, 0x63, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x67, 0x65,
1240
+ 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x3b, 0x6d, 0x65, 0x64, 0x69, 0x61,
1241
+ 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
1242
+ }
1243
+
1244
+ var (
1245
+ file_media_proto_rawDescOnce sync.Once
1246
+ file_media_proto_rawDescData = file_media_proto_rawDesc
1247
+ )
1248
+
1249
+ func file_media_proto_rawDescGZIP() []byte {
1250
+ file_media_proto_rawDescOnce.Do(func() {
1251
+ file_media_proto_rawDescData = protoimpl.X.CompressGZIP(file_media_proto_rawDescData)
1252
+ })
1253
+ return file_media_proto_rawDescData
1254
+ }
1255
+
1256
+ var file_media_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
1257
+ var file_media_proto_goTypes = []interface{}{
1258
+ (*UploadRequest)(nil), // 0: media.v1.UploadRequest
1259
+ (*UploadResponse)(nil), // 1: media.v1.UploadResponse
1260
+ (*GetRequest)(nil), // 2: media.v1.GetRequest
1261
+ (*GetResponse)(nil), // 3: media.v1.GetResponse
1262
+ (*DeleteRequest)(nil), // 4: media.v1.DeleteRequest
1263
+ (*DeleteResponse)(nil), // 5: media.v1.DeleteResponse
1264
+ (*GetPresignedURLsRequest)(nil), // 6: media.v1.GetPresignedURLsRequest
1265
+ (*FileUploadInfo)(nil), // 7: media.v1.FileUploadInfo
1266
+ (*GetPresignedURLsResponse)(nil), // 8: media.v1.GetPresignedURLsResponse
1267
+ (*PresignedURLInfo)(nil), // 9: media.v1.PresignedURLInfo
1268
+ (*CreateMultipartUploadRequest)(nil), // 10: media.v1.CreateMultipartUploadRequest
1269
+ (*CreateMultipartUploadResponse)(nil), // 11: media.v1.CreateMultipartUploadResponse
1270
+ (*GetPresignedPartURLsRequest)(nil), // 12: media.v1.GetPresignedPartURLsRequest
1271
+ (*GetPresignedPartURLsResponse)(nil), // 13: media.v1.GetPresignedPartURLsResponse
1272
+ (*PresignedPartURL)(nil), // 14: media.v1.PresignedPartURL
1273
+ (*CompleteMultipartUploadRequest)(nil), // 15: media.v1.CompleteMultipartUploadRequest
1274
+ (*CompletedPart)(nil), // 16: media.v1.CompletedPart
1275
+ (*CompleteMultipartUploadResponse)(nil), // 17: media.v1.CompleteMultipartUploadResponse
1276
+ }
1277
+ var file_media_proto_depIdxs = []int32{
1278
+ 7, // 0: media.v1.GetPresignedURLsRequest.files:type_name -> media.v1.FileUploadInfo
1279
+ 9, // 1: media.v1.GetPresignedURLsResponse.urls:type_name -> media.v1.PresignedURLInfo
1280
+ 14, // 2: media.v1.GetPresignedPartURLsResponse.parts:type_name -> media.v1.PresignedPartURL
1281
+ 16, // 3: media.v1.CompleteMultipartUploadRequest.parts:type_name -> media.v1.CompletedPart
1282
+ 0, // 4: media.v1.MediaService.Upload:input_type -> media.v1.UploadRequest
1283
+ 2, // 5: media.v1.MediaService.Get:input_type -> media.v1.GetRequest
1284
+ 4, // 6: media.v1.MediaService.Delete:input_type -> media.v1.DeleteRequest
1285
+ 6, // 7: media.v1.MediaService.GetPresignedURLs:input_type -> media.v1.GetPresignedURLsRequest
1286
+ 10, // 8: media.v1.MediaService.CreateMultipartUpload:input_type -> media.v1.CreateMultipartUploadRequest
1287
+ 12, // 9: media.v1.MediaService.GetPresignedPartURLs:input_type -> media.v1.GetPresignedPartURLsRequest
1288
+ 15, // 10: media.v1.MediaService.CompleteMultipartUpload:input_type -> media.v1.CompleteMultipartUploadRequest
1289
+ 1, // 11: media.v1.MediaService.Upload:output_type -> media.v1.UploadResponse
1290
+ 3, // 12: media.v1.MediaService.Get:output_type -> media.v1.GetResponse
1291
+ 5, // 13: media.v1.MediaService.Delete:output_type -> media.v1.DeleteResponse
1292
+ 8, // 14: media.v1.MediaService.GetPresignedURLs:output_type -> media.v1.GetPresignedURLsResponse
1293
+ 11, // 15: media.v1.MediaService.CreateMultipartUpload:output_type -> media.v1.CreateMultipartUploadResponse
1294
+ 13, // 16: media.v1.MediaService.GetPresignedPartURLs:output_type -> media.v1.GetPresignedPartURLsResponse
1295
+ 17, // 17: media.v1.MediaService.CompleteMultipartUpload:output_type -> media.v1.CompleteMultipartUploadResponse
1296
+ 11, // [11:18] is the sub-list for method output_type
1297
+ 4, // [4:11] is the sub-list for method input_type
1298
+ 4, // [4:4] is the sub-list for extension type_name
1299
+ 4, // [4:4] is the sub-list for extension extendee
1300
+ 0, // [0:4] is the sub-list for field type_name
1301
+ }
1302
+
1303
+ func init() { file_media_proto_init() }
1304
+ func file_media_proto_init() {
1305
+ if File_media_proto != nil {
1306
+ return
1307
+ }
1308
+ if !protoimpl.UnsafeEnabled {
1309
+ file_media_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
1310
+ switch v := v.(*UploadRequest); i {
1311
+ case 0:
1312
+ return &v.state
1313
+ case 1:
1314
+ return &v.sizeCache
1315
+ case 2:
1316
+ return &v.unknownFields
1317
+ default:
1318
+ return nil
1319
+ }
1320
+ }
1321
+ file_media_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
1322
+ switch v := v.(*UploadResponse); i {
1323
+ case 0:
1324
+ return &v.state
1325
+ case 1:
1326
+ return &v.sizeCache
1327
+ case 2:
1328
+ return &v.unknownFields
1329
+ default:
1330
+ return nil
1331
+ }
1332
+ }
1333
+ file_media_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
1334
+ switch v := v.(*GetRequest); i {
1335
+ case 0:
1336
+ return &v.state
1337
+ case 1:
1338
+ return &v.sizeCache
1339
+ case 2:
1340
+ return &v.unknownFields
1341
+ default:
1342
+ return nil
1343
+ }
1344
+ }
1345
+ file_media_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
1346
+ switch v := v.(*GetResponse); i {
1347
+ case 0:
1348
+ return &v.state
1349
+ case 1:
1350
+ return &v.sizeCache
1351
+ case 2:
1352
+ return &v.unknownFields
1353
+ default:
1354
+ return nil
1355
+ }
1356
+ }
1357
+ file_media_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
1358
+ switch v := v.(*DeleteRequest); i {
1359
+ case 0:
1360
+ return &v.state
1361
+ case 1:
1362
+ return &v.sizeCache
1363
+ case 2:
1364
+ return &v.unknownFields
1365
+ default:
1366
+ return nil
1367
+ }
1368
+ }
1369
+ file_media_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
1370
+ switch v := v.(*DeleteResponse); i {
1371
+ case 0:
1372
+ return &v.state
1373
+ case 1:
1374
+ return &v.sizeCache
1375
+ case 2:
1376
+ return &v.unknownFields
1377
+ default:
1378
+ return nil
1379
+ }
1380
+ }
1381
+ file_media_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
1382
+ switch v := v.(*GetPresignedURLsRequest); i {
1383
+ case 0:
1384
+ return &v.state
1385
+ case 1:
1386
+ return &v.sizeCache
1387
+ case 2:
1388
+ return &v.unknownFields
1389
+ default:
1390
+ return nil
1391
+ }
1392
+ }
1393
+ file_media_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
1394
+ switch v := v.(*FileUploadInfo); i {
1395
+ case 0:
1396
+ return &v.state
1397
+ case 1:
1398
+ return &v.sizeCache
1399
+ case 2:
1400
+ return &v.unknownFields
1401
+ default:
1402
+ return nil
1403
+ }
1404
+ }
1405
+ file_media_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
1406
+ switch v := v.(*GetPresignedURLsResponse); i {
1407
+ case 0:
1408
+ return &v.state
1409
+ case 1:
1410
+ return &v.sizeCache
1411
+ case 2:
1412
+ return &v.unknownFields
1413
+ default:
1414
+ return nil
1415
+ }
1416
+ }
1417
+ file_media_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
1418
+ switch v := v.(*PresignedURLInfo); i {
1419
+ case 0:
1420
+ return &v.state
1421
+ case 1:
1422
+ return &v.sizeCache
1423
+ case 2:
1424
+ return &v.unknownFields
1425
+ default:
1426
+ return nil
1427
+ }
1428
+ }
1429
+ file_media_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
1430
+ switch v := v.(*CreateMultipartUploadRequest); i {
1431
+ case 0:
1432
+ return &v.state
1433
+ case 1:
1434
+ return &v.sizeCache
1435
+ case 2:
1436
+ return &v.unknownFields
1437
+ default:
1438
+ return nil
1439
+ }
1440
+ }
1441
+ file_media_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
1442
+ switch v := v.(*CreateMultipartUploadResponse); i {
1443
+ case 0:
1444
+ return &v.state
1445
+ case 1:
1446
+ return &v.sizeCache
1447
+ case 2:
1448
+ return &v.unknownFields
1449
+ default:
1450
+ return nil
1451
+ }
1452
+ }
1453
+ file_media_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
1454
+ switch v := v.(*GetPresignedPartURLsRequest); i {
1455
+ case 0:
1456
+ return &v.state
1457
+ case 1:
1458
+ return &v.sizeCache
1459
+ case 2:
1460
+ return &v.unknownFields
1461
+ default:
1462
+ return nil
1463
+ }
1464
+ }
1465
+ file_media_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
1466
+ switch v := v.(*GetPresignedPartURLsResponse); i {
1467
+ case 0:
1468
+ return &v.state
1469
+ case 1:
1470
+ return &v.sizeCache
1471
+ case 2:
1472
+ return &v.unknownFields
1473
+ default:
1474
+ return nil
1475
+ }
1476
+ }
1477
+ file_media_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
1478
+ switch v := v.(*PresignedPartURL); i {
1479
+ case 0:
1480
+ return &v.state
1481
+ case 1:
1482
+ return &v.sizeCache
1483
+ case 2:
1484
+ return &v.unknownFields
1485
+ default:
1486
+ return nil
1487
+ }
1488
+ }
1489
+ file_media_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
1490
+ switch v := v.(*CompleteMultipartUploadRequest); i {
1491
+ case 0:
1492
+ return &v.state
1493
+ case 1:
1494
+ return &v.sizeCache
1495
+ case 2:
1496
+ return &v.unknownFields
1497
+ default:
1498
+ return nil
1499
+ }
1500
+ }
1501
+ file_media_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
1502
+ switch v := v.(*CompletedPart); i {
1503
+ case 0:
1504
+ return &v.state
1505
+ case 1:
1506
+ return &v.sizeCache
1507
+ case 2:
1508
+ return &v.unknownFields
1509
+ default:
1510
+ return nil
1511
+ }
1512
+ }
1513
+ file_media_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
1514
+ switch v := v.(*CompleteMultipartUploadResponse); i {
1515
+ case 0:
1516
+ return &v.state
1517
+ case 1:
1518
+ return &v.sizeCache
1519
+ case 2:
1520
+ return &v.unknownFields
1521
+ default:
1522
+ return nil
1523
+ }
1524
+ }
1525
+ }
1526
+ file_media_proto_msgTypes[0].OneofWrappers = []interface{}{}
1527
+ type x struct{}
1528
+ out := protoimpl.TypeBuilder{
1529
+ File: protoimpl.DescBuilder{
1530
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1531
+ RawDescriptor: file_media_proto_rawDesc,
1532
+ NumEnums: 0,
1533
+ NumMessages: 18,
1534
+ NumExtensions: 0,
1535
+ NumServices: 1,
1536
+ },
1537
+ GoTypes: file_media_proto_goTypes,
1538
+ DependencyIndexes: file_media_proto_depIdxs,
1539
+ MessageInfos: file_media_proto_msgTypes,
1540
+ }.Build()
1541
+ File_media_proto = out.File
1542
+ file_media_proto_rawDesc = nil
1543
+ file_media_proto_goTypes = nil
1544
+ file_media_proto_depIdxs = nil
1545
+ }