-
Notifications
You must be signed in to change notification settings - Fork 245
/
developer.pb.go
1803 lines (1608 loc) · 72.4 KB
/
developer.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc (unknown)
// source: developer/v1/developer.proto
package developerv1
import (
v12 "github.com/authzed/authzed-go/proto/authzed/api/v1"
v1 "github.com/authzed/spicedb/pkg/proto/core/v1"
v11 "github.com/authzed/spicedb/pkg/proto/dispatch/v1"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
structpb "google.golang.org/protobuf/types/known/structpb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type DeveloperError_Source int32
const (
DeveloperError_UNKNOWN_SOURCE DeveloperError_Source = 0
DeveloperError_SCHEMA DeveloperError_Source = 1
DeveloperError_RELATIONSHIP DeveloperError_Source = 2
DeveloperError_VALIDATION_YAML DeveloperError_Source = 3
DeveloperError_CHECK_WATCH DeveloperError_Source = 4
DeveloperError_ASSERTION DeveloperError_Source = 5
)
// Enum value maps for DeveloperError_Source.
var (
DeveloperError_Source_name = map[int32]string{
0: "UNKNOWN_SOURCE",
1: "SCHEMA",
2: "RELATIONSHIP",
3: "VALIDATION_YAML",
4: "CHECK_WATCH",
5: "ASSERTION",
}
DeveloperError_Source_value = map[string]int32{
"UNKNOWN_SOURCE": 0,
"SCHEMA": 1,
"RELATIONSHIP": 2,
"VALIDATION_YAML": 3,
"CHECK_WATCH": 4,
"ASSERTION": 5,
}
)
func (x DeveloperError_Source) Enum() *DeveloperError_Source {
p := new(DeveloperError_Source)
*p = x
return p
}
func (x DeveloperError_Source) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DeveloperError_Source) Descriptor() protoreflect.EnumDescriptor {
return file_developer_v1_developer_proto_enumTypes[0].Descriptor()
}
func (DeveloperError_Source) Type() protoreflect.EnumType {
return &file_developer_v1_developer_proto_enumTypes[0]
}
func (x DeveloperError_Source) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DeveloperError_Source.Descriptor instead.
func (DeveloperError_Source) EnumDescriptor() ([]byte, []int) {
return file_developer_v1_developer_proto_rawDescGZIP(), []int{6, 0}
}
type DeveloperError_ErrorKind int32
const (
DeveloperError_UNKNOWN_KIND DeveloperError_ErrorKind = 0
DeveloperError_PARSE_ERROR DeveloperError_ErrorKind = 1
DeveloperError_SCHEMA_ISSUE DeveloperError_ErrorKind = 2
DeveloperError_DUPLICATE_RELATIONSHIP DeveloperError_ErrorKind = 3
DeveloperError_MISSING_EXPECTED_RELATIONSHIP DeveloperError_ErrorKind = 4
DeveloperError_EXTRA_RELATIONSHIP_FOUND DeveloperError_ErrorKind = 5
DeveloperError_UNKNOWN_OBJECT_TYPE DeveloperError_ErrorKind = 6
DeveloperError_UNKNOWN_RELATION DeveloperError_ErrorKind = 7
DeveloperError_MAXIMUM_RECURSION DeveloperError_ErrorKind = 8
DeveloperError_ASSERTION_FAILED DeveloperError_ErrorKind = 9
DeveloperError_INVALID_SUBJECT_TYPE DeveloperError_ErrorKind = 10
)
// Enum value maps for DeveloperError_ErrorKind.
var (
DeveloperError_ErrorKind_name = map[int32]string{
0: "UNKNOWN_KIND",
1: "PARSE_ERROR",
2: "SCHEMA_ISSUE",
3: "DUPLICATE_RELATIONSHIP",
4: "MISSING_EXPECTED_RELATIONSHIP",
5: "EXTRA_RELATIONSHIP_FOUND",
6: "UNKNOWN_OBJECT_TYPE",
7: "UNKNOWN_RELATION",
8: "MAXIMUM_RECURSION",
9: "ASSERTION_FAILED",
10: "INVALID_SUBJECT_TYPE",
}
DeveloperError_ErrorKind_value = map[string]int32{
"UNKNOWN_KIND": 0,
"PARSE_ERROR": 1,
"SCHEMA_ISSUE": 2,
"DUPLICATE_RELATIONSHIP": 3,
"MISSING_EXPECTED_RELATIONSHIP": 4,
"EXTRA_RELATIONSHIP_FOUND": 5,
"UNKNOWN_OBJECT_TYPE": 6,
"UNKNOWN_RELATION": 7,
"MAXIMUM_RECURSION": 8,
"ASSERTION_FAILED": 9,
"INVALID_SUBJECT_TYPE": 10,
}
)
func (x DeveloperError_ErrorKind) Enum() *DeveloperError_ErrorKind {
p := new(DeveloperError_ErrorKind)
*p = x
return p
}
func (x DeveloperError_ErrorKind) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DeveloperError_ErrorKind) Descriptor() protoreflect.EnumDescriptor {
return file_developer_v1_developer_proto_enumTypes[1].Descriptor()
}
func (DeveloperError_ErrorKind) Type() protoreflect.EnumType {
return &file_developer_v1_developer_proto_enumTypes[1]
}
func (x DeveloperError_ErrorKind) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DeveloperError_ErrorKind.Descriptor instead.
func (DeveloperError_ErrorKind) EnumDescriptor() ([]byte, []int) {
return file_developer_v1_developer_proto_rawDescGZIP(), []int{6, 1}
}
type CheckOperationsResult_Membership int32
const (
CheckOperationsResult_UNKNOWN CheckOperationsResult_Membership = 0
CheckOperationsResult_NOT_MEMBER CheckOperationsResult_Membership = 1
CheckOperationsResult_MEMBER CheckOperationsResult_Membership = 2
CheckOperationsResult_CAVEATED_MEMBER CheckOperationsResult_Membership = 3
)
// Enum value maps for CheckOperationsResult_Membership.
var (
CheckOperationsResult_Membership_name = map[int32]string{
0: "UNKNOWN",
1: "NOT_MEMBER",
2: "MEMBER",
3: "CAVEATED_MEMBER",
}
CheckOperationsResult_Membership_value = map[string]int32{
"UNKNOWN": 0,
"NOT_MEMBER": 1,
"MEMBER": 2,
"CAVEATED_MEMBER": 3,
}
)
func (x CheckOperationsResult_Membership) Enum() *CheckOperationsResult_Membership {
p := new(CheckOperationsResult_Membership)
*p = x
return p
}
func (x CheckOperationsResult_Membership) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CheckOperationsResult_Membership) Descriptor() protoreflect.EnumDescriptor {
return file_developer_v1_developer_proto_enumTypes[2].Descriptor()
}
func (CheckOperationsResult_Membership) Type() protoreflect.EnumType {
return &file_developer_v1_developer_proto_enumTypes[2]
}
func (x CheckOperationsResult_Membership) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CheckOperationsResult_Membership.Descriptor instead.
func (CheckOperationsResult_Membership) EnumDescriptor() ([]byte, []int) {
return file_developer_v1_developer_proto_rawDescGZIP(), []int{9, 0}
}
// DeveloperRequest is a single request made to the developer platform, containing zero or more
// operations to run.
type DeveloperRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// context is the context for the developer request.
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
// operations are the operations to be run as part of the developer request.
Operations []*Operation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"`
}
func (x *DeveloperRequest) Reset() {
*x = DeveloperRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_developer_v1_developer_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeveloperRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeveloperRequest) ProtoMessage() {}
func (x *DeveloperRequest) ProtoReflect() protoreflect.Message {
mi := &file_developer_v1_developer_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeveloperRequest.ProtoReflect.Descriptor instead.
func (*DeveloperRequest) Descriptor() ([]byte, []int) {
return file_developer_v1_developer_proto_rawDescGZIP(), []int{0}
}
func (x *DeveloperRequest) GetContext() *RequestContext {
if x != nil {
return x.Context
}
return nil
}
func (x *DeveloperRequest) GetOperations() []*Operation {
if x != nil {
return x.Operations
}
return nil
}
// DeveloperResponse is the response to a single request made to the developer platform.
type DeveloperResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// internal_error is the internal error that occurred when attempting to run this operation, if any.
InternalError string `protobuf:"bytes,1,opt,name=internal_error,json=internalError,proto3" json:"internal_error,omitempty"`
// developer_errors are the developer error(s) returned in the operation, if any.
DeveloperErrors *DeveloperErrors `protobuf:"bytes,2,opt,name=developer_errors,json=developerErrors,proto3" json:"developer_errors,omitempty"`
// operations_results holds the results of the operations, if any and no errors.
OperationsResults *OperationsResults `protobuf:"bytes,3,opt,name=operations_results,json=operationsResults,proto3" json:"operations_results,omitempty"`
}
func (x *DeveloperResponse) Reset() {
*x = DeveloperResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_developer_v1_developer_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeveloperResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeveloperResponse) ProtoMessage() {}
func (x *DeveloperResponse) ProtoReflect() protoreflect.Message {
mi := &file_developer_v1_developer_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeveloperResponse.ProtoReflect.Descriptor instead.
func (*DeveloperResponse) Descriptor() ([]byte, []int) {
return file_developer_v1_developer_proto_rawDescGZIP(), []int{1}
}
func (x *DeveloperResponse) GetInternalError() string {
if x != nil {
return x.InternalError
}
return ""
}
func (x *DeveloperResponse) GetDeveloperErrors() *DeveloperErrors {
if x != nil {
return x.DeveloperErrors
}
return nil
}
func (x *DeveloperResponse) GetOperationsResults() *OperationsResults {
if x != nil {
return x.OperationsResults
}
return nil
}
// RequestContext is the context for setting up a development package environment for one or more
// operations.
type RequestContext struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// schema is the schema on which to run the developer request.
Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
// relationships are the test data relationships for the developer request.
Relationships []*v1.RelationTuple `protobuf:"bytes,2,rep,name=relationships,proto3" json:"relationships,omitempty"`
}
func (x *RequestContext) Reset() {
*x = RequestContext{}
if protoimpl.UnsafeEnabled {
mi := &file_developer_v1_developer_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RequestContext) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RequestContext) ProtoMessage() {}
func (x *RequestContext) ProtoReflect() protoreflect.Message {
mi := &file_developer_v1_developer_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RequestContext.ProtoReflect.Descriptor instead.
func (*RequestContext) Descriptor() ([]byte, []int) {
return file_developer_v1_developer_proto_rawDescGZIP(), []int{2}
}
func (x *RequestContext) GetSchema() string {
if x != nil {
return x.Schema
}
return ""
}
func (x *RequestContext) GetRelationships() []*v1.RelationTuple {
if x != nil {
return x.Relationships
}
return nil
}
// Operation is a single operation to be processed by the development package.
type Operation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
CheckParameters *CheckOperationParameters `protobuf:"bytes,1,opt,name=check_parameters,json=checkParameters,proto3" json:"check_parameters,omitempty"`
AssertionsParameters *RunAssertionsParameters `protobuf:"bytes,2,opt,name=assertions_parameters,json=assertionsParameters,proto3" json:"assertions_parameters,omitempty"`
ValidationParameters *RunValidationParameters `protobuf:"bytes,3,opt,name=validation_parameters,json=validationParameters,proto3" json:"validation_parameters,omitempty"`
FormatSchemaParameters *FormatSchemaParameters `protobuf:"bytes,4,opt,name=format_schema_parameters,json=formatSchemaParameters,proto3" json:"format_schema_parameters,omitempty"`
}
func (x *Operation) Reset() {
*x = Operation{}
if protoimpl.UnsafeEnabled {
mi := &file_developer_v1_developer_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Operation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Operation) ProtoMessage() {}
func (x *Operation) ProtoReflect() protoreflect.Message {
mi := &file_developer_v1_developer_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Operation.ProtoReflect.Descriptor instead.
func (*Operation) Descriptor() ([]byte, []int) {
return file_developer_v1_developer_proto_rawDescGZIP(), []int{3}
}
func (x *Operation) GetCheckParameters() *CheckOperationParameters {
if x != nil {
return x.CheckParameters
}
return nil
}
func (x *Operation) GetAssertionsParameters() *RunAssertionsParameters {
if x != nil {
return x.AssertionsParameters
}
return nil
}
func (x *Operation) GetValidationParameters() *RunValidationParameters {
if x != nil {
return x.ValidationParameters
}
return nil
}
func (x *Operation) GetFormatSchemaParameters() *FormatSchemaParameters {
if x != nil {
return x.FormatSchemaParameters
}
return nil
}
// OperationsResults holds the results for the operations, indexed by the operation.
type OperationsResults struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Results map[uint64]*OperationResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *OperationsResults) Reset() {
*x = OperationsResults{}
if protoimpl.UnsafeEnabled {
mi := &file_developer_v1_developer_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *OperationsResults) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OperationsResults) ProtoMessage() {}
func (x *OperationsResults) ProtoReflect() protoreflect.Message {
mi := &file_developer_v1_developer_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use OperationsResults.ProtoReflect.Descriptor instead.
func (*OperationsResults) Descriptor() ([]byte, []int) {
return file_developer_v1_developer_proto_rawDescGZIP(), []int{4}
}
func (x *OperationsResults) GetResults() map[uint64]*OperationResult {
if x != nil {
return x.Results
}
return nil
}
// OperationResult contains the result data given to the callback for an operation.
type OperationResult struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
CheckResult *CheckOperationsResult `protobuf:"bytes,1,opt,name=check_result,json=checkResult,proto3" json:"check_result,omitempty"`
AssertionsResult *RunAssertionsResult `protobuf:"bytes,2,opt,name=assertions_result,json=assertionsResult,proto3" json:"assertions_result,omitempty"`
ValidationResult *RunValidationResult `protobuf:"bytes,3,opt,name=validation_result,json=validationResult,proto3" json:"validation_result,omitempty"`
FormatSchemaResult *FormatSchemaResult `protobuf:"bytes,4,opt,name=format_schema_result,json=formatSchemaResult,proto3" json:"format_schema_result,omitempty"`
}
func (x *OperationResult) Reset() {
*x = OperationResult{}
if protoimpl.UnsafeEnabled {
mi := &file_developer_v1_developer_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *OperationResult) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OperationResult) ProtoMessage() {}
func (x *OperationResult) ProtoReflect() protoreflect.Message {
mi := &file_developer_v1_developer_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use OperationResult.ProtoReflect.Descriptor instead.
func (*OperationResult) Descriptor() ([]byte, []int) {
return file_developer_v1_developer_proto_rawDescGZIP(), []int{5}
}
func (x *OperationResult) GetCheckResult() *CheckOperationsResult {
if x != nil {
return x.CheckResult
}
return nil
}
func (x *OperationResult) GetAssertionsResult() *RunAssertionsResult {
if x != nil {
return x.AssertionsResult
}
return nil
}
func (x *OperationResult) GetValidationResult() *RunValidationResult {
if x != nil {
return x.ValidationResult
}
return nil
}
func (x *OperationResult) GetFormatSchemaResult() *FormatSchemaResult {
if x != nil {
return x.FormatSchemaResult
}
return nil
}
// DeveloperError represents a single error raised by the development package. Unlike an internal
// error, it represents an issue with the entered information by the calling developer.
type DeveloperError struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
Line uint32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
Column uint32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"`
Source DeveloperError_Source `protobuf:"varint,4,opt,name=source,proto3,enum=developer.v1.DeveloperError_Source" json:"source,omitempty"`
Kind DeveloperError_ErrorKind `protobuf:"varint,5,opt,name=kind,proto3,enum=developer.v1.DeveloperError_ErrorKind" json:"kind,omitempty"`
Path []string `protobuf:"bytes,6,rep,name=path,proto3" json:"path,omitempty"`
// context holds the context for the error. For schema issues, this will be the
// name of the object type. For relationship issues, the full relationship string.
Context string `protobuf:"bytes,7,opt,name=context,proto3" json:"context,omitempty"`
}
func (x *DeveloperError) Reset() {
*x = DeveloperError{}
if protoimpl.UnsafeEnabled {
mi := &file_developer_v1_developer_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeveloperError) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeveloperError) ProtoMessage() {}
func (x *DeveloperError) ProtoReflect() protoreflect.Message {
mi := &file_developer_v1_developer_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeveloperError.ProtoReflect.Descriptor instead.
func (*DeveloperError) Descriptor() ([]byte, []int) {
return file_developer_v1_developer_proto_rawDescGZIP(), []int{6}
}
func (x *DeveloperError) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *DeveloperError) GetLine() uint32 {
if x != nil {
return x.Line
}
return 0
}
func (x *DeveloperError) GetColumn() uint32 {
if x != nil {
return x.Column
}
return 0
}
func (x *DeveloperError) GetSource() DeveloperError_Source {
if x != nil {
return x.Source
}
return DeveloperError_UNKNOWN_SOURCE
}
func (x *DeveloperError) GetKind() DeveloperError_ErrorKind {
if x != nil {
return x.Kind
}
return DeveloperError_UNKNOWN_KIND
}
func (x *DeveloperError) GetPath() []string {
if x != nil {
return x.Path
}
return nil
}
func (x *DeveloperError) GetContext() string {
if x != nil {
return x.Context
}
return ""
}
// DeveloperErrors represents the developer error(s) found after the run has completed.
type DeveloperErrors struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// input_errors are those error(s) in the schema, relationships, or assertions inputted by the developer.
InputErrors []*DeveloperError `protobuf:"bytes,1,rep,name=input_errors,json=inputErrors,proto3" json:"input_errors,omitempty"`
}
func (x *DeveloperErrors) Reset() {
*x = DeveloperErrors{}
if protoimpl.UnsafeEnabled {
mi := &file_developer_v1_developer_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeveloperErrors) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeveloperErrors) ProtoMessage() {}
func (x *DeveloperErrors) ProtoReflect() protoreflect.Message {
mi := &file_developer_v1_developer_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeveloperErrors.ProtoReflect.Descriptor instead.
func (*DeveloperErrors) Descriptor() ([]byte, []int) {
return file_developer_v1_developer_proto_rawDescGZIP(), []int{7}
}
func (x *DeveloperErrors) GetInputErrors() []*DeveloperError {
if x != nil {
return x.InputErrors
}
return nil
}
// CheckOperationParameters are the parameters for a `check` operation.
type CheckOperationParameters struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Resource *v1.ObjectAndRelation `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
Subject *v1.ObjectAndRelation `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
// * caveat_context consists of any named values that are defined at write time for the caveat expression *
CaveatContext *structpb.Struct `protobuf:"bytes,3,opt,name=caveat_context,json=caveatContext,proto3" json:"caveat_context,omitempty"`
}
func (x *CheckOperationParameters) Reset() {
*x = CheckOperationParameters{}
if protoimpl.UnsafeEnabled {
mi := &file_developer_v1_developer_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CheckOperationParameters) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CheckOperationParameters) ProtoMessage() {}
func (x *CheckOperationParameters) ProtoReflect() protoreflect.Message {
mi := &file_developer_v1_developer_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CheckOperationParameters.ProtoReflect.Descriptor instead.
func (*CheckOperationParameters) Descriptor() ([]byte, []int) {
return file_developer_v1_developer_proto_rawDescGZIP(), []int{8}
}
func (x *CheckOperationParameters) GetResource() *v1.ObjectAndRelation {
if x != nil {
return x.Resource
}
return nil
}
func (x *CheckOperationParameters) GetSubject() *v1.ObjectAndRelation {
if x != nil {
return x.Subject
}
return nil
}
func (x *CheckOperationParameters) GetCaveatContext() *structpb.Struct {
if x != nil {
return x.CaveatContext
}
return nil
}
// CheckOperationsResult is the result for a `check` operation.
type CheckOperationsResult struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Membership CheckOperationsResult_Membership `protobuf:"varint,1,opt,name=membership,proto3,enum=developer.v1.CheckOperationsResult_Membership" json:"membership,omitempty"`
// check_error is the error raised by the check, if any.
CheckError *DeveloperError `protobuf:"bytes,2,opt,name=check_error,json=checkError,proto3" json:"check_error,omitempty"`
// debug_information is the debug information for the check.
DebugInformation *v11.DebugInformation `protobuf:"bytes,3,opt,name=debug_information,json=debugInformation,proto3" json:"debug_information,omitempty"`
// partial_caveat_info holds information a partial evaluation of a caveat.
PartialCaveatInfo *PartialCaveatInfo `protobuf:"bytes,4,opt,name=partial_caveat_info,json=partialCaveatInfo,proto3" json:"partial_caveat_info,omitempty"`
// resolved_debug_information is the V1 API debug information for the check.
ResolvedDebugInformation *v12.DebugInformation `protobuf:"bytes,5,opt,name=resolved_debug_information,json=resolvedDebugInformation,proto3" json:"resolved_debug_information,omitempty"`
}
func (x *CheckOperationsResult) Reset() {
*x = CheckOperationsResult{}
if protoimpl.UnsafeEnabled {
mi := &file_developer_v1_developer_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CheckOperationsResult) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CheckOperationsResult) ProtoMessage() {}
func (x *CheckOperationsResult) ProtoReflect() protoreflect.Message {
mi := &file_developer_v1_developer_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CheckOperationsResult.ProtoReflect.Descriptor instead.
func (*CheckOperationsResult) Descriptor() ([]byte, []int) {
return file_developer_v1_developer_proto_rawDescGZIP(), []int{9}
}
func (x *CheckOperationsResult) GetMembership() CheckOperationsResult_Membership {
if x != nil {
return x.Membership
}
return CheckOperationsResult_UNKNOWN
}
func (x *CheckOperationsResult) GetCheckError() *DeveloperError {
if x != nil {
return x.CheckError
}
return nil
}
func (x *CheckOperationsResult) GetDebugInformation() *v11.DebugInformation {
if x != nil {
return x.DebugInformation
}
return nil
}
func (x *CheckOperationsResult) GetPartialCaveatInfo() *PartialCaveatInfo {
if x != nil {
return x.PartialCaveatInfo
}
return nil
}
func (x *CheckOperationsResult) GetResolvedDebugInformation() *v12.DebugInformation {
if x != nil {
return x.ResolvedDebugInformation
}
return nil
}
// PartialCaveatInfo carries information necessary for the client to take action
// in the event a response contains a partially evaluated caveat
type PartialCaveatInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// missing_required_context is a list of one or more fields that were missing and prevented caveats
// from being fully evaluated
MissingRequiredContext []string `protobuf:"bytes,1,rep,name=missing_required_context,json=missingRequiredContext,proto3" json:"missing_required_context,omitempty"`
}
func (x *PartialCaveatInfo) Reset() {
*x = PartialCaveatInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_developer_v1_developer_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PartialCaveatInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PartialCaveatInfo) ProtoMessage() {}
func (x *PartialCaveatInfo) ProtoReflect() protoreflect.Message {
mi := &file_developer_v1_developer_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PartialCaveatInfo.ProtoReflect.Descriptor instead.
func (*PartialCaveatInfo) Descriptor() ([]byte, []int) {
return file_developer_v1_developer_proto_rawDescGZIP(), []int{10}
}
func (x *PartialCaveatInfo) GetMissingRequiredContext() []string {
if x != nil {
return x.MissingRequiredContext
}
return nil
}
// RunAssertionsParameters are the parameters for a `runAssertions` operation.
type RunAssertionsParameters struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// assertions_yaml are the assertions, in YAML form, to be run.
AssertionsYaml string `protobuf:"bytes,1,opt,name=assertions_yaml,json=assertionsYaml,proto3" json:"assertions_yaml,omitempty"`
}
func (x *RunAssertionsParameters) Reset() {
*x = RunAssertionsParameters{}
if protoimpl.UnsafeEnabled {
mi := &file_developer_v1_developer_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RunAssertionsParameters) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RunAssertionsParameters) ProtoMessage() {}
func (x *RunAssertionsParameters) ProtoReflect() protoreflect.Message {
mi := &file_developer_v1_developer_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RunAssertionsParameters.ProtoReflect.Descriptor instead.
func (*RunAssertionsParameters) Descriptor() ([]byte, []int) {
return file_developer_v1_developer_proto_rawDescGZIP(), []int{11}
}
func (x *RunAssertionsParameters) GetAssertionsYaml() string {
if x != nil {
return x.AssertionsYaml
}
return ""
}
// RunAssertionsResult is the result for a `runAssertions` operation.
type RunAssertionsResult struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// input_error is an error in the given YAML.
InputError *DeveloperError `protobuf:"bytes,1,opt,name=input_error,json=inputError,proto3" json:"input_error,omitempty"`
// validation_errors are the validation errors which occurred, if any.
ValidationErrors []*DeveloperError `protobuf:"bytes,2,rep,name=validation_errors,json=validationErrors,proto3" json:"validation_errors,omitempty"`
}
func (x *RunAssertionsResult) Reset() {
*x = RunAssertionsResult{}
if protoimpl.UnsafeEnabled {
mi := &file_developer_v1_developer_proto_msgTypes[12]