|
1
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT. |
|
2
|
|
|
// versions: |
|
3
|
|
|
// protoc-gen-go v1.36.10 |
|
4
|
|
|
// protoc (unknown) |
|
5
|
|
|
// source: base/v1/base.proto |
|
6
|
|
|
|
|
7
|
|
|
package basev1 |
|
8
|
|
|
|
|
9
|
|
|
import ( |
|
10
|
|
|
_ "github.com/envoyproxy/protoc-gen-validate/validate" |
|
11
|
|
|
v1alpha1 "google.golang.org/genproto/googleapis/api/expr/v1alpha1" |
|
12
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
|
13
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
|
14
|
|
|
anypb "google.golang.org/protobuf/types/known/anypb" |
|
15
|
|
|
structpb "google.golang.org/protobuf/types/known/structpb" |
|
16
|
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
|
17
|
|
|
reflect "reflect" |
|
18
|
|
|
sync "sync" |
|
19
|
|
|
unsafe "unsafe" |
|
20
|
|
|
) |
|
21
|
|
|
|
|
22
|
|
|
const ( |
|
23
|
|
|
// Verify that this generated code is sufficiently up-to-date. |
|
24
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
|
25
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date. |
|
26
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
|
27
|
|
|
) |
|
28
|
|
|
|
|
29
|
|
|
// Enumerates results of a check operation. |
|
30
|
|
|
type CheckResult int32 |
|
31
|
|
|
|
|
32
|
|
|
const ( |
|
33
|
|
|
// Not specified check result. This is the default value. |
|
34
|
|
|
CheckResult_CHECK_RESULT_UNSPECIFIED CheckResult = 0 |
|
35
|
|
|
// Represents a successful check (the check allowed the operation). |
|
36
|
|
|
CheckResult_CHECK_RESULT_ALLOWED CheckResult = 1 |
|
37
|
|
|
// Represents a failed check (the check denied the operation). |
|
38
|
|
|
CheckResult_CHECK_RESULT_DENIED CheckResult = 2 |
|
39
|
|
|
) |
|
40
|
|
|
|
|
41
|
|
|
// Enum value maps for CheckResult. |
|
42
|
|
|
var ( |
|
43
|
|
|
CheckResult_name = map[int32]string{ |
|
44
|
|
|
0: "CHECK_RESULT_UNSPECIFIED", |
|
45
|
|
|
1: "CHECK_RESULT_ALLOWED", |
|
46
|
|
|
2: "CHECK_RESULT_DENIED", |
|
47
|
|
|
} |
|
48
|
|
|
CheckResult_value = map[string]int32{ |
|
49
|
|
|
"CHECK_RESULT_UNSPECIFIED": 0, |
|
50
|
|
|
"CHECK_RESULT_ALLOWED": 1, |
|
51
|
|
|
"CHECK_RESULT_DENIED": 2, |
|
52
|
|
|
} |
|
53
|
|
|
) |
|
54
|
|
|
|
|
55
|
|
|
func (x CheckResult) Enum() *CheckResult { |
|
56
|
|
|
p := new(CheckResult) |
|
57
|
|
|
*p = x |
|
58
|
|
|
return p |
|
59
|
|
|
} |
|
60
|
|
|
|
|
61
|
|
|
func (x CheckResult) String() string { |
|
62
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
|
63
|
|
|
} |
|
64
|
|
|
|
|
65
|
|
|
func (CheckResult) Descriptor() protoreflect.EnumDescriptor { |
|
66
|
|
|
return file_base_v1_base_proto_enumTypes[0].Descriptor() |
|
67
|
|
|
} |
|
68
|
|
|
|
|
69
|
|
|
func (CheckResult) Type() protoreflect.EnumType { |
|
70
|
|
|
return &file_base_v1_base_proto_enumTypes[0] |
|
71
|
|
|
} |
|
72
|
|
|
|
|
73
|
|
|
func (x CheckResult) Number() protoreflect.EnumNumber { |
|
74
|
|
|
return protoreflect.EnumNumber(x) |
|
75
|
|
|
} |
|
76
|
|
|
|
|
77
|
|
|
// Deprecated: Use CheckResult.Descriptor instead. |
|
78
|
|
|
func (CheckResult) EnumDescriptor() ([]byte, []int) { |
|
79
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{0} |
|
80
|
|
|
} |
|
81
|
|
|
|
|
82
|
|
|
// Enumerates the types of attribute. |
|
83
|
|
|
type AttributeType int32 |
|
84
|
|
|
|
|
85
|
|
|
const ( |
|
86
|
|
|
// Not specified attribute type. This is the default value. |
|
87
|
|
|
AttributeType_ATTRIBUTE_TYPE_UNSPECIFIED AttributeType = 0 |
|
88
|
|
|
// A boolean attribute type. |
|
89
|
|
|
AttributeType_ATTRIBUTE_TYPE_BOOLEAN AttributeType = 1 |
|
90
|
|
|
// A boolean array attribute type. |
|
91
|
|
|
AttributeType_ATTRIBUTE_TYPE_BOOLEAN_ARRAY AttributeType = 2 |
|
92
|
|
|
// A string attribute type. |
|
93
|
|
|
AttributeType_ATTRIBUTE_TYPE_STRING AttributeType = 3 |
|
94
|
|
|
// A string array attribute type. |
|
95
|
|
|
AttributeType_ATTRIBUTE_TYPE_STRING_ARRAY AttributeType = 4 |
|
96
|
|
|
// An integer attribute type. |
|
97
|
|
|
AttributeType_ATTRIBUTE_TYPE_INTEGER AttributeType = 5 |
|
98
|
|
|
// An integer array attribute type. |
|
99
|
|
|
AttributeType_ATTRIBUTE_TYPE_INTEGER_ARRAY AttributeType = 6 |
|
100
|
|
|
// A double attribute type. |
|
101
|
|
|
AttributeType_ATTRIBUTE_TYPE_DOUBLE AttributeType = 7 |
|
102
|
|
|
// A double array attribute type. |
|
103
|
|
|
AttributeType_ATTRIBUTE_TYPE_DOUBLE_ARRAY AttributeType = 8 |
|
104
|
|
|
) |
|
105
|
|
|
|
|
106
|
|
|
// Enum value maps for AttributeType. |
|
107
|
|
|
var ( |
|
108
|
|
|
AttributeType_name = map[int32]string{ |
|
109
|
|
|
0: "ATTRIBUTE_TYPE_UNSPECIFIED", |
|
110
|
|
|
1: "ATTRIBUTE_TYPE_BOOLEAN", |
|
111
|
|
|
2: "ATTRIBUTE_TYPE_BOOLEAN_ARRAY", |
|
112
|
|
|
3: "ATTRIBUTE_TYPE_STRING", |
|
113
|
|
|
4: "ATTRIBUTE_TYPE_STRING_ARRAY", |
|
114
|
|
|
5: "ATTRIBUTE_TYPE_INTEGER", |
|
115
|
|
|
6: "ATTRIBUTE_TYPE_INTEGER_ARRAY", |
|
116
|
|
|
7: "ATTRIBUTE_TYPE_DOUBLE", |
|
117
|
|
|
8: "ATTRIBUTE_TYPE_DOUBLE_ARRAY", |
|
118
|
|
|
} |
|
119
|
|
|
AttributeType_value = map[string]int32{ |
|
120
|
|
|
"ATTRIBUTE_TYPE_UNSPECIFIED": 0, |
|
121
|
|
|
"ATTRIBUTE_TYPE_BOOLEAN": 1, |
|
122
|
|
|
"ATTRIBUTE_TYPE_BOOLEAN_ARRAY": 2, |
|
123
|
|
|
"ATTRIBUTE_TYPE_STRING": 3, |
|
124
|
|
|
"ATTRIBUTE_TYPE_STRING_ARRAY": 4, |
|
125
|
|
|
"ATTRIBUTE_TYPE_INTEGER": 5, |
|
126
|
|
|
"ATTRIBUTE_TYPE_INTEGER_ARRAY": 6, |
|
127
|
|
|
"ATTRIBUTE_TYPE_DOUBLE": 7, |
|
128
|
|
|
"ATTRIBUTE_TYPE_DOUBLE_ARRAY": 8, |
|
129
|
|
|
} |
|
130
|
|
|
) |
|
131
|
|
|
|
|
132
|
|
|
func (x AttributeType) Enum() *AttributeType { |
|
133
|
|
|
p := new(AttributeType) |
|
134
|
|
|
*p = x |
|
135
|
|
|
return p |
|
136
|
|
|
} |
|
137
|
|
|
|
|
138
|
|
|
func (x AttributeType) String() string { |
|
139
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
|
140
|
|
|
} |
|
141
|
|
|
|
|
142
|
|
|
func (AttributeType) Descriptor() protoreflect.EnumDescriptor { |
|
143
|
|
|
return file_base_v1_base_proto_enumTypes[1].Descriptor() |
|
144
|
|
|
} |
|
145
|
|
|
|
|
146
|
|
|
func (AttributeType) Type() protoreflect.EnumType { |
|
147
|
|
|
return &file_base_v1_base_proto_enumTypes[1] |
|
148
|
|
|
} |
|
149
|
|
|
|
|
150
|
|
|
func (x AttributeType) Number() protoreflect.EnumNumber { |
|
151
|
|
|
return protoreflect.EnumNumber(x) |
|
152
|
|
|
} |
|
153
|
|
|
|
|
154
|
|
|
// Deprecated: Use AttributeType.Descriptor instead. |
|
155
|
|
|
func (AttributeType) EnumDescriptor() ([]byte, []int) { |
|
156
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{1} |
|
157
|
|
|
} |
|
158
|
|
|
|
|
159
|
|
|
// Operation enum includes potential rewrite operations. |
|
160
|
|
|
// OPERATION_UNION: Represents a union operation. |
|
161
|
|
|
// OPERATION_INTERSECTION: Represents an intersection operation. |
|
162
|
|
|
// OPERATION_EXCLUSION: Represents an exclusion operation. |
|
163
|
|
|
type Rewrite_Operation int32 |
|
164
|
|
|
|
|
165
|
|
|
const ( |
|
166
|
|
|
Rewrite_OPERATION_UNSPECIFIED Rewrite_Operation = 0 // Default, unspecified operation. |
|
167
|
|
|
Rewrite_OPERATION_UNION Rewrite_Operation = 1 // Represents a union operation. |
|
168
|
|
|
Rewrite_OPERATION_INTERSECTION Rewrite_Operation = 2 // Represents an intersection operation. |
|
169
|
|
|
Rewrite_OPERATION_EXCLUSION Rewrite_Operation = 3 // Represents an exclusion operation. |
|
170
|
|
|
) |
|
171
|
|
|
|
|
172
|
|
|
// Enum value maps for Rewrite_Operation. |
|
173
|
|
|
var ( |
|
174
|
|
|
Rewrite_Operation_name = map[int32]string{ |
|
175
|
|
|
0: "OPERATION_UNSPECIFIED", |
|
176
|
|
|
1: "OPERATION_UNION", |
|
177
|
|
|
2: "OPERATION_INTERSECTION", |
|
178
|
|
|
3: "OPERATION_EXCLUSION", |
|
179
|
|
|
} |
|
180
|
|
|
Rewrite_Operation_value = map[string]int32{ |
|
181
|
|
|
"OPERATION_UNSPECIFIED": 0, |
|
182
|
|
|
"OPERATION_UNION": 1, |
|
183
|
|
|
"OPERATION_INTERSECTION": 2, |
|
184
|
|
|
"OPERATION_EXCLUSION": 3, |
|
185
|
|
|
} |
|
186
|
|
|
) |
|
187
|
|
|
|
|
188
|
|
|
func (x Rewrite_Operation) Enum() *Rewrite_Operation { |
|
189
|
|
|
p := new(Rewrite_Operation) |
|
190
|
|
|
*p = x |
|
191
|
|
|
return p |
|
192
|
|
|
} |
|
193
|
|
|
|
|
194
|
|
|
func (x Rewrite_Operation) String() string { |
|
195
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
|
196
|
|
|
} |
|
197
|
|
|
|
|
198
|
|
|
func (Rewrite_Operation) Descriptor() protoreflect.EnumDescriptor { |
|
199
|
|
|
return file_base_v1_base_proto_enumTypes[2].Descriptor() |
|
200
|
|
|
} |
|
201
|
|
|
|
|
202
|
|
|
func (Rewrite_Operation) Type() protoreflect.EnumType { |
|
203
|
|
|
return &file_base_v1_base_proto_enumTypes[2] |
|
204
|
|
|
} |
|
205
|
|
|
|
|
206
|
|
|
func (x Rewrite_Operation) Number() protoreflect.EnumNumber { |
|
207
|
|
|
return protoreflect.EnumNumber(x) |
|
208
|
|
|
} |
|
209
|
|
|
|
|
210
|
|
|
// Deprecated: Use Rewrite_Operation.Descriptor instead. |
|
211
|
|
|
func (Rewrite_Operation) EnumDescriptor() ([]byte, []int) { |
|
212
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{3, 0} |
|
213
|
|
|
} |
|
214
|
|
|
|
|
215
|
|
|
// The Reference enum helps distinguish whether a name corresponds to an entity or a rule. |
|
216
|
|
|
type SchemaDefinition_Reference int32 |
|
217
|
|
|
|
|
218
|
|
|
const ( |
|
219
|
|
|
SchemaDefinition_REFERENCE_UNSPECIFIED SchemaDefinition_Reference = 0 // Default, unspecified reference. |
|
220
|
|
|
SchemaDefinition_REFERENCE_ENTITY SchemaDefinition_Reference = 1 // Indicates that the name refers to an entity. |
|
221
|
|
|
SchemaDefinition_REFERENCE_RULE SchemaDefinition_Reference = 2 // Indicates that the name refers to a rule. |
|
222
|
|
|
) |
|
223
|
|
|
|
|
224
|
|
|
// Enum value maps for SchemaDefinition_Reference. |
|
225
|
|
|
var ( |
|
226
|
|
|
SchemaDefinition_Reference_name = map[int32]string{ |
|
227
|
|
|
0: "REFERENCE_UNSPECIFIED", |
|
228
|
|
|
1: "REFERENCE_ENTITY", |
|
229
|
|
|
2: "REFERENCE_RULE", |
|
230
|
|
|
} |
|
231
|
|
|
SchemaDefinition_Reference_value = map[string]int32{ |
|
232
|
|
|
"REFERENCE_UNSPECIFIED": 0, |
|
233
|
|
|
"REFERENCE_ENTITY": 1, |
|
234
|
|
|
"REFERENCE_RULE": 2, |
|
235
|
|
|
} |
|
236
|
|
|
) |
|
237
|
|
|
|
|
238
|
|
|
func (x SchemaDefinition_Reference) Enum() *SchemaDefinition_Reference { |
|
239
|
|
|
p := new(SchemaDefinition_Reference) |
|
240
|
|
|
*p = x |
|
241
|
|
|
return p |
|
242
|
|
|
} |
|
243
|
|
|
|
|
244
|
|
|
func (x SchemaDefinition_Reference) String() string { |
|
245
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
|
246
|
|
|
} |
|
247
|
|
|
|
|
248
|
|
|
func (SchemaDefinition_Reference) Descriptor() protoreflect.EnumDescriptor { |
|
249
|
|
|
return file_base_v1_base_proto_enumTypes[3].Descriptor() |
|
250
|
|
|
} |
|
251
|
|
|
|
|
252
|
|
|
func (SchemaDefinition_Reference) Type() protoreflect.EnumType { |
|
253
|
|
|
return &file_base_v1_base_proto_enumTypes[3] |
|
254
|
|
|
} |
|
255
|
|
|
|
|
256
|
|
|
func (x SchemaDefinition_Reference) Number() protoreflect.EnumNumber { |
|
257
|
|
|
return protoreflect.EnumNumber(x) |
|
258
|
|
|
} |
|
259
|
|
|
|
|
260
|
|
|
// Deprecated: Use SchemaDefinition_Reference.Descriptor instead. |
|
261
|
|
|
func (SchemaDefinition_Reference) EnumDescriptor() ([]byte, []int) { |
|
262
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{4, 0} |
|
263
|
|
|
} |
|
264
|
|
|
|
|
265
|
|
|
// The Reference enum specifies whether a name pertains to a relation, permission, or attribute. |
|
266
|
|
|
type EntityDefinition_Reference int32 |
|
267
|
|
|
|
|
268
|
|
|
const ( |
|
269
|
|
|
EntityDefinition_REFERENCE_UNSPECIFIED EntityDefinition_Reference = 0 // Default, unspecified reference. |
|
270
|
|
|
EntityDefinition_REFERENCE_RELATION EntityDefinition_Reference = 1 // Indicates that the name refers to a relation. |
|
271
|
|
|
EntityDefinition_REFERENCE_PERMISSION EntityDefinition_Reference = 2 // Indicates that the name refers to a permission. |
|
272
|
|
|
EntityDefinition_REFERENCE_ATTRIBUTE EntityDefinition_Reference = 3 // Indicates that the name refers to an attribute. |
|
273
|
|
|
) |
|
274
|
|
|
|
|
275
|
|
|
// Enum value maps for EntityDefinition_Reference. |
|
276
|
|
|
var ( |
|
277
|
|
|
EntityDefinition_Reference_name = map[int32]string{ |
|
278
|
|
|
0: "REFERENCE_UNSPECIFIED", |
|
279
|
|
|
1: "REFERENCE_RELATION", |
|
280
|
|
|
2: "REFERENCE_PERMISSION", |
|
281
|
|
|
3: "REFERENCE_ATTRIBUTE", |
|
282
|
|
|
} |
|
283
|
|
|
EntityDefinition_Reference_value = map[string]int32{ |
|
284
|
|
|
"REFERENCE_UNSPECIFIED": 0, |
|
285
|
|
|
"REFERENCE_RELATION": 1, |
|
286
|
|
|
"REFERENCE_PERMISSION": 2, |
|
287
|
|
|
"REFERENCE_ATTRIBUTE": 3, |
|
288
|
|
|
} |
|
289
|
|
|
) |
|
290
|
|
|
|
|
291
|
|
|
func (x EntityDefinition_Reference) Enum() *EntityDefinition_Reference { |
|
292
|
|
|
p := new(EntityDefinition_Reference) |
|
293
|
|
|
*p = x |
|
294
|
|
|
return p |
|
295
|
|
|
} |
|
296
|
|
|
|
|
297
|
|
|
func (x EntityDefinition_Reference) String() string { |
|
298
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
|
299
|
|
|
} |
|
300
|
|
|
|
|
301
|
|
|
func (EntityDefinition_Reference) Descriptor() protoreflect.EnumDescriptor { |
|
302
|
|
|
return file_base_v1_base_proto_enumTypes[4].Descriptor() |
|
303
|
|
|
} |
|
304
|
|
|
|
|
305
|
|
|
func (EntityDefinition_Reference) Type() protoreflect.EnumType { |
|
306
|
|
|
return &file_base_v1_base_proto_enumTypes[4] |
|
307
|
|
|
} |
|
308
|
|
|
|
|
309
|
|
|
func (x EntityDefinition_Reference) Number() protoreflect.EnumNumber { |
|
310
|
|
|
return protoreflect.EnumNumber(x) |
|
311
|
|
|
} |
|
312
|
|
|
|
|
313
|
|
|
// Deprecated: Use EntityDefinition_Reference.Descriptor instead. |
|
314
|
|
|
func (EntityDefinition_Reference) EnumDescriptor() ([]byte, []int) { |
|
315
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{5, 0} |
|
316
|
|
|
} |
|
317
|
|
|
|
|
318
|
|
|
// Operation is an enum representing the type of operation to be applied on the tree node. |
|
319
|
|
|
type ExpandTreeNode_Operation int32 |
|
320
|
|
|
|
|
321
|
|
|
const ( |
|
322
|
|
|
ExpandTreeNode_OPERATION_UNSPECIFIED ExpandTreeNode_Operation = 0 |
|
323
|
|
|
ExpandTreeNode_OPERATION_UNION ExpandTreeNode_Operation = 1 |
|
324
|
|
|
ExpandTreeNode_OPERATION_INTERSECTION ExpandTreeNode_Operation = 2 |
|
325
|
|
|
ExpandTreeNode_OPERATION_EXCLUSION ExpandTreeNode_Operation = 3 |
|
326
|
|
|
) |
|
327
|
|
|
|
|
328
|
|
|
// Enum value maps for ExpandTreeNode_Operation. |
|
329
|
|
|
var ( |
|
330
|
|
|
ExpandTreeNode_Operation_name = map[int32]string{ |
|
331
|
|
|
0: "OPERATION_UNSPECIFIED", |
|
332
|
|
|
1: "OPERATION_UNION", |
|
333
|
|
|
2: "OPERATION_INTERSECTION", |
|
334
|
|
|
3: "OPERATION_EXCLUSION", |
|
335
|
|
|
} |
|
336
|
|
|
ExpandTreeNode_Operation_value = map[string]int32{ |
|
337
|
|
|
"OPERATION_UNSPECIFIED": 0, |
|
338
|
|
|
"OPERATION_UNION": 1, |
|
339
|
|
|
"OPERATION_INTERSECTION": 2, |
|
340
|
|
|
"OPERATION_EXCLUSION": 3, |
|
341
|
|
|
} |
|
342
|
|
|
) |
|
343
|
|
|
|
|
344
|
|
|
func (x ExpandTreeNode_Operation) Enum() *ExpandTreeNode_Operation { |
|
345
|
|
|
p := new(ExpandTreeNode_Operation) |
|
346
|
|
|
*p = x |
|
347
|
|
|
return p |
|
348
|
|
|
} |
|
349
|
|
|
|
|
350
|
|
|
func (x ExpandTreeNode_Operation) String() string { |
|
351
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
|
352
|
|
|
} |
|
353
|
|
|
|
|
354
|
|
|
func (ExpandTreeNode_Operation) Descriptor() protoreflect.EnumDescriptor { |
|
355
|
|
|
return file_base_v1_base_proto_enumTypes[5].Descriptor() |
|
356
|
|
|
} |
|
357
|
|
|
|
|
358
|
|
|
func (ExpandTreeNode_Operation) Type() protoreflect.EnumType { |
|
359
|
|
|
return &file_base_v1_base_proto_enumTypes[5] |
|
360
|
|
|
} |
|
361
|
|
|
|
|
362
|
|
|
func (x ExpandTreeNode_Operation) Number() protoreflect.EnumNumber { |
|
363
|
|
|
return protoreflect.EnumNumber(x) |
|
364
|
|
|
} |
|
365
|
|
|
|
|
366
|
|
|
// Deprecated: Use ExpandTreeNode_Operation.Descriptor instead. |
|
367
|
|
|
func (ExpandTreeNode_Operation) EnumDescriptor() ([]byte, []int) { |
|
368
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{29, 0} |
|
369
|
|
|
} |
|
370
|
|
|
|
|
371
|
|
|
type DataChange_Operation int32 |
|
372
|
|
|
|
|
373
|
|
|
const ( |
|
374
|
|
|
DataChange_OPERATION_UNSPECIFIED DataChange_Operation = 0 // Default operation, not specified. |
|
375
|
|
|
DataChange_OPERATION_CREATE DataChange_Operation = 1 // Creation operation. |
|
376
|
|
|
DataChange_OPERATION_DELETE DataChange_Operation = 2 // Deletion operation. |
|
377
|
|
|
) |
|
378
|
|
|
|
|
379
|
|
|
// Enum value maps for DataChange_Operation. |
|
380
|
|
|
var ( |
|
381
|
|
|
DataChange_Operation_name = map[int32]string{ |
|
382
|
|
|
0: "OPERATION_UNSPECIFIED", |
|
383
|
|
|
1: "OPERATION_CREATE", |
|
384
|
|
|
2: "OPERATION_DELETE", |
|
385
|
|
|
} |
|
386
|
|
|
DataChange_Operation_value = map[string]int32{ |
|
387
|
|
|
"OPERATION_UNSPECIFIED": 0, |
|
388
|
|
|
"OPERATION_CREATE": 1, |
|
389
|
|
|
"OPERATION_DELETE": 2, |
|
390
|
|
|
} |
|
391
|
|
|
) |
|
392
|
|
|
|
|
393
|
|
|
func (x DataChange_Operation) Enum() *DataChange_Operation { |
|
394
|
|
|
p := new(DataChange_Operation) |
|
395
|
|
|
*p = x |
|
396
|
|
|
return p |
|
397
|
|
|
} |
|
398
|
|
|
|
|
399
|
|
|
func (x DataChange_Operation) String() string { |
|
400
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
|
401
|
|
|
} |
|
402
|
|
|
|
|
403
|
|
|
func (DataChange_Operation) Descriptor() protoreflect.EnumDescriptor { |
|
404
|
|
|
return file_base_v1_base_proto_enumTypes[6].Descriptor() |
|
405
|
|
|
} |
|
406
|
|
|
|
|
407
|
|
|
func (DataChange_Operation) Type() protoreflect.EnumType { |
|
408
|
|
|
return &file_base_v1_base_proto_enumTypes[6] |
|
409
|
|
|
} |
|
410
|
|
|
|
|
411
|
|
|
func (x DataChange_Operation) Number() protoreflect.EnumNumber { |
|
412
|
|
|
return protoreflect.EnumNumber(x) |
|
413
|
|
|
} |
|
414
|
|
|
|
|
415
|
|
|
// Deprecated: Use DataChange_Operation.Descriptor instead. |
|
416
|
|
|
func (DataChange_Operation) EnumDescriptor() ([]byte, []int) { |
|
417
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{36, 0} |
|
418
|
|
|
} |
|
419
|
|
|
|
|
420
|
|
|
// Context encapsulates the information related to a single operation, |
|
421
|
|
|
// including the tuples involved and the associated attributes. |
|
422
|
|
|
type Context struct { |
|
423
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
424
|
|
|
// A repeated field of tuples involved in the operation. |
|
425
|
|
|
Tuples []*Tuple `protobuf:"bytes,1,rep,name=tuples,proto3" json:"tuples,omitempty"` |
|
426
|
|
|
// A repeated field of attributes associated with the operation. |
|
427
|
|
|
Attributes []*Attribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty"` |
|
428
|
|
|
// Additional data associated with the context. |
|
429
|
|
|
Data *structpb.Struct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` |
|
430
|
|
|
unknownFields protoimpl.UnknownFields |
|
431
|
|
|
sizeCache protoimpl.SizeCache |
|
432
|
|
|
} |
|
433
|
|
|
|
|
434
|
|
|
func (x *Context) Reset() { |
|
435
|
|
|
*x = Context{} |
|
436
|
|
|
mi := &file_base_v1_base_proto_msgTypes[0] |
|
437
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
438
|
|
|
ms.StoreMessageInfo(mi) |
|
439
|
|
|
} |
|
440
|
|
|
|
|
441
|
|
|
func (x *Context) String() string { |
|
442
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
443
|
|
|
} |
|
444
|
|
|
|
|
445
|
|
|
func (*Context) ProtoMessage() {} |
|
446
|
|
|
|
|
447
|
|
|
func (x *Context) ProtoReflect() protoreflect.Message { |
|
448
|
|
|
mi := &file_base_v1_base_proto_msgTypes[0] |
|
449
|
|
|
if x != nil { |
|
450
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
451
|
|
|
if ms.LoadMessageInfo() == nil { |
|
452
|
|
|
ms.StoreMessageInfo(mi) |
|
453
|
|
|
} |
|
454
|
|
|
return ms |
|
455
|
|
|
} |
|
456
|
|
|
return mi.MessageOf(x) |
|
457
|
|
|
} |
|
458
|
|
|
|
|
459
|
|
|
// Deprecated: Use Context.ProtoReflect.Descriptor instead. |
|
460
|
|
|
func (*Context) Descriptor() ([]byte, []int) { |
|
461
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{0} |
|
462
|
|
|
} |
|
463
|
|
|
|
|
464
|
|
|
func (x *Context) GetTuples() []*Tuple { |
|
465
|
|
|
if x != nil { |
|
466
|
|
|
return x.Tuples |
|
467
|
|
|
} |
|
468
|
|
|
return nil |
|
469
|
|
|
} |
|
470
|
|
|
|
|
471
|
|
|
func (x *Context) GetAttributes() []*Attribute { |
|
472
|
|
|
if x != nil { |
|
473
|
|
|
return x.Attributes |
|
474
|
|
|
} |
|
475
|
|
|
return nil |
|
476
|
|
|
} |
|
477
|
|
|
|
|
478
|
|
|
func (x *Context) GetData() *structpb.Struct { |
|
479
|
|
|
if x != nil { |
|
480
|
|
|
return x.Data |
|
481
|
|
|
} |
|
482
|
|
|
return nil |
|
483
|
|
|
} |
|
484
|
|
|
|
|
485
|
|
|
// Child represents a node in the permission tree. |
|
486
|
|
|
type Child struct { |
|
487
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
488
|
|
|
// Child node can be either a leaf or a rewrite operation. |
|
489
|
|
|
// |
|
490
|
|
|
// Types that are valid to be assigned to Type: |
|
491
|
|
|
// |
|
492
|
|
|
// *Child_Leaf |
|
493
|
|
|
// *Child_Rewrite |
|
494
|
|
|
Type isChild_Type `protobuf_oneof:"type"` |
|
495
|
|
|
unknownFields protoimpl.UnknownFields |
|
496
|
|
|
sizeCache protoimpl.SizeCache |
|
497
|
|
|
} |
|
498
|
|
|
|
|
499
|
|
|
func (x *Child) Reset() { |
|
500
|
|
|
*x = Child{} |
|
501
|
|
|
mi := &file_base_v1_base_proto_msgTypes[1] |
|
502
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
503
|
|
|
ms.StoreMessageInfo(mi) |
|
504
|
|
|
} |
|
505
|
|
|
|
|
506
|
|
|
func (x *Child) String() string { |
|
507
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
508
|
|
|
} |
|
509
|
|
|
|
|
510
|
|
|
func (*Child) ProtoMessage() {} |
|
511
|
|
|
|
|
512
|
|
|
func (x *Child) ProtoReflect() protoreflect.Message { |
|
513
|
|
|
mi := &file_base_v1_base_proto_msgTypes[1] |
|
514
|
|
|
if x != nil { |
|
515
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
516
|
|
|
if ms.LoadMessageInfo() == nil { |
|
517
|
|
|
ms.StoreMessageInfo(mi) |
|
518
|
|
|
} |
|
519
|
|
|
return ms |
|
520
|
|
|
} |
|
521
|
|
|
return mi.MessageOf(x) |
|
522
|
|
|
} |
|
523
|
|
|
|
|
524
|
|
|
// Deprecated: Use Child.ProtoReflect.Descriptor instead. |
|
525
|
|
|
func (*Child) Descriptor() ([]byte, []int) { |
|
526
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{1} |
|
527
|
|
|
} |
|
528
|
|
|
|
|
529
|
|
|
func (x *Child) GetType() isChild_Type { |
|
530
|
|
|
if x != nil { |
|
531
|
|
|
return x.Type |
|
532
|
|
|
} |
|
533
|
|
|
return nil |
|
534
|
|
|
} |
|
535
|
|
|
|
|
536
|
|
|
func (x *Child) GetLeaf() *Leaf { |
|
537
|
|
|
if x != nil { |
|
538
|
|
|
if x, ok := x.Type.(*Child_Leaf); ok { |
|
539
|
|
|
return x.Leaf |
|
540
|
|
|
} |
|
541
|
|
|
} |
|
542
|
|
|
return nil |
|
543
|
|
|
} |
|
544
|
|
|
|
|
545
|
|
|
func (x *Child) GetRewrite() *Rewrite { |
|
546
|
|
|
if x != nil { |
|
547
|
|
|
if x, ok := x.Type.(*Child_Rewrite); ok { |
|
548
|
|
|
return x.Rewrite |
|
549
|
|
|
} |
|
550
|
|
|
} |
|
551
|
|
|
return nil |
|
552
|
|
|
} |
|
553
|
|
|
|
|
554
|
|
|
type isChild_Type interface { |
|
555
|
|
|
isChild_Type() |
|
556
|
|
|
} |
|
557
|
|
|
|
|
558
|
|
|
type Child_Leaf struct { |
|
559
|
|
|
// Leaf node in the permission tree. |
|
560
|
|
|
Leaf *Leaf `protobuf:"bytes,1,opt,name=leaf,proto3,oneof"` |
|
561
|
|
|
} |
|
562
|
|
|
|
|
563
|
|
|
type Child_Rewrite struct { |
|
564
|
|
|
// Rewrite operation in the permission tree. |
|
565
|
|
|
Rewrite *Rewrite `protobuf:"bytes,2,opt,name=rewrite,proto3,oneof"` |
|
566
|
|
|
} |
|
567
|
|
|
|
|
568
|
|
|
func (*Child_Leaf) isChild_Type() {} |
|
569
|
|
|
|
|
570
|
|
|
func (*Child_Rewrite) isChild_Type() {} |
|
571
|
|
|
|
|
572
|
|
|
// Leaf represents a leaf node in the permission tree. |
|
573
|
|
|
type Leaf struct { |
|
574
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
575
|
|
|
// Leaf node can be one of several types. |
|
576
|
|
|
// |
|
577
|
|
|
// Types that are valid to be assigned to Type: |
|
578
|
|
|
// |
|
579
|
|
|
// *Leaf_ComputedUserSet |
|
580
|
|
|
// *Leaf_TupleToUserSet |
|
581
|
|
|
// *Leaf_ComputedAttribute |
|
582
|
|
|
// *Leaf_Call |
|
583
|
|
|
Type isLeaf_Type `protobuf_oneof:"type"` |
|
584
|
|
|
unknownFields protoimpl.UnknownFields |
|
585
|
|
|
sizeCache protoimpl.SizeCache |
|
586
|
|
|
} |
|
587
|
|
|
|
|
588
|
|
|
func (x *Leaf) Reset() { |
|
589
|
|
|
*x = Leaf{} |
|
590
|
|
|
mi := &file_base_v1_base_proto_msgTypes[2] |
|
591
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
592
|
|
|
ms.StoreMessageInfo(mi) |
|
593
|
|
|
} |
|
594
|
|
|
|
|
595
|
|
|
func (x *Leaf) String() string { |
|
596
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
597
|
|
|
} |
|
598
|
|
|
|
|
599
|
|
|
func (*Leaf) ProtoMessage() {} |
|
600
|
|
|
|
|
601
|
|
|
func (x *Leaf) ProtoReflect() protoreflect.Message { |
|
602
|
|
|
mi := &file_base_v1_base_proto_msgTypes[2] |
|
603
|
|
|
if x != nil { |
|
604
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
605
|
|
|
if ms.LoadMessageInfo() == nil { |
|
606
|
|
|
ms.StoreMessageInfo(mi) |
|
607
|
|
|
} |
|
608
|
|
|
return ms |
|
609
|
|
|
} |
|
610
|
|
|
return mi.MessageOf(x) |
|
611
|
|
|
} |
|
612
|
|
|
|
|
613
|
|
|
// Deprecated: Use Leaf.ProtoReflect.Descriptor instead. |
|
614
|
|
|
func (*Leaf) Descriptor() ([]byte, []int) { |
|
615
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{2} |
|
616
|
|
|
} |
|
617
|
|
|
|
|
618
|
|
|
func (x *Leaf) GetType() isLeaf_Type { |
|
619
|
|
|
if x != nil { |
|
620
|
|
|
return x.Type |
|
621
|
|
|
} |
|
622
|
|
|
return nil |
|
623
|
|
|
} |
|
624
|
|
|
|
|
625
|
|
|
func (x *Leaf) GetComputedUserSet() *ComputedUserSet { |
|
626
|
|
|
if x != nil { |
|
627
|
|
|
if x, ok := x.Type.(*Leaf_ComputedUserSet); ok { |
|
628
|
|
|
return x.ComputedUserSet |
|
629
|
|
|
} |
|
630
|
|
|
} |
|
631
|
|
|
return nil |
|
632
|
|
|
} |
|
633
|
|
|
|
|
634
|
|
|
func (x *Leaf) GetTupleToUserSet() *TupleToUserSet { |
|
635
|
|
|
if x != nil { |
|
636
|
|
|
if x, ok := x.Type.(*Leaf_TupleToUserSet); ok { |
|
637
|
|
|
return x.TupleToUserSet |
|
638
|
|
|
} |
|
639
|
|
|
} |
|
640
|
|
|
return nil |
|
641
|
|
|
} |
|
642
|
|
|
|
|
643
|
|
|
func (x *Leaf) GetComputedAttribute() *ComputedAttribute { |
|
644
|
|
|
if x != nil { |
|
645
|
|
|
if x, ok := x.Type.(*Leaf_ComputedAttribute); ok { |
|
646
|
|
|
return x.ComputedAttribute |
|
647
|
|
|
} |
|
648
|
|
|
} |
|
649
|
|
|
return nil |
|
650
|
|
|
} |
|
651
|
|
|
|
|
652
|
|
|
func (x *Leaf) GetCall() *Call { |
|
653
|
|
|
if x != nil { |
|
654
|
|
|
if x, ok := x.Type.(*Leaf_Call); ok { |
|
655
|
|
|
return x.Call |
|
656
|
|
|
} |
|
657
|
|
|
} |
|
658
|
|
|
return nil |
|
659
|
|
|
} |
|
660
|
|
|
|
|
661
|
|
|
type isLeaf_Type interface { |
|
662
|
|
|
isLeaf_Type() |
|
663
|
|
|
} |
|
664
|
|
|
|
|
665
|
|
|
type Leaf_ComputedUserSet struct { |
|
666
|
|
|
// A computed set of users. |
|
667
|
|
|
ComputedUserSet *ComputedUserSet `protobuf:"bytes,1,opt,name=computed_user_set,json=computedUserSet,proto3,oneof"` |
|
668
|
|
|
} |
|
669
|
|
|
|
|
670
|
|
|
type Leaf_TupleToUserSet struct { |
|
671
|
|
|
// A tuple to user set conversion. |
|
672
|
|
|
TupleToUserSet *TupleToUserSet `protobuf:"bytes,2,opt,name=tuple_to_user_set,json=tupleToUserSet,proto3,oneof"` |
|
673
|
|
|
} |
|
674
|
|
|
|
|
675
|
|
|
type Leaf_ComputedAttribute struct { |
|
676
|
|
|
// A computed attribute. |
|
677
|
|
|
ComputedAttribute *ComputedAttribute `protobuf:"bytes,3,opt,name=computed_attribute,json=computedAttribute,proto3,oneof"` |
|
678
|
|
|
} |
|
679
|
|
|
|
|
680
|
|
|
type Leaf_Call struct { |
|
681
|
|
|
// A call to a function or method. |
|
682
|
|
|
Call *Call `protobuf:"bytes,4,opt,name=call,proto3,oneof"` |
|
683
|
|
|
} |
|
684
|
|
|
|
|
685
|
|
|
func (*Leaf_ComputedUserSet) isLeaf_Type() {} |
|
686
|
|
|
|
|
687
|
|
|
func (*Leaf_TupleToUserSet) isLeaf_Type() {} |
|
688
|
|
|
|
|
689
|
|
|
func (*Leaf_ComputedAttribute) isLeaf_Type() {} |
|
690
|
|
|
|
|
691
|
|
|
func (*Leaf_Call) isLeaf_Type() {} |
|
692
|
|
|
|
|
693
|
|
|
// The Rewrite message represents a specific rewrite operation. |
|
694
|
|
|
// This operation could be one of the following: union, intersection, or exclusion. |
|
695
|
|
|
type Rewrite struct { |
|
696
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
697
|
|
|
// The type of rewrite operation to be performed. |
|
698
|
|
|
RewriteOperation Rewrite_Operation `protobuf:"varint,1,opt,name=rewrite_operation,json=rewriteOperation,proto3,enum=base.v1.Rewrite_Operation" json:"rewrite_operation,omitempty"` |
|
699
|
|
|
// A list of children that are operated upon by the rewrite operation. |
|
700
|
|
|
Children []*Child `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"` |
|
701
|
|
|
unknownFields protoimpl.UnknownFields |
|
702
|
|
|
sizeCache protoimpl.SizeCache |
|
703
|
|
|
} |
|
704
|
|
|
|
|
705
|
|
|
func (x *Rewrite) Reset() { |
|
706
|
|
|
*x = Rewrite{} |
|
707
|
|
|
mi := &file_base_v1_base_proto_msgTypes[3] |
|
708
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
709
|
|
|
ms.StoreMessageInfo(mi) |
|
710
|
|
|
} |
|
711
|
|
|
|
|
712
|
|
|
func (x *Rewrite) String() string { |
|
713
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
714
|
|
|
} |
|
715
|
|
|
|
|
716
|
|
|
func (*Rewrite) ProtoMessage() {} |
|
717
|
|
|
|
|
718
|
|
|
func (x *Rewrite) ProtoReflect() protoreflect.Message { |
|
719
|
|
|
mi := &file_base_v1_base_proto_msgTypes[3] |
|
720
|
|
|
if x != nil { |
|
721
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
722
|
|
|
if ms.LoadMessageInfo() == nil { |
|
723
|
|
|
ms.StoreMessageInfo(mi) |
|
724
|
|
|
} |
|
725
|
|
|
return ms |
|
726
|
|
|
} |
|
727
|
|
|
return mi.MessageOf(x) |
|
728
|
|
|
} |
|
729
|
|
|
|
|
730
|
|
|
// Deprecated: Use Rewrite.ProtoReflect.Descriptor instead. |
|
731
|
|
|
func (*Rewrite) Descriptor() ([]byte, []int) { |
|
732
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{3} |
|
733
|
|
|
} |
|
734
|
|
|
|
|
735
|
|
|
func (x *Rewrite) GetRewriteOperation() Rewrite_Operation { |
|
736
|
|
|
if x != nil { |
|
737
|
|
|
return x.RewriteOperation |
|
738
|
|
|
} |
|
739
|
|
|
return Rewrite_OPERATION_UNSPECIFIED |
|
740
|
|
|
} |
|
741
|
|
|
|
|
742
|
|
|
func (x *Rewrite) GetChildren() []*Child { |
|
743
|
|
|
if x != nil { |
|
744
|
|
|
return x.Children |
|
745
|
|
|
} |
|
746
|
|
|
return nil |
|
747
|
|
|
} |
|
748
|
|
|
|
|
749
|
|
|
// The SchemaDefinition message provides definitions for entities and rules, |
|
750
|
|
|
// and includes references to clarify whether a name refers to an entity or a rule. |
|
751
|
|
|
type SchemaDefinition struct { |
|
752
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
753
|
|
|
// Map of entity definitions. The key is the entity name, and the value is the corresponding EntityDefinition. |
|
754
|
|
|
EntityDefinitions map[string]*EntityDefinition `protobuf:"bytes,1,rep,name=entity_definitions,json=entityDefinitions,proto3" json:"entity_definitions,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
|
755
|
|
|
// Map of rule definitions. The key is the rule name, and the value is the corresponding RuleDefinition. |
|
756
|
|
|
RuleDefinitions map[string]*RuleDefinition `protobuf:"bytes,2,rep,name=rule_definitions,json=ruleDefinitions,proto3" json:"rule_definitions,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
|
757
|
|
|
// Map of references to signify whether a string refers to an entity or a rule. |
|
758
|
|
|
References map[string]SchemaDefinition_Reference `protobuf:"bytes,3,rep,name=references,proto3" json:"references,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=base.v1.SchemaDefinition_Reference"` |
|
759
|
|
|
unknownFields protoimpl.UnknownFields |
|
760
|
|
|
sizeCache protoimpl.SizeCache |
|
761
|
|
|
} |
|
762
|
|
|
|
|
763
|
|
|
func (x *SchemaDefinition) Reset() { |
|
764
|
|
|
*x = SchemaDefinition{} |
|
765
|
|
|
mi := &file_base_v1_base_proto_msgTypes[4] |
|
766
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
767
|
|
|
ms.StoreMessageInfo(mi) |
|
768
|
|
|
} |
|
769
|
|
|
|
|
770
|
|
|
func (x *SchemaDefinition) String() string { |
|
771
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
772
|
|
|
} |
|
773
|
|
|
|
|
774
|
|
|
func (*SchemaDefinition) ProtoMessage() {} |
|
775
|
|
|
|
|
776
|
|
|
func (x *SchemaDefinition) ProtoReflect() protoreflect.Message { |
|
777
|
|
|
mi := &file_base_v1_base_proto_msgTypes[4] |
|
778
|
|
|
if x != nil { |
|
779
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
780
|
|
|
if ms.LoadMessageInfo() == nil { |
|
781
|
|
|
ms.StoreMessageInfo(mi) |
|
782
|
|
|
} |
|
783
|
|
|
return ms |
|
784
|
|
|
} |
|
785
|
|
|
return mi.MessageOf(x) |
|
786
|
|
|
} |
|
787
|
|
|
|
|
788
|
|
|
// Deprecated: Use SchemaDefinition.ProtoReflect.Descriptor instead. |
|
789
|
|
|
func (*SchemaDefinition) Descriptor() ([]byte, []int) { |
|
790
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{4} |
|
791
|
|
|
} |
|
792
|
|
|
|
|
793
|
|
|
func (x *SchemaDefinition) GetEntityDefinitions() map[string]*EntityDefinition { |
|
794
|
|
|
if x != nil { |
|
795
|
|
|
return x.EntityDefinitions |
|
796
|
|
|
} |
|
797
|
|
|
return nil |
|
798
|
|
|
} |
|
799
|
|
|
|
|
800
|
|
|
func (x *SchemaDefinition) GetRuleDefinitions() map[string]*RuleDefinition { |
|
801
|
|
|
if x != nil { |
|
802
|
|
|
return x.RuleDefinitions |
|
803
|
|
|
} |
|
804
|
|
|
return nil |
|
805
|
|
|
} |
|
806
|
|
|
|
|
807
|
|
|
func (x *SchemaDefinition) GetReferences() map[string]SchemaDefinition_Reference { |
|
808
|
|
|
if x != nil { |
|
809
|
|
|
return x.References |
|
810
|
|
|
} |
|
811
|
|
|
return nil |
|
812
|
|
|
} |
|
813
|
|
|
|
|
814
|
|
|
// The EntityDefinition message provides detailed information about a specific entity. |
|
815
|
|
|
type EntityDefinition struct { |
|
816
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
817
|
|
|
// The name of the entity, which follows a specific string pattern and has a maximum byte size. |
|
818
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
|
819
|
|
|
// Map of relation definitions within this entity. The key is the relation name, and the value is the RelationDefinition. |
|
820
|
|
|
Relations map[string]*RelationDefinition `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
|
821
|
|
|
// Map of permission definitions within this entity. The key is the permission name, and the value is the PermissionDefinition. |
|
822
|
|
|
Permissions map[string]*PermissionDefinition `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
|
823
|
|
|
// Map of attribute definitions within this entity. The key is the attribute name, and the value is the AttributeDefinition. |
|
824
|
|
|
Attributes map[string]*AttributeDefinition `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
|
825
|
|
|
// Map of references indicating whether a string pertains to a relation, permission, or attribute. |
|
826
|
|
|
References map[string]EntityDefinition_Reference `protobuf:"bytes,5,rep,name=references,proto3" json:"references,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=base.v1.EntityDefinition_Reference"` |
|
827
|
|
|
unknownFields protoimpl.UnknownFields |
|
828
|
|
|
sizeCache protoimpl.SizeCache |
|
829
|
|
|
} |
|
830
|
|
|
|
|
831
|
|
|
func (x *EntityDefinition) Reset() { |
|
832
|
|
|
*x = EntityDefinition{} |
|
833
|
|
|
mi := &file_base_v1_base_proto_msgTypes[5] |
|
834
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
835
|
|
|
ms.StoreMessageInfo(mi) |
|
836
|
|
|
} |
|
837
|
|
|
|
|
838
|
|
|
func (x *EntityDefinition) String() string { |
|
839
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
840
|
|
|
} |
|
841
|
|
|
|
|
842
|
|
|
func (*EntityDefinition) ProtoMessage() {} |
|
843
|
|
|
|
|
844
|
|
|
func (x *EntityDefinition) ProtoReflect() protoreflect.Message { |
|
845
|
|
|
mi := &file_base_v1_base_proto_msgTypes[5] |
|
846
|
|
|
if x != nil { |
|
847
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
848
|
|
|
if ms.LoadMessageInfo() == nil { |
|
849
|
|
|
ms.StoreMessageInfo(mi) |
|
850
|
|
|
} |
|
851
|
|
|
return ms |
|
852
|
|
|
} |
|
853
|
|
|
return mi.MessageOf(x) |
|
854
|
|
|
} |
|
855
|
|
|
|
|
856
|
|
|
// Deprecated: Use EntityDefinition.ProtoReflect.Descriptor instead. |
|
857
|
|
|
func (*EntityDefinition) Descriptor() ([]byte, []int) { |
|
858
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{5} |
|
859
|
|
|
} |
|
860
|
|
|
|
|
861
|
|
|
func (x *EntityDefinition) GetName() string { |
|
862
|
|
|
if x != nil { |
|
863
|
|
|
return x.Name |
|
864
|
|
|
} |
|
865
|
|
|
return "" |
|
866
|
|
|
} |
|
867
|
|
|
|
|
868
|
|
|
func (x *EntityDefinition) GetRelations() map[string]*RelationDefinition { |
|
869
|
|
|
if x != nil { |
|
870
|
|
|
return x.Relations |
|
871
|
|
|
} |
|
872
|
|
|
return nil |
|
873
|
|
|
} |
|
874
|
|
|
|
|
875
|
|
|
func (x *EntityDefinition) GetPermissions() map[string]*PermissionDefinition { |
|
876
|
|
|
if x != nil { |
|
877
|
|
|
return x.Permissions |
|
878
|
|
|
} |
|
879
|
|
|
return nil |
|
880
|
|
|
} |
|
881
|
|
|
|
|
882
|
|
|
func (x *EntityDefinition) GetAttributes() map[string]*AttributeDefinition { |
|
883
|
|
|
if x != nil { |
|
884
|
|
|
return x.Attributes |
|
885
|
|
|
} |
|
886
|
|
|
return nil |
|
887
|
|
|
} |
|
888
|
|
|
|
|
889
|
|
|
func (x *EntityDefinition) GetReferences() map[string]EntityDefinition_Reference { |
|
890
|
|
|
if x != nil { |
|
891
|
|
|
return x.References |
|
892
|
|
|
} |
|
893
|
|
|
return nil |
|
894
|
|
|
} |
|
895
|
|
|
|
|
896
|
|
|
// The RuleDefinition message provides detailed information about a specific rule. |
|
897
|
|
|
type RuleDefinition struct { |
|
898
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
899
|
|
|
// The name of the rule, which follows a specific string pattern and has a maximum byte size. |
|
900
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
|
901
|
|
|
// Map of arguments for this rule. The key is the attribute name, and the value is the AttributeType. |
|
902
|
|
|
Arguments map[string]AttributeType `protobuf:"bytes,2,rep,name=arguments,proto3" json:"arguments,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=base.v1.AttributeType"` |
|
903
|
|
|
// The expression for this rule in the form of a google.api.expr.v1alpha1.CheckedExpr. |
|
904
|
|
|
Expression *v1alpha1.CheckedExpr `protobuf:"bytes,3,opt,name=expression,proto3" json:"expression,omitempty"` |
|
905
|
|
|
unknownFields protoimpl.UnknownFields |
|
906
|
|
|
sizeCache protoimpl.SizeCache |
|
907
|
|
|
} |
|
908
|
|
|
|
|
909
|
|
|
func (x *RuleDefinition) Reset() { |
|
910
|
|
|
*x = RuleDefinition{} |
|
911
|
|
|
mi := &file_base_v1_base_proto_msgTypes[6] |
|
912
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
913
|
|
|
ms.StoreMessageInfo(mi) |
|
914
|
|
|
} |
|
915
|
|
|
|
|
916
|
|
|
func (x *RuleDefinition) String() string { |
|
917
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
918
|
|
|
} |
|
919
|
|
|
|
|
920
|
|
|
func (*RuleDefinition) ProtoMessage() {} |
|
921
|
|
|
|
|
922
|
|
|
func (x *RuleDefinition) ProtoReflect() protoreflect.Message { |
|
923
|
|
|
mi := &file_base_v1_base_proto_msgTypes[6] |
|
924
|
|
|
if x != nil { |
|
925
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
926
|
|
|
if ms.LoadMessageInfo() == nil { |
|
927
|
|
|
ms.StoreMessageInfo(mi) |
|
928
|
|
|
} |
|
929
|
|
|
return ms |
|
930
|
|
|
} |
|
931
|
|
|
return mi.MessageOf(x) |
|
932
|
|
|
} |
|
933
|
|
|
|
|
934
|
|
|
// Deprecated: Use RuleDefinition.ProtoReflect.Descriptor instead. |
|
935
|
|
|
func (*RuleDefinition) Descriptor() ([]byte, []int) { |
|
936
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{6} |
|
937
|
|
|
} |
|
938
|
|
|
|
|
939
|
|
|
func (x *RuleDefinition) GetName() string { |
|
940
|
|
|
if x != nil { |
|
941
|
|
|
return x.Name |
|
942
|
|
|
} |
|
943
|
|
|
return "" |
|
944
|
|
|
} |
|
945
|
|
|
|
|
946
|
|
|
func (x *RuleDefinition) GetArguments() map[string]AttributeType { |
|
947
|
|
|
if x != nil { |
|
948
|
|
|
return x.Arguments |
|
949
|
|
|
} |
|
950
|
|
|
return nil |
|
951
|
|
|
} |
|
952
|
|
|
|
|
953
|
|
|
func (x *RuleDefinition) GetExpression() *v1alpha1.CheckedExpr { |
|
954
|
|
|
if x != nil { |
|
955
|
|
|
return x.Expression |
|
956
|
|
|
} |
|
957
|
|
|
return nil |
|
958
|
|
|
} |
|
959
|
|
|
|
|
960
|
|
|
// The AttributeDefinition message provides detailed information about a specific attribute. |
|
961
|
|
|
type AttributeDefinition struct { |
|
962
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
963
|
|
|
// The name of the attribute, which follows a specific string pattern and has a maximum byte size. |
|
964
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
|
965
|
|
|
// The type of the attribute. |
|
966
|
|
|
Type AttributeType `protobuf:"varint,2,opt,name=type,proto3,enum=base.v1.AttributeType" json:"type,omitempty"` |
|
967
|
|
|
unknownFields protoimpl.UnknownFields |
|
968
|
|
|
sizeCache protoimpl.SizeCache |
|
969
|
|
|
} |
|
970
|
|
|
|
|
971
|
|
|
func (x *AttributeDefinition) Reset() { |
|
972
|
|
|
*x = AttributeDefinition{} |
|
973
|
|
|
mi := &file_base_v1_base_proto_msgTypes[7] |
|
974
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
975
|
|
|
ms.StoreMessageInfo(mi) |
|
976
|
|
|
} |
|
977
|
|
|
|
|
978
|
|
|
func (x *AttributeDefinition) String() string { |
|
979
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
980
|
|
|
} |
|
981
|
|
|
|
|
982
|
|
|
func (*AttributeDefinition) ProtoMessage() {} |
|
983
|
|
|
|
|
984
|
|
|
func (x *AttributeDefinition) ProtoReflect() protoreflect.Message { |
|
985
|
|
|
mi := &file_base_v1_base_proto_msgTypes[7] |
|
986
|
|
|
if x != nil { |
|
987
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
988
|
|
|
if ms.LoadMessageInfo() == nil { |
|
989
|
|
|
ms.StoreMessageInfo(mi) |
|
990
|
|
|
} |
|
991
|
|
|
return ms |
|
992
|
|
|
} |
|
993
|
|
|
return mi.MessageOf(x) |
|
994
|
|
|
} |
|
995
|
|
|
|
|
996
|
|
|
// Deprecated: Use AttributeDefinition.ProtoReflect.Descriptor instead. |
|
997
|
|
|
func (*AttributeDefinition) Descriptor() ([]byte, []int) { |
|
998
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{7} |
|
999
|
|
|
} |
|
1000
|
|
|
|
|
1001
|
|
|
func (x *AttributeDefinition) GetName() string { |
|
1002
|
|
|
if x != nil { |
|
1003
|
|
|
return x.Name |
|
1004
|
|
|
} |
|
1005
|
|
|
return "" |
|
1006
|
|
|
} |
|
1007
|
|
|
|
|
1008
|
|
|
func (x *AttributeDefinition) GetType() AttributeType { |
|
1009
|
|
|
if x != nil { |
|
1010
|
|
|
return x.Type |
|
1011
|
|
|
} |
|
1012
|
|
|
return AttributeType_ATTRIBUTE_TYPE_UNSPECIFIED |
|
1013
|
|
|
} |
|
1014
|
|
|
|
|
1015
|
|
|
// The RelationDefinition message provides detailed information about a specific relation. |
|
1016
|
|
|
type RelationDefinition struct { |
|
1017
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1018
|
|
|
// The name of the relation, which follows a specific string pattern and has a maximum byte size. |
|
1019
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
|
1020
|
|
|
// A list of references to other relations. |
|
1021
|
|
|
RelationReferences []*RelationReference `protobuf:"bytes,2,rep,name=relation_references,json=relationReferences,proto3" json:"relation_references,omitempty"` |
|
1022
|
|
|
unknownFields protoimpl.UnknownFields |
|
1023
|
|
|
sizeCache protoimpl.SizeCache |
|
1024
|
|
|
} |
|
1025
|
|
|
|
|
1026
|
|
|
func (x *RelationDefinition) Reset() { |
|
1027
|
|
|
*x = RelationDefinition{} |
|
1028
|
|
|
mi := &file_base_v1_base_proto_msgTypes[8] |
|
1029
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1030
|
|
|
ms.StoreMessageInfo(mi) |
|
1031
|
|
|
} |
|
1032
|
|
|
|
|
1033
|
|
|
func (x *RelationDefinition) String() string { |
|
1034
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1035
|
|
|
} |
|
1036
|
|
|
|
|
1037
|
|
|
func (*RelationDefinition) ProtoMessage() {} |
|
1038
|
|
|
|
|
1039
|
|
|
func (x *RelationDefinition) ProtoReflect() protoreflect.Message { |
|
1040
|
|
|
mi := &file_base_v1_base_proto_msgTypes[8] |
|
1041
|
|
|
if x != nil { |
|
1042
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1043
|
|
|
if ms.LoadMessageInfo() == nil { |
|
1044
|
|
|
ms.StoreMessageInfo(mi) |
|
1045
|
|
|
} |
|
1046
|
|
|
return ms |
|
1047
|
|
|
} |
|
1048
|
|
|
return mi.MessageOf(x) |
|
1049
|
|
|
} |
|
1050
|
|
|
|
|
1051
|
|
|
// Deprecated: Use RelationDefinition.ProtoReflect.Descriptor instead. |
|
1052
|
|
|
func (*RelationDefinition) Descriptor() ([]byte, []int) { |
|
1053
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{8} |
|
1054
|
|
|
} |
|
1055
|
|
|
|
|
1056
|
|
|
func (x *RelationDefinition) GetName() string { |
|
1057
|
|
|
if x != nil { |
|
1058
|
|
|
return x.Name |
|
1059
|
|
|
} |
|
1060
|
|
|
return "" |
|
1061
|
|
|
} |
|
1062
|
|
|
|
|
1063
|
|
|
func (x *RelationDefinition) GetRelationReferences() []*RelationReference { |
|
1064
|
|
|
if x != nil { |
|
1065
|
|
|
return x.RelationReferences |
|
1066
|
|
|
} |
|
1067
|
|
|
return nil |
|
1068
|
|
|
} |
|
1069
|
|
|
|
|
1070
|
|
|
// The PermissionDefinition message provides detailed information about a specific permission. |
|
1071
|
|
|
type PermissionDefinition struct { |
|
1072
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1073
|
|
|
// The name of the permission, which follows a specific string pattern and has a maximum byte size. |
|
1074
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
|
1075
|
|
|
// The child related to this permission. |
|
1076
|
|
|
Child *Child `protobuf:"bytes,2,opt,name=child,proto3" json:"child,omitempty"` |
|
1077
|
|
|
unknownFields protoimpl.UnknownFields |
|
1078
|
|
|
sizeCache protoimpl.SizeCache |
|
1079
|
|
|
} |
|
1080
|
|
|
|
|
1081
|
|
|
func (x *PermissionDefinition) Reset() { |
|
1082
|
|
|
*x = PermissionDefinition{} |
|
1083
|
|
|
mi := &file_base_v1_base_proto_msgTypes[9] |
|
1084
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1085
|
|
|
ms.StoreMessageInfo(mi) |
|
1086
|
|
|
} |
|
1087
|
|
|
|
|
1088
|
|
|
func (x *PermissionDefinition) String() string { |
|
1089
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1090
|
|
|
} |
|
1091
|
|
|
|
|
1092
|
|
|
func (*PermissionDefinition) ProtoMessage() {} |
|
1093
|
|
|
|
|
1094
|
|
|
func (x *PermissionDefinition) ProtoReflect() protoreflect.Message { |
|
1095
|
|
|
mi := &file_base_v1_base_proto_msgTypes[9] |
|
1096
|
|
|
if x != nil { |
|
1097
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1098
|
|
|
if ms.LoadMessageInfo() == nil { |
|
1099
|
|
|
ms.StoreMessageInfo(mi) |
|
1100
|
|
|
} |
|
1101
|
|
|
return ms |
|
1102
|
|
|
} |
|
1103
|
|
|
return mi.MessageOf(x) |
|
1104
|
|
|
} |
|
1105
|
|
|
|
|
1106
|
|
|
// Deprecated: Use PermissionDefinition.ProtoReflect.Descriptor instead. |
|
1107
|
|
|
func (*PermissionDefinition) Descriptor() ([]byte, []int) { |
|
1108
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{9} |
|
1109
|
|
|
} |
|
1110
|
|
|
|
|
1111
|
|
|
func (x *PermissionDefinition) GetName() string { |
|
1112
|
|
|
if x != nil { |
|
1113
|
|
|
return x.Name |
|
1114
|
|
|
} |
|
1115
|
|
|
return "" |
|
1116
|
|
|
} |
|
1117
|
|
|
|
|
1118
|
|
|
func (x *PermissionDefinition) GetChild() *Child { |
|
1119
|
|
|
if x != nil { |
|
1120
|
|
|
return x.Child |
|
1121
|
|
|
} |
|
1122
|
|
|
return nil |
|
1123
|
|
|
} |
|
1124
|
|
|
|
|
1125
|
|
|
// The RelationReference message provides a reference to a specific relation. |
|
1126
|
|
|
type RelationReference struct { |
|
1127
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1128
|
|
|
// The type of the referenced entity, which follows a specific string pattern and has a maximum byte size. |
|
1129
|
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` |
|
1130
|
|
|
// The name of the referenced relation, which follows a specific string pattern and has a maximum byte size. |
|
1131
|
|
|
Relation string `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"` |
|
1132
|
|
|
unknownFields protoimpl.UnknownFields |
|
1133
|
|
|
sizeCache protoimpl.SizeCache |
|
1134
|
|
|
} |
|
1135
|
|
|
|
|
1136
|
|
|
func (x *RelationReference) Reset() { |
|
1137
|
|
|
*x = RelationReference{} |
|
1138
|
|
|
mi := &file_base_v1_base_proto_msgTypes[10] |
|
1139
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1140
|
|
|
ms.StoreMessageInfo(mi) |
|
1141
|
|
|
} |
|
1142
|
|
|
|
|
1143
|
|
|
func (x *RelationReference) String() string { |
|
1144
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1145
|
|
|
} |
|
1146
|
|
|
|
|
1147
|
|
|
func (*RelationReference) ProtoMessage() {} |
|
1148
|
|
|
|
|
1149
|
|
|
func (x *RelationReference) ProtoReflect() protoreflect.Message { |
|
1150
|
|
|
mi := &file_base_v1_base_proto_msgTypes[10] |
|
1151
|
|
|
if x != nil { |
|
1152
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1153
|
|
|
if ms.LoadMessageInfo() == nil { |
|
1154
|
|
|
ms.StoreMessageInfo(mi) |
|
1155
|
|
|
} |
|
1156
|
|
|
return ms |
|
1157
|
|
|
} |
|
1158
|
|
|
return mi.MessageOf(x) |
|
1159
|
|
|
} |
|
1160
|
|
|
|
|
1161
|
|
|
// Deprecated: Use RelationReference.ProtoReflect.Descriptor instead. |
|
1162
|
|
|
func (*RelationReference) Descriptor() ([]byte, []int) { |
|
1163
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{10} |
|
1164
|
|
|
} |
|
1165
|
|
|
|
|
1166
|
|
|
func (x *RelationReference) GetType() string { |
|
1167
|
|
|
if x != nil { |
|
1168
|
|
|
return x.Type |
|
1169
|
|
|
} |
|
1170
|
|
|
return "" |
|
1171
|
|
|
} |
|
1172
|
|
|
|
|
1173
|
|
|
func (x *RelationReference) GetRelation() string { |
|
1174
|
|
|
if x != nil { |
|
1175
|
|
|
return x.Relation |
|
1176
|
|
|
} |
|
1177
|
|
|
return "" |
|
1178
|
|
|
} |
|
1179
|
|
|
|
|
1180
|
|
|
type Entrance struct { |
|
1181
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1182
|
|
|
// The type of the entrance entity, which follows a specific string pattern and has a maximum byte size. |
|
1183
|
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` |
|
1184
|
|
|
// The value associated with the entrance, which follows a specific string pattern and has a maximum byte size. |
|
1185
|
|
|
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` |
|
1186
|
|
|
unknownFields protoimpl.UnknownFields |
|
1187
|
|
|
sizeCache protoimpl.SizeCache |
|
1188
|
|
|
} |
|
1189
|
|
|
|
|
1190
|
|
|
func (x *Entrance) Reset() { |
|
1191
|
|
|
*x = Entrance{} |
|
1192
|
|
|
mi := &file_base_v1_base_proto_msgTypes[11] |
|
1193
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1194
|
|
|
ms.StoreMessageInfo(mi) |
|
1195
|
|
|
} |
|
1196
|
|
|
|
|
1197
|
|
|
func (x *Entrance) String() string { |
|
1198
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1199
|
|
|
} |
|
1200
|
|
|
|
|
1201
|
|
|
func (*Entrance) ProtoMessage() {} |
|
1202
|
|
|
|
|
1203
|
|
|
func (x *Entrance) ProtoReflect() protoreflect.Message { |
|
1204
|
|
|
mi := &file_base_v1_base_proto_msgTypes[11] |
|
1205
|
|
|
if x != nil { |
|
1206
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1207
|
|
|
if ms.LoadMessageInfo() == nil { |
|
1208
|
|
|
ms.StoreMessageInfo(mi) |
|
1209
|
|
|
} |
|
1210
|
|
|
return ms |
|
1211
|
|
|
} |
|
1212
|
|
|
return mi.MessageOf(x) |
|
1213
|
|
|
} |
|
1214
|
|
|
|
|
1215
|
|
|
// Deprecated: Use Entrance.ProtoReflect.Descriptor instead. |
|
1216
|
|
|
func (*Entrance) Descriptor() ([]byte, []int) { |
|
1217
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{11} |
|
1218
|
|
|
} |
|
1219
|
|
|
|
|
1220
|
|
|
func (x *Entrance) GetType() string { |
|
1221
|
|
|
if x != nil { |
|
1222
|
|
|
return x.Type |
|
1223
|
|
|
} |
|
1224
|
|
|
return "" |
|
1225
|
|
|
} |
|
1226
|
|
|
|
|
1227
|
|
|
func (x *Entrance) GetValue() string { |
|
1228
|
|
|
if x != nil { |
|
1229
|
|
|
return x.Value |
|
1230
|
|
|
} |
|
1231
|
|
|
return "" |
|
1232
|
|
|
} |
|
1233
|
|
|
|
|
1234
|
|
|
// Argument defines the type of argument in a Call. It can be either a ComputedAttribute or a ContextAttribute. |
|
1235
|
|
|
type Argument struct { |
|
1236
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1237
|
|
|
// Types that are valid to be assigned to Type: |
|
1238
|
|
|
// |
|
1239
|
|
|
// *Argument_ComputedAttribute |
|
1240
|
|
|
Type isArgument_Type `protobuf_oneof:"type"` |
|
1241
|
|
|
unknownFields protoimpl.UnknownFields |
|
1242
|
|
|
sizeCache protoimpl.SizeCache |
|
1243
|
|
|
} |
|
1244
|
|
|
|
|
1245
|
|
|
func (x *Argument) Reset() { |
|
1246
|
|
|
*x = Argument{} |
|
1247
|
|
|
mi := &file_base_v1_base_proto_msgTypes[12] |
|
1248
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1249
|
|
|
ms.StoreMessageInfo(mi) |
|
1250
|
|
|
} |
|
1251
|
|
|
|
|
1252
|
|
|
func (x *Argument) String() string { |
|
1253
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1254
|
|
|
} |
|
1255
|
|
|
|
|
1256
|
|
|
func (*Argument) ProtoMessage() {} |
|
1257
|
|
|
|
|
1258
|
|
|
func (x *Argument) ProtoReflect() protoreflect.Message { |
|
1259
|
|
|
mi := &file_base_v1_base_proto_msgTypes[12] |
|
1260
|
|
|
if x != nil { |
|
1261
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1262
|
|
|
if ms.LoadMessageInfo() == nil { |
|
1263
|
|
|
ms.StoreMessageInfo(mi) |
|
1264
|
|
|
} |
|
1265
|
|
|
return ms |
|
1266
|
|
|
} |
|
1267
|
|
|
return mi.MessageOf(x) |
|
1268
|
|
|
} |
|
1269
|
|
|
|
|
1270
|
|
|
// Deprecated: Use Argument.ProtoReflect.Descriptor instead. |
|
1271
|
|
|
func (*Argument) Descriptor() ([]byte, []int) { |
|
1272
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{12} |
|
1273
|
|
|
} |
|
1274
|
|
|
|
|
1275
|
|
|
func (x *Argument) GetType() isArgument_Type { |
|
1276
|
|
|
if x != nil { |
|
1277
|
|
|
return x.Type |
|
1278
|
|
|
} |
|
1279
|
|
|
return nil |
|
1280
|
|
|
} |
|
1281
|
|
|
|
|
1282
|
|
|
func (x *Argument) GetComputedAttribute() *ComputedAttribute { |
|
1283
|
|
|
if x != nil { |
|
1284
|
|
|
if x, ok := x.Type.(*Argument_ComputedAttribute); ok { |
|
1285
|
|
|
return x.ComputedAttribute |
|
1286
|
|
|
} |
|
1287
|
|
|
} |
|
1288
|
|
|
return nil |
|
1289
|
|
|
} |
|
1290
|
|
|
|
|
1291
|
|
|
type isArgument_Type interface { |
|
1292
|
|
|
isArgument_Type() |
|
1293
|
|
|
} |
|
1294
|
|
|
|
|
1295
|
|
|
type Argument_ComputedAttribute struct { |
|
1296
|
|
|
ComputedAttribute *ComputedAttribute `protobuf:"bytes,1,opt,name=computed_attribute,json=computedAttribute,proto3,oneof"` |
|
1297
|
|
|
} |
|
1298
|
|
|
|
|
1299
|
|
|
func (*Argument_ComputedAttribute) isArgument_Type() {} |
|
1300
|
|
|
|
|
1301
|
|
|
// Call represents a call to a rule. It includes the name of the rule and the arguments passed to it. |
|
1302
|
|
|
type Call struct { |
|
1303
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1304
|
|
|
RuleName string `protobuf:"bytes,1,opt,name=rule_name,json=ruleName,proto3" json:"rule_name,omitempty"` // Name of the rule |
|
1305
|
|
|
Arguments []*Argument `protobuf:"bytes,2,rep,name=arguments,proto3" json:"arguments,omitempty"` // Arguments passed to the rule |
|
1306
|
|
|
unknownFields protoimpl.UnknownFields |
|
1307
|
|
|
sizeCache protoimpl.SizeCache |
|
1308
|
|
|
} |
|
1309
|
|
|
|
|
1310
|
|
|
func (x *Call) Reset() { |
|
1311
|
|
|
*x = Call{} |
|
1312
|
|
|
mi := &file_base_v1_base_proto_msgTypes[13] |
|
1313
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1314
|
|
|
ms.StoreMessageInfo(mi) |
|
1315
|
|
|
} |
|
1316
|
|
|
|
|
1317
|
|
|
func (x *Call) String() string { |
|
1318
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1319
|
|
|
} |
|
1320
|
|
|
|
|
1321
|
|
|
func (*Call) ProtoMessage() {} |
|
1322
|
|
|
|
|
1323
|
|
|
func (x *Call) ProtoReflect() protoreflect.Message { |
|
1324
|
|
|
mi := &file_base_v1_base_proto_msgTypes[13] |
|
1325
|
|
|
if x != nil { |
|
1326
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1327
|
|
|
if ms.LoadMessageInfo() == nil { |
|
1328
|
|
|
ms.StoreMessageInfo(mi) |
|
1329
|
|
|
} |
|
1330
|
|
|
return ms |
|
1331
|
|
|
} |
|
1332
|
|
|
return mi.MessageOf(x) |
|
1333
|
|
|
} |
|
1334
|
|
|
|
|
1335
|
|
|
// Deprecated: Use Call.ProtoReflect.Descriptor instead. |
|
1336
|
|
|
func (*Call) Descriptor() ([]byte, []int) { |
|
1337
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{13} |
|
1338
|
|
|
} |
|
1339
|
|
|
|
|
1340
|
|
|
func (x *Call) GetRuleName() string { |
|
1341
|
|
|
if x != nil { |
|
1342
|
|
|
return x.RuleName |
|
1343
|
|
|
} |
|
1344
|
|
|
return "" |
|
1345
|
|
|
} |
|
1346
|
|
|
|
|
1347
|
|
|
func (x *Call) GetArguments() []*Argument { |
|
1348
|
|
|
if x != nil { |
|
1349
|
|
|
return x.Arguments |
|
1350
|
|
|
} |
|
1351
|
|
|
return nil |
|
1352
|
|
|
} |
|
1353
|
|
|
|
|
1354
|
|
|
// ComputedAttribute defines a computed attribute which includes its name. |
|
1355
|
|
|
type ComputedAttribute struct { |
|
1356
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1357
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Name of the computed attribute |
|
1358
|
|
|
unknownFields protoimpl.UnknownFields |
|
1359
|
|
|
sizeCache protoimpl.SizeCache |
|
1360
|
|
|
} |
|
1361
|
|
|
|
|
1362
|
|
|
func (x *ComputedAttribute) Reset() { |
|
1363
|
|
|
*x = ComputedAttribute{} |
|
1364
|
|
|
mi := &file_base_v1_base_proto_msgTypes[14] |
|
1365
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1366
|
|
|
ms.StoreMessageInfo(mi) |
|
1367
|
|
|
} |
|
1368
|
|
|
|
|
1369
|
|
|
func (x *ComputedAttribute) String() string { |
|
1370
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1371
|
|
|
} |
|
1372
|
|
|
|
|
1373
|
|
|
func (*ComputedAttribute) ProtoMessage() {} |
|
1374
|
|
|
|
|
1375
|
|
|
func (x *ComputedAttribute) ProtoReflect() protoreflect.Message { |
|
1376
|
|
|
mi := &file_base_v1_base_proto_msgTypes[14] |
|
1377
|
|
|
if x != nil { |
|
1378
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1379
|
|
|
if ms.LoadMessageInfo() == nil { |
|
1380
|
|
|
ms.StoreMessageInfo(mi) |
|
1381
|
|
|
} |
|
1382
|
|
|
return ms |
|
1383
|
|
|
} |
|
1384
|
|
|
return mi.MessageOf(x) |
|
1385
|
|
|
} |
|
1386
|
|
|
|
|
1387
|
|
|
// Deprecated: Use ComputedAttribute.ProtoReflect.Descriptor instead. |
|
1388
|
|
|
func (*ComputedAttribute) Descriptor() ([]byte, []int) { |
|
1389
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{14} |
|
1390
|
|
|
} |
|
1391
|
|
|
|
|
1392
|
|
|
func (x *ComputedAttribute) GetName() string { |
|
1393
|
|
|
if x != nil { |
|
1394
|
|
|
return x.Name |
|
1395
|
|
|
} |
|
1396
|
|
|
return "" |
|
1397
|
|
|
} |
|
1398
|
|
|
|
|
1399
|
|
|
// ComputedUserSet defines a set of computed users which includes the relation name. |
|
1400
|
|
|
type ComputedUserSet struct { |
|
1401
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1402
|
|
|
Relation string `protobuf:"bytes,1,opt,name=relation,proto3" json:"relation,omitempty"` // Relation name |
|
1403
|
|
|
unknownFields protoimpl.UnknownFields |
|
1404
|
|
|
sizeCache protoimpl.SizeCache |
|
1405
|
|
|
} |
|
1406
|
|
|
|
|
1407
|
|
|
func (x *ComputedUserSet) Reset() { |
|
1408
|
|
|
*x = ComputedUserSet{} |
|
1409
|
|
|
mi := &file_base_v1_base_proto_msgTypes[15] |
|
1410
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1411
|
|
|
ms.StoreMessageInfo(mi) |
|
1412
|
|
|
} |
|
1413
|
|
|
|
|
1414
|
|
|
func (x *ComputedUserSet) String() string { |
|
1415
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1416
|
|
|
} |
|
1417
|
|
|
|
|
1418
|
|
|
func (*ComputedUserSet) ProtoMessage() {} |
|
1419
|
|
|
|
|
1420
|
|
|
func (x *ComputedUserSet) ProtoReflect() protoreflect.Message { |
|
1421
|
|
|
mi := &file_base_v1_base_proto_msgTypes[15] |
|
1422
|
|
|
if x != nil { |
|
1423
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1424
|
|
|
if ms.LoadMessageInfo() == nil { |
|
1425
|
|
|
ms.StoreMessageInfo(mi) |
|
1426
|
|
|
} |
|
1427
|
|
|
return ms |
|
1428
|
|
|
} |
|
1429
|
|
|
return mi.MessageOf(x) |
|
1430
|
|
|
} |
|
1431
|
|
|
|
|
1432
|
|
|
// Deprecated: Use ComputedUserSet.ProtoReflect.Descriptor instead. |
|
1433
|
|
|
func (*ComputedUserSet) Descriptor() ([]byte, []int) { |
|
1434
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{15} |
|
1435
|
|
|
} |
|
1436
|
|
|
|
|
1437
|
|
|
func (x *ComputedUserSet) GetRelation() string { |
|
1438
|
|
|
if x != nil { |
|
1439
|
|
|
return x.Relation |
|
1440
|
|
|
} |
|
1441
|
|
|
return "" |
|
1442
|
|
|
} |
|
1443
|
|
|
|
|
1444
|
|
|
// TupleToUserSet defines a mapping from tuple sets to computed user sets. |
|
1445
|
|
|
type TupleToUserSet struct { |
|
1446
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1447
|
|
|
TupleSet *TupleSet `protobuf:"bytes,1,opt,name=tupleSet,proto3" json:"tupleSet,omitempty"` // The tuple set |
|
1448
|
|
|
Computed *ComputedUserSet `protobuf:"bytes,2,opt,name=computed,proto3" json:"computed,omitempty"` // The computed user set |
|
1449
|
|
|
unknownFields protoimpl.UnknownFields |
|
1450
|
|
|
sizeCache protoimpl.SizeCache |
|
1451
|
|
|
} |
|
1452
|
|
|
|
|
1453
|
|
|
func (x *TupleToUserSet) Reset() { |
|
1454
|
|
|
*x = TupleToUserSet{} |
|
1455
|
|
|
mi := &file_base_v1_base_proto_msgTypes[16] |
|
1456
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1457
|
|
|
ms.StoreMessageInfo(mi) |
|
1458
|
|
|
} |
|
1459
|
|
|
|
|
1460
|
|
|
func (x *TupleToUserSet) String() string { |
|
1461
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1462
|
|
|
} |
|
1463
|
|
|
|
|
1464
|
|
|
func (*TupleToUserSet) ProtoMessage() {} |
|
1465
|
|
|
|
|
1466
|
|
|
func (x *TupleToUserSet) ProtoReflect() protoreflect.Message { |
|
1467
|
|
|
mi := &file_base_v1_base_proto_msgTypes[16] |
|
1468
|
|
|
if x != nil { |
|
1469
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1470
|
|
|
if ms.LoadMessageInfo() == nil { |
|
1471
|
|
|
ms.StoreMessageInfo(mi) |
|
1472
|
|
|
} |
|
1473
|
|
|
return ms |
|
1474
|
|
|
} |
|
1475
|
|
|
return mi.MessageOf(x) |
|
1476
|
|
|
} |
|
1477
|
|
|
|
|
1478
|
|
|
// Deprecated: Use TupleToUserSet.ProtoReflect.Descriptor instead. |
|
1479
|
|
|
func (*TupleToUserSet) Descriptor() ([]byte, []int) { |
|
1480
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{16} |
|
1481
|
|
|
} |
|
1482
|
|
|
|
|
1483
|
|
|
func (x *TupleToUserSet) GetTupleSet() *TupleSet { |
|
1484
|
|
|
if x != nil { |
|
1485
|
|
|
return x.TupleSet |
|
1486
|
|
|
} |
|
1487
|
|
|
return nil |
|
1488
|
|
|
} |
|
1489
|
|
|
|
|
1490
|
|
|
func (x *TupleToUserSet) GetComputed() *ComputedUserSet { |
|
1491
|
|
|
if x != nil { |
|
1492
|
|
|
return x.Computed |
|
1493
|
|
|
} |
|
1494
|
|
|
return nil |
|
1495
|
|
|
} |
|
1496
|
|
|
|
|
1497
|
|
|
// TupleSet represents a set of tuples associated with a specific relation. |
|
1498
|
|
|
type TupleSet struct { |
|
1499
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1500
|
|
|
Relation string `protobuf:"bytes,1,opt,name=relation,proto3" json:"relation,omitempty"` |
|
1501
|
|
|
unknownFields protoimpl.UnknownFields |
|
1502
|
|
|
sizeCache protoimpl.SizeCache |
|
1503
|
|
|
} |
|
1504
|
|
|
|
|
1505
|
|
|
func (x *TupleSet) Reset() { |
|
1506
|
|
|
*x = TupleSet{} |
|
1507
|
|
|
mi := &file_base_v1_base_proto_msgTypes[17] |
|
1508
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1509
|
|
|
ms.StoreMessageInfo(mi) |
|
1510
|
|
|
} |
|
1511
|
|
|
|
|
1512
|
|
|
func (x *TupleSet) String() string { |
|
1513
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1514
|
|
|
} |
|
1515
|
|
|
|
|
1516
|
|
|
func (*TupleSet) ProtoMessage() {} |
|
1517
|
|
|
|
|
1518
|
|
|
func (x *TupleSet) ProtoReflect() protoreflect.Message { |
|
1519
|
|
|
mi := &file_base_v1_base_proto_msgTypes[17] |
|
1520
|
|
|
if x != nil { |
|
1521
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1522
|
|
|
if ms.LoadMessageInfo() == nil { |
|
1523
|
|
|
ms.StoreMessageInfo(mi) |
|
1524
|
|
|
} |
|
1525
|
|
|
return ms |
|
1526
|
|
|
} |
|
1527
|
|
|
return mi.MessageOf(x) |
|
1528
|
|
|
} |
|
1529
|
|
|
|
|
1530
|
|
|
// Deprecated: Use TupleSet.ProtoReflect.Descriptor instead. |
|
1531
|
|
|
func (*TupleSet) Descriptor() ([]byte, []int) { |
|
1532
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{17} |
|
1533
|
|
|
} |
|
1534
|
|
|
|
|
1535
|
|
|
func (x *TupleSet) GetRelation() string { |
|
1536
|
|
|
if x != nil { |
|
1537
|
|
|
return x.Relation |
|
1538
|
|
|
} |
|
1539
|
|
|
return "" |
|
1540
|
|
|
} |
|
1541
|
|
|
|
|
1542
|
|
|
// Tuple is a structure that includes an entity, a relation, and a subject. |
|
1543
|
|
|
type Tuple struct { |
|
1544
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1545
|
|
|
Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` |
|
1546
|
|
|
Relation string `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"` |
|
1547
|
|
|
Subject *Subject `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"` |
|
1548
|
|
|
unknownFields protoimpl.UnknownFields |
|
1549
|
|
|
sizeCache protoimpl.SizeCache |
|
1550
|
|
|
} |
|
1551
|
|
|
|
|
1552
|
|
|
func (x *Tuple) Reset() { |
|
1553
|
|
|
*x = Tuple{} |
|
1554
|
|
|
mi := &file_base_v1_base_proto_msgTypes[18] |
|
1555
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1556
|
|
|
ms.StoreMessageInfo(mi) |
|
1557
|
|
|
} |
|
1558
|
|
|
|
|
1559
|
|
|
func (x *Tuple) String() string { |
|
1560
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1561
|
|
|
} |
|
1562
|
|
|
|
|
1563
|
|
|
func (*Tuple) ProtoMessage() {} |
|
1564
|
|
|
|
|
1565
|
|
|
func (x *Tuple) ProtoReflect() protoreflect.Message { |
|
1566
|
|
|
mi := &file_base_v1_base_proto_msgTypes[18] |
|
1567
|
|
|
if x != nil { |
|
1568
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1569
|
|
|
if ms.LoadMessageInfo() == nil { |
|
1570
|
|
|
ms.StoreMessageInfo(mi) |
|
1571
|
|
|
} |
|
1572
|
|
|
return ms |
|
1573
|
|
|
} |
|
1574
|
|
|
return mi.MessageOf(x) |
|
1575
|
|
|
} |
|
1576
|
|
|
|
|
1577
|
|
|
// Deprecated: Use Tuple.ProtoReflect.Descriptor instead. |
|
1578
|
|
|
func (*Tuple) Descriptor() ([]byte, []int) { |
|
1579
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{18} |
|
1580
|
|
|
} |
|
1581
|
|
|
|
|
1582
|
|
|
func (x *Tuple) GetEntity() *Entity { |
|
1583
|
|
|
if x != nil { |
|
1584
|
|
|
return x.Entity |
|
1585
|
|
|
} |
|
1586
|
|
|
return nil |
|
1587
|
|
|
} |
|
1588
|
|
|
|
|
1589
|
|
|
func (x *Tuple) GetRelation() string { |
|
1590
|
|
|
if x != nil { |
|
1591
|
|
|
return x.Relation |
|
1592
|
|
|
} |
|
1593
|
|
|
return "" |
|
1594
|
|
|
} |
|
1595
|
|
|
|
|
1596
|
|
|
func (x *Tuple) GetSubject() *Subject { |
|
1597
|
|
|
if x != nil { |
|
1598
|
|
|
return x.Subject |
|
1599
|
|
|
} |
|
1600
|
|
|
return nil |
|
1601
|
|
|
} |
|
1602
|
|
|
|
|
1603
|
|
|
// Attribute represents an attribute of an entity with a specific type and value. |
|
1604
|
|
|
type Attribute struct { |
|
1605
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1606
|
|
|
Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` |
|
1607
|
|
|
Attribute string `protobuf:"bytes,2,opt,name=attribute,proto3" json:"attribute,omitempty"` // Name of the attribute |
|
1608
|
|
|
Value *anypb.Any `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` |
|
1609
|
|
|
unknownFields protoimpl.UnknownFields |
|
1610
|
|
|
sizeCache protoimpl.SizeCache |
|
1611
|
|
|
} |
|
1612
|
|
|
|
|
1613
|
|
|
func (x *Attribute) Reset() { |
|
1614
|
|
|
*x = Attribute{} |
|
1615
|
|
|
mi := &file_base_v1_base_proto_msgTypes[19] |
|
1616
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1617
|
|
|
ms.StoreMessageInfo(mi) |
|
1618
|
|
|
} |
|
1619
|
|
|
|
|
1620
|
|
|
func (x *Attribute) String() string { |
|
1621
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1622
|
|
|
} |
|
1623
|
|
|
|
|
1624
|
|
|
func (*Attribute) ProtoMessage() {} |
|
1625
|
|
|
|
|
1626
|
|
|
func (x *Attribute) ProtoReflect() protoreflect.Message { |
|
1627
|
|
|
mi := &file_base_v1_base_proto_msgTypes[19] |
|
1628
|
|
|
if x != nil { |
|
1629
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1630
|
|
|
if ms.LoadMessageInfo() == nil { |
|
1631
|
|
|
ms.StoreMessageInfo(mi) |
|
1632
|
|
|
} |
|
1633
|
|
|
return ms |
|
1634
|
|
|
} |
|
1635
|
|
|
return mi.MessageOf(x) |
|
1636
|
|
|
} |
|
1637
|
|
|
|
|
1638
|
|
|
// Deprecated: Use Attribute.ProtoReflect.Descriptor instead. |
|
1639
|
|
|
func (*Attribute) Descriptor() ([]byte, []int) { |
|
1640
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{19} |
|
1641
|
|
|
} |
|
1642
|
|
|
|
|
1643
|
|
|
func (x *Attribute) GetEntity() *Entity { |
|
1644
|
|
|
if x != nil { |
|
1645
|
|
|
return x.Entity |
|
1646
|
|
|
} |
|
1647
|
|
|
return nil |
|
1648
|
|
|
} |
|
1649
|
|
|
|
|
1650
|
|
|
func (x *Attribute) GetAttribute() string { |
|
1651
|
|
|
if x != nil { |
|
1652
|
|
|
return x.Attribute |
|
1653
|
|
|
} |
|
1654
|
|
|
return "" |
|
1655
|
|
|
} |
|
1656
|
|
|
|
|
1657
|
|
|
func (x *Attribute) GetValue() *anypb.Any { |
|
1658
|
|
|
if x != nil { |
|
1659
|
|
|
return x.Value |
|
1660
|
|
|
} |
|
1661
|
|
|
return nil |
|
1662
|
|
|
} |
|
1663
|
|
|
|
|
1664
|
|
|
// Tuples is a collection of tuples. |
|
1665
|
|
|
type Tuples struct { |
|
1666
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1667
|
|
|
Tuples []*Tuple `protobuf:"bytes,1,rep,name=tuples,proto3" json:"tuples,omitempty"` |
|
1668
|
|
|
unknownFields protoimpl.UnknownFields |
|
1669
|
|
|
sizeCache protoimpl.SizeCache |
|
1670
|
|
|
} |
|
1671
|
|
|
|
|
1672
|
|
|
func (x *Tuples) Reset() { |
|
1673
|
|
|
*x = Tuples{} |
|
1674
|
|
|
mi := &file_base_v1_base_proto_msgTypes[20] |
|
1675
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1676
|
|
|
ms.StoreMessageInfo(mi) |
|
1677
|
|
|
} |
|
1678
|
|
|
|
|
1679
|
|
|
func (x *Tuples) String() string { |
|
1680
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1681
|
|
|
} |
|
1682
|
|
|
|
|
1683
|
|
|
func (*Tuples) ProtoMessage() {} |
|
1684
|
|
|
|
|
1685
|
|
|
func (x *Tuples) ProtoReflect() protoreflect.Message { |
|
1686
|
|
|
mi := &file_base_v1_base_proto_msgTypes[20] |
|
1687
|
|
|
if x != nil { |
|
1688
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1689
|
|
|
if ms.LoadMessageInfo() == nil { |
|
1690
|
|
|
ms.StoreMessageInfo(mi) |
|
1691
|
|
|
} |
|
1692
|
|
|
return ms |
|
1693
|
|
|
} |
|
1694
|
|
|
return mi.MessageOf(x) |
|
1695
|
|
|
} |
|
1696
|
|
|
|
|
1697
|
|
|
// Deprecated: Use Tuples.ProtoReflect.Descriptor instead. |
|
1698
|
|
|
func (*Tuples) Descriptor() ([]byte, []int) { |
|
1699
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{20} |
|
1700
|
|
|
} |
|
1701
|
|
|
|
|
1702
|
|
|
func (x *Tuples) GetTuples() []*Tuple { |
|
1703
|
|
|
if x != nil { |
|
1704
|
|
|
return x.Tuples |
|
1705
|
|
|
} |
|
1706
|
|
|
return nil |
|
1707
|
|
|
} |
|
1708
|
|
|
|
|
1709
|
|
|
// Attributes is a collection of attributes. |
|
1710
|
|
|
type Attributes struct { |
|
1711
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1712
|
|
|
Attributes []*Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` |
|
1713
|
|
|
unknownFields protoimpl.UnknownFields |
|
1714
|
|
|
sizeCache protoimpl.SizeCache |
|
1715
|
|
|
} |
|
1716
|
|
|
|
|
1717
|
|
|
func (x *Attributes) Reset() { |
|
1718
|
|
|
*x = Attributes{} |
|
1719
|
|
|
mi := &file_base_v1_base_proto_msgTypes[21] |
|
1720
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1721
|
|
|
ms.StoreMessageInfo(mi) |
|
1722
|
|
|
} |
|
1723
|
|
|
|
|
1724
|
|
|
func (x *Attributes) String() string { |
|
1725
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1726
|
|
|
} |
|
1727
|
|
|
|
|
1728
|
|
|
func (*Attributes) ProtoMessage() {} |
|
1729
|
|
|
|
|
1730
|
|
|
func (x *Attributes) ProtoReflect() protoreflect.Message { |
|
1731
|
|
|
mi := &file_base_v1_base_proto_msgTypes[21] |
|
1732
|
|
|
if x != nil { |
|
1733
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1734
|
|
|
if ms.LoadMessageInfo() == nil { |
|
1735
|
|
|
ms.StoreMessageInfo(mi) |
|
1736
|
|
|
} |
|
1737
|
|
|
return ms |
|
1738
|
|
|
} |
|
1739
|
|
|
return mi.MessageOf(x) |
|
1740
|
|
|
} |
|
1741
|
|
|
|
|
1742
|
|
|
// Deprecated: Use Attributes.ProtoReflect.Descriptor instead. |
|
1743
|
|
|
func (*Attributes) Descriptor() ([]byte, []int) { |
|
1744
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{21} |
|
1745
|
|
|
} |
|
1746
|
|
|
|
|
1747
|
|
|
func (x *Attributes) GetAttributes() []*Attribute { |
|
1748
|
|
|
if x != nil { |
|
1749
|
|
|
return x.Attributes |
|
1750
|
|
|
} |
|
1751
|
|
|
return nil |
|
1752
|
|
|
} |
|
1753
|
|
|
|
|
1754
|
|
|
// Entity represents an entity with a type and an identifier. |
|
1755
|
|
|
type Entity struct { |
|
1756
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1757
|
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` |
|
1758
|
|
|
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` |
|
1759
|
|
|
unknownFields protoimpl.UnknownFields |
|
1760
|
|
|
sizeCache protoimpl.SizeCache |
|
1761
|
|
|
} |
|
1762
|
|
|
|
|
1763
|
|
|
func (x *Entity) Reset() { |
|
1764
|
|
|
*x = Entity{} |
|
1765
|
|
|
mi := &file_base_v1_base_proto_msgTypes[22] |
|
1766
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1767
|
|
|
ms.StoreMessageInfo(mi) |
|
1768
|
|
|
} |
|
1769
|
|
|
|
|
1770
|
|
|
func (x *Entity) String() string { |
|
1771
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1772
|
|
|
} |
|
1773
|
|
|
|
|
1774
|
|
|
func (*Entity) ProtoMessage() {} |
|
1775
|
|
|
|
|
1776
|
|
|
func (x *Entity) ProtoReflect() protoreflect.Message { |
|
1777
|
|
|
mi := &file_base_v1_base_proto_msgTypes[22] |
|
1778
|
|
|
if x != nil { |
|
1779
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1780
|
|
|
if ms.LoadMessageInfo() == nil { |
|
1781
|
|
|
ms.StoreMessageInfo(mi) |
|
1782
|
|
|
} |
|
1783
|
|
|
return ms |
|
1784
|
|
|
} |
|
1785
|
|
|
return mi.MessageOf(x) |
|
1786
|
|
|
} |
|
1787
|
|
|
|
|
1788
|
|
|
// Deprecated: Use Entity.ProtoReflect.Descriptor instead. |
|
1789
|
|
|
func (*Entity) Descriptor() ([]byte, []int) { |
|
1790
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{22} |
|
1791
|
|
|
} |
|
1792
|
|
|
|
|
1793
|
|
|
func (x *Entity) GetType() string { |
|
1794
|
|
|
if x != nil { |
|
1795
|
|
|
return x.Type |
|
1796
|
|
|
} |
|
1797
|
|
|
return "" |
|
1798
|
|
|
} |
|
1799
|
|
|
|
|
1800
|
|
|
func (x *Entity) GetId() string { |
|
1801
|
|
|
if x != nil { |
|
1802
|
|
|
return x.Id |
|
1803
|
|
|
} |
|
1804
|
|
|
return "" |
|
1805
|
|
|
} |
|
1806
|
|
|
|
|
1807
|
|
|
// EntityAndRelation represents an entity along with a relation. |
|
1808
|
|
|
type EntityAndRelation struct { |
|
1809
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1810
|
|
|
Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` |
|
1811
|
|
|
Relation string `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"` |
|
1812
|
|
|
unknownFields protoimpl.UnknownFields |
|
1813
|
|
|
sizeCache protoimpl.SizeCache |
|
1814
|
|
|
} |
|
1815
|
|
|
|
|
1816
|
|
|
func (x *EntityAndRelation) Reset() { |
|
1817
|
|
|
*x = EntityAndRelation{} |
|
1818
|
|
|
mi := &file_base_v1_base_proto_msgTypes[23] |
|
1819
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1820
|
|
|
ms.StoreMessageInfo(mi) |
|
1821
|
|
|
} |
|
1822
|
|
|
|
|
1823
|
|
|
func (x *EntityAndRelation) String() string { |
|
1824
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1825
|
|
|
} |
|
1826
|
|
|
|
|
1827
|
|
|
func (*EntityAndRelation) ProtoMessage() {} |
|
1828
|
|
|
|
|
1829
|
|
|
func (x *EntityAndRelation) ProtoReflect() protoreflect.Message { |
|
1830
|
|
|
mi := &file_base_v1_base_proto_msgTypes[23] |
|
1831
|
|
|
if x != nil { |
|
1832
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1833
|
|
|
if ms.LoadMessageInfo() == nil { |
|
1834
|
|
|
ms.StoreMessageInfo(mi) |
|
1835
|
|
|
} |
|
1836
|
|
|
return ms |
|
1837
|
|
|
} |
|
1838
|
|
|
return mi.MessageOf(x) |
|
1839
|
|
|
} |
|
1840
|
|
|
|
|
1841
|
|
|
// Deprecated: Use EntityAndRelation.ProtoReflect.Descriptor instead. |
|
1842
|
|
|
func (*EntityAndRelation) Descriptor() ([]byte, []int) { |
|
1843
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{23} |
|
1844
|
|
|
} |
|
1845
|
|
|
|
|
1846
|
|
|
func (x *EntityAndRelation) GetEntity() *Entity { |
|
1847
|
|
|
if x != nil { |
|
1848
|
|
|
return x.Entity |
|
1849
|
|
|
} |
|
1850
|
|
|
return nil |
|
1851
|
|
|
} |
|
1852
|
|
|
|
|
1853
|
|
|
func (x *EntityAndRelation) GetRelation() string { |
|
1854
|
|
|
if x != nil { |
|
1855
|
|
|
return x.Relation |
|
1856
|
|
|
} |
|
1857
|
|
|
return "" |
|
1858
|
|
|
} |
|
1859
|
|
|
|
|
1860
|
|
|
// Subject represents an entity subject with a type, an identifier, and a relation. |
|
1861
|
|
|
type Subject struct { |
|
1862
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1863
|
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` |
|
1864
|
|
|
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` |
|
1865
|
|
|
Relation string `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"` |
|
1866
|
|
|
unknownFields protoimpl.UnknownFields |
|
1867
|
|
|
sizeCache protoimpl.SizeCache |
|
1868
|
|
|
} |
|
1869
|
|
|
|
|
1870
|
|
|
func (x *Subject) Reset() { |
|
1871
|
|
|
*x = Subject{} |
|
1872
|
|
|
mi := &file_base_v1_base_proto_msgTypes[24] |
|
1873
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1874
|
|
|
ms.StoreMessageInfo(mi) |
|
1875
|
|
|
} |
|
1876
|
|
|
|
|
1877
|
|
|
func (x *Subject) String() string { |
|
1878
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1879
|
|
|
} |
|
1880
|
|
|
|
|
1881
|
|
|
func (*Subject) ProtoMessage() {} |
|
1882
|
|
|
|
|
1883
|
|
|
func (x *Subject) ProtoReflect() protoreflect.Message { |
|
1884
|
|
|
mi := &file_base_v1_base_proto_msgTypes[24] |
|
1885
|
|
|
if x != nil { |
|
1886
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1887
|
|
|
if ms.LoadMessageInfo() == nil { |
|
1888
|
|
|
ms.StoreMessageInfo(mi) |
|
1889
|
|
|
} |
|
1890
|
|
|
return ms |
|
1891
|
|
|
} |
|
1892
|
|
|
return mi.MessageOf(x) |
|
1893
|
|
|
} |
|
1894
|
|
|
|
|
1895
|
|
|
// Deprecated: Use Subject.ProtoReflect.Descriptor instead. |
|
1896
|
|
|
func (*Subject) Descriptor() ([]byte, []int) { |
|
1897
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{24} |
|
1898
|
|
|
} |
|
1899
|
|
|
|
|
1900
|
|
|
func (x *Subject) GetType() string { |
|
1901
|
|
|
if x != nil { |
|
1902
|
|
|
return x.Type |
|
1903
|
|
|
} |
|
1904
|
|
|
return "" |
|
1905
|
|
|
} |
|
1906
|
|
|
|
|
1907
|
|
|
func (x *Subject) GetId() string { |
|
1908
|
|
|
if x != nil { |
|
1909
|
|
|
return x.Id |
|
1910
|
|
|
} |
|
1911
|
|
|
return "" |
|
1912
|
|
|
} |
|
1913
|
|
|
|
|
1914
|
|
|
func (x *Subject) GetRelation() string { |
|
1915
|
|
|
if x != nil { |
|
1916
|
|
|
return x.Relation |
|
1917
|
|
|
} |
|
1918
|
|
|
return "" |
|
1919
|
|
|
} |
|
1920
|
|
|
|
|
1921
|
|
|
// AttributeFilter is used to filter attributes based on the entity and attribute names. |
|
1922
|
|
|
type AttributeFilter struct { |
|
1923
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1924
|
|
|
Entity *EntityFilter `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` |
|
1925
|
|
|
Attributes []string `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty"` // Names of the attributes to be filtered |
|
1926
|
|
|
unknownFields protoimpl.UnknownFields |
|
1927
|
|
|
sizeCache protoimpl.SizeCache |
|
1928
|
|
|
} |
|
1929
|
|
|
|
|
1930
|
|
|
func (x *AttributeFilter) Reset() { |
|
1931
|
|
|
*x = AttributeFilter{} |
|
1932
|
|
|
mi := &file_base_v1_base_proto_msgTypes[25] |
|
1933
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1934
|
|
|
ms.StoreMessageInfo(mi) |
|
1935
|
|
|
} |
|
1936
|
|
|
|
|
1937
|
|
|
func (x *AttributeFilter) String() string { |
|
1938
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1939
|
|
|
} |
|
1940
|
|
|
|
|
1941
|
|
|
func (*AttributeFilter) ProtoMessage() {} |
|
1942
|
|
|
|
|
1943
|
|
|
func (x *AttributeFilter) ProtoReflect() protoreflect.Message { |
|
1944
|
|
|
mi := &file_base_v1_base_proto_msgTypes[25] |
|
1945
|
|
|
if x != nil { |
|
1946
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1947
|
|
|
if ms.LoadMessageInfo() == nil { |
|
1948
|
|
|
ms.StoreMessageInfo(mi) |
|
1949
|
|
|
} |
|
1950
|
|
|
return ms |
|
1951
|
|
|
} |
|
1952
|
|
|
return mi.MessageOf(x) |
|
1953
|
|
|
} |
|
1954
|
|
|
|
|
1955
|
|
|
// Deprecated: Use AttributeFilter.ProtoReflect.Descriptor instead. |
|
1956
|
|
|
func (*AttributeFilter) Descriptor() ([]byte, []int) { |
|
1957
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{25} |
|
1958
|
|
|
} |
|
1959
|
|
|
|
|
1960
|
|
|
func (x *AttributeFilter) GetEntity() *EntityFilter { |
|
1961
|
|
|
if x != nil { |
|
1962
|
|
|
return x.Entity |
|
1963
|
|
|
} |
|
1964
|
|
|
return nil |
|
1965
|
|
|
} |
|
1966
|
|
|
|
|
1967
|
|
|
func (x *AttributeFilter) GetAttributes() []string { |
|
1968
|
|
|
if x != nil { |
|
1969
|
|
|
return x.Attributes |
|
1970
|
|
|
} |
|
1971
|
|
|
return nil |
|
1972
|
|
|
} |
|
1973
|
|
|
|
|
1974
|
|
|
// TupleFilter is used to filter tuples based on the entity, relation and the subject. |
|
1975
|
|
|
type TupleFilter struct { |
|
1976
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
1977
|
|
|
Entity *EntityFilter `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` |
|
1978
|
|
|
Relation string `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"` |
|
1979
|
|
|
Subject *SubjectFilter `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"` // The subject filter |
|
1980
|
|
|
unknownFields protoimpl.UnknownFields |
|
1981
|
|
|
sizeCache protoimpl.SizeCache |
|
1982
|
|
|
} |
|
1983
|
|
|
|
|
1984
|
|
|
func (x *TupleFilter) Reset() { |
|
1985
|
|
|
*x = TupleFilter{} |
|
1986
|
|
|
mi := &file_base_v1_base_proto_msgTypes[26] |
|
1987
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
1988
|
|
|
ms.StoreMessageInfo(mi) |
|
1989
|
|
|
} |
|
1990
|
|
|
|
|
1991
|
|
|
func (x *TupleFilter) String() string { |
|
1992
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
1993
|
|
|
} |
|
1994
|
|
|
|
|
1995
|
|
|
func (*TupleFilter) ProtoMessage() {} |
|
1996
|
|
|
|
|
1997
|
|
|
func (x *TupleFilter) ProtoReflect() protoreflect.Message { |
|
1998
|
|
|
mi := &file_base_v1_base_proto_msgTypes[26] |
|
1999
|
|
|
if x != nil { |
|
2000
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2001
|
|
|
if ms.LoadMessageInfo() == nil { |
|
2002
|
|
|
ms.StoreMessageInfo(mi) |
|
2003
|
|
|
} |
|
2004
|
|
|
return ms |
|
2005
|
|
|
} |
|
2006
|
|
|
return mi.MessageOf(x) |
|
2007
|
|
|
} |
|
2008
|
|
|
|
|
2009
|
|
|
// Deprecated: Use TupleFilter.ProtoReflect.Descriptor instead. |
|
2010
|
|
|
func (*TupleFilter) Descriptor() ([]byte, []int) { |
|
2011
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{26} |
|
2012
|
|
|
} |
|
2013
|
|
|
|
|
2014
|
|
|
func (x *TupleFilter) GetEntity() *EntityFilter { |
|
2015
|
|
|
if x != nil { |
|
2016
|
|
|
return x.Entity |
|
2017
|
|
|
} |
|
2018
|
|
|
return nil |
|
2019
|
|
|
} |
|
2020
|
|
|
|
|
2021
|
|
|
func (x *TupleFilter) GetRelation() string { |
|
2022
|
|
|
if x != nil { |
|
2023
|
|
|
return x.Relation |
|
2024
|
|
|
} |
|
2025
|
|
|
return "" |
|
2026
|
|
|
} |
|
2027
|
|
|
|
|
2028
|
|
|
func (x *TupleFilter) GetSubject() *SubjectFilter { |
|
2029
|
|
|
if x != nil { |
|
2030
|
|
|
return x.Subject |
|
2031
|
|
|
} |
|
2032
|
|
|
return nil |
|
2033
|
|
|
} |
|
2034
|
|
|
|
|
2035
|
|
|
// EntityFilter is used to filter entities based on the type and ids. |
|
2036
|
|
|
type EntityFilter struct { |
|
2037
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
2038
|
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Type of the entity |
|
2039
|
|
|
Ids []string `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"` // List of entity IDs |
|
2040
|
|
|
unknownFields protoimpl.UnknownFields |
|
2041
|
|
|
sizeCache protoimpl.SizeCache |
|
2042
|
|
|
} |
|
2043
|
|
|
|
|
2044
|
|
|
func (x *EntityFilter) Reset() { |
|
2045
|
|
|
*x = EntityFilter{} |
|
2046
|
|
|
mi := &file_base_v1_base_proto_msgTypes[27] |
|
2047
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2048
|
|
|
ms.StoreMessageInfo(mi) |
|
2049
|
|
|
} |
|
2050
|
|
|
|
|
2051
|
|
|
func (x *EntityFilter) String() string { |
|
2052
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
2053
|
|
|
} |
|
2054
|
|
|
|
|
2055
|
|
|
func (*EntityFilter) ProtoMessage() {} |
|
2056
|
|
|
|
|
2057
|
|
|
func (x *EntityFilter) ProtoReflect() protoreflect.Message { |
|
2058
|
|
|
mi := &file_base_v1_base_proto_msgTypes[27] |
|
2059
|
|
|
if x != nil { |
|
2060
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2061
|
|
|
if ms.LoadMessageInfo() == nil { |
|
2062
|
|
|
ms.StoreMessageInfo(mi) |
|
2063
|
|
|
} |
|
2064
|
|
|
return ms |
|
2065
|
|
|
} |
|
2066
|
|
|
return mi.MessageOf(x) |
|
2067
|
|
|
} |
|
2068
|
|
|
|
|
2069
|
|
|
// Deprecated: Use EntityFilter.ProtoReflect.Descriptor instead. |
|
2070
|
|
|
func (*EntityFilter) Descriptor() ([]byte, []int) { |
|
2071
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{27} |
|
2072
|
|
|
} |
|
2073
|
|
|
|
|
2074
|
|
|
func (x *EntityFilter) GetType() string { |
|
2075
|
|
|
if x != nil { |
|
2076
|
|
|
return x.Type |
|
2077
|
|
|
} |
|
2078
|
|
|
return "" |
|
2079
|
|
|
} |
|
2080
|
|
|
|
|
2081
|
|
|
func (x *EntityFilter) GetIds() []string { |
|
2082
|
|
|
if x != nil { |
|
2083
|
|
|
return x.Ids |
|
2084
|
|
|
} |
|
2085
|
|
|
return nil |
|
2086
|
|
|
} |
|
2087
|
|
|
|
|
2088
|
|
|
// SubjectFilter is used to filter subjects based on the type, ids and relation. |
|
2089
|
|
|
type SubjectFilter struct { |
|
2090
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
2091
|
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Type of the subject |
|
2092
|
|
|
Ids []string `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"` // List of subject IDs |
|
2093
|
|
|
Relation string `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"` |
|
2094
|
|
|
unknownFields protoimpl.UnknownFields |
|
2095
|
|
|
sizeCache protoimpl.SizeCache |
|
2096
|
|
|
} |
|
2097
|
|
|
|
|
2098
|
|
|
func (x *SubjectFilter) Reset() { |
|
2099
|
|
|
*x = SubjectFilter{} |
|
2100
|
|
|
mi := &file_base_v1_base_proto_msgTypes[28] |
|
2101
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2102
|
|
|
ms.StoreMessageInfo(mi) |
|
2103
|
|
|
} |
|
2104
|
|
|
|
|
2105
|
|
|
func (x *SubjectFilter) String() string { |
|
2106
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
2107
|
|
|
} |
|
2108
|
|
|
|
|
2109
|
|
|
func (*SubjectFilter) ProtoMessage() {} |
|
2110
|
|
|
|
|
2111
|
|
|
func (x *SubjectFilter) ProtoReflect() protoreflect.Message { |
|
2112
|
|
|
mi := &file_base_v1_base_proto_msgTypes[28] |
|
2113
|
|
|
if x != nil { |
|
2114
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2115
|
|
|
if ms.LoadMessageInfo() == nil { |
|
2116
|
|
|
ms.StoreMessageInfo(mi) |
|
2117
|
|
|
} |
|
2118
|
|
|
return ms |
|
2119
|
|
|
} |
|
2120
|
|
|
return mi.MessageOf(x) |
|
2121
|
|
|
} |
|
2122
|
|
|
|
|
2123
|
|
|
// Deprecated: Use SubjectFilter.ProtoReflect.Descriptor instead. |
|
2124
|
|
|
func (*SubjectFilter) Descriptor() ([]byte, []int) { |
|
2125
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{28} |
|
2126
|
|
|
} |
|
2127
|
|
|
|
|
2128
|
|
|
func (x *SubjectFilter) GetType() string { |
|
2129
|
|
|
if x != nil { |
|
2130
|
|
|
return x.Type |
|
2131
|
|
|
} |
|
2132
|
|
|
return "" |
|
2133
|
|
|
} |
|
2134
|
|
|
|
|
2135
|
|
|
func (x *SubjectFilter) GetIds() []string { |
|
2136
|
|
|
if x != nil { |
|
2137
|
|
|
return x.Ids |
|
2138
|
|
|
} |
|
2139
|
|
|
return nil |
|
2140
|
|
|
} |
|
2141
|
|
|
|
|
2142
|
|
|
func (x *SubjectFilter) GetRelation() string { |
|
2143
|
|
|
if x != nil { |
|
2144
|
|
|
return x.Relation |
|
2145
|
|
|
} |
|
2146
|
|
|
return "" |
|
2147
|
|
|
} |
|
2148
|
|
|
|
|
2149
|
|
|
// ExpandTreeNode represents a node in an expansion tree with a specific operation and its children. |
|
2150
|
|
|
type ExpandTreeNode struct { |
|
2151
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
2152
|
|
|
Operation ExpandTreeNode_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=base.v1.ExpandTreeNode_Operation" json:"operation,omitempty"` // Operation to be applied on this tree node |
|
2153
|
|
|
Children []*Expand `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"` // The children of this tree node |
|
2154
|
|
|
unknownFields protoimpl.UnknownFields |
|
2155
|
|
|
sizeCache protoimpl.SizeCache |
|
2156
|
|
|
} |
|
2157
|
|
|
|
|
2158
|
|
|
func (x *ExpandTreeNode) Reset() { |
|
2159
|
|
|
*x = ExpandTreeNode{} |
|
2160
|
|
|
mi := &file_base_v1_base_proto_msgTypes[29] |
|
2161
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2162
|
|
|
ms.StoreMessageInfo(mi) |
|
2163
|
|
|
} |
|
2164
|
|
|
|
|
2165
|
|
|
func (x *ExpandTreeNode) String() string { |
|
2166
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
2167
|
|
|
} |
|
2168
|
|
|
|
|
2169
|
|
|
func (*ExpandTreeNode) ProtoMessage() {} |
|
2170
|
|
|
|
|
2171
|
|
|
func (x *ExpandTreeNode) ProtoReflect() protoreflect.Message { |
|
2172
|
|
|
mi := &file_base_v1_base_proto_msgTypes[29] |
|
2173
|
|
|
if x != nil { |
|
2174
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2175
|
|
|
if ms.LoadMessageInfo() == nil { |
|
2176
|
|
|
ms.StoreMessageInfo(mi) |
|
2177
|
|
|
} |
|
2178
|
|
|
return ms |
|
2179
|
|
|
} |
|
2180
|
|
|
return mi.MessageOf(x) |
|
2181
|
|
|
} |
|
2182
|
|
|
|
|
2183
|
|
|
// Deprecated: Use ExpandTreeNode.ProtoReflect.Descriptor instead. |
|
2184
|
|
|
func (*ExpandTreeNode) Descriptor() ([]byte, []int) { |
|
2185
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{29} |
|
2186
|
|
|
} |
|
2187
|
|
|
|
|
2188
|
|
|
func (x *ExpandTreeNode) GetOperation() ExpandTreeNode_Operation { |
|
2189
|
|
|
if x != nil { |
|
2190
|
|
|
return x.Operation |
|
2191
|
|
|
} |
|
2192
|
|
|
return ExpandTreeNode_OPERATION_UNSPECIFIED |
|
2193
|
|
|
} |
|
2194
|
|
|
|
|
2195
|
|
|
func (x *ExpandTreeNode) GetChildren() []*Expand { |
|
2196
|
|
|
if x != nil { |
|
2197
|
|
|
return x.Children |
|
2198
|
|
|
} |
|
2199
|
|
|
return nil |
|
2200
|
|
|
} |
|
2201
|
|
|
|
|
2202
|
|
|
// Expand is used to define a hierarchical structure for permissions. |
|
2203
|
|
|
// It has an entity, permission, and arguments. The node can be either another hierarchical structure or a set of subjects. |
|
2204
|
|
|
type Expand struct { |
|
2205
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
2206
|
|
|
// entity is the entity for which the hierarchical structure is defined. |
|
2207
|
|
|
Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` |
|
2208
|
|
|
// permission is the permission applied to the entity. |
|
2209
|
|
|
Permission string `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"` |
|
2210
|
|
|
// arguments are the additional information or context used to evaluate permissions. |
|
2211
|
|
|
Arguments []*Argument `protobuf:"bytes,3,rep,name=arguments,proto3" json:"arguments,omitempty"` |
|
2212
|
|
|
// The node can either be an ExpandTreeNode or a set of Subjects. |
|
2213
|
|
|
// |
|
2214
|
|
|
// Types that are valid to be assigned to Node: |
|
2215
|
|
|
// |
|
2216
|
|
|
// *Expand_Expand |
|
2217
|
|
|
// *Expand_Leaf |
|
2218
|
|
|
Node isExpand_Node `protobuf_oneof:"node"` |
|
2219
|
|
|
unknownFields protoimpl.UnknownFields |
|
2220
|
|
|
sizeCache protoimpl.SizeCache |
|
2221
|
|
|
} |
|
2222
|
|
|
|
|
2223
|
|
|
func (x *Expand) Reset() { |
|
2224
|
|
|
*x = Expand{} |
|
2225
|
|
|
mi := &file_base_v1_base_proto_msgTypes[30] |
|
2226
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2227
|
|
|
ms.StoreMessageInfo(mi) |
|
2228
|
|
|
} |
|
2229
|
|
|
|
|
2230
|
|
|
func (x *Expand) String() string { |
|
2231
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
2232
|
|
|
} |
|
2233
|
|
|
|
|
2234
|
|
|
func (*Expand) ProtoMessage() {} |
|
2235
|
|
|
|
|
2236
|
|
|
func (x *Expand) ProtoReflect() protoreflect.Message { |
|
2237
|
|
|
mi := &file_base_v1_base_proto_msgTypes[30] |
|
2238
|
|
|
if x != nil { |
|
2239
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2240
|
|
|
if ms.LoadMessageInfo() == nil { |
|
2241
|
|
|
ms.StoreMessageInfo(mi) |
|
2242
|
|
|
} |
|
2243
|
|
|
return ms |
|
2244
|
|
|
} |
|
2245
|
|
|
return mi.MessageOf(x) |
|
2246
|
|
|
} |
|
2247
|
|
|
|
|
2248
|
|
|
// Deprecated: Use Expand.ProtoReflect.Descriptor instead. |
|
2249
|
|
|
func (*Expand) Descriptor() ([]byte, []int) { |
|
2250
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{30} |
|
2251
|
|
|
} |
|
2252
|
|
|
|
|
2253
|
|
|
func (x *Expand) GetEntity() *Entity { |
|
2254
|
|
|
if x != nil { |
|
2255
|
|
|
return x.Entity |
|
2256
|
|
|
} |
|
2257
|
|
|
return nil |
|
2258
|
|
|
} |
|
2259
|
|
|
|
|
2260
|
|
|
func (x *Expand) GetPermission() string { |
|
2261
|
|
|
if x != nil { |
|
2262
|
|
|
return x.Permission |
|
2263
|
|
|
} |
|
2264
|
|
|
return "" |
|
2265
|
|
|
} |
|
2266
|
|
|
|
|
2267
|
|
|
func (x *Expand) GetArguments() []*Argument { |
|
2268
|
|
|
if x != nil { |
|
2269
|
|
|
return x.Arguments |
|
2270
|
|
|
} |
|
2271
|
|
|
return nil |
|
2272
|
|
|
} |
|
2273
|
|
|
|
|
2274
|
|
|
func (x *Expand) GetNode() isExpand_Node { |
|
2275
|
|
|
if x != nil { |
|
2276
|
|
|
return x.Node |
|
2277
|
|
|
} |
|
2278
|
|
|
return nil |
|
2279
|
|
|
} |
|
2280
|
|
|
|
|
2281
|
|
|
func (x *Expand) GetExpand() *ExpandTreeNode { |
|
2282
|
|
|
if x != nil { |
|
2283
|
|
|
if x, ok := x.Node.(*Expand_Expand); ok { |
|
2284
|
|
|
return x.Expand |
|
2285
|
|
|
} |
|
2286
|
|
|
} |
|
2287
|
|
|
return nil |
|
2288
|
|
|
} |
|
2289
|
|
|
|
|
2290
|
|
|
func (x *Expand) GetLeaf() *ExpandLeaf { |
|
2291
|
|
|
if x != nil { |
|
2292
|
|
|
if x, ok := x.Node.(*Expand_Leaf); ok { |
|
2293
|
|
|
return x.Leaf |
|
2294
|
|
|
} |
|
2295
|
|
|
} |
|
2296
|
|
|
return nil |
|
2297
|
|
|
} |
|
2298
|
|
|
|
|
2299
|
|
|
type isExpand_Node interface { |
|
2300
|
|
|
isExpand_Node() |
|
2301
|
|
|
} |
|
2302
|
|
|
|
|
2303
|
|
|
type Expand_Expand struct { |
|
2304
|
|
|
// expand contains another hierarchical structure. |
|
2305
|
|
|
Expand *ExpandTreeNode `protobuf:"bytes,4,opt,name=expand,proto3,oneof"` |
|
2306
|
|
|
} |
|
2307
|
|
|
|
|
2308
|
|
|
type Expand_Leaf struct { |
|
2309
|
|
|
// leaf contains a set of subjects. |
|
2310
|
|
|
Leaf *ExpandLeaf `protobuf:"bytes,5,opt,name=leaf,proto3,oneof"` |
|
2311
|
|
|
} |
|
2312
|
|
|
|
|
2313
|
|
|
func (*Expand_Expand) isExpand_Node() {} |
|
2314
|
|
|
|
|
2315
|
|
|
func (*Expand_Leaf) isExpand_Node() {} |
|
2316
|
|
|
|
|
2317
|
|
|
// ExpandLeaf is the leaf node of an Expand tree and can be either a set of Subjects or a set of Values. |
|
2318
|
|
|
type ExpandLeaf struct { |
|
2319
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
2320
|
|
|
// Types that are valid to be assigned to Type: |
|
2321
|
|
|
// |
|
2322
|
|
|
// *ExpandLeaf_Subjects |
|
2323
|
|
|
// *ExpandLeaf_Values |
|
2324
|
|
|
// *ExpandLeaf_Value |
|
2325
|
|
|
Type isExpandLeaf_Type `protobuf_oneof:"type"` |
|
2326
|
|
|
unknownFields protoimpl.UnknownFields |
|
2327
|
|
|
sizeCache protoimpl.SizeCache |
|
2328
|
|
|
} |
|
2329
|
|
|
|
|
2330
|
|
|
func (x *ExpandLeaf) Reset() { |
|
2331
|
|
|
*x = ExpandLeaf{} |
|
2332
|
|
|
mi := &file_base_v1_base_proto_msgTypes[31] |
|
2333
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2334
|
|
|
ms.StoreMessageInfo(mi) |
|
2335
|
|
|
} |
|
2336
|
|
|
|
|
2337
|
|
|
func (x *ExpandLeaf) String() string { |
|
2338
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
2339
|
|
|
} |
|
2340
|
|
|
|
|
2341
|
|
|
func (*ExpandLeaf) ProtoMessage() {} |
|
2342
|
|
|
|
|
2343
|
|
|
func (x *ExpandLeaf) ProtoReflect() protoreflect.Message { |
|
2344
|
|
|
mi := &file_base_v1_base_proto_msgTypes[31] |
|
2345
|
|
|
if x != nil { |
|
2346
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2347
|
|
|
if ms.LoadMessageInfo() == nil { |
|
2348
|
|
|
ms.StoreMessageInfo(mi) |
|
2349
|
|
|
} |
|
2350
|
|
|
return ms |
|
2351
|
|
|
} |
|
2352
|
|
|
return mi.MessageOf(x) |
|
2353
|
|
|
} |
|
2354
|
|
|
|
|
2355
|
|
|
// Deprecated: Use ExpandLeaf.ProtoReflect.Descriptor instead. |
|
2356
|
|
|
func (*ExpandLeaf) Descriptor() ([]byte, []int) { |
|
2357
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{31} |
|
2358
|
|
|
} |
|
2359
|
|
|
|
|
2360
|
|
|
func (x *ExpandLeaf) GetType() isExpandLeaf_Type { |
|
2361
|
|
|
if x != nil { |
|
2362
|
|
|
return x.Type |
|
2363
|
|
|
} |
|
2364
|
|
|
return nil |
|
2365
|
|
|
} |
|
2366
|
|
|
|
|
2367
|
|
|
func (x *ExpandLeaf) GetSubjects() *Subjects { |
|
2368
|
|
|
if x != nil { |
|
2369
|
|
|
if x, ok := x.Type.(*ExpandLeaf_Subjects); ok { |
|
2370
|
|
|
return x.Subjects |
|
2371
|
|
|
} |
|
2372
|
|
|
} |
|
2373
|
|
|
return nil |
|
2374
|
|
|
} |
|
2375
|
|
|
|
|
2376
|
|
|
func (x *ExpandLeaf) GetValues() *Values { |
|
2377
|
|
|
if x != nil { |
|
2378
|
|
|
if x, ok := x.Type.(*ExpandLeaf_Values); ok { |
|
2379
|
|
|
return x.Values |
|
2380
|
|
|
} |
|
2381
|
|
|
} |
|
2382
|
|
|
return nil |
|
2383
|
|
|
} |
|
2384
|
|
|
|
|
2385
|
|
|
func (x *ExpandLeaf) GetValue() *anypb.Any { |
|
2386
|
|
|
if x != nil { |
|
2387
|
|
|
if x, ok := x.Type.(*ExpandLeaf_Value); ok { |
|
2388
|
|
|
return x.Value |
|
2389
|
|
|
} |
|
2390
|
|
|
} |
|
2391
|
|
|
return nil |
|
2392
|
|
|
} |
|
2393
|
|
|
|
|
2394
|
|
|
type isExpandLeaf_Type interface { |
|
2395
|
|
|
isExpandLeaf_Type() |
|
2396
|
|
|
} |
|
2397
|
|
|
|
|
2398
|
|
|
type ExpandLeaf_Subjects struct { |
|
2399
|
|
|
// subjects are used when the leaf is a set of subjects. |
|
2400
|
|
|
Subjects *Subjects `protobuf:"bytes,1,opt,name=subjects,proto3,oneof"` |
|
2401
|
|
|
} |
|
2402
|
|
|
|
|
2403
|
|
|
type ExpandLeaf_Values struct { |
|
2404
|
|
|
// values are used when the leaf node is a set of values. |
|
2405
|
|
|
Values *Values `protobuf:"bytes,2,opt,name=values,proto3,oneof"` |
|
2406
|
|
|
} |
|
2407
|
|
|
|
|
2408
|
|
|
type ExpandLeaf_Value struct { |
|
2409
|
|
|
// value is used when the leaf node is a single value. |
|
2410
|
|
|
Value *anypb.Any `protobuf:"bytes,3,opt,name=value,proto3,oneof"` |
|
2411
|
|
|
} |
|
2412
|
|
|
|
|
2413
|
|
|
func (*ExpandLeaf_Subjects) isExpandLeaf_Type() {} |
|
2414
|
|
|
|
|
2415
|
|
|
func (*ExpandLeaf_Values) isExpandLeaf_Type() {} |
|
2416
|
|
|
|
|
2417
|
|
|
func (*ExpandLeaf_Value) isExpandLeaf_Type() {} |
|
2418
|
|
|
|
|
2419
|
|
|
type Values struct { |
|
2420
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
2421
|
|
|
Values map[string]*anypb.Any `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
|
2422
|
|
|
unknownFields protoimpl.UnknownFields |
|
2423
|
|
|
sizeCache protoimpl.SizeCache |
|
2424
|
|
|
} |
|
2425
|
|
|
|
|
2426
|
|
|
func (x *Values) Reset() { |
|
2427
|
|
|
*x = Values{} |
|
2428
|
|
|
mi := &file_base_v1_base_proto_msgTypes[32] |
|
2429
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2430
|
|
|
ms.StoreMessageInfo(mi) |
|
2431
|
|
|
} |
|
2432
|
|
|
|
|
2433
|
|
|
func (x *Values) String() string { |
|
2434
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
2435
|
|
|
} |
|
2436
|
|
|
|
|
2437
|
|
|
func (*Values) ProtoMessage() {} |
|
2438
|
|
|
|
|
2439
|
|
|
func (x *Values) ProtoReflect() protoreflect.Message { |
|
2440
|
|
|
mi := &file_base_v1_base_proto_msgTypes[32] |
|
2441
|
|
|
if x != nil { |
|
2442
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2443
|
|
|
if ms.LoadMessageInfo() == nil { |
|
2444
|
|
|
ms.StoreMessageInfo(mi) |
|
2445
|
|
|
} |
|
2446
|
|
|
return ms |
|
2447
|
|
|
} |
|
2448
|
|
|
return mi.MessageOf(x) |
|
2449
|
|
|
} |
|
2450
|
|
|
|
|
2451
|
|
|
// Deprecated: Use Values.ProtoReflect.Descriptor instead. |
|
2452
|
|
|
func (*Values) Descriptor() ([]byte, []int) { |
|
2453
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{32} |
|
2454
|
|
|
} |
|
2455
|
|
|
|
|
2456
|
|
|
func (x *Values) GetValues() map[string]*anypb.Any { |
|
2457
|
|
|
if x != nil { |
|
2458
|
|
|
return x.Values |
|
2459
|
|
|
} |
|
2460
|
|
|
return nil |
|
2461
|
|
|
} |
|
2462
|
|
|
|
|
2463
|
|
|
// Subjects holds a repeated field of Subject type. |
|
2464
|
|
|
type Subjects struct { |
|
2465
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
2466
|
|
|
Subjects []*Subject `protobuf:"bytes,1,rep,name=subjects,proto3" json:"subjects,omitempty"` // A list of subjects. |
|
2467
|
|
|
unknownFields protoimpl.UnknownFields |
|
2468
|
|
|
sizeCache protoimpl.SizeCache |
|
2469
|
|
|
} |
|
2470
|
|
|
|
|
2471
|
|
|
func (x *Subjects) Reset() { |
|
2472
|
|
|
*x = Subjects{} |
|
2473
|
|
|
mi := &file_base_v1_base_proto_msgTypes[33] |
|
2474
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2475
|
|
|
ms.StoreMessageInfo(mi) |
|
2476
|
|
|
} |
|
2477
|
|
|
|
|
2478
|
|
|
func (x *Subjects) String() string { |
|
2479
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
2480
|
|
|
} |
|
2481
|
|
|
|
|
2482
|
|
|
func (*Subjects) ProtoMessage() {} |
|
2483
|
|
|
|
|
2484
|
|
|
func (x *Subjects) ProtoReflect() protoreflect.Message { |
|
2485
|
|
|
mi := &file_base_v1_base_proto_msgTypes[33] |
|
2486
|
|
|
if x != nil { |
|
2487
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2488
|
|
|
if ms.LoadMessageInfo() == nil { |
|
2489
|
|
|
ms.StoreMessageInfo(mi) |
|
2490
|
|
|
} |
|
2491
|
|
|
return ms |
|
2492
|
|
|
} |
|
2493
|
|
|
return mi.MessageOf(x) |
|
2494
|
|
|
} |
|
2495
|
|
|
|
|
2496
|
|
|
// Deprecated: Use Subjects.ProtoReflect.Descriptor instead. |
|
2497
|
|
|
func (*Subjects) Descriptor() ([]byte, []int) { |
|
2498
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{33} |
|
2499
|
|
|
} |
|
2500
|
|
|
|
|
2501
|
|
|
func (x *Subjects) GetSubjects() []*Subject { |
|
2502
|
|
|
if x != nil { |
|
2503
|
|
|
return x.Subjects |
|
2504
|
|
|
} |
|
2505
|
|
|
return nil |
|
2506
|
|
|
} |
|
2507
|
|
|
|
|
2508
|
|
|
// Tenant represents a tenant with an id, a name, and a timestamp indicating when it was created. |
|
2509
|
|
|
type Tenant struct { |
|
2510
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
2511
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The ID of the tenant. |
|
2512
|
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The name of the tenant. |
|
2513
|
|
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,proto3" json:"created_at,omitempty"` // The time at which the tenant was created. |
|
2514
|
|
|
unknownFields protoimpl.UnknownFields |
|
2515
|
|
|
sizeCache protoimpl.SizeCache |
|
2516
|
|
|
} |
|
2517
|
|
|
|
|
2518
|
|
|
func (x *Tenant) Reset() { |
|
2519
|
|
|
*x = Tenant{} |
|
2520
|
|
|
mi := &file_base_v1_base_proto_msgTypes[34] |
|
2521
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2522
|
|
|
ms.StoreMessageInfo(mi) |
|
2523
|
|
|
} |
|
2524
|
|
|
|
|
2525
|
|
|
func (x *Tenant) String() string { |
|
2526
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
2527
|
|
|
} |
|
2528
|
|
|
|
|
2529
|
|
|
func (*Tenant) ProtoMessage() {} |
|
2530
|
|
|
|
|
2531
|
|
|
func (x *Tenant) ProtoReflect() protoreflect.Message { |
|
2532
|
|
|
mi := &file_base_v1_base_proto_msgTypes[34] |
|
2533
|
|
|
if x != nil { |
|
2534
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2535
|
|
|
if ms.LoadMessageInfo() == nil { |
|
2536
|
|
|
ms.StoreMessageInfo(mi) |
|
2537
|
|
|
} |
|
2538
|
|
|
return ms |
|
2539
|
|
|
} |
|
2540
|
|
|
return mi.MessageOf(x) |
|
2541
|
|
|
} |
|
2542
|
|
|
|
|
2543
|
|
|
// Deprecated: Use Tenant.ProtoReflect.Descriptor instead. |
|
2544
|
|
|
func (*Tenant) Descriptor() ([]byte, []int) { |
|
2545
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{34} |
|
2546
|
|
|
} |
|
2547
|
|
|
|
|
2548
|
|
|
func (x *Tenant) GetId() string { |
|
2549
|
|
|
if x != nil { |
|
2550
|
|
|
return x.Id |
|
2551
|
|
|
} |
|
2552
|
|
|
return "" |
|
2553
|
|
|
} |
|
2554
|
|
|
|
|
2555
|
|
|
func (x *Tenant) GetName() string { |
|
2556
|
|
|
if x != nil { |
|
2557
|
|
|
return x.Name |
|
2558
|
|
|
} |
|
2559
|
|
|
return "" |
|
2560
|
|
|
} |
|
2561
|
|
|
|
|
2562
|
|
|
func (x *Tenant) GetCreatedAt() *timestamppb.Timestamp { |
|
2563
|
|
|
if x != nil { |
|
2564
|
|
|
return x.CreatedAt |
|
2565
|
|
|
} |
|
2566
|
|
|
return nil |
|
2567
|
|
|
} |
|
2568
|
|
|
|
|
2569
|
|
|
// DataChanges represent changes in data with a snap token and a list of data change objects. |
|
2570
|
|
|
type DataChanges struct { |
|
2571
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
2572
|
|
|
SnapToken string `protobuf:"bytes,1,opt,name=snap_token,proto3" json:"snap_token,omitempty"` // The snapshot token. |
|
2573
|
|
|
DataChanges []*DataChange `protobuf:"bytes,2,rep,name=data_changes,proto3" json:"data_changes,omitempty"` // The list of data changes. |
|
2574
|
|
|
unknownFields protoimpl.UnknownFields |
|
2575
|
|
|
sizeCache protoimpl.SizeCache |
|
2576
|
|
|
} |
|
2577
|
|
|
|
|
2578
|
|
|
func (x *DataChanges) Reset() { |
|
2579
|
|
|
*x = DataChanges{} |
|
2580
|
|
|
mi := &file_base_v1_base_proto_msgTypes[35] |
|
2581
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2582
|
|
|
ms.StoreMessageInfo(mi) |
|
2583
|
|
|
} |
|
2584
|
|
|
|
|
2585
|
|
|
func (x *DataChanges) String() string { |
|
2586
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
2587
|
|
|
} |
|
2588
|
|
|
|
|
2589
|
|
|
func (*DataChanges) ProtoMessage() {} |
|
2590
|
|
|
|
|
2591
|
|
|
func (x *DataChanges) ProtoReflect() protoreflect.Message { |
|
2592
|
|
|
mi := &file_base_v1_base_proto_msgTypes[35] |
|
2593
|
|
|
if x != nil { |
|
2594
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2595
|
|
|
if ms.LoadMessageInfo() == nil { |
|
2596
|
|
|
ms.StoreMessageInfo(mi) |
|
2597
|
|
|
} |
|
2598
|
|
|
return ms |
|
2599
|
|
|
} |
|
2600
|
|
|
return mi.MessageOf(x) |
|
2601
|
|
|
} |
|
2602
|
|
|
|
|
2603
|
|
|
// Deprecated: Use DataChanges.ProtoReflect.Descriptor instead. |
|
2604
|
|
|
func (*DataChanges) Descriptor() ([]byte, []int) { |
|
2605
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{35} |
|
2606
|
|
|
} |
|
2607
|
|
|
|
|
2608
|
|
|
func (x *DataChanges) GetSnapToken() string { |
|
2609
|
|
|
if x != nil { |
|
2610
|
|
|
return x.SnapToken |
|
2611
|
|
|
} |
|
2612
|
|
|
return "" |
|
2613
|
|
|
} |
|
2614
|
|
|
|
|
2615
|
|
|
func (x *DataChanges) GetDataChanges() []*DataChange { |
|
2616
|
|
|
if x != nil { |
|
2617
|
|
|
return x.DataChanges |
|
2618
|
|
|
} |
|
2619
|
|
|
return nil |
|
2620
|
|
|
} |
|
2621
|
|
|
|
|
2622
|
|
|
// DataChange represents a single change in data, with an operation type and the actual change which could be a tuple or an attribute. |
|
2623
|
|
|
type DataChange struct { |
|
2624
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
2625
|
|
|
Operation DataChange_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=base.v1.DataChange_Operation" json:"operation,omitempty"` // The operation type. |
|
2626
|
|
|
// Types that are valid to be assigned to Type: |
|
2627
|
|
|
// |
|
2628
|
|
|
// *DataChange_Tuple |
|
2629
|
|
|
// *DataChange_Attribute |
|
2630
|
|
|
Type isDataChange_Type `protobuf_oneof:"type"` |
|
2631
|
|
|
unknownFields protoimpl.UnknownFields |
|
2632
|
|
|
sizeCache protoimpl.SizeCache |
|
2633
|
|
|
} |
|
2634
|
|
|
|
|
2635
|
|
|
func (x *DataChange) Reset() { |
|
2636
|
|
|
*x = DataChange{} |
|
2637
|
|
|
mi := &file_base_v1_base_proto_msgTypes[36] |
|
2638
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2639
|
|
|
ms.StoreMessageInfo(mi) |
|
2640
|
|
|
} |
|
2641
|
|
|
|
|
2642
|
|
|
func (x *DataChange) String() string { |
|
2643
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
2644
|
|
|
} |
|
2645
|
|
|
|
|
2646
|
|
|
func (*DataChange) ProtoMessage() {} |
|
2647
|
|
|
|
|
2648
|
|
|
func (x *DataChange) ProtoReflect() protoreflect.Message { |
|
2649
|
|
|
mi := &file_base_v1_base_proto_msgTypes[36] |
|
2650
|
|
|
if x != nil { |
|
2651
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2652
|
|
|
if ms.LoadMessageInfo() == nil { |
|
2653
|
|
|
ms.StoreMessageInfo(mi) |
|
2654
|
|
|
} |
|
2655
|
|
|
return ms |
|
2656
|
|
|
} |
|
2657
|
|
|
return mi.MessageOf(x) |
|
2658
|
|
|
} |
|
2659
|
|
|
|
|
2660
|
|
|
// Deprecated: Use DataChange.ProtoReflect.Descriptor instead. |
|
2661
|
|
|
func (*DataChange) Descriptor() ([]byte, []int) { |
|
2662
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{36} |
|
2663
|
|
|
} |
|
2664
|
|
|
|
|
2665
|
|
|
func (x *DataChange) GetOperation() DataChange_Operation { |
|
2666
|
|
|
if x != nil { |
|
2667
|
|
|
return x.Operation |
|
2668
|
|
|
} |
|
2669
|
|
|
return DataChange_OPERATION_UNSPECIFIED |
|
2670
|
|
|
} |
|
2671
|
|
|
|
|
2672
|
|
|
func (x *DataChange) GetType() isDataChange_Type { |
|
2673
|
|
|
if x != nil { |
|
2674
|
|
|
return x.Type |
|
2675
|
|
|
} |
|
2676
|
|
|
return nil |
|
2677
|
|
|
} |
|
2678
|
|
|
|
|
2679
|
|
|
func (x *DataChange) GetTuple() *Tuple { |
|
2680
|
|
|
if x != nil { |
|
2681
|
|
|
if x, ok := x.Type.(*DataChange_Tuple); ok { |
|
2682
|
|
|
return x.Tuple |
|
2683
|
|
|
} |
|
2684
|
|
|
} |
|
2685
|
|
|
return nil |
|
2686
|
|
|
} |
|
2687
|
|
|
|
|
2688
|
|
|
func (x *DataChange) GetAttribute() *Attribute { |
|
2689
|
|
|
if x != nil { |
|
2690
|
|
|
if x, ok := x.Type.(*DataChange_Attribute); ok { |
|
2691
|
|
|
return x.Attribute |
|
2692
|
|
|
} |
|
2693
|
|
|
} |
|
2694
|
|
|
return nil |
|
2695
|
|
|
} |
|
2696
|
|
|
|
|
2697
|
|
|
type isDataChange_Type interface { |
|
2698
|
|
|
isDataChange_Type() |
|
2699
|
|
|
} |
|
2700
|
|
|
|
|
2701
|
|
|
type DataChange_Tuple struct { |
|
2702
|
|
|
Tuple *Tuple `protobuf:"bytes,2,opt,name=tuple,proto3,oneof"` // If the change is a tuple. |
|
2703
|
|
|
} |
|
2704
|
|
|
|
|
2705
|
|
|
type DataChange_Attribute struct { |
|
2706
|
|
|
Attribute *Attribute `protobuf:"bytes,3,opt,name=attribute,proto3,oneof"` // If the change is an attribute. |
|
2707
|
|
|
} |
|
2708
|
|
|
|
|
2709
|
|
|
func (*DataChange_Tuple) isDataChange_Type() {} |
|
2710
|
|
|
|
|
2711
|
|
|
func (*DataChange_Attribute) isDataChange_Type() {} |
|
2712
|
|
|
|
|
2713
|
|
|
// Wrapper for a single string value. |
|
2714
|
|
|
type StringValue struct { |
|
2715
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
2716
|
|
|
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // The string value. |
|
2717
|
|
|
unknownFields protoimpl.UnknownFields |
|
2718
|
|
|
sizeCache protoimpl.SizeCache |
|
2719
|
|
|
} |
|
2720
|
|
|
|
|
2721
|
|
|
func (x *StringValue) Reset() { |
|
2722
|
|
|
*x = StringValue{} |
|
2723
|
|
|
mi := &file_base_v1_base_proto_msgTypes[37] |
|
2724
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2725
|
|
|
ms.StoreMessageInfo(mi) |
|
2726
|
|
|
} |
|
2727
|
|
|
|
|
2728
|
|
|
func (x *StringValue) String() string { |
|
2729
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
2730
|
|
|
} |
|
2731
|
|
|
|
|
2732
|
|
|
func (*StringValue) ProtoMessage() {} |
|
2733
|
|
|
|
|
2734
|
|
|
func (x *StringValue) ProtoReflect() protoreflect.Message { |
|
2735
|
|
|
mi := &file_base_v1_base_proto_msgTypes[37] |
|
2736
|
|
|
if x != nil { |
|
2737
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2738
|
|
|
if ms.LoadMessageInfo() == nil { |
|
2739
|
|
|
ms.StoreMessageInfo(mi) |
|
2740
|
|
|
} |
|
2741
|
|
|
return ms |
|
2742
|
|
|
} |
|
2743
|
|
|
return mi.MessageOf(x) |
|
2744
|
|
|
} |
|
2745
|
|
|
|
|
2746
|
|
|
// Deprecated: Use StringValue.ProtoReflect.Descriptor instead. |
|
2747
|
|
|
func (*StringValue) Descriptor() ([]byte, []int) { |
|
2748
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{37} |
|
2749
|
|
|
} |
|
2750
|
|
|
|
|
2751
|
|
|
func (x *StringValue) GetData() string { |
|
2752
|
|
|
if x != nil { |
|
2753
|
|
|
return x.Data |
|
2754
|
|
|
} |
|
2755
|
|
|
return "" |
|
2756
|
|
|
} |
|
2757
|
|
|
|
|
2758
|
|
|
// Wrapper for a single integer value. |
|
2759
|
|
|
type IntegerValue struct { |
|
2760
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
2761
|
|
|
Data int32 `protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"` // The integer value. |
|
2762
|
|
|
unknownFields protoimpl.UnknownFields |
|
2763
|
|
|
sizeCache protoimpl.SizeCache |
|
2764
|
|
|
} |
|
2765
|
|
|
|
|
2766
|
|
|
func (x *IntegerValue) Reset() { |
|
2767
|
|
|
*x = IntegerValue{} |
|
2768
|
|
|
mi := &file_base_v1_base_proto_msgTypes[38] |
|
2769
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2770
|
|
|
ms.StoreMessageInfo(mi) |
|
2771
|
|
|
} |
|
2772
|
|
|
|
|
2773
|
|
|
func (x *IntegerValue) String() string { |
|
2774
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
2775
|
|
|
} |
|
2776
|
|
|
|
|
2777
|
|
|
func (*IntegerValue) ProtoMessage() {} |
|
2778
|
|
|
|
|
2779
|
|
|
func (x *IntegerValue) ProtoReflect() protoreflect.Message { |
|
2780
|
|
|
mi := &file_base_v1_base_proto_msgTypes[38] |
|
2781
|
|
|
if x != nil { |
|
2782
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2783
|
|
|
if ms.LoadMessageInfo() == nil { |
|
2784
|
|
|
ms.StoreMessageInfo(mi) |
|
2785
|
|
|
} |
|
2786
|
|
|
return ms |
|
2787
|
|
|
} |
|
2788
|
|
|
return mi.MessageOf(x) |
|
2789
|
|
|
} |
|
2790
|
|
|
|
|
2791
|
|
|
// Deprecated: Use IntegerValue.ProtoReflect.Descriptor instead. |
|
2792
|
|
|
func (*IntegerValue) Descriptor() ([]byte, []int) { |
|
2793
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{38} |
|
2794
|
|
|
} |
|
2795
|
|
|
|
|
2796
|
|
|
func (x *IntegerValue) GetData() int32 { |
|
2797
|
|
|
if x != nil { |
|
2798
|
|
|
return x.Data |
|
2799
|
|
|
} |
|
2800
|
|
|
return 0 |
|
2801
|
|
|
} |
|
2802
|
|
|
|
|
2803
|
|
|
// Wrapper for a single double precision floating point value. |
|
2804
|
|
|
type DoubleValue struct { |
|
2805
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
2806
|
|
|
Data float64 `protobuf:"fixed64,1,opt,name=data,proto3" json:"data,omitempty"` // The double value. |
|
2807
|
|
|
unknownFields protoimpl.UnknownFields |
|
2808
|
|
|
sizeCache protoimpl.SizeCache |
|
2809
|
|
|
} |
|
2810
|
|
|
|
|
2811
|
|
|
func (x *DoubleValue) Reset() { |
|
2812
|
|
|
*x = DoubleValue{} |
|
2813
|
|
|
mi := &file_base_v1_base_proto_msgTypes[39] |
|
2814
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2815
|
|
|
ms.StoreMessageInfo(mi) |
|
2816
|
|
|
} |
|
2817
|
|
|
|
|
2818
|
|
|
func (x *DoubleValue) String() string { |
|
2819
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
2820
|
|
|
} |
|
2821
|
|
|
|
|
2822
|
|
|
func (*DoubleValue) ProtoMessage() {} |
|
2823
|
|
|
|
|
2824
|
|
|
func (x *DoubleValue) ProtoReflect() protoreflect.Message { |
|
2825
|
|
|
mi := &file_base_v1_base_proto_msgTypes[39] |
|
2826
|
|
|
if x != nil { |
|
2827
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2828
|
|
|
if ms.LoadMessageInfo() == nil { |
|
2829
|
|
|
ms.StoreMessageInfo(mi) |
|
2830
|
|
|
} |
|
2831
|
|
|
return ms |
|
2832
|
|
|
} |
|
2833
|
|
|
return mi.MessageOf(x) |
|
2834
|
|
|
} |
|
2835
|
|
|
|
|
2836
|
|
|
// Deprecated: Use DoubleValue.ProtoReflect.Descriptor instead. |
|
2837
|
|
|
func (*DoubleValue) Descriptor() ([]byte, []int) { |
|
2838
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{39} |
|
2839
|
|
|
} |
|
2840
|
|
|
|
|
2841
|
|
|
func (x *DoubleValue) GetData() float64 { |
|
2842
|
|
|
if x != nil { |
|
2843
|
|
|
return x.Data |
|
2844
|
|
|
} |
|
2845
|
|
|
return 0 |
|
2846
|
|
|
} |
|
2847
|
|
|
|
|
2848
|
|
|
// Wrapper for a single boolean value. |
|
2849
|
|
|
type BooleanValue struct { |
|
2850
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
2851
|
|
|
Data bool `protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"` // The boolean value. |
|
2852
|
|
|
unknownFields protoimpl.UnknownFields |
|
2853
|
|
|
sizeCache protoimpl.SizeCache |
|
2854
|
|
|
} |
|
2855
|
|
|
|
|
2856
|
|
|
func (x *BooleanValue) Reset() { |
|
2857
|
|
|
*x = BooleanValue{} |
|
2858
|
|
|
mi := &file_base_v1_base_proto_msgTypes[40] |
|
2859
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2860
|
|
|
ms.StoreMessageInfo(mi) |
|
2861
|
|
|
} |
|
2862
|
|
|
|
|
2863
|
|
|
func (x *BooleanValue) String() string { |
|
2864
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
2865
|
|
|
} |
|
2866
|
|
|
|
|
2867
|
|
|
func (*BooleanValue) ProtoMessage() {} |
|
2868
|
|
|
|
|
2869
|
|
|
func (x *BooleanValue) ProtoReflect() protoreflect.Message { |
|
2870
|
|
|
mi := &file_base_v1_base_proto_msgTypes[40] |
|
2871
|
|
|
if x != nil { |
|
2872
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2873
|
|
|
if ms.LoadMessageInfo() == nil { |
|
2874
|
|
|
ms.StoreMessageInfo(mi) |
|
2875
|
|
|
} |
|
2876
|
|
|
return ms |
|
2877
|
|
|
} |
|
2878
|
|
|
return mi.MessageOf(x) |
|
2879
|
|
|
} |
|
2880
|
|
|
|
|
2881
|
|
|
// Deprecated: Use BooleanValue.ProtoReflect.Descriptor instead. |
|
2882
|
|
|
func (*BooleanValue) Descriptor() ([]byte, []int) { |
|
2883
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{40} |
|
2884
|
|
|
} |
|
2885
|
|
|
|
|
2886
|
|
|
func (x *BooleanValue) GetData() bool { |
|
2887
|
|
|
if x != nil { |
|
2888
|
|
|
return x.Data |
|
2889
|
|
|
} |
|
2890
|
|
|
return false |
|
2891
|
|
|
} |
|
2892
|
|
|
|
|
2893
|
|
|
// Wrapper for an array of strings. |
|
2894
|
|
|
type StringArrayValue struct { |
|
2895
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
2896
|
|
|
Data []string `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // The array of strings. |
|
2897
|
|
|
unknownFields protoimpl.UnknownFields |
|
2898
|
|
|
sizeCache protoimpl.SizeCache |
|
2899
|
|
|
} |
|
2900
|
|
|
|
|
2901
|
|
|
func (x *StringArrayValue) Reset() { |
|
2902
|
|
|
*x = StringArrayValue{} |
|
2903
|
|
|
mi := &file_base_v1_base_proto_msgTypes[41] |
|
2904
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2905
|
|
|
ms.StoreMessageInfo(mi) |
|
2906
|
|
|
} |
|
2907
|
|
|
|
|
2908
|
|
|
func (x *StringArrayValue) String() string { |
|
2909
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
2910
|
|
|
} |
|
2911
|
|
|
|
|
2912
|
|
|
func (*StringArrayValue) ProtoMessage() {} |
|
2913
|
|
|
|
|
2914
|
|
|
func (x *StringArrayValue) ProtoReflect() protoreflect.Message { |
|
2915
|
|
|
mi := &file_base_v1_base_proto_msgTypes[41] |
|
2916
|
|
|
if x != nil { |
|
2917
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2918
|
|
|
if ms.LoadMessageInfo() == nil { |
|
2919
|
|
|
ms.StoreMessageInfo(mi) |
|
2920
|
|
|
} |
|
2921
|
|
|
return ms |
|
2922
|
|
|
} |
|
2923
|
|
|
return mi.MessageOf(x) |
|
2924
|
|
|
} |
|
2925
|
|
|
|
|
2926
|
|
|
// Deprecated: Use StringArrayValue.ProtoReflect.Descriptor instead. |
|
2927
|
|
|
func (*StringArrayValue) Descriptor() ([]byte, []int) { |
|
2928
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{41} |
|
2929
|
|
|
} |
|
2930
|
|
|
|
|
2931
|
|
|
func (x *StringArrayValue) GetData() []string { |
|
2932
|
|
|
if x != nil { |
|
2933
|
|
|
return x.Data |
|
2934
|
|
|
} |
|
2935
|
|
|
return nil |
|
2936
|
|
|
} |
|
2937
|
|
|
|
|
2938
|
|
|
// Wrapper for an array of integers. |
|
2939
|
|
|
type IntegerArrayValue struct { |
|
2940
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
2941
|
|
|
Data []int32 `protobuf:"varint,1,rep,packed,name=data,proto3" json:"data,omitempty"` // The array of integers. |
|
2942
|
|
|
unknownFields protoimpl.UnknownFields |
|
2943
|
|
|
sizeCache protoimpl.SizeCache |
|
2944
|
|
|
} |
|
2945
|
|
|
|
|
2946
|
|
|
func (x *IntegerArrayValue) Reset() { |
|
2947
|
|
|
*x = IntegerArrayValue{} |
|
2948
|
|
|
mi := &file_base_v1_base_proto_msgTypes[42] |
|
2949
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2950
|
|
|
ms.StoreMessageInfo(mi) |
|
2951
|
|
|
} |
|
2952
|
|
|
|
|
2953
|
|
|
func (x *IntegerArrayValue) String() string { |
|
2954
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
2955
|
|
|
} |
|
2956
|
|
|
|
|
2957
|
|
|
func (*IntegerArrayValue) ProtoMessage() {} |
|
2958
|
|
|
|
|
2959
|
|
|
func (x *IntegerArrayValue) ProtoReflect() protoreflect.Message { |
|
2960
|
|
|
mi := &file_base_v1_base_proto_msgTypes[42] |
|
2961
|
|
|
if x != nil { |
|
2962
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2963
|
|
|
if ms.LoadMessageInfo() == nil { |
|
2964
|
|
|
ms.StoreMessageInfo(mi) |
|
2965
|
|
|
} |
|
2966
|
|
|
return ms |
|
2967
|
|
|
} |
|
2968
|
|
|
return mi.MessageOf(x) |
|
2969
|
|
|
} |
|
2970
|
|
|
|
|
2971
|
|
|
// Deprecated: Use IntegerArrayValue.ProtoReflect.Descriptor instead. |
|
2972
|
|
|
func (*IntegerArrayValue) Descriptor() ([]byte, []int) { |
|
2973
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{42} |
|
2974
|
|
|
} |
|
2975
|
|
|
|
|
2976
|
|
|
func (x *IntegerArrayValue) GetData() []int32 { |
|
2977
|
|
|
if x != nil { |
|
2978
|
|
|
return x.Data |
|
2979
|
|
|
} |
|
2980
|
|
|
return nil |
|
2981
|
|
|
} |
|
2982
|
|
|
|
|
2983
|
|
|
// Wrapper for an array of double precision floating point values. |
|
2984
|
|
|
type DoubleArrayValue struct { |
|
2985
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
2986
|
|
|
Data []float64 `protobuf:"fixed64,1,rep,packed,name=data,proto3" json:"data,omitempty"` // The array of doubles. |
|
2987
|
|
|
unknownFields protoimpl.UnknownFields |
|
2988
|
|
|
sizeCache protoimpl.SizeCache |
|
2989
|
|
|
} |
|
2990
|
|
|
|
|
2991
|
|
|
func (x *DoubleArrayValue) Reset() { |
|
2992
|
|
|
*x = DoubleArrayValue{} |
|
2993
|
|
|
mi := &file_base_v1_base_proto_msgTypes[43] |
|
2994
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
2995
|
|
|
ms.StoreMessageInfo(mi) |
|
2996
|
|
|
} |
|
2997
|
|
|
|
|
2998
|
|
|
func (x *DoubleArrayValue) String() string { |
|
2999
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
3000
|
|
|
} |
|
3001
|
|
|
|
|
3002
|
|
|
func (*DoubleArrayValue) ProtoMessage() {} |
|
3003
|
|
|
|
|
3004
|
|
|
func (x *DoubleArrayValue) ProtoReflect() protoreflect.Message { |
|
3005
|
|
|
mi := &file_base_v1_base_proto_msgTypes[43] |
|
3006
|
|
|
if x != nil { |
|
3007
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
3008
|
|
|
if ms.LoadMessageInfo() == nil { |
|
3009
|
|
|
ms.StoreMessageInfo(mi) |
|
3010
|
|
|
} |
|
3011
|
|
|
return ms |
|
3012
|
|
|
} |
|
3013
|
|
|
return mi.MessageOf(x) |
|
3014
|
|
|
} |
|
3015
|
|
|
|
|
3016
|
|
|
// Deprecated: Use DoubleArrayValue.ProtoReflect.Descriptor instead. |
|
3017
|
|
|
func (*DoubleArrayValue) Descriptor() ([]byte, []int) { |
|
3018
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{43} |
|
3019
|
|
|
} |
|
3020
|
|
|
|
|
3021
|
|
|
func (x *DoubleArrayValue) GetData() []float64 { |
|
3022
|
|
|
if x != nil { |
|
3023
|
|
|
return x.Data |
|
3024
|
|
|
} |
|
3025
|
|
|
return nil |
|
3026
|
|
|
} |
|
3027
|
|
|
|
|
3028
|
|
|
// Wrapper for an array of booleans. |
|
3029
|
|
|
type BooleanArrayValue struct { |
|
3030
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
3031
|
|
|
Data []bool `protobuf:"varint,1,rep,packed,name=data,proto3" json:"data,omitempty"` // The array of booleans. |
|
3032
|
|
|
unknownFields protoimpl.UnknownFields |
|
3033
|
|
|
sizeCache protoimpl.SizeCache |
|
3034
|
|
|
} |
|
3035
|
|
|
|
|
3036
|
|
|
func (x *BooleanArrayValue) Reset() { |
|
3037
|
|
|
*x = BooleanArrayValue{} |
|
3038
|
|
|
mi := &file_base_v1_base_proto_msgTypes[44] |
|
3039
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
3040
|
|
|
ms.StoreMessageInfo(mi) |
|
3041
|
|
|
} |
|
3042
|
|
|
|
|
3043
|
|
|
func (x *BooleanArrayValue) String() string { |
|
3044
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
3045
|
|
|
} |
|
3046
|
|
|
|
|
3047
|
|
|
func (*BooleanArrayValue) ProtoMessage() {} |
|
3048
|
|
|
|
|
3049
|
|
|
func (x *BooleanArrayValue) ProtoReflect() protoreflect.Message { |
|
3050
|
|
|
mi := &file_base_v1_base_proto_msgTypes[44] |
|
3051
|
|
|
if x != nil { |
|
3052
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
3053
|
|
|
if ms.LoadMessageInfo() == nil { |
|
3054
|
|
|
ms.StoreMessageInfo(mi) |
|
3055
|
|
|
} |
|
3056
|
|
|
return ms |
|
3057
|
|
|
} |
|
3058
|
|
|
return mi.MessageOf(x) |
|
3059
|
|
|
} |
|
3060
|
|
|
|
|
3061
|
|
|
// Deprecated: Use BooleanArrayValue.ProtoReflect.Descriptor instead. |
|
3062
|
|
|
func (*BooleanArrayValue) Descriptor() ([]byte, []int) { |
|
3063
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{44} |
|
3064
|
|
|
} |
|
3065
|
|
|
|
|
3066
|
|
|
func (x *BooleanArrayValue) GetData() []bool { |
|
3067
|
|
|
if x != nil { |
|
3068
|
|
|
return x.Data |
|
3069
|
|
|
} |
|
3070
|
|
|
return nil |
|
3071
|
|
|
} |
|
3072
|
|
|
|
|
3073
|
|
|
// DataBundle is a message representing a bundle of data, which includes a name, |
|
3074
|
|
|
// a list of arguments, and a series of operations. |
|
3075
|
|
|
type DataBundle struct { |
|
3076
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
3077
|
|
|
// 'name' is a simple string field representing the name of the DataBundle. |
|
3078
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
|
3079
|
|
|
// 'arguments' is a repeated field, which means it can contain multiple strings. |
|
3080
|
|
|
// These are used to store a list of arguments related to the DataBundle. |
|
3081
|
|
|
Arguments []string `protobuf:"bytes,2,rep,name=arguments,proto3" json:"arguments,omitempty"` |
|
3082
|
|
|
// 'operations' is a repeated field containing multiple Operation messages. |
|
3083
|
|
|
// Each Operation represents a specific action or set of actions to be performed. |
|
3084
|
|
|
Operations []*Operation `protobuf:"bytes,3,rep,name=operations,proto3" json:"operations,omitempty"` |
|
3085
|
|
|
unknownFields protoimpl.UnknownFields |
|
3086
|
|
|
sizeCache protoimpl.SizeCache |
|
3087
|
|
|
} |
|
3088
|
|
|
|
|
3089
|
|
|
func (x *DataBundle) Reset() { |
|
3090
|
|
|
*x = DataBundle{} |
|
3091
|
|
|
mi := &file_base_v1_base_proto_msgTypes[45] |
|
3092
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
3093
|
|
|
ms.StoreMessageInfo(mi) |
|
3094
|
|
|
} |
|
3095
|
|
|
|
|
3096
|
|
|
func (x *DataBundle) String() string { |
|
3097
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
3098
|
|
|
} |
|
3099
|
|
|
|
|
3100
|
|
|
func (*DataBundle) ProtoMessage() {} |
|
3101
|
|
|
|
|
3102
|
|
|
func (x *DataBundle) ProtoReflect() protoreflect.Message { |
|
3103
|
|
|
mi := &file_base_v1_base_proto_msgTypes[45] |
|
3104
|
|
|
if x != nil { |
|
3105
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
3106
|
|
|
if ms.LoadMessageInfo() == nil { |
|
3107
|
|
|
ms.StoreMessageInfo(mi) |
|
3108
|
|
|
} |
|
3109
|
|
|
return ms |
|
3110
|
|
|
} |
|
3111
|
|
|
return mi.MessageOf(x) |
|
3112
|
|
|
} |
|
3113
|
|
|
|
|
3114
|
|
|
// Deprecated: Use DataBundle.ProtoReflect.Descriptor instead. |
|
3115
|
|
|
func (*DataBundle) Descriptor() ([]byte, []int) { |
|
3116
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{45} |
|
3117
|
|
|
} |
|
3118
|
|
|
|
|
3119
|
|
|
func (x *DataBundle) GetName() string { |
|
3120
|
|
|
if x != nil { |
|
3121
|
|
|
return x.Name |
|
3122
|
|
|
} |
|
3123
|
|
|
return "" |
|
3124
|
|
|
} |
|
3125
|
|
|
|
|
3126
|
|
|
func (x *DataBundle) GetArguments() []string { |
|
3127
|
|
|
if x != nil { |
|
3128
|
|
|
return x.Arguments |
|
3129
|
|
|
} |
|
3130
|
|
|
return nil |
|
3131
|
|
|
} |
|
3132
|
|
|
|
|
3133
|
|
|
func (x *DataBundle) GetOperations() []*Operation { |
|
3134
|
|
|
if x != nil { |
|
3135
|
|
|
return x.Operations |
|
3136
|
|
|
} |
|
3137
|
|
|
return nil |
|
3138
|
|
|
} |
|
3139
|
|
|
|
|
3140
|
|
|
// Operation is a message representing a series of operations that can be performed. |
|
3141
|
|
|
// It includes fields for writing and deleting relationships and attributes. |
|
3142
|
|
|
type Operation struct { |
|
3143
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
3144
|
|
|
// 'relationships_write' is a repeated string field for storing relationship keys |
|
3145
|
|
|
// that are to be written or created. |
|
3146
|
|
|
RelationshipsWrite []string `protobuf:"bytes,1,rep,name=relationships_write,proto3" json:"relationships_write,omitempty"` |
|
3147
|
|
|
// 'relationships_delete' is a repeated string field for storing relationship keys |
|
3148
|
|
|
// that are to be deleted or removed. |
|
3149
|
|
|
RelationshipsDelete []string `protobuf:"bytes,2,rep,name=relationships_delete,proto3" json:"relationships_delete,omitempty"` |
|
3150
|
|
|
// 'attributes_write' is a repeated string field for storing attribute keys |
|
3151
|
|
|
// that are to be written or created. |
|
3152
|
|
|
AttributesWrite []string `protobuf:"bytes,3,rep,name=attributes_write,proto3" json:"attributes_write,omitempty"` |
|
3153
|
|
|
// 'attributes_delete' is a repeated string field for storing attribute keys |
|
3154
|
|
|
// that are to be deleted or removed. |
|
3155
|
|
|
AttributesDelete []string `protobuf:"bytes,4,rep,name=attributes_delete,proto3" json:"attributes_delete,omitempty"` |
|
3156
|
|
|
unknownFields protoimpl.UnknownFields |
|
3157
|
|
|
sizeCache protoimpl.SizeCache |
|
3158
|
|
|
} |
|
3159
|
|
|
|
|
3160
|
|
|
func (x *Operation) Reset() { |
|
3161
|
|
|
*x = Operation{} |
|
3162
|
|
|
mi := &file_base_v1_base_proto_msgTypes[46] |
|
3163
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
3164
|
|
|
ms.StoreMessageInfo(mi) |
|
3165
|
|
|
} |
|
3166
|
|
|
|
|
3167
|
|
|
func (x *Operation) String() string { |
|
3168
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
3169
|
|
|
} |
|
3170
|
|
|
|
|
3171
|
|
|
func (*Operation) ProtoMessage() {} |
|
3172
|
|
|
|
|
3173
|
|
|
func (x *Operation) ProtoReflect() protoreflect.Message { |
|
3174
|
|
|
mi := &file_base_v1_base_proto_msgTypes[46] |
|
3175
|
|
|
if x != nil { |
|
3176
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
3177
|
|
|
if ms.LoadMessageInfo() == nil { |
|
3178
|
|
|
ms.StoreMessageInfo(mi) |
|
3179
|
|
|
} |
|
3180
|
|
|
return ms |
|
3181
|
|
|
} |
|
3182
|
|
|
return mi.MessageOf(x) |
|
3183
|
|
|
} |
|
3184
|
|
|
|
|
3185
|
|
|
// Deprecated: Use Operation.ProtoReflect.Descriptor instead. |
|
3186
|
|
|
func (*Operation) Descriptor() ([]byte, []int) { |
|
3187
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{46} |
|
3188
|
|
|
} |
|
3189
|
|
|
|
|
3190
|
|
|
func (x *Operation) GetRelationshipsWrite() []string { |
|
3191
|
|
|
if x != nil { |
|
3192
|
|
|
return x.RelationshipsWrite |
|
3193
|
|
|
} |
|
3194
|
|
|
return nil |
|
3195
|
|
|
} |
|
3196
|
|
|
|
|
3197
|
|
|
func (x *Operation) GetRelationshipsDelete() []string { |
|
3198
|
|
|
if x != nil { |
|
3199
|
|
|
return x.RelationshipsDelete |
|
3200
|
|
|
} |
|
3201
|
|
|
return nil |
|
3202
|
|
|
} |
|
3203
|
|
|
|
|
3204
|
|
|
func (x *Operation) GetAttributesWrite() []string { |
|
3205
|
|
|
if x != nil { |
|
3206
|
|
|
return x.AttributesWrite |
|
3207
|
|
|
} |
|
3208
|
|
|
return nil |
|
3209
|
|
|
} |
|
3210
|
|
|
|
|
3211
|
|
|
func (x *Operation) GetAttributesDelete() []string { |
|
3212
|
|
|
if x != nil { |
|
3213
|
|
|
return x.AttributesDelete |
|
3214
|
|
|
} |
|
3215
|
|
|
return nil |
|
3216
|
|
|
} |
|
3217
|
|
|
|
|
3218
|
|
|
// Partials contains the write, update and delete definitions |
|
3219
|
|
|
type Partials struct { |
|
3220
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
|
3221
|
|
|
Write []string `protobuf:"bytes,1,rep,name=write,proto3" json:"write,omitempty"` |
|
3222
|
|
|
Delete []string `protobuf:"bytes,2,rep,name=delete,proto3" json:"delete,omitempty"` |
|
3223
|
|
|
Update []string `protobuf:"bytes,3,rep,name=update,proto3" json:"update,omitempty"` |
|
3224
|
|
|
unknownFields protoimpl.UnknownFields |
|
3225
|
|
|
sizeCache protoimpl.SizeCache |
|
3226
|
|
|
} |
|
3227
|
|
|
|
|
3228
|
|
|
func (x *Partials) Reset() { |
|
3229
|
|
|
*x = Partials{} |
|
3230
|
|
|
mi := &file_base_v1_base_proto_msgTypes[47] |
|
3231
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
3232
|
|
|
ms.StoreMessageInfo(mi) |
|
3233
|
|
|
} |
|
3234
|
|
|
|
|
3235
|
|
|
func (x *Partials) String() string { |
|
3236
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
3237
|
|
|
} |
|
3238
|
|
|
|
|
3239
|
|
|
func (*Partials) ProtoMessage() {} |
|
3240
|
|
|
|
|
3241
|
|
|
func (x *Partials) ProtoReflect() protoreflect.Message { |
|
3242
|
|
|
mi := &file_base_v1_base_proto_msgTypes[47] |
|
3243
|
|
|
if x != nil { |
|
3244
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
3245
|
|
|
if ms.LoadMessageInfo() == nil { |
|
3246
|
|
|
ms.StoreMessageInfo(mi) |
|
3247
|
|
|
} |
|
3248
|
|
|
return ms |
|
3249
|
|
|
} |
|
3250
|
|
|
return mi.MessageOf(x) |
|
3251
|
|
|
} |
|
3252
|
|
|
|
|
3253
|
|
|
// Deprecated: Use Partials.ProtoReflect.Descriptor instead. |
|
3254
|
|
|
func (*Partials) Descriptor() ([]byte, []int) { |
|
3255
|
|
|
return file_base_v1_base_proto_rawDescGZIP(), []int{47} |
|
3256
|
|
|
} |
|
3257
|
|
|
|
|
3258
|
|
|
func (x *Partials) GetWrite() []string { |
|
3259
|
|
|
if x != nil { |
|
3260
|
|
|
return x.Write |
|
3261
|
|
|
} |
|
3262
|
|
|
return nil |
|
3263
|
|
|
} |
|
3264
|
|
|
|
|
3265
|
|
|
func (x *Partials) GetDelete() []string { |
|
3266
|
|
|
if x != nil { |
|
3267
|
|
|
return x.Delete |
|
3268
|
|
|
} |
|
3269
|
|
|
return nil |
|
3270
|
|
|
} |
|
3271
|
|
|
|
|
3272
|
|
|
func (x *Partials) GetUpdate() []string { |
|
3273
|
|
|
if x != nil { |
|
3274
|
|
|
return x.Update |
|
3275
|
|
|
} |
|
3276
|
|
|
return nil |
|
3277
|
|
|
} |
|
3278
|
|
|
|
|
3279
|
|
|
var File_base_v1_base_proto protoreflect.FileDescriptor |
|
3280
|
|
|
|
|
3281
|
|
|
const file_base_v1_base_proto_rawDesc = "" + |
|
3282
|
|
|
"\n" + |
|
3283
|
|
|
"\x12base/v1/base.proto\x12\abase.v1\x1a&google/api/expr/v1alpha1/checked.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\"\x92\x01\n" + |
|
3284
|
|
|
"\aContext\x12&\n" + |
|
3285
|
|
|
"\x06tuples\x18\x01 \x03(\v2\x0e.base.v1.TupleR\x06tuples\x122\n" + |
|
3286
|
|
|
"\n" + |
|
3287
|
|
|
"attributes\x18\x02 \x03(\v2\x12.base.v1.AttributeR\n" + |
|
3288
|
|
|
"attributes\x12+\n" + |
|
3289
|
|
|
"\x04data\x18\x03 \x01(\v2\x17.google.protobuf.StructR\x04data\"{\n" + |
|
3290
|
|
|
"\x05Child\x12-\n" + |
|
3291
|
|
|
"\x04leaf\x18\x01 \x01(\v2\r.base.v1.LeafB\b\xfaB\x05\x8a\x01\x02\x10\x01H\x00R\x04leaf\x126\n" + |
|
3292
|
|
|
"\arewrite\x18\x02 \x01(\v2\x10.base.v1.RewriteB\b\xfaB\x05\x8a\x01\x02\x10\x01H\x00R\arewriteB\v\n" + |
|
3293
|
|
|
"\x04type\x12\x03\xf8B\x01\"\xbb\x02\n" + |
|
3294
|
|
|
"\x04Leaf\x12P\n" + |
|
3295
|
|
|
"\x11computed_user_set\x18\x01 \x01(\v2\x18.base.v1.ComputedUserSetB\b\xfaB\x05\x8a\x01\x02\x10\x01H\x00R\x0fcomputedUserSet\x12N\n" + |
|
3296
|
|
|
"\x11tuple_to_user_set\x18\x02 \x01(\v2\x17.base.v1.TupleToUserSetB\b\xfaB\x05\x8a\x01\x02\x10\x01H\x00R\x0etupleToUserSet\x12U\n" + |
|
3297
|
|
|
"\x12computed_attribute\x18\x03 \x01(\v2\x1a.base.v1.ComputedAttributeB\b\xfaB\x05\x8a\x01\x02\x10\x01H\x00R\x11computedAttribute\x12-\n" + |
|
3298
|
|
|
"\x04call\x18\x04 \x01(\v2\r.base.v1.CallB\b\xfaB\x05\x8a\x01\x02\x10\x01H\x00R\x04callB\v\n" + |
|
3299
|
|
|
"\x04type\x12\x03\xf8B\x01\"\xf0\x01\n" + |
|
3300
|
|
|
"\aRewrite\x12G\n" + |
|
3301
|
|
|
"\x11rewrite_operation\x18\x01 \x01(\x0e2\x1a.base.v1.Rewrite.OperationR\x10rewriteOperation\x12*\n" + |
|
3302
|
|
|
"\bchildren\x18\x02 \x03(\v2\x0e.base.v1.ChildR\bchildren\"p\n" + |
|
3303
|
|
|
"\tOperation\x12\x19\n" + |
|
3304
|
|
|
"\x15OPERATION_UNSPECIFIED\x10\x00\x12\x13\n" + |
|
3305
|
|
|
"\x0fOPERATION_UNION\x10\x01\x12\x1a\n" + |
|
3306
|
|
|
"\x16OPERATION_INTERSECTION\x10\x02\x12\x17\n" + |
|
3307
|
|
|
"\x13OPERATION_EXCLUSION\x10\x03\"\x8d\x05\n" + |
|
3308
|
|
|
"\x10SchemaDefinition\x12_\n" + |
|
3309
|
|
|
"\x12entity_definitions\x18\x01 \x03(\v20.base.v1.SchemaDefinition.EntityDefinitionsEntryR\x11entityDefinitions\x12Y\n" + |
|
3310
|
|
|
"\x10rule_definitions\x18\x02 \x03(\v2..base.v1.SchemaDefinition.RuleDefinitionsEntryR\x0fruleDefinitions\x12I\n" + |
|
3311
|
|
|
"\n" + |
|
3312
|
|
|
"references\x18\x03 \x03(\v2).base.v1.SchemaDefinition.ReferencesEntryR\n" + |
|
3313
|
|
|
"references\x1a_\n" + |
|
3314
|
|
|
"\x16EntityDefinitionsEntry\x12\x10\n" + |
|
3315
|
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12/\n" + |
|
3316
|
|
|
"\x05value\x18\x02 \x01(\v2\x19.base.v1.EntityDefinitionR\x05value:\x028\x01\x1a[\n" + |
|
3317
|
|
|
"\x14RuleDefinitionsEntry\x12\x10\n" + |
|
3318
|
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12-\n" + |
|
3319
|
|
|
"\x05value\x18\x02 \x01(\v2\x17.base.v1.RuleDefinitionR\x05value:\x028\x01\x1ab\n" + |
|
3320
|
|
|
"\x0fReferencesEntry\x12\x10\n" + |
|
3321
|
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x129\n" + |
|
3322
|
|
|
"\x05value\x18\x02 \x01(\x0e2#.base.v1.SchemaDefinition.ReferenceR\x05value:\x028\x01\"P\n" + |
|
3323
|
|
|
"\tReference\x12\x19\n" + |
|
3324
|
|
|
"\x15REFERENCE_UNSPECIFIED\x10\x00\x12\x14\n" + |
|
3325
|
|
|
"\x10REFERENCE_ENTITY\x10\x01\x12\x12\n" + |
|
3326
|
|
|
"\x0eREFERENCE_RULE\x10\x02\"\xdc\x06\n" + |
|
3327
|
|
|
"\x10EntityDefinition\x12.\n" + |
|
3328
|
|
|
"\x04name\x18\x01 \x01(\tB\x1a\xfaB\x17r\x15(@2\x11^[a-zA-Z_]{1,64}$R\x04name\x12F\n" + |
|
3329
|
|
|
"\trelations\x18\x02 \x03(\v2(.base.v1.EntityDefinition.RelationsEntryR\trelations\x12L\n" + |
|
3330
|
|
|
"\vpermissions\x18\x03 \x03(\v2*.base.v1.EntityDefinition.PermissionsEntryR\vpermissions\x12I\n" + |
|
3331
|
|
|
"\n" + |
|
3332
|
|
|
"attributes\x18\x04 \x03(\v2).base.v1.EntityDefinition.AttributesEntryR\n" + |
|
3333
|
|
|
"attributes\x12I\n" + |
|
3334
|
|
|
"\n" + |
|
3335
|
|
|
"references\x18\x05 \x03(\v2).base.v1.EntityDefinition.ReferencesEntryR\n" + |
|
3336
|
|
|
"references\x1aY\n" + |
|
3337
|
|
|
"\x0eRelationsEntry\x12\x10\n" + |
|
3338
|
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x121\n" + |
|
3339
|
|
|
"\x05value\x18\x02 \x01(\v2\x1b.base.v1.RelationDefinitionR\x05value:\x028\x01\x1a]\n" + |
|
3340
|
|
|
"\x10PermissionsEntry\x12\x10\n" + |
|
3341
|
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x123\n" + |
|
3342
|
|
|
"\x05value\x18\x02 \x01(\v2\x1d.base.v1.PermissionDefinitionR\x05value:\x028\x01\x1a[\n" + |
|
3343
|
|
|
"\x0fAttributesEntry\x12\x10\n" + |
|
3344
|
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x122\n" + |
|
3345
|
|
|
"\x05value\x18\x02 \x01(\v2\x1c.base.v1.AttributeDefinitionR\x05value:\x028\x01\x1ab\n" + |
|
3346
|
|
|
"\x0fReferencesEntry\x12\x10\n" + |
|
3347
|
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x129\n" + |
|
3348
|
|
|
"\x05value\x18\x02 \x01(\x0e2#.base.v1.EntityDefinition.ReferenceR\x05value:\x028\x01\"q\n" + |
|
3349
|
|
|
"\tReference\x12\x19\n" + |
|
3350
|
|
|
"\x15REFERENCE_UNSPECIFIED\x10\x00\x12\x16\n" + |
|
3351
|
|
|
"\x12REFERENCE_RELATION\x10\x01\x12\x18\n" + |
|
3352
|
|
|
"\x14REFERENCE_PERMISSION\x10\x02\x12\x17\n" + |
|
3353
|
|
|
"\x13REFERENCE_ATTRIBUTE\x10\x03\"\xa3\x02\n" + |
|
3354
|
|
|
"\x0eRuleDefinition\x12.\n" + |
|
3355
|
|
|
"\x04name\x18\x01 \x01(\tB\x1a\xfaB\x17r\x15(@2\x11^[a-zA-Z_]{1,64}$R\x04name\x12D\n" + |
|
3356
|
|
|
"\targuments\x18\x02 \x03(\v2&.base.v1.RuleDefinition.ArgumentsEntryR\targuments\x12E\n" + |
|
3357
|
|
|
"\n" + |
|
3358
|
|
|
"expression\x18\x03 \x01(\v2%.google.api.expr.v1alpha1.CheckedExprR\n" + |
|
3359
|
|
|
"expression\x1aT\n" + |
|
3360
|
|
|
"\x0eArgumentsEntry\x12\x10\n" + |
|
3361
|
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12,\n" + |
|
3362
|
|
|
"\x05value\x18\x02 \x01(\x0e2\x16.base.v1.AttributeTypeR\x05value:\x028\x01\"q\n" + |
|
3363
|
|
|
"\x13AttributeDefinition\x12.\n" + |
|
3364
|
|
|
"\x04name\x18\x01 \x01(\tB\x1a\xfaB\x17r\x15(@2\x11^[a-zA-Z_]{1,64}$R\x04name\x12*\n" + |
|
3365
|
|
|
"\x04type\x18\x02 \x01(\x0e2\x16.base.v1.AttributeTypeR\x04type\"\x91\x01\n" + |
|
3366
|
|
|
"\x12RelationDefinition\x12.\n" + |
|
3367
|
|
|
"\x04name\x18\x01 \x01(\tB\x1a\xfaB\x17r\x15(@2\x11^[a-zA-Z_]{1,64}$R\x04name\x12K\n" + |
|
3368
|
|
|
"\x13relation_references\x18\x02 \x03(\v2\x1a.base.v1.RelationReferenceR\x12relationReferences\"l\n" + |
|
3369
|
|
|
"\x14PermissionDefinition\x12.\n" + |
|
3370
|
|
|
"\x04name\x18\x01 \x01(\tB\x1a\xfaB\x17r\x15(@2\x11^[a-zA-Z_]{1,64}$R\x04name\x12$\n" + |
|
3371
|
|
|
"\x05child\x18\x02 \x01(\v2\x0e.base.v1.ChildR\x05child\"~\n" + |
|
3372
|
|
|
"\x11RelationReference\x12.\n" + |
|
3373
|
|
|
"\x04type\x18\x01 \x01(\tB\x1a\xfaB\x17r\x15(@2\x11^[a-zA-Z_]{1,64}$R\x04type\x129\n" + |
|
3374
|
|
|
"\brelation\x18\x02 \x01(\tB\x1d\xfaB\x1ar\x18(@2\x11^[a-zA-Z_]{1,64}$\xd0\x01\x01R\brelation\"l\n" + |
|
3375
|
|
|
"\bEntrance\x12.\n" + |
|
3376
|
|
|
"\x04type\x18\x01 \x01(\tB\x1a\xfaB\x17r\x15(@2\x11^[a-zA-Z_]{1,64}$R\x04type\x120\n" + |
|
3377
|
|
|
"\x05value\x18\x02 \x01(\tB\x1a\xfaB\x17r\x15(@2\x11^[a-zA-Z_]{1,64}$R\x05value\"_\n" + |
|
3378
|
|
|
"\bArgument\x12K\n" + |
|
3379
|
|
|
"\x12computed_attribute\x18\x01 \x01(\v2\x1a.base.v1.ComputedAttributeH\x00R\x11computedAttributeB\x06\n" + |
|
3380
|
|
|
"\x04type\"T\n" + |
|
3381
|
|
|
"\x04Call\x12\x1b\n" + |
|
3382
|
|
|
"\trule_name\x18\x01 \x01(\tR\bruleName\x12/\n" + |
|
3383
|
|
|
"\targuments\x18\x02 \x03(\v2\x11.base.v1.ArgumentR\targuments\"C\n" + |
|
3384
|
|
|
"\x11ComputedAttribute\x12.\n" + |
|
3385
|
|
|
"\x04name\x18\x01 \x01(\tB\x1a\xfaB\x17r\x15(@2\x11^[a-zA-Z_]{1,64}$R\x04name\"I\n" + |
|
3386
|
|
|
"\x0fComputedUserSet\x126\n" + |
|
3387
|
|
|
"\brelation\x18\x01 \x01(\tB\x1a\xfaB\x17r\x15(@2\x11^[a-zA-Z_]{1,64}$R\brelation\"u\n" + |
|
3388
|
|
|
"\x0eTupleToUserSet\x12-\n" + |
|
3389
|
|
|
"\btupleSet\x18\x01 \x01(\v2\x11.base.v1.TupleSetR\btupleSet\x124\n" + |
|
3390
|
|
|
"\bcomputed\x18\x02 \x01(\v2\x18.base.v1.ComputedUserSetR\bcomputed\"B\n" + |
|
3391
|
|
|
"\bTupleSet\x126\n" + |
|
3392
|
|
|
"\brelation\x18\x01 \x01(\tB\x1a\xfaB\x17r\x15(@2\x11^[a-zA-Z_]{1,64}$R\brelation\"\xa8\x01\n" + |
|
3393
|
|
|
"\x05Tuple\x121\n" + |
|
3394
|
|
|
"\x06entity\x18\x01 \x01(\v2\x0f.base.v1.EntityB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x06entity\x126\n" + |
|
3395
|
|
|
"\brelation\x18\x02 \x01(\tB\x1a\xfaB\x17r\x15(@2\x11^[a-zA-Z_]{1,64}$R\brelation\x124\n" + |
|
3396
|
|
|
"\asubject\x18\x03 \x01(\v2\x10.base.v1.SubjectB\b\xfaB\x05\x8a\x01\x02\x10\x01R\asubject\"\x88\x01\n" + |
|
3397
|
|
|
"\tAttribute\x121\n" + |
|
3398
|
|
|
"\x06entity\x18\x01 \x01(\v2\x0f.base.v1.EntityB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x06entity\x12\x1c\n" + |
|
3399
|
|
|
"\tattribute\x18\x02 \x01(\tR\tattribute\x12*\n" + |
|
3400
|
|
|
"\x05value\x18\x03 \x01(\v2\x14.google.protobuf.AnyR\x05value\"0\n" + |
|
3401
|
|
|
"\x06Tuples\x12&\n" + |
|
3402
|
|
|
"\x06tuples\x18\x01 \x03(\v2\x0e.base.v1.TupleR\x06tuples\"@\n" + |
|
3403
|
|
|
"\n" + |
|
3404
|
|
|
"Attributes\x122\n" + |
|
3405
|
|
|
"\n" + |
|
3406
|
|
|
"attributes\x18\x01 \x03(\v2\x12.base.v1.AttributeR\n" + |
|
3407
|
|
|
"attributes\"u\n" + |
|
3408
|
|
|
"\x06Entity\x12.\n" + |
|
3409
|
|
|
"\x04type\x18\x01 \x01(\tB\x1a\xfaB\x17r\x15(@2\x11^[a-zA-Z_]{1,64}$R\x04type\x12;\n" + |
|
3410
|
|
|
"\x02id\x18\x02 \x01(\tB+\xfaB(r&(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$R\x02id\"~\n" + |
|
3411
|
|
|
"\x11EntityAndRelation\x121\n" + |
|
3412
|
|
|
"\x06entity\x18\x01 \x01(\v2\x0f.base.v1.EntityB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x06entity\x126\n" + |
|
3413
|
|
|
"\brelation\x18\x02 \x01(\tB\x1a\xfaB\x17r\x15(@2\x11^[a-zA-Z_]{1,64}$R\brelation\"\xb1\x01\n" + |
|
3414
|
|
|
"\aSubject\x12.\n" + |
|
3415
|
|
|
"\x04type\x18\x01 \x01(\tB\x1a\xfaB\x17r\x15(@2\x11^[a-zA-Z_]{1,64}$R\x04type\x12;\n" + |
|
3416
|
|
|
"\x02id\x18\x02 \x01(\tB+\xfaB(r&(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$R\x02id\x129\n" + |
|
3417
|
|
|
"\brelation\x18\x03 \x01(\tB\x1d\xfaB\x1ar\x18(@2\x11^[a-zA-Z_]{1,64}$\xd0\x01\x01R\brelation\"`\n" + |
|
3418
|
|
|
"\x0fAttributeFilter\x12-\n" + |
|
3419
|
|
|
"\x06entity\x18\x01 \x01(\v2\x15.base.v1.EntityFilterR\x06entity\x12\x1e\n" + |
|
3420
|
|
|
"\n" + |
|
3421
|
|
|
"attributes\x18\x02 \x03(\tR\n" + |
|
3422
|
|
|
"attributes\"\xa9\x01\n" + |
|
3423
|
|
|
"\vTupleFilter\x12-\n" + |
|
3424
|
|
|
"\x06entity\x18\x01 \x01(\v2\x15.base.v1.EntityFilterR\x06entity\x129\n" + |
|
3425
|
|
|
"\brelation\x18\x02 \x01(\tB\x1d\xfaB\x1ar\x18(@2\x11^[a-zA-Z_]{1,64}$\xd0\x01\x01R\brelation\x120\n" + |
|
3426
|
|
|
"\asubject\x18\x03 \x01(\v2\x16.base.v1.SubjectFilterR\asubject\"4\n" + |
|
3427
|
|
|
"\fEntityFilter\x12\x12\n" + |
|
3428
|
|
|
"\x04type\x18\x01 \x01(\tR\x04type\x12\x10\n" + |
|
3429
|
|
|
"\x03ids\x18\x02 \x03(\tR\x03ids\"p\n" + |
|
3430
|
|
|
"\rSubjectFilter\x12\x12\n" + |
|
3431
|
|
|
"\x04type\x18\x01 \x01(\tR\x04type\x12\x10\n" + |
|
3432
|
|
|
"\x03ids\x18\x02 \x03(\tR\x03ids\x129\n" + |
|
3433
|
|
|
"\brelation\x18\x03 \x01(\tB\x1d\xfaB\x1ar\x18(@2\x11^[a-zA-Z_]{1,64}$\xd0\x01\x01R\brelation\"\xf0\x01\n" + |
|
3434
|
|
|
"\x0eExpandTreeNode\x12?\n" + |
|
3435
|
|
|
"\toperation\x18\x01 \x01(\x0e2!.base.v1.ExpandTreeNode.OperationR\toperation\x12+\n" + |
|
3436
|
|
|
"\bchildren\x18\x02 \x03(\v2\x0f.base.v1.ExpandR\bchildren\"p\n" + |
|
3437
|
|
|
"\tOperation\x12\x19\n" + |
|
3438
|
|
|
"\x15OPERATION_UNSPECIFIED\x10\x00\x12\x13\n" + |
|
3439
|
|
|
"\x0fOPERATION_UNION\x10\x01\x12\x1a\n" + |
|
3440
|
|
|
"\x16OPERATION_INTERSECTION\x10\x02\x12\x17\n" + |
|
3441
|
|
|
"\x13OPERATION_EXCLUSION\x10\x03\"\xe8\x01\n" + |
|
3442
|
|
|
"\x06Expand\x12'\n" + |
|
3443
|
|
|
"\x06entity\x18\x01 \x01(\v2\x0f.base.v1.EntityR\x06entity\x12\x1e\n" + |
|
3444
|
|
|
"\n" + |
|
3445
|
|
|
"permission\x18\x02 \x01(\tR\n" + |
|
3446
|
|
|
"permission\x12/\n" + |
|
3447
|
|
|
"\targuments\x18\x03 \x03(\v2\x11.base.v1.ArgumentR\targuments\x121\n" + |
|
3448
|
|
|
"\x06expand\x18\x04 \x01(\v2\x17.base.v1.ExpandTreeNodeH\x00R\x06expand\x12)\n" + |
|
3449
|
|
|
"\x04leaf\x18\x05 \x01(\v2\x13.base.v1.ExpandLeafH\x00R\x04leafB\x06\n" + |
|
3450
|
|
|
"\x04node\"\xa3\x01\n" + |
|
3451
|
|
|
"\n" + |
|
3452
|
|
|
"ExpandLeaf\x12/\n" + |
|
3453
|
|
|
"\bsubjects\x18\x01 \x01(\v2\x11.base.v1.SubjectsH\x00R\bsubjects\x12)\n" + |
|
3454
|
|
|
"\x06values\x18\x02 \x01(\v2\x0f.base.v1.ValuesH\x00R\x06values\x12,\n" + |
|
3455
|
|
|
"\x05value\x18\x03 \x01(\v2\x14.google.protobuf.AnyH\x00R\x05valueB\v\n" + |
|
3456
|
|
|
"\x04type\x12\x03\xf8B\x01\"\x8e\x01\n" + |
|
3457
|
|
|
"\x06Values\x123\n" + |
|
3458
|
|
|
"\x06values\x18\x01 \x03(\v2\x1b.base.v1.Values.ValuesEntryR\x06values\x1aO\n" + |
|
3459
|
|
|
"\vValuesEntry\x12\x10\n" + |
|
3460
|
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12*\n" + |
|
3461
|
|
|
"\x05value\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\x05value:\x028\x01\"8\n" + |
|
3462
|
|
|
"\bSubjects\x12,\n" + |
|
3463
|
|
|
"\bsubjects\x18\x01 \x03(\v2\x10.base.v1.SubjectR\bsubjects\"h\n" + |
|
3464
|
|
|
"\x06Tenant\x12\x0e\n" + |
|
3465
|
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + |
|
3466
|
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12:\n" + |
|
3467
|
|
|
"\n" + |
|
3468
|
|
|
"created_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\n" + |
|
3469
|
|
|
"created_at\"f\n" + |
|
3470
|
|
|
"\vDataChanges\x12\x1e\n" + |
|
3471
|
|
|
"\n" + |
|
3472
|
|
|
"snap_token\x18\x01 \x01(\tR\n" + |
|
3473
|
|
|
"snap_token\x127\n" + |
|
3474
|
|
|
"\fdata_changes\x18\x02 \x03(\v2\x13.base.v1.DataChangeR\fdata_changes\"\x86\x02\n" + |
|
3475
|
|
|
"\n" + |
|
3476
|
|
|
"DataChange\x12;\n" + |
|
3477
|
|
|
"\toperation\x18\x01 \x01(\x0e2\x1d.base.v1.DataChange.OperationR\toperation\x12&\n" + |
|
3478
|
|
|
"\x05tuple\x18\x02 \x01(\v2\x0e.base.v1.TupleH\x00R\x05tuple\x122\n" + |
|
3479
|
|
|
"\tattribute\x18\x03 \x01(\v2\x12.base.v1.AttributeH\x00R\tattribute\"R\n" + |
|
3480
|
|
|
"\tOperation\x12\x19\n" + |
|
3481
|
|
|
"\x15OPERATION_UNSPECIFIED\x10\x00\x12\x14\n" + |
|
3482
|
|
|
"\x10OPERATION_CREATE\x10\x01\x12\x14\n" + |
|
3483
|
|
|
"\x10OPERATION_DELETE\x10\x02B\v\n" + |
|
3484
|
|
|
"\x04type\x12\x03\xf8B\x01\"!\n" + |
|
3485
|
|
|
"\vStringValue\x12\x12\n" + |
|
3486
|
|
|
"\x04data\x18\x01 \x01(\tR\x04data\"\"\n" + |
|
3487
|
|
|
"\fIntegerValue\x12\x12\n" + |
|
3488
|
|
|
"\x04data\x18\x01 \x01(\x05R\x04data\"!\n" + |
|
3489
|
|
|
"\vDoubleValue\x12\x12\n" + |
|
3490
|
|
|
"\x04data\x18\x01 \x01(\x01R\x04data\"\"\n" + |
|
3491
|
|
|
"\fBooleanValue\x12\x12\n" + |
|
3492
|
|
|
"\x04data\x18\x01 \x01(\bR\x04data\"&\n" + |
|
3493
|
|
|
"\x10StringArrayValue\x12\x12\n" + |
|
3494
|
|
|
"\x04data\x18\x01 \x03(\tR\x04data\"'\n" + |
|
3495
|
|
|
"\x11IntegerArrayValue\x12\x12\n" + |
|
3496
|
|
|
"\x04data\x18\x01 \x03(\x05R\x04data\"&\n" + |
|
3497
|
|
|
"\x10DoubleArrayValue\x12\x12\n" + |
|
3498
|
|
|
"\x04data\x18\x01 \x03(\x01R\x04data\"'\n" + |
|
3499
|
|
|
"\x11BooleanArrayValue\x12\x12\n" + |
|
3500
|
|
|
"\x04data\x18\x01 \x03(\bR\x04data\"r\n" + |
|
3501
|
|
|
"\n" + |
|
3502
|
|
|
"DataBundle\x12\x12\n" + |
|
3503
|
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + |
|
3504
|
|
|
"\targuments\x18\x02 \x03(\tR\targuments\x122\n" + |
|
3505
|
|
|
"\n" + |
|
3506
|
|
|
"operations\x18\x03 \x03(\v2\x12.base.v1.OperationR\n" + |
|
3507
|
|
|
"operations\"\xcb\x01\n" + |
|
3508
|
|
|
"\tOperation\x120\n" + |
|
3509
|
|
|
"\x13relationships_write\x18\x01 \x03(\tR\x13relationships_write\x122\n" + |
|
3510
|
|
|
"\x14relationships_delete\x18\x02 \x03(\tR\x14relationships_delete\x12*\n" + |
|
3511
|
|
|
"\x10attributes_write\x18\x03 \x03(\tR\x10attributes_write\x12,\n" + |
|
3512
|
|
|
"\x11attributes_delete\x18\x04 \x03(\tR\x11attributes_delete\"P\n" + |
|
3513
|
|
|
"\bPartials\x12\x14\n" + |
|
3514
|
|
|
"\x05write\x18\x01 \x03(\tR\x05write\x12\x16\n" + |
|
3515
|
|
|
"\x06delete\x18\x02 \x03(\tR\x06delete\x12\x16\n" + |
|
3516
|
|
|
"\x06update\x18\x03 \x03(\tR\x06update*^\n" + |
|
3517
|
|
|
"\vCheckResult\x12\x1c\n" + |
|
3518
|
|
|
"\x18CHECK_RESULT_UNSPECIFIED\x10\x00\x12\x18\n" + |
|
3519
|
|
|
"\x14CHECK_RESULT_ALLOWED\x10\x01\x12\x17\n" + |
|
3520
|
|
|
"\x13CHECK_RESULT_DENIED\x10\x02*\xa3\x02\n" + |
|
3521
|
|
|
"\rAttributeType\x12\x1e\n" + |
|
3522
|
|
|
"\x1aATTRIBUTE_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n" + |
|
3523
|
|
|
"\x16ATTRIBUTE_TYPE_BOOLEAN\x10\x01\x12 \n" + |
|
3524
|
|
|
"\x1cATTRIBUTE_TYPE_BOOLEAN_ARRAY\x10\x02\x12\x19\n" + |
|
3525
|
|
|
"\x15ATTRIBUTE_TYPE_STRING\x10\x03\x12\x1f\n" + |
|
3526
|
|
|
"\x1bATTRIBUTE_TYPE_STRING_ARRAY\x10\x04\x12\x1a\n" + |
|
3527
|
|
|
"\x16ATTRIBUTE_TYPE_INTEGER\x10\x05\x12 \n" + |
|
3528
|
|
|
"\x1cATTRIBUTE_TYPE_INTEGER_ARRAY\x10\x06\x12\x19\n" + |
|
3529
|
|
|
"\x15ATTRIBUTE_TYPE_DOUBLE\x10\a\x12\x1f\n" + |
|
3530
|
|
|
"\x1bATTRIBUTE_TYPE_DOUBLE_ARRAY\x10\bB\x87\x01\n" + |
|
3531
|
|
|
"\vcom.base.v1B\tBaseProtoP\x01Z0github.com/Permify/permify/pkg/pb/base/v1;basev1\xa2\x02\x03BXX\xaa\x02\aBase.V1\xca\x02\aBase\\V1\xe2\x02\x13Base\\V1\\GPBMetadata\xea\x02\bBase::V1b\x06proto3" |
|
3532
|
|
|
|
|
3533
|
|
|
var ( |
|
3534
|
|
|
file_base_v1_base_proto_rawDescOnce sync.Once |
|
3535
|
|
|
file_base_v1_base_proto_rawDescData []byte |
|
3536
|
|
|
) |
|
3537
|
|
|
|
|
3538
|
|
|
func file_base_v1_base_proto_rawDescGZIP() []byte { |
|
3539
|
|
|
file_base_v1_base_proto_rawDescOnce.Do(func() { |
|
3540
|
|
|
file_base_v1_base_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_base_v1_base_proto_rawDesc), len(file_base_v1_base_proto_rawDesc))) |
|
3541
|
|
|
}) |
|
3542
|
|
|
return file_base_v1_base_proto_rawDescData |
|
3543
|
|
|
} |
|
3544
|
|
|
|
|
3545
|
|
|
var file_base_v1_base_proto_enumTypes = make([]protoimpl.EnumInfo, 7) |
|
3546
|
|
|
var file_base_v1_base_proto_msgTypes = make([]protoimpl.MessageInfo, 57) |
|
3547
|
|
|
var file_base_v1_base_proto_goTypes = []any{ |
|
3548
|
|
|
(CheckResult)(0), // 0: base.v1.CheckResult |
|
3549
|
|
|
(AttributeType)(0), // 1: base.v1.AttributeType |
|
3550
|
|
|
(Rewrite_Operation)(0), // 2: base.v1.Rewrite.Operation |
|
3551
|
|
|
(SchemaDefinition_Reference)(0), // 3: base.v1.SchemaDefinition.Reference |
|
3552
|
|
|
(EntityDefinition_Reference)(0), // 4: base.v1.EntityDefinition.Reference |
|
3553
|
|
|
(ExpandTreeNode_Operation)(0), // 5: base.v1.ExpandTreeNode.Operation |
|
3554
|
|
|
(DataChange_Operation)(0), // 6: base.v1.DataChange.Operation |
|
3555
|
|
|
(*Context)(nil), // 7: base.v1.Context |
|
3556
|
|
|
(*Child)(nil), // 8: base.v1.Child |
|
3557
|
|
|
(*Leaf)(nil), // 9: base.v1.Leaf |
|
3558
|
|
|
(*Rewrite)(nil), // 10: base.v1.Rewrite |
|
3559
|
|
|
(*SchemaDefinition)(nil), // 11: base.v1.SchemaDefinition |
|
3560
|
|
|
(*EntityDefinition)(nil), // 12: base.v1.EntityDefinition |
|
3561
|
|
|
(*RuleDefinition)(nil), // 13: base.v1.RuleDefinition |
|
3562
|
|
|
(*AttributeDefinition)(nil), // 14: base.v1.AttributeDefinition |
|
3563
|
|
|
(*RelationDefinition)(nil), // 15: base.v1.RelationDefinition |
|
3564
|
|
|
(*PermissionDefinition)(nil), // 16: base.v1.PermissionDefinition |
|
3565
|
|
|
(*RelationReference)(nil), // 17: base.v1.RelationReference |
|
3566
|
|
|
(*Entrance)(nil), // 18: base.v1.Entrance |
|
3567
|
|
|
(*Argument)(nil), // 19: base.v1.Argument |
|
3568
|
|
|
(*Call)(nil), // 20: base.v1.Call |
|
3569
|
|
|
(*ComputedAttribute)(nil), // 21: base.v1.ComputedAttribute |
|
3570
|
|
|
(*ComputedUserSet)(nil), // 22: base.v1.ComputedUserSet |
|
3571
|
|
|
(*TupleToUserSet)(nil), // 23: base.v1.TupleToUserSet |
|
3572
|
|
|
(*TupleSet)(nil), // 24: base.v1.TupleSet |
|
3573
|
|
|
(*Tuple)(nil), // 25: base.v1.Tuple |
|
3574
|
|
|
(*Attribute)(nil), // 26: base.v1.Attribute |
|
3575
|
|
|
(*Tuples)(nil), // 27: base.v1.Tuples |
|
3576
|
|
|
(*Attributes)(nil), // 28: base.v1.Attributes |
|
3577
|
|
|
(*Entity)(nil), // 29: base.v1.Entity |
|
3578
|
|
|
(*EntityAndRelation)(nil), // 30: base.v1.EntityAndRelation |
|
3579
|
|
|
(*Subject)(nil), // 31: base.v1.Subject |
|
3580
|
|
|
(*AttributeFilter)(nil), // 32: base.v1.AttributeFilter |
|
3581
|
|
|
(*TupleFilter)(nil), // 33: base.v1.TupleFilter |
|
3582
|
|
|
(*EntityFilter)(nil), // 34: base.v1.EntityFilter |
|
3583
|
|
|
(*SubjectFilter)(nil), // 35: base.v1.SubjectFilter |
|
3584
|
|
|
(*ExpandTreeNode)(nil), // 36: base.v1.ExpandTreeNode |
|
3585
|
|
|
(*Expand)(nil), // 37: base.v1.Expand |
|
3586
|
|
|
(*ExpandLeaf)(nil), // 38: base.v1.ExpandLeaf |
|
3587
|
|
|
(*Values)(nil), // 39: base.v1.Values |
|
3588
|
|
|
(*Subjects)(nil), // 40: base.v1.Subjects |
|
3589
|
|
|
(*Tenant)(nil), // 41: base.v1.Tenant |
|
3590
|
|
|
(*DataChanges)(nil), // 42: base.v1.DataChanges |
|
3591
|
|
|
(*DataChange)(nil), // 43: base.v1.DataChange |
|
3592
|
|
|
(*StringValue)(nil), // 44: base.v1.StringValue |
|
3593
|
|
|
(*IntegerValue)(nil), // 45: base.v1.IntegerValue |
|
3594
|
|
|
(*DoubleValue)(nil), // 46: base.v1.DoubleValue |
|
3595
|
|
|
(*BooleanValue)(nil), // 47: base.v1.BooleanValue |
|
3596
|
|
|
(*StringArrayValue)(nil), // 48: base.v1.StringArrayValue |
|
3597
|
|
|
(*IntegerArrayValue)(nil), // 49: base.v1.IntegerArrayValue |
|
3598
|
|
|
(*DoubleArrayValue)(nil), // 50: base.v1.DoubleArrayValue |
|
3599
|
|
|
(*BooleanArrayValue)(nil), // 51: base.v1.BooleanArrayValue |
|
3600
|
|
|
(*DataBundle)(nil), // 52: base.v1.DataBundle |
|
3601
|
|
|
(*Operation)(nil), // 53: base.v1.Operation |
|
3602
|
|
|
(*Partials)(nil), // 54: base.v1.Partials |
|
3603
|
|
|
nil, // 55: base.v1.SchemaDefinition.EntityDefinitionsEntry |
|
3604
|
|
|
nil, // 56: base.v1.SchemaDefinition.RuleDefinitionsEntry |
|
3605
|
|
|
nil, // 57: base.v1.SchemaDefinition.ReferencesEntry |
|
3606
|
|
|
nil, // 58: base.v1.EntityDefinition.RelationsEntry |
|
3607
|
|
|
nil, // 59: base.v1.EntityDefinition.PermissionsEntry |
|
3608
|
|
|
nil, // 60: base.v1.EntityDefinition.AttributesEntry |
|
3609
|
|
|
nil, // 61: base.v1.EntityDefinition.ReferencesEntry |
|
3610
|
|
|
nil, // 62: base.v1.RuleDefinition.ArgumentsEntry |
|
3611
|
|
|
nil, // 63: base.v1.Values.ValuesEntry |
|
3612
|
|
|
(*structpb.Struct)(nil), // 64: google.protobuf.Struct |
|
3613
|
|
|
(*v1alpha1.CheckedExpr)(nil), // 65: google.api.expr.v1alpha1.CheckedExpr |
|
3614
|
|
|
(*anypb.Any)(nil), // 66: google.protobuf.Any |
|
3615
|
|
|
(*timestamppb.Timestamp)(nil), // 67: google.protobuf.Timestamp |
|
3616
|
|
|
} |
|
3617
|
|
|
var file_base_v1_base_proto_depIdxs = []int32{ |
|
3618
|
|
|
25, // 0: base.v1.Context.tuples:type_name -> base.v1.Tuple |
|
3619
|
|
|
26, // 1: base.v1.Context.attributes:type_name -> base.v1.Attribute |
|
3620
|
|
|
64, // 2: base.v1.Context.data:type_name -> google.protobuf.Struct |
|
3621
|
|
|
9, // 3: base.v1.Child.leaf:type_name -> base.v1.Leaf |
|
3622
|
|
|
10, // 4: base.v1.Child.rewrite:type_name -> base.v1.Rewrite |
|
3623
|
|
|
22, // 5: base.v1.Leaf.computed_user_set:type_name -> base.v1.ComputedUserSet |
|
3624
|
|
|
23, // 6: base.v1.Leaf.tuple_to_user_set:type_name -> base.v1.TupleToUserSet |
|
3625
|
|
|
21, // 7: base.v1.Leaf.computed_attribute:type_name -> base.v1.ComputedAttribute |
|
3626
|
|
|
20, // 8: base.v1.Leaf.call:type_name -> base.v1.Call |
|
3627
|
|
|
2, // 9: base.v1.Rewrite.rewrite_operation:type_name -> base.v1.Rewrite.Operation |
|
3628
|
|
|
8, // 10: base.v1.Rewrite.children:type_name -> base.v1.Child |
|
3629
|
|
|
55, // 11: base.v1.SchemaDefinition.entity_definitions:type_name -> base.v1.SchemaDefinition.EntityDefinitionsEntry |
|
3630
|
|
|
56, // 12: base.v1.SchemaDefinition.rule_definitions:type_name -> base.v1.SchemaDefinition.RuleDefinitionsEntry |
|
3631
|
|
|
57, // 13: base.v1.SchemaDefinition.references:type_name -> base.v1.SchemaDefinition.ReferencesEntry |
|
3632
|
|
|
58, // 14: base.v1.EntityDefinition.relations:type_name -> base.v1.EntityDefinition.RelationsEntry |
|
3633
|
|
|
59, // 15: base.v1.EntityDefinition.permissions:type_name -> base.v1.EntityDefinition.PermissionsEntry |
|
3634
|
|
|
60, // 16: base.v1.EntityDefinition.attributes:type_name -> base.v1.EntityDefinition.AttributesEntry |
|
3635
|
|
|
61, // 17: base.v1.EntityDefinition.references:type_name -> base.v1.EntityDefinition.ReferencesEntry |
|
3636
|
|
|
62, // 18: base.v1.RuleDefinition.arguments:type_name -> base.v1.RuleDefinition.ArgumentsEntry |
|
3637
|
|
|
65, // 19: base.v1.RuleDefinition.expression:type_name -> google.api.expr.v1alpha1.CheckedExpr |
|
3638
|
|
|
1, // 20: base.v1.AttributeDefinition.type:type_name -> base.v1.AttributeType |
|
3639
|
|
|
17, // 21: base.v1.RelationDefinition.relation_references:type_name -> base.v1.RelationReference |
|
3640
|
|
|
8, // 22: base.v1.PermissionDefinition.child:type_name -> base.v1.Child |
|
3641
|
|
|
21, // 23: base.v1.Argument.computed_attribute:type_name -> base.v1.ComputedAttribute |
|
3642
|
|
|
19, // 24: base.v1.Call.arguments:type_name -> base.v1.Argument |
|
3643
|
|
|
24, // 25: base.v1.TupleToUserSet.tupleSet:type_name -> base.v1.TupleSet |
|
3644
|
|
|
22, // 26: base.v1.TupleToUserSet.computed:type_name -> base.v1.ComputedUserSet |
|
3645
|
|
|
29, // 27: base.v1.Tuple.entity:type_name -> base.v1.Entity |
|
3646
|
|
|
31, // 28: base.v1.Tuple.subject:type_name -> base.v1.Subject |
|
3647
|
|
|
29, // 29: base.v1.Attribute.entity:type_name -> base.v1.Entity |
|
3648
|
|
|
66, // 30: base.v1.Attribute.value:type_name -> google.protobuf.Any |
|
3649
|
|
|
25, // 31: base.v1.Tuples.tuples:type_name -> base.v1.Tuple |
|
3650
|
|
|
26, // 32: base.v1.Attributes.attributes:type_name -> base.v1.Attribute |
|
3651
|
|
|
29, // 33: base.v1.EntityAndRelation.entity:type_name -> base.v1.Entity |
|
3652
|
|
|
34, // 34: base.v1.AttributeFilter.entity:type_name -> base.v1.EntityFilter |
|
3653
|
|
|
34, // 35: base.v1.TupleFilter.entity:type_name -> base.v1.EntityFilter |
|
3654
|
|
|
35, // 36: base.v1.TupleFilter.subject:type_name -> base.v1.SubjectFilter |
|
3655
|
|
|
5, // 37: base.v1.ExpandTreeNode.operation:type_name -> base.v1.ExpandTreeNode.Operation |
|
3656
|
|
|
37, // 38: base.v1.ExpandTreeNode.children:type_name -> base.v1.Expand |
|
3657
|
|
|
29, // 39: base.v1.Expand.entity:type_name -> base.v1.Entity |
|
3658
|
|
|
19, // 40: base.v1.Expand.arguments:type_name -> base.v1.Argument |
|
3659
|
|
|
36, // 41: base.v1.Expand.expand:type_name -> base.v1.ExpandTreeNode |
|
3660
|
|
|
38, // 42: base.v1.Expand.leaf:type_name -> base.v1.ExpandLeaf |
|
3661
|
|
|
40, // 43: base.v1.ExpandLeaf.subjects:type_name -> base.v1.Subjects |
|
3662
|
|
|
39, // 44: base.v1.ExpandLeaf.values:type_name -> base.v1.Values |
|
3663
|
|
|
66, // 45: base.v1.ExpandLeaf.value:type_name -> google.protobuf.Any |
|
3664
|
|
|
63, // 46: base.v1.Values.values:type_name -> base.v1.Values.ValuesEntry |
|
3665
|
|
|
31, // 47: base.v1.Subjects.subjects:type_name -> base.v1.Subject |
|
3666
|
|
|
67, // 48: base.v1.Tenant.created_at:type_name -> google.protobuf.Timestamp |
|
3667
|
|
|
43, // 49: base.v1.DataChanges.data_changes:type_name -> base.v1.DataChange |
|
3668
|
|
|
6, // 50: base.v1.DataChange.operation:type_name -> base.v1.DataChange.Operation |
|
3669
|
|
|
25, // 51: base.v1.DataChange.tuple:type_name -> base.v1.Tuple |
|
3670
|
|
|
26, // 52: base.v1.DataChange.attribute:type_name -> base.v1.Attribute |
|
3671
|
|
|
53, // 53: base.v1.DataBundle.operations:type_name -> base.v1.Operation |
|
3672
|
|
|
12, // 54: base.v1.SchemaDefinition.EntityDefinitionsEntry.value:type_name -> base.v1.EntityDefinition |
|
3673
|
|
|
13, // 55: base.v1.SchemaDefinition.RuleDefinitionsEntry.value:type_name -> base.v1.RuleDefinition |
|
3674
|
|
|
3, // 56: base.v1.SchemaDefinition.ReferencesEntry.value:type_name -> base.v1.SchemaDefinition.Reference |
|
3675
|
|
|
15, // 57: base.v1.EntityDefinition.RelationsEntry.value:type_name -> base.v1.RelationDefinition |
|
3676
|
|
|
16, // 58: base.v1.EntityDefinition.PermissionsEntry.value:type_name -> base.v1.PermissionDefinition |
|
3677
|
|
|
14, // 59: base.v1.EntityDefinition.AttributesEntry.value:type_name -> base.v1.AttributeDefinition |
|
3678
|
|
|
4, // 60: base.v1.EntityDefinition.ReferencesEntry.value:type_name -> base.v1.EntityDefinition.Reference |
|
3679
|
|
|
1, // 61: base.v1.RuleDefinition.ArgumentsEntry.value:type_name -> base.v1.AttributeType |
|
3680
|
|
|
66, // 62: base.v1.Values.ValuesEntry.value:type_name -> google.protobuf.Any |
|
3681
|
|
|
63, // [63:63] is the sub-list for method output_type |
|
3682
|
|
|
63, // [63:63] is the sub-list for method input_type |
|
3683
|
|
|
63, // [63:63] is the sub-list for extension type_name |
|
3684
|
|
|
63, // [63:63] is the sub-list for extension extendee |
|
3685
|
|
|
0, // [0:63] is the sub-list for field type_name |
|
3686
|
|
|
} |
|
3687
|
|
|
|
|
3688
|
|
|
func init() { file_base_v1_base_proto_init() } |
|
3689
|
|
|
func file_base_v1_base_proto_init() { |
|
3690
|
|
|
if File_base_v1_base_proto != nil { |
|
3691
|
|
|
return |
|
3692
|
|
|
} |
|
3693
|
|
|
file_base_v1_base_proto_msgTypes[1].OneofWrappers = []any{ |
|
3694
|
|
|
(*Child_Leaf)(nil), |
|
3695
|
|
|
(*Child_Rewrite)(nil), |
|
3696
|
|
|
} |
|
3697
|
|
|
file_base_v1_base_proto_msgTypes[2].OneofWrappers = []any{ |
|
3698
|
|
|
(*Leaf_ComputedUserSet)(nil), |
|
3699
|
|
|
(*Leaf_TupleToUserSet)(nil), |
|
3700
|
|
|
(*Leaf_ComputedAttribute)(nil), |
|
3701
|
|
|
(*Leaf_Call)(nil), |
|
3702
|
|
|
} |
|
3703
|
|
|
file_base_v1_base_proto_msgTypes[12].OneofWrappers = []any{ |
|
3704
|
|
|
(*Argument_ComputedAttribute)(nil), |
|
3705
|
|
|
} |
|
3706
|
|
|
file_base_v1_base_proto_msgTypes[30].OneofWrappers = []any{ |
|
3707
|
|
|
(*Expand_Expand)(nil), |
|
3708
|
|
|
(*Expand_Leaf)(nil), |
|
3709
|
|
|
} |
|
3710
|
|
|
file_base_v1_base_proto_msgTypes[31].OneofWrappers = []any{ |
|
3711
|
|
|
(*ExpandLeaf_Subjects)(nil), |
|
3712
|
|
|
(*ExpandLeaf_Values)(nil), |
|
3713
|
|
|
(*ExpandLeaf_Value)(nil), |
|
3714
|
|
|
} |
|
3715
|
|
|
file_base_v1_base_proto_msgTypes[36].OneofWrappers = []any{ |
|
3716
|
|
|
(*DataChange_Tuple)(nil), |
|
3717
|
|
|
(*DataChange_Attribute)(nil), |
|
3718
|
|
|
} |
|
3719
|
|
|
type x struct{} |
|
3720
|
|
|
out := protoimpl.TypeBuilder{ |
|
3721
|
|
|
File: protoimpl.DescBuilder{ |
|
3722
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
|
3723
|
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_base_v1_base_proto_rawDesc), len(file_base_v1_base_proto_rawDesc)), |
|
3724
|
|
|
NumEnums: 7, |
|
3725
|
|
|
NumMessages: 57, |
|
3726
|
|
|
NumExtensions: 0, |
|
3727
|
|
|
NumServices: 0, |
|
3728
|
|
|
}, |
|
3729
|
|
|
GoTypes: file_base_v1_base_proto_goTypes, |
|
3730
|
|
|
DependencyIndexes: file_base_v1_base_proto_depIdxs, |
|
3731
|
|
|
EnumInfos: file_base_v1_base_proto_enumTypes, |
|
3732
|
|
|
MessageInfos: file_base_v1_base_proto_msgTypes, |
|
3733
|
|
|
}.Build() |
|
3734
|
|
|
File_base_v1_base_proto = out.File |
|
3735
|
|
|
file_base_v1_base_proto_goTypes = nil |
|
3736
|
|
|
file_base_v1_base_proto_depIdxs = nil |
|
3737
|
|
|
} |
|
3738
|
|
|
|