@lansweeper/permissions-grpc 0.1.0 → 0.1.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.
File without changes
@@ -0,0 +1,566 @@
1
+ // Code generated by protoc-gen-go. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-go v1.30.0
4
+ // protoc v3.15.6
5
+ // source: permissions.proto
6
+
7
+ package generated_go
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 CheckPermissionRequest struct {
24
+ state protoimpl.MessageState
25
+ sizeCache protoimpl.SizeCache
26
+ unknownFields protoimpl.UnknownFields
27
+
28
+ SiteId string `protobuf:"bytes,1,opt,name=siteId,proto3" json:"siteId,omitempty"`
29
+ AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"`
30
+ Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"`
31
+ TraceId string `protobuf:"bytes,4,opt,name=traceId,proto3" json:"traceId,omitempty"`
32
+ }
33
+
34
+ func (x *CheckPermissionRequest) Reset() {
35
+ *x = CheckPermissionRequest{}
36
+ if protoimpl.UnsafeEnabled {
37
+ mi := &file_permissions_proto_msgTypes[0]
38
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
39
+ ms.StoreMessageInfo(mi)
40
+ }
41
+ }
42
+
43
+ func (x *CheckPermissionRequest) String() string {
44
+ return protoimpl.X.MessageStringOf(x)
45
+ }
46
+
47
+ func (*CheckPermissionRequest) ProtoMessage() {}
48
+
49
+ func (x *CheckPermissionRequest) ProtoReflect() protoreflect.Message {
50
+ mi := &file_permissions_proto_msgTypes[0]
51
+ if protoimpl.UnsafeEnabled && x != nil {
52
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53
+ if ms.LoadMessageInfo() == nil {
54
+ ms.StoreMessageInfo(mi)
55
+ }
56
+ return ms
57
+ }
58
+ return mi.MessageOf(x)
59
+ }
60
+
61
+ // Deprecated: Use CheckPermissionRequest.ProtoReflect.Descriptor instead.
62
+ func (*CheckPermissionRequest) Descriptor() ([]byte, []int) {
63
+ return file_permissions_proto_rawDescGZIP(), []int{0}
64
+ }
65
+
66
+ func (x *CheckPermissionRequest) GetSiteId() string {
67
+ if x != nil {
68
+ return x.SiteId
69
+ }
70
+ return ""
71
+ }
72
+
73
+ func (x *CheckPermissionRequest) GetAccountId() string {
74
+ if x != nil {
75
+ return x.AccountId
76
+ }
77
+ return ""
78
+ }
79
+
80
+ func (x *CheckPermissionRequest) GetAction() string {
81
+ if x != nil {
82
+ return x.Action
83
+ }
84
+ return ""
85
+ }
86
+
87
+ func (x *CheckPermissionRequest) GetTraceId() string {
88
+ if x != nil {
89
+ return x.TraceId
90
+ }
91
+ return ""
92
+ }
93
+
94
+ type CheckPermissionResponse struct {
95
+ state protoimpl.MessageState
96
+ sizeCache protoimpl.SizeCache
97
+ unknownFields protoimpl.UnknownFields
98
+
99
+ Granted bool `protobuf:"varint,1,opt,name=granted,proto3" json:"granted,omitempty"`
100
+ Installations []string `protobuf:"bytes,2,rep,name=installations,proto3" json:"installations,omitempty"`
101
+ AssetScopes []string `protobuf:"bytes,3,rep,name=assetScopes,proto3" json:"assetScopes,omitempty"`
102
+ DerivedPermissions []string `protobuf:"bytes,4,rep,name=derivedPermissions,proto3" json:"derivedPermissions,omitempty"`
103
+ AssetScopesRules map[string]string `protobuf:"bytes,5,rep,name=assetScopesRules,proto3" json:"assetScopesRules,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
104
+ }
105
+
106
+ func (x *CheckPermissionResponse) Reset() {
107
+ *x = CheckPermissionResponse{}
108
+ if protoimpl.UnsafeEnabled {
109
+ mi := &file_permissions_proto_msgTypes[1]
110
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
111
+ ms.StoreMessageInfo(mi)
112
+ }
113
+ }
114
+
115
+ func (x *CheckPermissionResponse) String() string {
116
+ return protoimpl.X.MessageStringOf(x)
117
+ }
118
+
119
+ func (*CheckPermissionResponse) ProtoMessage() {}
120
+
121
+ func (x *CheckPermissionResponse) ProtoReflect() protoreflect.Message {
122
+ mi := &file_permissions_proto_msgTypes[1]
123
+ if protoimpl.UnsafeEnabled && x != nil {
124
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
125
+ if ms.LoadMessageInfo() == nil {
126
+ ms.StoreMessageInfo(mi)
127
+ }
128
+ return ms
129
+ }
130
+ return mi.MessageOf(x)
131
+ }
132
+
133
+ // Deprecated: Use CheckPermissionResponse.ProtoReflect.Descriptor instead.
134
+ func (*CheckPermissionResponse) Descriptor() ([]byte, []int) {
135
+ return file_permissions_proto_rawDescGZIP(), []int{1}
136
+ }
137
+
138
+ func (x *CheckPermissionResponse) GetGranted() bool {
139
+ if x != nil {
140
+ return x.Granted
141
+ }
142
+ return false
143
+ }
144
+
145
+ func (x *CheckPermissionResponse) GetInstallations() []string {
146
+ if x != nil {
147
+ return x.Installations
148
+ }
149
+ return nil
150
+ }
151
+
152
+ func (x *CheckPermissionResponse) GetAssetScopes() []string {
153
+ if x != nil {
154
+ return x.AssetScopes
155
+ }
156
+ return nil
157
+ }
158
+
159
+ func (x *CheckPermissionResponse) GetDerivedPermissions() []string {
160
+ if x != nil {
161
+ return x.DerivedPermissions
162
+ }
163
+ return nil
164
+ }
165
+
166
+ func (x *CheckPermissionResponse) GetAssetScopesRules() map[string]string {
167
+ if x != nil {
168
+ return x.AssetScopesRules
169
+ }
170
+ return nil
171
+ }
172
+
173
+ type GetUserPermissionsRequest struct {
174
+ state protoimpl.MessageState
175
+ sizeCache protoimpl.SizeCache
176
+ unknownFields protoimpl.UnknownFields
177
+
178
+ UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
179
+ SiteId string `protobuf:"bytes,2,opt,name=siteId,proto3" json:"siteId,omitempty"`
180
+ TraceId *string `protobuf:"bytes,3,opt,name=traceId,proto3,oneof" json:"traceId,omitempty"`
181
+ }
182
+
183
+ func (x *GetUserPermissionsRequest) Reset() {
184
+ *x = GetUserPermissionsRequest{}
185
+ if protoimpl.UnsafeEnabled {
186
+ mi := &file_permissions_proto_msgTypes[2]
187
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
188
+ ms.StoreMessageInfo(mi)
189
+ }
190
+ }
191
+
192
+ func (x *GetUserPermissionsRequest) String() string {
193
+ return protoimpl.X.MessageStringOf(x)
194
+ }
195
+
196
+ func (*GetUserPermissionsRequest) ProtoMessage() {}
197
+
198
+ func (x *GetUserPermissionsRequest) ProtoReflect() protoreflect.Message {
199
+ mi := &file_permissions_proto_msgTypes[2]
200
+ if protoimpl.UnsafeEnabled && x != nil {
201
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
202
+ if ms.LoadMessageInfo() == nil {
203
+ ms.StoreMessageInfo(mi)
204
+ }
205
+ return ms
206
+ }
207
+ return mi.MessageOf(x)
208
+ }
209
+
210
+ // Deprecated: Use GetUserPermissionsRequest.ProtoReflect.Descriptor instead.
211
+ func (*GetUserPermissionsRequest) Descriptor() ([]byte, []int) {
212
+ return file_permissions_proto_rawDescGZIP(), []int{2}
213
+ }
214
+
215
+ func (x *GetUserPermissionsRequest) GetUserId() string {
216
+ if x != nil {
217
+ return x.UserId
218
+ }
219
+ return ""
220
+ }
221
+
222
+ func (x *GetUserPermissionsRequest) GetSiteId() string {
223
+ if x != nil {
224
+ return x.SiteId
225
+ }
226
+ return ""
227
+ }
228
+
229
+ func (x *GetUserPermissionsRequest) GetTraceId() string {
230
+ if x != nil && x.TraceId != nil {
231
+ return *x.TraceId
232
+ }
233
+ return ""
234
+ }
235
+
236
+ type GetUserPermissionsResponse struct {
237
+ state protoimpl.MessageState
238
+ sizeCache protoimpl.SizeCache
239
+ unknownFields protoimpl.UnknownFields
240
+
241
+ Permissions map[string]*GetUserPermissionsResponse_Permissions `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
242
+ }
243
+
244
+ func (x *GetUserPermissionsResponse) Reset() {
245
+ *x = GetUserPermissionsResponse{}
246
+ if protoimpl.UnsafeEnabled {
247
+ mi := &file_permissions_proto_msgTypes[3]
248
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
249
+ ms.StoreMessageInfo(mi)
250
+ }
251
+ }
252
+
253
+ func (x *GetUserPermissionsResponse) String() string {
254
+ return protoimpl.X.MessageStringOf(x)
255
+ }
256
+
257
+ func (*GetUserPermissionsResponse) ProtoMessage() {}
258
+
259
+ func (x *GetUserPermissionsResponse) ProtoReflect() protoreflect.Message {
260
+ mi := &file_permissions_proto_msgTypes[3]
261
+ if protoimpl.UnsafeEnabled && x != nil {
262
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
263
+ if ms.LoadMessageInfo() == nil {
264
+ ms.StoreMessageInfo(mi)
265
+ }
266
+ return ms
267
+ }
268
+ return mi.MessageOf(x)
269
+ }
270
+
271
+ // Deprecated: Use GetUserPermissionsResponse.ProtoReflect.Descriptor instead.
272
+ func (*GetUserPermissionsResponse) Descriptor() ([]byte, []int) {
273
+ return file_permissions_proto_rawDescGZIP(), []int{3}
274
+ }
275
+
276
+ func (x *GetUserPermissionsResponse) GetPermissions() map[string]*GetUserPermissionsResponse_Permissions {
277
+ if x != nil {
278
+ return x.Permissions
279
+ }
280
+ return nil
281
+ }
282
+
283
+ type GetUserPermissionsResponse_Permissions struct {
284
+ state protoimpl.MessageState
285
+ sizeCache protoimpl.SizeCache
286
+ unknownFields protoimpl.UnknownFields
287
+
288
+ Installations []string `protobuf:"bytes,1,rep,name=installations,proto3" json:"installations,omitempty"`
289
+ AssetScopes []string `protobuf:"bytes,2,rep,name=assetScopes,proto3" json:"assetScopes,omitempty"`
290
+ AssetScopesRules map[string]string `protobuf:"bytes,3,rep,name=assetScopesRules,proto3" json:"assetScopesRules,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
291
+ }
292
+
293
+ func (x *GetUserPermissionsResponse_Permissions) Reset() {
294
+ *x = GetUserPermissionsResponse_Permissions{}
295
+ if protoimpl.UnsafeEnabled {
296
+ mi := &file_permissions_proto_msgTypes[5]
297
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
298
+ ms.StoreMessageInfo(mi)
299
+ }
300
+ }
301
+
302
+ func (x *GetUserPermissionsResponse_Permissions) String() string {
303
+ return protoimpl.X.MessageStringOf(x)
304
+ }
305
+
306
+ func (*GetUserPermissionsResponse_Permissions) ProtoMessage() {}
307
+
308
+ func (x *GetUserPermissionsResponse_Permissions) ProtoReflect() protoreflect.Message {
309
+ mi := &file_permissions_proto_msgTypes[5]
310
+ if protoimpl.UnsafeEnabled && x != nil {
311
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
312
+ if ms.LoadMessageInfo() == nil {
313
+ ms.StoreMessageInfo(mi)
314
+ }
315
+ return ms
316
+ }
317
+ return mi.MessageOf(x)
318
+ }
319
+
320
+ // Deprecated: Use GetUserPermissionsResponse_Permissions.ProtoReflect.Descriptor instead.
321
+ func (*GetUserPermissionsResponse_Permissions) Descriptor() ([]byte, []int) {
322
+ return file_permissions_proto_rawDescGZIP(), []int{3, 0}
323
+ }
324
+
325
+ func (x *GetUserPermissionsResponse_Permissions) GetInstallations() []string {
326
+ if x != nil {
327
+ return x.Installations
328
+ }
329
+ return nil
330
+ }
331
+
332
+ func (x *GetUserPermissionsResponse_Permissions) GetAssetScopes() []string {
333
+ if x != nil {
334
+ return x.AssetScopes
335
+ }
336
+ return nil
337
+ }
338
+
339
+ func (x *GetUserPermissionsResponse_Permissions) GetAssetScopesRules() map[string]string {
340
+ if x != nil {
341
+ return x.AssetScopesRules
342
+ }
343
+ return nil
344
+ }
345
+
346
+ var File_permissions_proto protoreflect.FileDescriptor
347
+
348
+ var file_permissions_proto_rawDesc = []byte{
349
+ 0x0a, 0x11, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72,
350
+ 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
351
+ 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x80, 0x01, 0x0a, 0x16, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x65,
352
+ 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
353
+ 0x16, 0x0a, 0x06, 0x73, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
354
+ 0x06, 0x73, 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75,
355
+ 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f,
356
+ 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18,
357
+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a,
358
+ 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
359
+ 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x22, 0xdc, 0x02, 0x0a, 0x17, 0x43, 0x68, 0x65, 0x63,
360
+ 0x6b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
361
+ 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x01,
362
+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x24, 0x0a,
363
+ 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02,
364
+ 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69,
365
+ 0x6f, 0x6e, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x73, 0x73, 0x65, 0x74, 0x53, 0x63, 0x6f, 0x70,
366
+ 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x73, 0x73, 0x65, 0x74, 0x53,
367
+ 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x12, 0x64, 0x65, 0x72, 0x69, 0x76, 0x65, 0x64,
368
+ 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28,
369
+ 0x09, 0x52, 0x12, 0x64, 0x65, 0x72, 0x69, 0x76, 0x65, 0x64, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73,
370
+ 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x6a, 0x0a, 0x10, 0x61, 0x73, 0x73, 0x65, 0x74, 0x53, 0x63,
371
+ 0x6f, 0x70, 0x65, 0x73, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,
372
+ 0x3e, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
373
+ 0x6e, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
374
+ 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53,
375
+ 0x63, 0x6f, 0x70, 0x65, 0x73, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
376
+ 0x10, 0x61, 0x73, 0x73, 0x65, 0x74, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x52, 0x75, 0x6c, 0x65,
377
+ 0x73, 0x1a, 0x43, 0x0a, 0x15, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73,
378
+ 0x52, 0x75, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
379
+ 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05,
380
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c,
381
+ 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x76, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65,
382
+ 0x72, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75,
383
+ 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20,
384
+ 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73,
385
+ 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, 0x74,
386
+ 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x18, 0x03,
387
+ 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x88,
388
+ 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x22, 0x8d,
389
+ 0x04, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73,
390
+ 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a,
391
+ 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03,
392
+ 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
393
+ 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x65, 0x72, 0x6d,
394
+ 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e,
395
+ 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
396
+ 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x95, 0x02,
397
+ 0x0a, 0x0b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x24, 0x0a,
398
+ 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01,
399
+ 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69,
400
+ 0x6f, 0x6e, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x73, 0x73, 0x65, 0x74, 0x53, 0x63, 0x6f, 0x70,
401
+ 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x73, 0x73, 0x65, 0x74, 0x53,
402
+ 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x79, 0x0a, 0x10, 0x61, 0x73, 0x73, 0x65, 0x74, 0x53, 0x63,
403
+ 0x6f, 0x70, 0x65, 0x73, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
404
+ 0x4d, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
405
+ 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
406
+ 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x65, 0x72,
407
+ 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x63,
408
+ 0x6f, 0x70, 0x65, 0x73, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10,
409
+ 0x61, 0x73, 0x73, 0x65, 0x74, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x52, 0x75, 0x6c, 0x65, 0x73,
410
+ 0x1a, 0x43, 0x0a, 0x15, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x52,
411
+ 0x75, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
412
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,
413
+ 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
414
+ 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x77, 0x0a, 0x10, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
415
+ 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
416
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x4d, 0x0a, 0x05, 0x76,
417
+ 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x63, 0x68, 0x65,
418
+ 0x63, 0x6b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74,
419
+ 0x55, 0x73, 0x65, 0x72, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52,
420
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
421
+ 0x6f, 0x6e, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0xf1,
422
+ 0x01, 0x0a, 0x16, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
423
+ 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x66, 0x0a, 0x0f, 0x43, 0x68, 0x65,
424
+ 0x63, 0x6b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x2e, 0x63,
425
+ 0x68, 0x65, 0x63, 0x6b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43,
426
+ 0x68, 0x65, 0x63, 0x6b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65,
427
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x65, 0x72,
428
+ 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x65, 0x72,
429
+ 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
430
+ 0x00, 0x12, 0x6f, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x65, 0x72, 0x6d,
431
+ 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2a, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70,
432
+ 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65,
433
+ 0x72, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75,
434
+ 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x65, 0x72, 0x6d, 0x69,
435
+ 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x65, 0x72,
436
+ 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
437
+ 0x22, 0x00, 0x42, 0x10, 0x5a, 0x0e, 0x2e, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65,
438
+ 0x64, 0x2d, 0x67, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
439
+ }
440
+
441
+ var (
442
+ file_permissions_proto_rawDescOnce sync.Once
443
+ file_permissions_proto_rawDescData = file_permissions_proto_rawDesc
444
+ )
445
+
446
+ func file_permissions_proto_rawDescGZIP() []byte {
447
+ file_permissions_proto_rawDescOnce.Do(func() {
448
+ file_permissions_proto_rawDescData = protoimpl.X.CompressGZIP(file_permissions_proto_rawDescData)
449
+ })
450
+ return file_permissions_proto_rawDescData
451
+ }
452
+
453
+ var file_permissions_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
454
+ var file_permissions_proto_goTypes = []interface{}{
455
+ (*CheckPermissionRequest)(nil), // 0: checkpermission.CheckPermissionRequest
456
+ (*CheckPermissionResponse)(nil), // 1: checkpermission.CheckPermissionResponse
457
+ (*GetUserPermissionsRequest)(nil), // 2: checkpermission.GetUserPermissionsRequest
458
+ (*GetUserPermissionsResponse)(nil), // 3: checkpermission.GetUserPermissionsResponse
459
+ nil, // 4: checkpermission.CheckPermissionResponse.AssetScopesRulesEntry
460
+ (*GetUserPermissionsResponse_Permissions)(nil), // 5: checkpermission.GetUserPermissionsResponse.Permissions
461
+ nil, // 6: checkpermission.GetUserPermissionsResponse.PermissionsEntry
462
+ nil, // 7: checkpermission.GetUserPermissionsResponse.Permissions.AssetScopesRulesEntry
463
+ }
464
+ var file_permissions_proto_depIdxs = []int32{
465
+ 4, // 0: checkpermission.CheckPermissionResponse.assetScopesRules:type_name -> checkpermission.CheckPermissionResponse.AssetScopesRulesEntry
466
+ 6, // 1: checkpermission.GetUserPermissionsResponse.permissions:type_name -> checkpermission.GetUserPermissionsResponse.PermissionsEntry
467
+ 7, // 2: checkpermission.GetUserPermissionsResponse.Permissions.assetScopesRules:type_name -> checkpermission.GetUserPermissionsResponse.Permissions.AssetScopesRulesEntry
468
+ 5, // 3: checkpermission.GetUserPermissionsResponse.PermissionsEntry.value:type_name -> checkpermission.GetUserPermissionsResponse.Permissions
469
+ 0, // 4: checkpermission.CheckPermissionService.CheckPermission:input_type -> checkpermission.CheckPermissionRequest
470
+ 2, // 5: checkpermission.CheckPermissionService.GetUserPermissions:input_type -> checkpermission.GetUserPermissionsRequest
471
+ 1, // 6: checkpermission.CheckPermissionService.CheckPermission:output_type -> checkpermission.CheckPermissionResponse
472
+ 3, // 7: checkpermission.CheckPermissionService.GetUserPermissions:output_type -> checkpermission.GetUserPermissionsResponse
473
+ 6, // [6:8] is the sub-list for method output_type
474
+ 4, // [4:6] is the sub-list for method input_type
475
+ 4, // [4:4] is the sub-list for extension type_name
476
+ 4, // [4:4] is the sub-list for extension extendee
477
+ 0, // [0:4] is the sub-list for field type_name
478
+ }
479
+
480
+ func init() { file_permissions_proto_init() }
481
+ func file_permissions_proto_init() {
482
+ if File_permissions_proto != nil {
483
+ return
484
+ }
485
+ if !protoimpl.UnsafeEnabled {
486
+ file_permissions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
487
+ switch v := v.(*CheckPermissionRequest); i {
488
+ case 0:
489
+ return &v.state
490
+ case 1:
491
+ return &v.sizeCache
492
+ case 2:
493
+ return &v.unknownFields
494
+ default:
495
+ return nil
496
+ }
497
+ }
498
+ file_permissions_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
499
+ switch v := v.(*CheckPermissionResponse); i {
500
+ case 0:
501
+ return &v.state
502
+ case 1:
503
+ return &v.sizeCache
504
+ case 2:
505
+ return &v.unknownFields
506
+ default:
507
+ return nil
508
+ }
509
+ }
510
+ file_permissions_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
511
+ switch v := v.(*GetUserPermissionsRequest); i {
512
+ case 0:
513
+ return &v.state
514
+ case 1:
515
+ return &v.sizeCache
516
+ case 2:
517
+ return &v.unknownFields
518
+ default:
519
+ return nil
520
+ }
521
+ }
522
+ file_permissions_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
523
+ switch v := v.(*GetUserPermissionsResponse); i {
524
+ case 0:
525
+ return &v.state
526
+ case 1:
527
+ return &v.sizeCache
528
+ case 2:
529
+ return &v.unknownFields
530
+ default:
531
+ return nil
532
+ }
533
+ }
534
+ file_permissions_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
535
+ switch v := v.(*GetUserPermissionsResponse_Permissions); i {
536
+ case 0:
537
+ return &v.state
538
+ case 1:
539
+ return &v.sizeCache
540
+ case 2:
541
+ return &v.unknownFields
542
+ default:
543
+ return nil
544
+ }
545
+ }
546
+ }
547
+ file_permissions_proto_msgTypes[2].OneofWrappers = []interface{}{}
548
+ type x struct{}
549
+ out := protoimpl.TypeBuilder{
550
+ File: protoimpl.DescBuilder{
551
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
552
+ RawDescriptor: file_permissions_proto_rawDesc,
553
+ NumEnums: 0,
554
+ NumMessages: 8,
555
+ NumExtensions: 0,
556
+ NumServices: 1,
557
+ },
558
+ GoTypes: file_permissions_proto_goTypes,
559
+ DependencyIndexes: file_permissions_proto_depIdxs,
560
+ MessageInfos: file_permissions_proto_msgTypes,
561
+ }.Build()
562
+ File_permissions_proto = out.File
563
+ file_permissions_proto_rawDesc = nil
564
+ file_permissions_proto_goTypes = nil
565
+ file_permissions_proto_depIdxs = nil
566
+ }