-
Notifications
You must be signed in to change notification settings - Fork 1
/
collection_service_grpc.pb.go
634 lines (597 loc) · 26.4 KB
/
collection_service_grpc.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: aruna/api/storage/services/v2/collection_service.proto
package v2
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
CollectionService_CreateCollection_FullMethodName = "/aruna.api.storage.services.v2.CollectionService/CreateCollection"
CollectionService_GetCollection_FullMethodName = "/aruna.api.storage.services.v2.CollectionService/GetCollection"
CollectionService_GetCollections_FullMethodName = "/aruna.api.storage.services.v2.CollectionService/GetCollections"
CollectionService_DeleteCollection_FullMethodName = "/aruna.api.storage.services.v2.CollectionService/DeleteCollection"
CollectionService_UpdateCollectionName_FullMethodName = "/aruna.api.storage.services.v2.CollectionService/UpdateCollectionName"
CollectionService_UpdateCollectionDescription_FullMethodName = "/aruna.api.storage.services.v2.CollectionService/UpdateCollectionDescription"
CollectionService_UpdateCollectionKeyValues_FullMethodName = "/aruna.api.storage.services.v2.CollectionService/UpdateCollectionKeyValues"
CollectionService_UpdateCollectionDataClass_FullMethodName = "/aruna.api.storage.services.v2.CollectionService/UpdateCollectionDataClass"
CollectionService_SnapshotCollection_FullMethodName = "/aruna.api.storage.services.v2.CollectionService/SnapshotCollection"
CollectionService_UpdateCollectionLicenses_FullMethodName = "/aruna.api.storage.services.v2.CollectionService/UpdateCollectionLicenses"
CollectionService_UpdateCollectionTitle_FullMethodName = "/aruna.api.storage.services.v2.CollectionService/UpdateCollectionTitle"
CollectionService_UpdateCollectionAuthors_FullMethodName = "/aruna.api.storage.services.v2.CollectionService/UpdateCollectionAuthors"
)
// CollectionServiceClient is the client API for CollectionService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type CollectionServiceClient interface {
// CreateNewCollection
//
// Status: BETA
//
// creates a new Collection
CreateCollection(ctx context.Context, in *CreateCollectionRequest, opts ...grpc.CallOption) (*CreateCollectionResponse, error)
// GetCollection
//
// Status: BETA
//
// Request a specific collection by ID
GetCollection(ctx context.Context, in *GetCollectionRequest, opts ...grpc.CallOption) (*GetCollectionResponse, error)
// GetCollections
//
// Status: BETA
//
// Queries multiple collections by ID
GetCollections(ctx context.Context, in *GetCollectionsRequest, opts ...grpc.CallOption) (*GetCollectionsResponse, error)
// DeleteCollection
//
// Status: STABLE
//
// This request deletes the collection.
DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error)
// UpdateCollectionName
//
// Status: BETA
//
// Updates the collection name. Caveat! Will rename the "s3 bucket" for data proxies!
UpdateCollectionName(ctx context.Context, in *UpdateCollectionNameRequest, opts ...grpc.CallOption) (*UpdateCollectionNameResponse, error)
// UpdateCollectionDescription
//
// Status: BETA
//
// Updates the collection description.
UpdateCollectionDescription(ctx context.Context, in *UpdateCollectionDescriptionRequest, opts ...grpc.CallOption) (*UpdateCollectionDescriptionResponse, error)
// UpdateCollectionKeyValues
//
// Status: BETA
//
// Updates the collection key values.
UpdateCollectionKeyValues(ctx context.Context, in *UpdateCollectionKeyValuesRequest, opts ...grpc.CallOption) (*UpdateCollectionKeyValuesResponse, error)
// UpdateCollectionDataClass
//
// Status: BETA
//
// Updates the collection name. All (meta) data will be overwritten.
UpdateCollectionDataClass(ctx context.Context, in *UpdateCollectionDataClassRequest, opts ...grpc.CallOption) (*UpdateCollectionDataClassResponse, error)
// SnapshotCollectionRequest
//
// Status: BETA
//
// Archives the full collection, rendering all downstream relations immutable
SnapshotCollection(ctx context.Context, in *SnapshotCollectionRequest, opts ...grpc.CallOption) (*SnapshotCollectionResponse, error)
// UpdateLicenses
//
// Status: BETA
//
// Updates the collections metadata license and/or default data license.
UpdateCollectionLicenses(ctx context.Context, in *UpdateCollectionLicensesRequest, opts ...grpc.CallOption) (*UpdateCollectionLicensesResponse, error)
// UpdateTitle
//
// Status: ALPHA
//
// Updates the collections metadata title.
UpdateCollectionTitle(ctx context.Context, in *UpdateCollectionTitleRequest, opts ...grpc.CallOption) (*UpdateCollectionTitleResponse, error)
// UpdateAuthors
//
// Status: ALPHA
//
// Updates the collections metadata title.
UpdateCollectionAuthors(ctx context.Context, in *UpdateCollectionAuthorsRequest, opts ...grpc.CallOption) (*UpdateCollectionAuthorsResponse, error)
}
type collectionServiceClient struct {
cc grpc.ClientConnInterface
}
func NewCollectionServiceClient(cc grpc.ClientConnInterface) CollectionServiceClient {
return &collectionServiceClient{cc}
}
func (c *collectionServiceClient) CreateCollection(ctx context.Context, in *CreateCollectionRequest, opts ...grpc.CallOption) (*CreateCollectionResponse, error) {
out := new(CreateCollectionResponse)
err := c.cc.Invoke(ctx, CollectionService_CreateCollection_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collectionServiceClient) GetCollection(ctx context.Context, in *GetCollectionRequest, opts ...grpc.CallOption) (*GetCollectionResponse, error) {
out := new(GetCollectionResponse)
err := c.cc.Invoke(ctx, CollectionService_GetCollection_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collectionServiceClient) GetCollections(ctx context.Context, in *GetCollectionsRequest, opts ...grpc.CallOption) (*GetCollectionsResponse, error) {
out := new(GetCollectionsResponse)
err := c.cc.Invoke(ctx, CollectionService_GetCollections_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collectionServiceClient) DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error) {
out := new(DeleteCollectionResponse)
err := c.cc.Invoke(ctx, CollectionService_DeleteCollection_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collectionServiceClient) UpdateCollectionName(ctx context.Context, in *UpdateCollectionNameRequest, opts ...grpc.CallOption) (*UpdateCollectionNameResponse, error) {
out := new(UpdateCollectionNameResponse)
err := c.cc.Invoke(ctx, CollectionService_UpdateCollectionName_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collectionServiceClient) UpdateCollectionDescription(ctx context.Context, in *UpdateCollectionDescriptionRequest, opts ...grpc.CallOption) (*UpdateCollectionDescriptionResponse, error) {
out := new(UpdateCollectionDescriptionResponse)
err := c.cc.Invoke(ctx, CollectionService_UpdateCollectionDescription_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collectionServiceClient) UpdateCollectionKeyValues(ctx context.Context, in *UpdateCollectionKeyValuesRequest, opts ...grpc.CallOption) (*UpdateCollectionKeyValuesResponse, error) {
out := new(UpdateCollectionKeyValuesResponse)
err := c.cc.Invoke(ctx, CollectionService_UpdateCollectionKeyValues_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collectionServiceClient) UpdateCollectionDataClass(ctx context.Context, in *UpdateCollectionDataClassRequest, opts ...grpc.CallOption) (*UpdateCollectionDataClassResponse, error) {
out := new(UpdateCollectionDataClassResponse)
err := c.cc.Invoke(ctx, CollectionService_UpdateCollectionDataClass_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collectionServiceClient) SnapshotCollection(ctx context.Context, in *SnapshotCollectionRequest, opts ...grpc.CallOption) (*SnapshotCollectionResponse, error) {
out := new(SnapshotCollectionResponse)
err := c.cc.Invoke(ctx, CollectionService_SnapshotCollection_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collectionServiceClient) UpdateCollectionLicenses(ctx context.Context, in *UpdateCollectionLicensesRequest, opts ...grpc.CallOption) (*UpdateCollectionLicensesResponse, error) {
out := new(UpdateCollectionLicensesResponse)
err := c.cc.Invoke(ctx, CollectionService_UpdateCollectionLicenses_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collectionServiceClient) UpdateCollectionTitle(ctx context.Context, in *UpdateCollectionTitleRequest, opts ...grpc.CallOption) (*UpdateCollectionTitleResponse, error) {
out := new(UpdateCollectionTitleResponse)
err := c.cc.Invoke(ctx, CollectionService_UpdateCollectionTitle_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *collectionServiceClient) UpdateCollectionAuthors(ctx context.Context, in *UpdateCollectionAuthorsRequest, opts ...grpc.CallOption) (*UpdateCollectionAuthorsResponse, error) {
out := new(UpdateCollectionAuthorsResponse)
err := c.cc.Invoke(ctx, CollectionService_UpdateCollectionAuthors_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CollectionServiceServer is the server API for CollectionService service.
// All implementations should embed UnimplementedCollectionServiceServer
// for forward compatibility
type CollectionServiceServer interface {
// CreateNewCollection
//
// Status: BETA
//
// creates a new Collection
CreateCollection(context.Context, *CreateCollectionRequest) (*CreateCollectionResponse, error)
// GetCollection
//
// Status: BETA
//
// Request a specific collection by ID
GetCollection(context.Context, *GetCollectionRequest) (*GetCollectionResponse, error)
// GetCollections
//
// Status: BETA
//
// Queries multiple collections by ID
GetCollections(context.Context, *GetCollectionsRequest) (*GetCollectionsResponse, error)
// DeleteCollection
//
// Status: STABLE
//
// This request deletes the collection.
DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error)
// UpdateCollectionName
//
// Status: BETA
//
// Updates the collection name. Caveat! Will rename the "s3 bucket" for data proxies!
UpdateCollectionName(context.Context, *UpdateCollectionNameRequest) (*UpdateCollectionNameResponse, error)
// UpdateCollectionDescription
//
// Status: BETA
//
// Updates the collection description.
UpdateCollectionDescription(context.Context, *UpdateCollectionDescriptionRequest) (*UpdateCollectionDescriptionResponse, error)
// UpdateCollectionKeyValues
//
// Status: BETA
//
// Updates the collection key values.
UpdateCollectionKeyValues(context.Context, *UpdateCollectionKeyValuesRequest) (*UpdateCollectionKeyValuesResponse, error)
// UpdateCollectionDataClass
//
// Status: BETA
//
// Updates the collection name. All (meta) data will be overwritten.
UpdateCollectionDataClass(context.Context, *UpdateCollectionDataClassRequest) (*UpdateCollectionDataClassResponse, error)
// SnapshotCollectionRequest
//
// Status: BETA
//
// Archives the full collection, rendering all downstream relations immutable
SnapshotCollection(context.Context, *SnapshotCollectionRequest) (*SnapshotCollectionResponse, error)
// UpdateLicenses
//
// Status: BETA
//
// Updates the collections metadata license and/or default data license.
UpdateCollectionLicenses(context.Context, *UpdateCollectionLicensesRequest) (*UpdateCollectionLicensesResponse, error)
// UpdateTitle
//
// Status: ALPHA
//
// Updates the collections metadata title.
UpdateCollectionTitle(context.Context, *UpdateCollectionTitleRequest) (*UpdateCollectionTitleResponse, error)
// UpdateAuthors
//
// Status: ALPHA
//
// Updates the collections metadata title.
UpdateCollectionAuthors(context.Context, *UpdateCollectionAuthorsRequest) (*UpdateCollectionAuthorsResponse, error)
}
// UnimplementedCollectionServiceServer should be embedded to have forward compatible implementations.
type UnimplementedCollectionServiceServer struct {
}
func (UnimplementedCollectionServiceServer) CreateCollection(context.Context, *CreateCollectionRequest) (*CreateCollectionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateCollection not implemented")
}
func (UnimplementedCollectionServiceServer) GetCollection(context.Context, *GetCollectionRequest) (*GetCollectionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCollection not implemented")
}
func (UnimplementedCollectionServiceServer) GetCollections(context.Context, *GetCollectionsRequest) (*GetCollectionsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCollections not implemented")
}
func (UnimplementedCollectionServiceServer) DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteCollection not implemented")
}
func (UnimplementedCollectionServiceServer) UpdateCollectionName(context.Context, *UpdateCollectionNameRequest) (*UpdateCollectionNameResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateCollectionName not implemented")
}
func (UnimplementedCollectionServiceServer) UpdateCollectionDescription(context.Context, *UpdateCollectionDescriptionRequest) (*UpdateCollectionDescriptionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateCollectionDescription not implemented")
}
func (UnimplementedCollectionServiceServer) UpdateCollectionKeyValues(context.Context, *UpdateCollectionKeyValuesRequest) (*UpdateCollectionKeyValuesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateCollectionKeyValues not implemented")
}
func (UnimplementedCollectionServiceServer) UpdateCollectionDataClass(context.Context, *UpdateCollectionDataClassRequest) (*UpdateCollectionDataClassResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateCollectionDataClass not implemented")
}
func (UnimplementedCollectionServiceServer) SnapshotCollection(context.Context, *SnapshotCollectionRequest) (*SnapshotCollectionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SnapshotCollection not implemented")
}
func (UnimplementedCollectionServiceServer) UpdateCollectionLicenses(context.Context, *UpdateCollectionLicensesRequest) (*UpdateCollectionLicensesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateCollectionLicenses not implemented")
}
func (UnimplementedCollectionServiceServer) UpdateCollectionTitle(context.Context, *UpdateCollectionTitleRequest) (*UpdateCollectionTitleResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateCollectionTitle not implemented")
}
func (UnimplementedCollectionServiceServer) UpdateCollectionAuthors(context.Context, *UpdateCollectionAuthorsRequest) (*UpdateCollectionAuthorsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateCollectionAuthors not implemented")
}
// UnsafeCollectionServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to CollectionServiceServer will
// result in compilation errors.
type UnsafeCollectionServiceServer interface {
mustEmbedUnimplementedCollectionServiceServer()
}
func RegisterCollectionServiceServer(s grpc.ServiceRegistrar, srv CollectionServiceServer) {
s.RegisterService(&CollectionService_ServiceDesc, srv)
}
func _CollectionService_CreateCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateCollectionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollectionServiceServer).CreateCollection(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollectionService_CreateCollection_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollectionServiceServer).CreateCollection(ctx, req.(*CreateCollectionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollectionService_GetCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetCollectionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollectionServiceServer).GetCollection(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollectionService_GetCollection_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollectionServiceServer).GetCollection(ctx, req.(*GetCollectionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollectionService_GetCollections_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetCollectionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollectionServiceServer).GetCollections(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollectionService_GetCollections_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollectionServiceServer).GetCollections(ctx, req.(*GetCollectionsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollectionService_DeleteCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteCollectionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollectionServiceServer).DeleteCollection(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollectionService_DeleteCollection_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollectionServiceServer).DeleteCollection(ctx, req.(*DeleteCollectionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollectionService_UpdateCollectionName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateCollectionNameRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollectionServiceServer).UpdateCollectionName(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollectionService_UpdateCollectionName_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollectionServiceServer).UpdateCollectionName(ctx, req.(*UpdateCollectionNameRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollectionService_UpdateCollectionDescription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateCollectionDescriptionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollectionServiceServer).UpdateCollectionDescription(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollectionService_UpdateCollectionDescription_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollectionServiceServer).UpdateCollectionDescription(ctx, req.(*UpdateCollectionDescriptionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollectionService_UpdateCollectionKeyValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateCollectionKeyValuesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollectionServiceServer).UpdateCollectionKeyValues(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollectionService_UpdateCollectionKeyValues_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollectionServiceServer).UpdateCollectionKeyValues(ctx, req.(*UpdateCollectionKeyValuesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollectionService_UpdateCollectionDataClass_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateCollectionDataClassRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollectionServiceServer).UpdateCollectionDataClass(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollectionService_UpdateCollectionDataClass_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollectionServiceServer).UpdateCollectionDataClass(ctx, req.(*UpdateCollectionDataClassRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollectionService_SnapshotCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SnapshotCollectionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollectionServiceServer).SnapshotCollection(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollectionService_SnapshotCollection_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollectionServiceServer).SnapshotCollection(ctx, req.(*SnapshotCollectionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollectionService_UpdateCollectionLicenses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateCollectionLicensesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollectionServiceServer).UpdateCollectionLicenses(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollectionService_UpdateCollectionLicenses_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollectionServiceServer).UpdateCollectionLicenses(ctx, req.(*UpdateCollectionLicensesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollectionService_UpdateCollectionTitle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateCollectionTitleRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollectionServiceServer).UpdateCollectionTitle(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollectionService_UpdateCollectionTitle_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollectionServiceServer).UpdateCollectionTitle(ctx, req.(*UpdateCollectionTitleRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CollectionService_UpdateCollectionAuthors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateCollectionAuthorsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CollectionServiceServer).UpdateCollectionAuthors(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CollectionService_UpdateCollectionAuthors_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CollectionServiceServer).UpdateCollectionAuthors(ctx, req.(*UpdateCollectionAuthorsRequest))
}
return interceptor(ctx, in, info, handler)
}
// CollectionService_ServiceDesc is the grpc.ServiceDesc for CollectionService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var CollectionService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "aruna.api.storage.services.v2.CollectionService",
HandlerType: (*CollectionServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateCollection",
Handler: _CollectionService_CreateCollection_Handler,
},
{
MethodName: "GetCollection",
Handler: _CollectionService_GetCollection_Handler,
},
{
MethodName: "GetCollections",
Handler: _CollectionService_GetCollections_Handler,
},
{
MethodName: "DeleteCollection",
Handler: _CollectionService_DeleteCollection_Handler,
},
{
MethodName: "UpdateCollectionName",
Handler: _CollectionService_UpdateCollectionName_Handler,
},
{
MethodName: "UpdateCollectionDescription",
Handler: _CollectionService_UpdateCollectionDescription_Handler,
},
{
MethodName: "UpdateCollectionKeyValues",
Handler: _CollectionService_UpdateCollectionKeyValues_Handler,
},
{
MethodName: "UpdateCollectionDataClass",
Handler: _CollectionService_UpdateCollectionDataClass_Handler,
},
{
MethodName: "SnapshotCollection",
Handler: _CollectionService_SnapshotCollection_Handler,
},
{
MethodName: "UpdateCollectionLicenses",
Handler: _CollectionService_UpdateCollectionLicenses_Handler,
},
{
MethodName: "UpdateCollectionTitle",
Handler: _CollectionService_UpdateCollectionTitle_Handler,
},
{
MethodName: "UpdateCollectionAuthors",
Handler: _CollectionService_UpdateCollectionAuthors_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "aruna/api/storage/services/v2/collection_service.proto",
}