summaryrefslogtreecommitdiff
path: root/vendor/github.com/authzed/spicedb/pkg/proto/developer
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-22 17:35:49 -0600
committermo khan <mo@mokhan.ca>2025-07-22 17:35:49 -0600
commit20ef0d92694465ac86b550df139e8366a0a2b4fa (patch)
tree3f14589e1ce6eb9306a3af31c3a1f9e1af5ed637 /vendor/github.com/authzed/spicedb/pkg/proto/developer
parent44e0d272c040cdc53a98b9f1dc58ae7da67752e6 (diff)
feat: connect to spicedb
Diffstat (limited to 'vendor/github.com/authzed/spicedb/pkg/proto/developer')
-rw-r--r--vendor/github.com/authzed/spicedb/pkg/proto/developer/v1/developer.pb.go2088
-rw-r--r--vendor/github.com/authzed/spicedb/pkg/proto/developer/v1/developer.pb.validate.go3052
-rw-r--r--vendor/github.com/authzed/spicedb/pkg/proto/developer/v1/developer_vtproto.pb.go5544
3 files changed, 10684 insertions, 0 deletions
diff --git a/vendor/github.com/authzed/spicedb/pkg/proto/developer/v1/developer.pb.go b/vendor/github.com/authzed/spicedb/pkg/proto/developer/v1/developer.pb.go
new file mode 100644
index 0000000..f553c60
--- /dev/null
+++ b/vendor/github.com/authzed/spicedb/pkg/proto/developer/v1/developer.pb.go
@@ -0,0 +1,2088 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.34.2
+// 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{7, 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{7, 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{10, 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"`
+ SchemaWarningsParameters *SchemaWarningsParameters `protobuf:"bytes,5,opt,name=schema_warnings_parameters,json=schemaWarningsParameters,proto3" json:"schema_warnings_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
+}
+
+func (x *Operation) GetSchemaWarningsParameters() *SchemaWarningsParameters {
+ if x != nil {
+ return x.SchemaWarningsParameters
+ }
+ 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"`
+ SchemaWarningsResult *SchemaWarningsResult `protobuf:"bytes,5,opt,name=schema_warnings_result,json=schemaWarningsResult,proto3" json:"schema_warnings_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
+}
+
+func (x *OperationResult) GetSchemaWarningsResult() *SchemaWarningsResult {
+ if x != nil {
+ return x.SchemaWarningsResult
+ }
+ return nil
+}
+
+// DeveloperWarning represents a single warning raised by the development package.
+type DeveloperWarning struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // message is the message for the developer warning.
+ Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
+ // line is the 1-indexed line for the developer warning.
+ Line uint32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
+ // column is the 1-indexed column on the line for the developer warning.
+ Column uint32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"`
+ // source_code is the source code for the developer warning, if any.
+ SourceCode string `protobuf:"bytes,4,opt,name=source_code,json=sourceCode,proto3" json:"source_code,omitempty"`
+}
+
+func (x *DeveloperWarning) Reset() {
+ *x = DeveloperWarning{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_developer_v1_developer_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *DeveloperWarning) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*DeveloperWarning) ProtoMessage() {}
+
+func (x *DeveloperWarning) 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 DeveloperWarning.ProtoReflect.Descriptor instead.
+func (*DeveloperWarning) Descriptor() ([]byte, []int) {
+ return file_developer_v1_developer_proto_rawDescGZIP(), []int{6}
+}
+
+func (x *DeveloperWarning) GetMessage() string {
+ if x != nil {
+ return x.Message
+ }
+ return ""
+}
+
+func (x *DeveloperWarning) GetLine() uint32 {
+ if x != nil {
+ return x.Line
+ }
+ return 0
+}
+
+func (x *DeveloperWarning) GetColumn() uint32 {
+ if x != nil {
+ return x.Column
+ }
+ return 0
+}
+
+func (x *DeveloperWarning) GetSourceCode() string {
+ if x != nil {
+ return x.SourceCode
+ }
+ return ""
+}
+
+// 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 is the 1-indexed line for the developer error.
+ Line uint32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
+ // column is the 1-indexed column on the line for the developer error.
+ Column uint32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"`
+ // source is the source location of the error.
+ 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"`
+ // debug_information is the debug information for the dispatched check, if this error was raised
+ // due to an assertion failure.
+ CheckDebugInformation *v11.DebugInformation `protobuf:"bytes,8,opt,name=check_debug_information,json=checkDebugInformation,proto3" json:"check_debug_information,omitempty"`
+ // resolved_debug_information is the V1 API debug information for the check, if this error was raised
+ // due to an assertion failure.
+ CheckResolvedDebugInformation *v12.DebugInformation `protobuf:"bytes,9,opt,name=check_resolved_debug_information,json=checkResolvedDebugInformation,proto3" json:"check_resolved_debug_information,omitempty"`
+}
+
+func (x *DeveloperError) Reset() {
+ *x = DeveloperError{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_developer_v1_developer_proto_msgTypes[7]
+ 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[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 DeveloperError.ProtoReflect.Descriptor instead.
+func (*DeveloperError) Descriptor() ([]byte, []int) {
+ return file_developer_v1_developer_proto_rawDescGZIP(), []int{7}
+}
+
+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 ""
+}
+
+func (x *DeveloperError) GetCheckDebugInformation() *v11.DebugInformation {
+ if x != nil {
+ return x.CheckDebugInformation
+ }
+ return nil
+}
+
+func (x *DeveloperError) GetCheckResolvedDebugInformation() *v12.DebugInformation {
+ if x != nil {
+ return x.CheckResolvedDebugInformation
+ }
+ return nil
+}
+
+// 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[8]
+ 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[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 DeveloperErrors.ProtoReflect.Descriptor instead.
+func (*DeveloperErrors) Descriptor() ([]byte, []int) {
+ return file_developer_v1_developer_proto_rawDescGZIP(), []int{8}
+}
+
+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[9]
+ 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[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 CheckOperationParameters.ProtoReflect.Descriptor instead.
+func (*CheckOperationParameters) Descriptor() ([]byte, []int) {
+ return file_developer_v1_developer_proto_rawDescGZIP(), []int{9}
+}
+
+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[10]
+ 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[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 CheckOperationsResult.ProtoReflect.Descriptor instead.
+func (*CheckOperationsResult) Descriptor() ([]byte, []int) {
+ return file_developer_v1_developer_proto_rawDescGZIP(), []int{10}
+}
+
+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[11]
+ 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[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 PartialCaveatInfo.ProtoReflect.Descriptor instead.
+func (*PartialCaveatInfo) Descriptor() ([]byte, []int) {
+ return file_developer_v1_developer_proto_rawDescGZIP(), []int{11}
+}
+
+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[12]
+ 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[12]
+ 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{12}
+}
+
+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[13]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *RunAssertionsResult) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*RunAssertionsResult) ProtoMessage() {}
+
+func (x *RunAssertionsResult) ProtoReflect() protoreflect.Message {
+ mi := &file_developer_v1_developer_proto_msgTypes[13]
+ 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 RunAssertionsResult.ProtoReflect.Descriptor instead.
+func (*RunAssertionsResult) Descriptor() ([]byte, []int) {
+ return file_developer_v1_developer_proto_rawDescGZIP(), []int{13}
+}
+
+func (x *RunAssertionsResult) GetInputError() *DeveloperError {
+ if x != nil {
+ return x.InputError
+ }
+ return nil
+}
+
+func (x *RunAssertionsResult) GetValidationErrors() []*DeveloperError {
+ if x != nil {
+ return x.ValidationErrors
+ }
+ return nil
+}
+
+// RunValidationParameters are the parameters for a `runValidation` operation.
+type RunValidationParameters struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // validation_yaml is the expected relations validation, in YAML form, to be run.
+ ValidationYaml string `protobuf:"bytes,1,opt,name=validation_yaml,json=validationYaml,proto3" json:"validation_yaml,omitempty"`
+}
+
+func (x *RunValidationParameters) Reset() {
+ *x = RunValidationParameters{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_developer_v1_developer_proto_msgTypes[14]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *RunValidationParameters) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*RunValidationParameters) ProtoMessage() {}
+
+func (x *RunValidationParameters) ProtoReflect() protoreflect.Message {
+ mi := &file_developer_v1_developer_proto_msgTypes[14]
+ 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 RunValidationParameters.ProtoReflect.Descriptor instead.
+func (*RunValidationParameters) Descriptor() ([]byte, []int) {
+ return file_developer_v1_developer_proto_rawDescGZIP(), []int{14}
+}
+
+func (x *RunValidationParameters) GetValidationYaml() string {
+ if x != nil {
+ return x.ValidationYaml
+ }
+ return ""
+}
+
+// RunValidationResult is the result for a `runValidation` operation.
+type RunValidationResult 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"`
+ // updated_validation_yaml contains the generated and updated validation YAML for the expected
+ // relations tab.
+ UpdatedValidationYaml string `protobuf:"bytes,2,opt,name=updated_validation_yaml,json=updatedValidationYaml,proto3" json:"updated_validation_yaml,omitempty"`
+ // validation_errors are the validation errors which occurred, if any.
+ ValidationErrors []*DeveloperError `protobuf:"bytes,3,rep,name=validation_errors,json=validationErrors,proto3" json:"validation_errors,omitempty"`
+}
+
+func (x *RunValidationResult) Reset() {
+ *x = RunValidationResult{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_developer_v1_developer_proto_msgTypes[15]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *RunValidationResult) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*RunValidationResult) ProtoMessage() {}
+
+func (x *RunValidationResult) ProtoReflect() protoreflect.Message {
+ mi := &file_developer_v1_developer_proto_msgTypes[15]
+ 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 RunValidationResult.ProtoReflect.Descriptor instead.
+func (*RunValidationResult) Descriptor() ([]byte, []int) {
+ return file_developer_v1_developer_proto_rawDescGZIP(), []int{15}
+}
+
+func (x *RunValidationResult) GetInputError() *DeveloperError {
+ if x != nil {
+ return x.InputError
+ }
+ return nil
+}
+
+func (x *RunValidationResult) GetUpdatedValidationYaml() string {
+ if x != nil {
+ return x.UpdatedValidationYaml
+ }
+ return ""
+}
+
+func (x *RunValidationResult) GetValidationErrors() []*DeveloperError {
+ if x != nil {
+ return x.ValidationErrors
+ }
+ return nil
+}
+
+// FormatSchemaParameters are the parameters for a `formatSchema` operation.
+type FormatSchemaParameters struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *FormatSchemaParameters) Reset() {
+ *x = FormatSchemaParameters{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_developer_v1_developer_proto_msgTypes[16]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *FormatSchemaParameters) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*FormatSchemaParameters) ProtoMessage() {}
+
+func (x *FormatSchemaParameters) ProtoReflect() protoreflect.Message {
+ mi := &file_developer_v1_developer_proto_msgTypes[16]
+ 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 FormatSchemaParameters.ProtoReflect.Descriptor instead.
+func (*FormatSchemaParameters) Descriptor() ([]byte, []int) {
+ return file_developer_v1_developer_proto_rawDescGZIP(), []int{16}
+}
+
+// FormatSchemaResult is the result of the `formatSchema` operation.
+type FormatSchemaResult struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ FormattedSchema string `protobuf:"bytes,1,opt,name=formatted_schema,json=formattedSchema,proto3" json:"formatted_schema,omitempty"`
+}
+
+func (x *FormatSchemaResult) Reset() {
+ *x = FormatSchemaResult{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_developer_v1_developer_proto_msgTypes[17]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *FormatSchemaResult) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*FormatSchemaResult) ProtoMessage() {}
+
+func (x *FormatSchemaResult) ProtoReflect() protoreflect.Message {
+ mi := &file_developer_v1_developer_proto_msgTypes[17]
+ 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 FormatSchemaResult.ProtoReflect.Descriptor instead.
+func (*FormatSchemaResult) Descriptor() ([]byte, []int) {
+ return file_developer_v1_developer_proto_rawDescGZIP(), []int{17}
+}
+
+func (x *FormatSchemaResult) GetFormattedSchema() string {
+ if x != nil {
+ return x.FormattedSchema
+ }
+ return ""
+}
+
+// SchemaWarningsParameters are the parameters for a `schemaWarnings` operation.
+type SchemaWarningsParameters struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *SchemaWarningsParameters) Reset() {
+ *x = SchemaWarningsParameters{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_developer_v1_developer_proto_msgTypes[18]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *SchemaWarningsParameters) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*SchemaWarningsParameters) ProtoMessage() {}
+
+func (x *SchemaWarningsParameters) ProtoReflect() protoreflect.Message {
+ mi := &file_developer_v1_developer_proto_msgTypes[18]
+ 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 SchemaWarningsParameters.ProtoReflect.Descriptor instead.
+func (*SchemaWarningsParameters) Descriptor() ([]byte, []int) {
+ return file_developer_v1_developer_proto_rawDescGZIP(), []int{18}
+}
+
+// SchemaWarningsResult is the result of the `schemaWarnings` operation.
+type SchemaWarningsResult struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Warnings []*DeveloperWarning `protobuf:"bytes,1,rep,name=warnings,proto3" json:"warnings,omitempty"`
+}
+
+func (x *SchemaWarningsResult) Reset() {
+ *x = SchemaWarningsResult{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_developer_v1_developer_proto_msgTypes[19]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *SchemaWarningsResult) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*SchemaWarningsResult) ProtoMessage() {}
+
+func (x *SchemaWarningsResult) ProtoReflect() protoreflect.Message {
+ mi := &file_developer_v1_developer_proto_msgTypes[19]
+ 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 SchemaWarningsResult.ProtoReflect.Descriptor instead.
+func (*SchemaWarningsResult) Descriptor() ([]byte, []int) {
+ return file_developer_v1_developer_proto_rawDescGZIP(), []int{19}
+}
+
+func (x *SchemaWarningsResult) GetWarnings() []*DeveloperWarning {
+ if x != nil {
+ return x.Warnings
+ }
+ return nil
+}
+
+var File_developer_v1_developer_proto protoreflect.FileDescriptor
+
+var file_developer_v1_developer_proto_rawDesc = []byte{
+ 0x0a, 0x1c, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x64,
+ 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c,
+ 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x1a, 0x61, 0x75,
+ 0x74, 0x68, 0x7a, 0x65, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x62,
+ 0x75, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76,
+ 0x31, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x64, 0x69,
+ 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74,
+ 0x63, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
+ 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65,
+ 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
+ 0x83, 0x01, 0x0a, 0x10, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65,
+ 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74,
+ 0x65, 0x78, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x37, 0x0a, 0x0a,
+ 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
+ 0x32, 0x17, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e,
+ 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xd4, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f,
+ 0x70, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x69,
+ 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x72, 0x72,
+ 0x6f, 0x72, 0x12, 0x48, 0x0a, 0x10, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x5f,
+ 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64,
+ 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x65,
+ 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x52, 0x0f, 0x64, 0x65, 0x76,
+ 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x4e, 0x0a, 0x12,
+ 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c,
+ 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c,
+ 0x6f, 0x70, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x52, 0x11, 0x6f, 0x70, 0x65, 0x72, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x66, 0x0a, 0x0e,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x16,
+ 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
+ 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x3c, 0x0a, 0x0d, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e,
+ 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x54, 0x75, 0x70, 0x6c, 0x65, 0x52, 0x0d, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
+ 0x68, 0x69, 0x70, 0x73, 0x22, 0xdc, 0x03, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x12, 0x51, 0x0a, 0x10, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x70, 0x61, 0x72, 0x61,
+ 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64,
+ 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63,
+ 0x6b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65,
+ 0x74, 0x65, 0x72, 0x73, 0x52, 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x61, 0x72, 0x61, 0x6d,
+ 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x5a, 0x0a, 0x15, 0x61, 0x73, 0x73, 0x65, 0x72, 0x74, 0x69,
+ 0x6f, 0x6e, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72,
+ 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x41, 0x73, 0x73, 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e,
+ 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x14, 0x61, 0x73, 0x73,
+ 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72,
+ 0x73, 0x12, 0x5a, 0x0a, 0x15, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
+ 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x25, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e,
+ 0x52, 0x75, 0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72,
+ 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x14, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x5e, 0x0a,
+ 0x18, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70,
+ 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x24, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x46,
+ 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d,
+ 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x16, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x53, 0x63, 0x68,
+ 0x65, 0x6d, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x64, 0x0a,
+ 0x1a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73,
+ 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e, 0x76, 0x31,
+ 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x50,
+ 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x18, 0x73, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74,
+ 0x65, 0x72, 0x73, 0x22, 0xb6, 0x01, 0x0a, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x46, 0x0a, 0x07, 0x72, 0x65, 0x73,
+ 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x64, 0x65, 0x76,
+ 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x75,
+ 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
+ 0x73, 0x1a, 0x59, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72,
+ 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03,
+ 0x6b, 0x65, 0x79, 0x12, 0x33, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e, 0x76,
+ 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c,
+ 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa7, 0x03, 0x0a,
+ 0x0f, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74,
+ 0x12, 0x46, 0x0a, 0x0c, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70,
+ 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4f, 0x70, 0x65, 0x72, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x0b, 0x63, 0x68, 0x65,
+ 0x63, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x4e, 0x0a, 0x11, 0x61, 0x73, 0x73, 0x65,
+ 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e,
+ 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x41, 0x73, 0x73, 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x73,
+ 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x10, 0x61, 0x73, 0x73, 0x65, 0x72, 0x74, 0x69, 0x6f,
+ 0x6e, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x4e, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69,
+ 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e,
+ 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x52, 0x0a, 0x14, 0x66, 0x6f, 0x72, 0x6d,
+ 0x61, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70,
+ 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x53, 0x63, 0x68, 0x65,
+ 0x6d, 0x61, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x12, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,
+ 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x58, 0x0a, 0x16,
+ 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x5f,
+ 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64,
+ 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65,
+ 0x6d, 0x61, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74,
+ 0x52, 0x14, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73,
+ 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x79, 0x0a, 0x10, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f,
+ 0x70, 0x65, 0x72, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65,
+ 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73,
+ 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x0d, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75,
+ 0x6d, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
+ 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18,
+ 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x64,
+ 0x65, 0x22, 0xc6, 0x06, 0x0a, 0x0e, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x45,
+ 0x72, 0x72, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12,
+ 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x6c, 0x69,
+ 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20, 0x01,
+ 0x28, 0x0d, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x3b, 0x0a, 0x06, 0x73, 0x6f,
+ 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x64, 0x65, 0x76,
+ 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f,
+ 0x70, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52,
+ 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18,
+ 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65,
+ 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x45, 0x72,
+ 0x72, 0x6f, 0x72, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b,
+ 0x69, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, 0x03, 0x28,
+ 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65,
+ 0x78, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78,
+ 0x74, 0x12, 0x55, 0x0a, 0x17, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x62, 0x75, 0x67,
+ 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x76, 0x31,
+ 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x52, 0x15, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x44, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, 0x66,
+ 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x69, 0x0a, 0x20, 0x63, 0x68, 0x65, 0x63,
+ 0x6b, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x5f, 0x64, 0x65, 0x62, 0x75, 0x67,
+ 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x65, 0x64, 0x2e, 0x61, 0x70, 0x69,
+ 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x6f, 0x6c,
+ 0x76, 0x65, 0x64, 0x44, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x22, 0x6f, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a,
+ 0x0e, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x10,
+ 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x10, 0x01, 0x12, 0x10, 0x0a,
+ 0x0c, 0x52, 0x45, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x48, 0x49, 0x50, 0x10, 0x02, 0x12,
+ 0x13, 0x0a, 0x0f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x59, 0x41,
+ 0x4d, 0x4c, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x5f, 0x57, 0x41,
+ 0x54, 0x43, 0x48, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x53, 0x45, 0x52, 0x54, 0x49,
+ 0x4f, 0x4e, 0x10, 0x05, 0x22, 0x93, 0x02, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4b, 0x69,
+ 0x6e, 0x64, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x4b, 0x49,
+ 0x4e, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f, 0x45, 0x52,
+ 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f,
+ 0x49, 0x53, 0x53, 0x55, 0x45, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x55, 0x50, 0x4c, 0x49,
+ 0x43, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x45, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x48, 0x49,
+ 0x50, 0x10, 0x03, 0x12, 0x21, 0x0a, 0x1d, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x45,
+ 0x58, 0x50, 0x45, 0x43, 0x54, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e,
+ 0x53, 0x48, 0x49, 0x50, 0x10, 0x04, 0x12, 0x1c, 0x0a, 0x18, 0x45, 0x58, 0x54, 0x52, 0x41, 0x5f,
+ 0x52, 0x45, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x48, 0x49, 0x50, 0x5f, 0x46, 0x4f, 0x55,
+ 0x4e, 0x44, 0x10, 0x05, 0x12, 0x17, 0x0a, 0x13, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f,
+ 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x06, 0x12, 0x14, 0x0a,
+ 0x10, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x52, 0x45, 0x4c, 0x41, 0x54, 0x49, 0x4f,
+ 0x4e, 0x10, 0x07, 0x12, 0x15, 0x0a, 0x11, 0x4d, 0x41, 0x58, 0x49, 0x4d, 0x55, 0x4d, 0x5f, 0x52,
+ 0x45, 0x43, 0x55, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x08, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x53,
+ 0x53, 0x45, 0x52, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x09,
+ 0x12, 0x18, 0x0a, 0x14, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x53, 0x55, 0x42, 0x4a,
+ 0x45, 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x0a, 0x22, 0x52, 0x0a, 0x0f, 0x44, 0x65,
+ 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x3f, 0x0a,
+ 0x0c, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20,
+ 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e,
+ 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f,
+ 0x72, 0x52, 0x0b, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x22, 0xd2,
+ 0x01, 0x0a, 0x18, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x36, 0x0a, 0x08, 0x72,
+ 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
+ 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x6e,
+ 0x64, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75,
+ 0x72, 0x63, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f,
+ 0x62, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x48, 0x0a, 0x0e, 0x63, 0x61, 0x76,
+ 0x65, 0x61, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a,
+ 0x01, 0x02, 0x10, 0x00, 0x52, 0x0d, 0x63, 0x61, 0x76, 0x65, 0x61, 0x74, 0x43, 0x6f, 0x6e, 0x74,
+ 0x65, 0x78, 0x74, 0x22, 0xef, 0x03, 0x0a, 0x15, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4f, 0x70, 0x65,
+ 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x4e, 0x0a,
+ 0x0a, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x0e, 0x32, 0x2e, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e, 0x76, 0x31,
+ 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
+ 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69,
+ 0x70, 0x52, 0x0a, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x3d, 0x0a,
+ 0x0b, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e, 0x76,
+ 0x31, 0x2e, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72,
+ 0x52, 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x4a, 0x0a, 0x11,
+ 0x64, 0x65, 0x62, 0x75, 0x67, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74,
+ 0x63, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x72,
+ 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x64, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, 0x66,
+ 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x13, 0x70, 0x61, 0x72, 0x74,
+ 0x69, 0x61, 0x6c, 0x5f, 0x63, 0x61, 0x76, 0x65, 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18,
+ 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65,
+ 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x43, 0x61, 0x76, 0x65,
+ 0x61, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x11, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x43,
+ 0x61, 0x76, 0x65, 0x61, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x5e, 0x0a, 0x1a, 0x72, 0x65, 0x73,
+ 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x5f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x5f, 0x69, 0x6e, 0x66, 0x6f,
+ 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e,
+ 0x61, 0x75, 0x74, 0x68, 0x7a, 0x65, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44,
+ 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
+ 0x18, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x44, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e,
+ 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4a, 0x0a, 0x0a, 0x4d, 0x65, 0x6d,
+ 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f,
+ 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x4f, 0x54, 0x5f, 0x4d, 0x45, 0x4d, 0x42,
+ 0x45, 0x52, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x02,
+ 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x41, 0x56, 0x45, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x4d, 0x45, 0x4d,
+ 0x42, 0x45, 0x52, 0x10, 0x03, 0x22, 0x57, 0x0a, 0x11, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c,
+ 0x43, 0x61, 0x76, 0x65, 0x61, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x42, 0x0a, 0x18, 0x6d, 0x69,
+ 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x63,
+ 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42,
+ 0x05, 0x92, 0x01, 0x02, 0x08, 0x01, 0x52, 0x16, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x52,
+ 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x22, 0x42,
+ 0x0a, 0x17, 0x52, 0x75, 0x6e, 0x41, 0x73, 0x73, 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x50,
+ 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x73, 0x73,
+ 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x59, 0x61,
+ 0x6d, 0x6c, 0x22, 0x9f, 0x01, 0x0a, 0x13, 0x52, 0x75, 0x6e, 0x41, 0x73, 0x73, 0x65, 0x72, 0x74,
+ 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x3d, 0x0a, 0x0b, 0x69, 0x6e,
+ 0x70, 0x75, 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x1c, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44,
+ 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x0a, 0x69,
+ 0x6e, 0x70, 0x75, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x49, 0x0a, 0x11, 0x76, 0x61, 0x6c,
+ 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x02,
+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72,
+ 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x45, 0x72, 0x72,
+ 0x6f, 0x72, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72,
+ 0x72, 0x6f, 0x72, 0x73, 0x22, 0x42, 0x0a, 0x17, 0x52, 0x75, 0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12,
+ 0x27, 0x0a, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x79, 0x61,
+ 0x6d, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x59, 0x61, 0x6d, 0x6c, 0x22, 0xd7, 0x01, 0x0a, 0x13, 0x52, 0x75, 0x6e,
+ 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74,
+ 0x12, 0x3d, 0x0a, 0x0b, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65,
+ 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x45, 0x72,
+ 0x72, 0x6f, 0x72, 0x52, 0x0a, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12,
+ 0x36, 0x0a, 0x17, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x15, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x59, 0x61, 0x6d, 0x6c, 0x12, 0x49, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03,
+ 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e, 0x76,
+ 0x31, 0x2e, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72,
+ 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f,
+ 0x72, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x53, 0x63, 0x68, 0x65,
+ 0x6d, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x22, 0x3f, 0x0a, 0x12,
+ 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x75,
+ 0x6c, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x74, 0x65, 0x64, 0x5f,
+ 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x66, 0x6f,
+ 0x72, 0x6d, 0x61, 0x74, 0x74, 0x65, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x1a, 0x0a,
+ 0x18, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x50,
+ 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x22, 0x52, 0x0a, 0x14, 0x53, 0x63, 0x68,
+ 0x65, 0x6d, 0x61, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c,
+ 0x74, 0x12, 0x3a, 0x0a, 0x08, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20,
+ 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e,
+ 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x57, 0x61, 0x72, 0x6e,
+ 0x69, 0x6e, 0x67, 0x52, 0x08, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x42, 0xb2, 0x01,
+ 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e,
+ 0x76, 0x31, 0x42, 0x0e, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x50, 0x72, 0x6f,
+ 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
+ 0x2f, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x65, 0x64, 0x2f, 0x73, 0x70, 0x69, 0x63, 0x65, 0x64, 0x62,
+ 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x64, 0x65, 0x76, 0x65, 0x6c,
+ 0x6f, 0x70, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65,
+ 0x72, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x44, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x44, 0x65, 0x76, 0x65,
+ 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x44, 0x65, 0x76, 0x65, 0x6c,
+ 0x6f, 0x70, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f,
+ 0x70, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0xea, 0x02, 0x0d, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x3a, 0x3a,
+ 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_developer_v1_developer_proto_rawDescOnce sync.Once
+ file_developer_v1_developer_proto_rawDescData = file_developer_v1_developer_proto_rawDesc
+)
+
+func file_developer_v1_developer_proto_rawDescGZIP() []byte {
+ file_developer_v1_developer_proto_rawDescOnce.Do(func() {
+ file_developer_v1_developer_proto_rawDescData = protoimpl.X.CompressGZIP(file_developer_v1_developer_proto_rawDescData)
+ })
+ return file_developer_v1_developer_proto_rawDescData
+}
+
+var file_developer_v1_developer_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
+var file_developer_v1_developer_proto_msgTypes = make([]protoimpl.MessageInfo, 21)
+var file_developer_v1_developer_proto_goTypes = []any{
+ (DeveloperError_Source)(0), // 0: developer.v1.DeveloperError.Source
+ (DeveloperError_ErrorKind)(0), // 1: developer.v1.DeveloperError.ErrorKind
+ (CheckOperationsResult_Membership)(0), // 2: developer.v1.CheckOperationsResult.Membership
+ (*DeveloperRequest)(nil), // 3: developer.v1.DeveloperRequest
+ (*DeveloperResponse)(nil), // 4: developer.v1.DeveloperResponse
+ (*RequestContext)(nil), // 5: developer.v1.RequestContext
+ (*Operation)(nil), // 6: developer.v1.Operation
+ (*OperationsResults)(nil), // 7: developer.v1.OperationsResults
+ (*OperationResult)(nil), // 8: developer.v1.OperationResult
+ (*DeveloperWarning)(nil), // 9: developer.v1.DeveloperWarning
+ (*DeveloperError)(nil), // 10: developer.v1.DeveloperError
+ (*DeveloperErrors)(nil), // 11: developer.v1.DeveloperErrors
+ (*CheckOperationParameters)(nil), // 12: developer.v1.CheckOperationParameters
+ (*CheckOperationsResult)(nil), // 13: developer.v1.CheckOperationsResult
+ (*PartialCaveatInfo)(nil), // 14: developer.v1.PartialCaveatInfo
+ (*RunAssertionsParameters)(nil), // 15: developer.v1.RunAssertionsParameters
+ (*RunAssertionsResult)(nil), // 16: developer.v1.RunAssertionsResult
+ (*RunValidationParameters)(nil), // 17: developer.v1.RunValidationParameters
+ (*RunValidationResult)(nil), // 18: developer.v1.RunValidationResult
+ (*FormatSchemaParameters)(nil), // 19: developer.v1.FormatSchemaParameters
+ (*FormatSchemaResult)(nil), // 20: developer.v1.FormatSchemaResult
+ (*SchemaWarningsParameters)(nil), // 21: developer.v1.SchemaWarningsParameters
+ (*SchemaWarningsResult)(nil), // 22: developer.v1.SchemaWarningsResult
+ nil, // 23: developer.v1.OperationsResults.ResultsEntry
+ (*v1.RelationTuple)(nil), // 24: core.v1.RelationTuple
+ (*v11.DebugInformation)(nil), // 25: dispatch.v1.DebugInformation
+ (*v12.DebugInformation)(nil), // 26: authzed.api.v1.DebugInformation
+ (*v1.ObjectAndRelation)(nil), // 27: core.v1.ObjectAndRelation
+ (*structpb.Struct)(nil), // 28: google.protobuf.Struct
+}
+var file_developer_v1_developer_proto_depIdxs = []int32{
+ 5, // 0: developer.v1.DeveloperRequest.context:type_name -> developer.v1.RequestContext
+ 6, // 1: developer.v1.DeveloperRequest.operations:type_name -> developer.v1.Operation
+ 11, // 2: developer.v1.DeveloperResponse.developer_errors:type_name -> developer.v1.DeveloperErrors
+ 7, // 3: developer.v1.DeveloperResponse.operations_results:type_name -> developer.v1.OperationsResults
+ 24, // 4: developer.v1.RequestContext.relationships:type_name -> core.v1.RelationTuple
+ 12, // 5: developer.v1.Operation.check_parameters:type_name -> developer.v1.CheckOperationParameters
+ 15, // 6: developer.v1.Operation.assertions_parameters:type_name -> developer.v1.RunAssertionsParameters
+ 17, // 7: developer.v1.Operation.validation_parameters:type_name -> developer.v1.RunValidationParameters
+ 19, // 8: developer.v1.Operation.format_schema_parameters:type_name -> developer.v1.FormatSchemaParameters
+ 21, // 9: developer.v1.Operation.schema_warnings_parameters:type_name -> developer.v1.SchemaWarningsParameters
+ 23, // 10: developer.v1.OperationsResults.results:type_name -> developer.v1.OperationsResults.ResultsEntry
+ 13, // 11: developer.v1.OperationResult.check_result:type_name -> developer.v1.CheckOperationsResult
+ 16, // 12: developer.v1.OperationResult.assertions_result:type_name -> developer.v1.RunAssertionsResult
+ 18, // 13: developer.v1.OperationResult.validation_result:type_name -> developer.v1.RunValidationResult
+ 20, // 14: developer.v1.OperationResult.format_schema_result:type_name -> developer.v1.FormatSchemaResult
+ 22, // 15: developer.v1.OperationResult.schema_warnings_result:type_name -> developer.v1.SchemaWarningsResult
+ 0, // 16: developer.v1.DeveloperError.source:type_name -> developer.v1.DeveloperError.Source
+ 1, // 17: developer.v1.DeveloperError.kind:type_name -> developer.v1.DeveloperError.ErrorKind
+ 25, // 18: developer.v1.DeveloperError.check_debug_information:type_name -> dispatch.v1.DebugInformation
+ 26, // 19: developer.v1.DeveloperError.check_resolved_debug_information:type_name -> authzed.api.v1.DebugInformation
+ 10, // 20: developer.v1.DeveloperErrors.input_errors:type_name -> developer.v1.DeveloperError
+ 27, // 21: developer.v1.CheckOperationParameters.resource:type_name -> core.v1.ObjectAndRelation
+ 27, // 22: developer.v1.CheckOperationParameters.subject:type_name -> core.v1.ObjectAndRelation
+ 28, // 23: developer.v1.CheckOperationParameters.caveat_context:type_name -> google.protobuf.Struct
+ 2, // 24: developer.v1.CheckOperationsResult.membership:type_name -> developer.v1.CheckOperationsResult.Membership
+ 10, // 25: developer.v1.CheckOperationsResult.check_error:type_name -> developer.v1.DeveloperError
+ 25, // 26: developer.v1.CheckOperationsResult.debug_information:type_name -> dispatch.v1.DebugInformation
+ 14, // 27: developer.v1.CheckOperationsResult.partial_caveat_info:type_name -> developer.v1.PartialCaveatInfo
+ 26, // 28: developer.v1.CheckOperationsResult.resolved_debug_information:type_name -> authzed.api.v1.DebugInformation
+ 10, // 29: developer.v1.RunAssertionsResult.input_error:type_name -> developer.v1.DeveloperError
+ 10, // 30: developer.v1.RunAssertionsResult.validation_errors:type_name -> developer.v1.DeveloperError
+ 10, // 31: developer.v1.RunValidationResult.input_error:type_name -> developer.v1.DeveloperError
+ 10, // 32: developer.v1.RunValidationResult.validation_errors:type_name -> developer.v1.DeveloperError
+ 9, // 33: developer.v1.SchemaWarningsResult.warnings:type_name -> developer.v1.DeveloperWarning
+ 8, // 34: developer.v1.OperationsResults.ResultsEntry.value:type_name -> developer.v1.OperationResult
+ 35, // [35:35] is the sub-list for method output_type
+ 35, // [35:35] is the sub-list for method input_type
+ 35, // [35:35] is the sub-list for extension type_name
+ 35, // [35:35] is the sub-list for extension extendee
+ 0, // [0:35] is the sub-list for field type_name
+}
+
+func init() { file_developer_v1_developer_proto_init() }
+func file_developer_v1_developer_proto_init() {
+ if File_developer_v1_developer_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_developer_v1_developer_proto_msgTypes[0].Exporter = func(v any, i int) any {
+ switch v := v.(*DeveloperRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[1].Exporter = func(v any, i int) any {
+ switch v := v.(*DeveloperResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[2].Exporter = func(v any, i int) any {
+ switch v := v.(*RequestContext); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[3].Exporter = func(v any, i int) any {
+ switch v := v.(*Operation); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[4].Exporter = func(v any, i int) any {
+ switch v := v.(*OperationsResults); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[5].Exporter = func(v any, i int) any {
+ switch v := v.(*OperationResult); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[6].Exporter = func(v any, i int) any {
+ switch v := v.(*DeveloperWarning); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[7].Exporter = func(v any, i int) any {
+ switch v := v.(*DeveloperError); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[8].Exporter = func(v any, i int) any {
+ switch v := v.(*DeveloperErrors); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[9].Exporter = func(v any, i int) any {
+ switch v := v.(*CheckOperationParameters); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[10].Exporter = func(v any, i int) any {
+ switch v := v.(*CheckOperationsResult); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[11].Exporter = func(v any, i int) any {
+ switch v := v.(*PartialCaveatInfo); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[12].Exporter = func(v any, i int) any {
+ switch v := v.(*RunAssertionsParameters); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[13].Exporter = func(v any, i int) any {
+ switch v := v.(*RunAssertionsResult); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[14].Exporter = func(v any, i int) any {
+ switch v := v.(*RunValidationParameters); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[15].Exporter = func(v any, i int) any {
+ switch v := v.(*RunValidationResult); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[16].Exporter = func(v any, i int) any {
+ switch v := v.(*FormatSchemaParameters); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[17].Exporter = func(v any, i int) any {
+ switch v := v.(*FormatSchemaResult); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[18].Exporter = func(v any, i int) any {
+ switch v := v.(*SchemaWarningsParameters); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_developer_v1_developer_proto_msgTypes[19].Exporter = func(v any, i int) any {
+ switch v := v.(*SchemaWarningsResult); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_developer_v1_developer_proto_rawDesc,
+ NumEnums: 3,
+ NumMessages: 21,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_developer_v1_developer_proto_goTypes,
+ DependencyIndexes: file_developer_v1_developer_proto_depIdxs,
+ EnumInfos: file_developer_v1_developer_proto_enumTypes,
+ MessageInfos: file_developer_v1_developer_proto_msgTypes,
+ }.Build()
+ File_developer_v1_developer_proto = out.File
+ file_developer_v1_developer_proto_rawDesc = nil
+ file_developer_v1_developer_proto_goTypes = nil
+ file_developer_v1_developer_proto_depIdxs = nil
+}
diff --git a/vendor/github.com/authzed/spicedb/pkg/proto/developer/v1/developer.pb.validate.go b/vendor/github.com/authzed/spicedb/pkg/proto/developer/v1/developer.pb.validate.go
new file mode 100644
index 0000000..1767bf4
--- /dev/null
+++ b/vendor/github.com/authzed/spicedb/pkg/proto/developer/v1/developer.pb.validate.go
@@ -0,0 +1,3052 @@
+// Code generated by protoc-gen-validate. DO NOT EDIT.
+// source: developer/v1/developer.proto
+
+package developerv1
+
+import (
+ "bytes"
+ "errors"
+ "fmt"
+ "net"
+ "net/mail"
+ "net/url"
+ "regexp"
+ "sort"
+ "strings"
+ "time"
+ "unicode/utf8"
+
+ "google.golang.org/protobuf/types/known/anypb"
+)
+
+// ensure the imports are used
+var (
+ _ = bytes.MinRead
+ _ = errors.New("")
+ _ = fmt.Print
+ _ = utf8.UTFMax
+ _ = (*regexp.Regexp)(nil)
+ _ = (*strings.Reader)(nil)
+ _ = net.IPv4len
+ _ = time.Duration(0)
+ _ = (*url.URL)(nil)
+ _ = (*mail.Address)(nil)
+ _ = anypb.Any{}
+ _ = sort.Sort
+)
+
+// Validate checks the field values on DeveloperRequest with the rules defined
+// in the proto definition for this message. If any rules are violated, the
+// first error encountered is returned, or nil if there are no violations.
+func (m *DeveloperRequest) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on DeveloperRequest with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the result is a list of violation errors wrapped in
+// DeveloperRequestMultiError, or nil if none found.
+func (m *DeveloperRequest) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *DeveloperRequest) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ if all {
+ switch v := interface{}(m.GetContext()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, DeveloperRequestValidationError{
+ field: "Context",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, DeveloperRequestValidationError{
+ field: "Context",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetContext()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return DeveloperRequestValidationError{
+ field: "Context",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ for idx, item := range m.GetOperations() {
+ _, _ = idx, item
+
+ if all {
+ switch v := interface{}(item).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, DeveloperRequestValidationError{
+ field: fmt.Sprintf("Operations[%v]", idx),
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, DeveloperRequestValidationError{
+ field: fmt.Sprintf("Operations[%v]", idx),
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(item).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return DeveloperRequestValidationError{
+ field: fmt.Sprintf("Operations[%v]", idx),
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ }
+
+ if len(errors) > 0 {
+ return DeveloperRequestMultiError(errors)
+ }
+
+ return nil
+}
+
+// DeveloperRequestMultiError is an error wrapping multiple validation errors
+// returned by DeveloperRequest.ValidateAll() if the designated constraints
+// aren't met.
+type DeveloperRequestMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m DeveloperRequestMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m DeveloperRequestMultiError) AllErrors() []error { return m }
+
+// DeveloperRequestValidationError is the validation error returned by
+// DeveloperRequest.Validate if the designated constraints aren't met.
+type DeveloperRequestValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e DeveloperRequestValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e DeveloperRequestValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e DeveloperRequestValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e DeveloperRequestValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e DeveloperRequestValidationError) ErrorName() string { return "DeveloperRequestValidationError" }
+
+// Error satisfies the builtin error interface
+func (e DeveloperRequestValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sDeveloperRequest.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = DeveloperRequestValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = DeveloperRequestValidationError{}
+
+// Validate checks the field values on DeveloperResponse with the rules defined
+// in the proto definition for this message. If any rules are violated, the
+// first error encountered is returned, or nil if there are no violations.
+func (m *DeveloperResponse) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on DeveloperResponse with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the result is a list of violation errors wrapped in
+// DeveloperResponseMultiError, or nil if none found.
+func (m *DeveloperResponse) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *DeveloperResponse) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ // no validation rules for InternalError
+
+ if all {
+ switch v := interface{}(m.GetDeveloperErrors()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, DeveloperResponseValidationError{
+ field: "DeveloperErrors",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, DeveloperResponseValidationError{
+ field: "DeveloperErrors",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetDeveloperErrors()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return DeveloperResponseValidationError{
+ field: "DeveloperErrors",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if all {
+ switch v := interface{}(m.GetOperationsResults()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, DeveloperResponseValidationError{
+ field: "OperationsResults",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, DeveloperResponseValidationError{
+ field: "OperationsResults",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetOperationsResults()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return DeveloperResponseValidationError{
+ field: "OperationsResults",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if len(errors) > 0 {
+ return DeveloperResponseMultiError(errors)
+ }
+
+ return nil
+}
+
+// DeveloperResponseMultiError is an error wrapping multiple validation errors
+// returned by DeveloperResponse.ValidateAll() if the designated constraints
+// aren't met.
+type DeveloperResponseMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m DeveloperResponseMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m DeveloperResponseMultiError) AllErrors() []error { return m }
+
+// DeveloperResponseValidationError is the validation error returned by
+// DeveloperResponse.Validate if the designated constraints aren't met.
+type DeveloperResponseValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e DeveloperResponseValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e DeveloperResponseValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e DeveloperResponseValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e DeveloperResponseValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e DeveloperResponseValidationError) ErrorName() string {
+ return "DeveloperResponseValidationError"
+}
+
+// Error satisfies the builtin error interface
+func (e DeveloperResponseValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sDeveloperResponse.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = DeveloperResponseValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = DeveloperResponseValidationError{}
+
+// Validate checks the field values on RequestContext with the rules defined in
+// the proto definition for this message. If any rules are violated, the first
+// error encountered is returned, or nil if there are no violations.
+func (m *RequestContext) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on RequestContext with the rules defined
+// in the proto definition for this message. If any rules are violated, the
+// result is a list of violation errors wrapped in RequestContextMultiError,
+// or nil if none found.
+func (m *RequestContext) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *RequestContext) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ // no validation rules for Schema
+
+ for idx, item := range m.GetRelationships() {
+ _, _ = idx, item
+
+ if all {
+ switch v := interface{}(item).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, RequestContextValidationError{
+ field: fmt.Sprintf("Relationships[%v]", idx),
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, RequestContextValidationError{
+ field: fmt.Sprintf("Relationships[%v]", idx),
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(item).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return RequestContextValidationError{
+ field: fmt.Sprintf("Relationships[%v]", idx),
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ }
+
+ if len(errors) > 0 {
+ return RequestContextMultiError(errors)
+ }
+
+ return nil
+}
+
+// RequestContextMultiError is an error wrapping multiple validation errors
+// returned by RequestContext.ValidateAll() if the designated constraints
+// aren't met.
+type RequestContextMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m RequestContextMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m RequestContextMultiError) AllErrors() []error { return m }
+
+// RequestContextValidationError is the validation error returned by
+// RequestContext.Validate if the designated constraints aren't met.
+type RequestContextValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e RequestContextValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e RequestContextValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e RequestContextValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e RequestContextValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e RequestContextValidationError) ErrorName() string { return "RequestContextValidationError" }
+
+// Error satisfies the builtin error interface
+func (e RequestContextValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sRequestContext.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = RequestContextValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = RequestContextValidationError{}
+
+// Validate checks the field values on Operation with the rules defined in the
+// proto definition for this message. If any rules are violated, the first
+// error encountered is returned, or nil if there are no violations.
+func (m *Operation) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on Operation with the rules defined in
+// the proto definition for this message. If any rules are violated, the
+// result is a list of violation errors wrapped in OperationMultiError, or nil
+// if none found.
+func (m *Operation) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *Operation) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ if all {
+ switch v := interface{}(m.GetCheckParameters()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, OperationValidationError{
+ field: "CheckParameters",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, OperationValidationError{
+ field: "CheckParameters",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetCheckParameters()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return OperationValidationError{
+ field: "CheckParameters",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if all {
+ switch v := interface{}(m.GetAssertionsParameters()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, OperationValidationError{
+ field: "AssertionsParameters",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, OperationValidationError{
+ field: "AssertionsParameters",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetAssertionsParameters()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return OperationValidationError{
+ field: "AssertionsParameters",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if all {
+ switch v := interface{}(m.GetValidationParameters()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, OperationValidationError{
+ field: "ValidationParameters",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, OperationValidationError{
+ field: "ValidationParameters",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetValidationParameters()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return OperationValidationError{
+ field: "ValidationParameters",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if all {
+ switch v := interface{}(m.GetFormatSchemaParameters()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, OperationValidationError{
+ field: "FormatSchemaParameters",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, OperationValidationError{
+ field: "FormatSchemaParameters",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetFormatSchemaParameters()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return OperationValidationError{
+ field: "FormatSchemaParameters",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if all {
+ switch v := interface{}(m.GetSchemaWarningsParameters()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, OperationValidationError{
+ field: "SchemaWarningsParameters",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, OperationValidationError{
+ field: "SchemaWarningsParameters",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetSchemaWarningsParameters()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return OperationValidationError{
+ field: "SchemaWarningsParameters",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if len(errors) > 0 {
+ return OperationMultiError(errors)
+ }
+
+ return nil
+}
+
+// OperationMultiError is an error wrapping multiple validation errors returned
+// by Operation.ValidateAll() if the designated constraints aren't met.
+type OperationMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m OperationMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m OperationMultiError) AllErrors() []error { return m }
+
+// OperationValidationError is the validation error returned by
+// Operation.Validate if the designated constraints aren't met.
+type OperationValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e OperationValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e OperationValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e OperationValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e OperationValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e OperationValidationError) ErrorName() string { return "OperationValidationError" }
+
+// Error satisfies the builtin error interface
+func (e OperationValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sOperation.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = OperationValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = OperationValidationError{}
+
+// Validate checks the field values on OperationsResults with the rules defined
+// in the proto definition for this message. If any rules are violated, the
+// first error encountered is returned, or nil if there are no violations.
+func (m *OperationsResults) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on OperationsResults with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the result is a list of violation errors wrapped in
+// OperationsResultsMultiError, or nil if none found.
+func (m *OperationsResults) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *OperationsResults) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ {
+ sorted_keys := make([]uint64, len(m.GetResults()))
+ i := 0
+ for key := range m.GetResults() {
+ sorted_keys[i] = key
+ i++
+ }
+ sort.Slice(sorted_keys, func(i, j int) bool { return sorted_keys[i] < sorted_keys[j] })
+ for _, key := range sorted_keys {
+ val := m.GetResults()[key]
+ _ = val
+
+ // no validation rules for Results[key]
+
+ if all {
+ switch v := interface{}(val).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, OperationsResultsValidationError{
+ field: fmt.Sprintf("Results[%v]", key),
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, OperationsResultsValidationError{
+ field: fmt.Sprintf("Results[%v]", key),
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(val).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return OperationsResultsValidationError{
+ field: fmt.Sprintf("Results[%v]", key),
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ }
+ }
+
+ if len(errors) > 0 {
+ return OperationsResultsMultiError(errors)
+ }
+
+ return nil
+}
+
+// OperationsResultsMultiError is an error wrapping multiple validation errors
+// returned by OperationsResults.ValidateAll() if the designated constraints
+// aren't met.
+type OperationsResultsMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m OperationsResultsMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m OperationsResultsMultiError) AllErrors() []error { return m }
+
+// OperationsResultsValidationError is the validation error returned by
+// OperationsResults.Validate if the designated constraints aren't met.
+type OperationsResultsValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e OperationsResultsValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e OperationsResultsValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e OperationsResultsValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e OperationsResultsValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e OperationsResultsValidationError) ErrorName() string {
+ return "OperationsResultsValidationError"
+}
+
+// Error satisfies the builtin error interface
+func (e OperationsResultsValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sOperationsResults.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = OperationsResultsValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = OperationsResultsValidationError{}
+
+// Validate checks the field values on OperationResult with the rules defined
+// in the proto definition for this message. If any rules are violated, the
+// first error encountered is returned, or nil if there are no violations.
+func (m *OperationResult) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on OperationResult with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the result is a list of violation errors wrapped in
+// OperationResultMultiError, or nil if none found.
+func (m *OperationResult) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *OperationResult) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ if all {
+ switch v := interface{}(m.GetCheckResult()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, OperationResultValidationError{
+ field: "CheckResult",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, OperationResultValidationError{
+ field: "CheckResult",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetCheckResult()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return OperationResultValidationError{
+ field: "CheckResult",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if all {
+ switch v := interface{}(m.GetAssertionsResult()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, OperationResultValidationError{
+ field: "AssertionsResult",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, OperationResultValidationError{
+ field: "AssertionsResult",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetAssertionsResult()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return OperationResultValidationError{
+ field: "AssertionsResult",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if all {
+ switch v := interface{}(m.GetValidationResult()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, OperationResultValidationError{
+ field: "ValidationResult",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, OperationResultValidationError{
+ field: "ValidationResult",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetValidationResult()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return OperationResultValidationError{
+ field: "ValidationResult",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if all {
+ switch v := interface{}(m.GetFormatSchemaResult()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, OperationResultValidationError{
+ field: "FormatSchemaResult",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, OperationResultValidationError{
+ field: "FormatSchemaResult",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetFormatSchemaResult()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return OperationResultValidationError{
+ field: "FormatSchemaResult",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if all {
+ switch v := interface{}(m.GetSchemaWarningsResult()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, OperationResultValidationError{
+ field: "SchemaWarningsResult",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, OperationResultValidationError{
+ field: "SchemaWarningsResult",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetSchemaWarningsResult()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return OperationResultValidationError{
+ field: "SchemaWarningsResult",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if len(errors) > 0 {
+ return OperationResultMultiError(errors)
+ }
+
+ return nil
+}
+
+// OperationResultMultiError is an error wrapping multiple validation errors
+// returned by OperationResult.ValidateAll() if the designated constraints
+// aren't met.
+type OperationResultMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m OperationResultMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m OperationResultMultiError) AllErrors() []error { return m }
+
+// OperationResultValidationError is the validation error returned by
+// OperationResult.Validate if the designated constraints aren't met.
+type OperationResultValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e OperationResultValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e OperationResultValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e OperationResultValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e OperationResultValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e OperationResultValidationError) ErrorName() string { return "OperationResultValidationError" }
+
+// Error satisfies the builtin error interface
+func (e OperationResultValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sOperationResult.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = OperationResultValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = OperationResultValidationError{}
+
+// Validate checks the field values on DeveloperWarning with the rules defined
+// in the proto definition for this message. If any rules are violated, the
+// first error encountered is returned, or nil if there are no violations.
+func (m *DeveloperWarning) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on DeveloperWarning with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the result is a list of violation errors wrapped in
+// DeveloperWarningMultiError, or nil if none found.
+func (m *DeveloperWarning) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *DeveloperWarning) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ // no validation rules for Message
+
+ // no validation rules for Line
+
+ // no validation rules for Column
+
+ // no validation rules for SourceCode
+
+ if len(errors) > 0 {
+ return DeveloperWarningMultiError(errors)
+ }
+
+ return nil
+}
+
+// DeveloperWarningMultiError is an error wrapping multiple validation errors
+// returned by DeveloperWarning.ValidateAll() if the designated constraints
+// aren't met.
+type DeveloperWarningMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m DeveloperWarningMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m DeveloperWarningMultiError) AllErrors() []error { return m }
+
+// DeveloperWarningValidationError is the validation error returned by
+// DeveloperWarning.Validate if the designated constraints aren't met.
+type DeveloperWarningValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e DeveloperWarningValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e DeveloperWarningValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e DeveloperWarningValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e DeveloperWarningValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e DeveloperWarningValidationError) ErrorName() string { return "DeveloperWarningValidationError" }
+
+// Error satisfies the builtin error interface
+func (e DeveloperWarningValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sDeveloperWarning.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = DeveloperWarningValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = DeveloperWarningValidationError{}
+
+// Validate checks the field values on DeveloperError with the rules defined in
+// the proto definition for this message. If any rules are violated, the first
+// error encountered is returned, or nil if there are no violations.
+func (m *DeveloperError) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on DeveloperError with the rules defined
+// in the proto definition for this message. If any rules are violated, the
+// result is a list of violation errors wrapped in DeveloperErrorMultiError,
+// or nil if none found.
+func (m *DeveloperError) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *DeveloperError) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ // no validation rules for Message
+
+ // no validation rules for Line
+
+ // no validation rules for Column
+
+ // no validation rules for Source
+
+ // no validation rules for Kind
+
+ // no validation rules for Context
+
+ if all {
+ switch v := interface{}(m.GetCheckDebugInformation()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, DeveloperErrorValidationError{
+ field: "CheckDebugInformation",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, DeveloperErrorValidationError{
+ field: "CheckDebugInformation",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetCheckDebugInformation()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return DeveloperErrorValidationError{
+ field: "CheckDebugInformation",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if all {
+ switch v := interface{}(m.GetCheckResolvedDebugInformation()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, DeveloperErrorValidationError{
+ field: "CheckResolvedDebugInformation",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, DeveloperErrorValidationError{
+ field: "CheckResolvedDebugInformation",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetCheckResolvedDebugInformation()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return DeveloperErrorValidationError{
+ field: "CheckResolvedDebugInformation",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if len(errors) > 0 {
+ return DeveloperErrorMultiError(errors)
+ }
+
+ return nil
+}
+
+// DeveloperErrorMultiError is an error wrapping multiple validation errors
+// returned by DeveloperError.ValidateAll() if the designated constraints
+// aren't met.
+type DeveloperErrorMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m DeveloperErrorMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m DeveloperErrorMultiError) AllErrors() []error { return m }
+
+// DeveloperErrorValidationError is the validation error returned by
+// DeveloperError.Validate if the designated constraints aren't met.
+type DeveloperErrorValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e DeveloperErrorValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e DeveloperErrorValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e DeveloperErrorValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e DeveloperErrorValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e DeveloperErrorValidationError) ErrorName() string { return "DeveloperErrorValidationError" }
+
+// Error satisfies the builtin error interface
+func (e DeveloperErrorValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sDeveloperError.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = DeveloperErrorValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = DeveloperErrorValidationError{}
+
+// Validate checks the field values on DeveloperErrors with the rules defined
+// in the proto definition for this message. If any rules are violated, the
+// first error encountered is returned, or nil if there are no violations.
+func (m *DeveloperErrors) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on DeveloperErrors with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the result is a list of violation errors wrapped in
+// DeveloperErrorsMultiError, or nil if none found.
+func (m *DeveloperErrors) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *DeveloperErrors) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ for idx, item := range m.GetInputErrors() {
+ _, _ = idx, item
+
+ if all {
+ switch v := interface{}(item).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, DeveloperErrorsValidationError{
+ field: fmt.Sprintf("InputErrors[%v]", idx),
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, DeveloperErrorsValidationError{
+ field: fmt.Sprintf("InputErrors[%v]", idx),
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(item).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return DeveloperErrorsValidationError{
+ field: fmt.Sprintf("InputErrors[%v]", idx),
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ }
+
+ if len(errors) > 0 {
+ return DeveloperErrorsMultiError(errors)
+ }
+
+ return nil
+}
+
+// DeveloperErrorsMultiError is an error wrapping multiple validation errors
+// returned by DeveloperErrors.ValidateAll() if the designated constraints
+// aren't met.
+type DeveloperErrorsMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m DeveloperErrorsMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m DeveloperErrorsMultiError) AllErrors() []error { return m }
+
+// DeveloperErrorsValidationError is the validation error returned by
+// DeveloperErrors.Validate if the designated constraints aren't met.
+type DeveloperErrorsValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e DeveloperErrorsValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e DeveloperErrorsValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e DeveloperErrorsValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e DeveloperErrorsValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e DeveloperErrorsValidationError) ErrorName() string { return "DeveloperErrorsValidationError" }
+
+// Error satisfies the builtin error interface
+func (e DeveloperErrorsValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sDeveloperErrors.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = DeveloperErrorsValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = DeveloperErrorsValidationError{}
+
+// Validate checks the field values on CheckOperationParameters with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the first error encountered is returned, or nil if there are no violations.
+func (m *CheckOperationParameters) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on CheckOperationParameters with the
+// rules defined in the proto definition for this message. If any rules are
+// violated, the result is a list of violation errors wrapped in
+// CheckOperationParametersMultiError, or nil if none found.
+func (m *CheckOperationParameters) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *CheckOperationParameters) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ if all {
+ switch v := interface{}(m.GetResource()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, CheckOperationParametersValidationError{
+ field: "Resource",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, CheckOperationParametersValidationError{
+ field: "Resource",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetResource()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return CheckOperationParametersValidationError{
+ field: "Resource",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if all {
+ switch v := interface{}(m.GetSubject()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, CheckOperationParametersValidationError{
+ field: "Subject",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, CheckOperationParametersValidationError{
+ field: "Subject",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetSubject()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return CheckOperationParametersValidationError{
+ field: "Subject",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if all {
+ switch v := interface{}(m.GetCaveatContext()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, CheckOperationParametersValidationError{
+ field: "CaveatContext",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, CheckOperationParametersValidationError{
+ field: "CaveatContext",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetCaveatContext()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return CheckOperationParametersValidationError{
+ field: "CaveatContext",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if len(errors) > 0 {
+ return CheckOperationParametersMultiError(errors)
+ }
+
+ return nil
+}
+
+// CheckOperationParametersMultiError is an error wrapping multiple validation
+// errors returned by CheckOperationParameters.ValidateAll() if the designated
+// constraints aren't met.
+type CheckOperationParametersMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m CheckOperationParametersMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m CheckOperationParametersMultiError) AllErrors() []error { return m }
+
+// CheckOperationParametersValidationError is the validation error returned by
+// CheckOperationParameters.Validate if the designated constraints aren't met.
+type CheckOperationParametersValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e CheckOperationParametersValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e CheckOperationParametersValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e CheckOperationParametersValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e CheckOperationParametersValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e CheckOperationParametersValidationError) ErrorName() string {
+ return "CheckOperationParametersValidationError"
+}
+
+// Error satisfies the builtin error interface
+func (e CheckOperationParametersValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sCheckOperationParameters.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = CheckOperationParametersValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = CheckOperationParametersValidationError{}
+
+// Validate checks the field values on CheckOperationsResult with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the first error encountered is returned, or nil if there are no violations.
+func (m *CheckOperationsResult) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on CheckOperationsResult with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the result is a list of violation errors wrapped in
+// CheckOperationsResultMultiError, or nil if none found.
+func (m *CheckOperationsResult) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *CheckOperationsResult) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ // no validation rules for Membership
+
+ if all {
+ switch v := interface{}(m.GetCheckError()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, CheckOperationsResultValidationError{
+ field: "CheckError",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, CheckOperationsResultValidationError{
+ field: "CheckError",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetCheckError()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return CheckOperationsResultValidationError{
+ field: "CheckError",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if all {
+ switch v := interface{}(m.GetDebugInformation()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, CheckOperationsResultValidationError{
+ field: "DebugInformation",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, CheckOperationsResultValidationError{
+ field: "DebugInformation",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetDebugInformation()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return CheckOperationsResultValidationError{
+ field: "DebugInformation",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if all {
+ switch v := interface{}(m.GetPartialCaveatInfo()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, CheckOperationsResultValidationError{
+ field: "PartialCaveatInfo",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, CheckOperationsResultValidationError{
+ field: "PartialCaveatInfo",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetPartialCaveatInfo()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return CheckOperationsResultValidationError{
+ field: "PartialCaveatInfo",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if all {
+ switch v := interface{}(m.GetResolvedDebugInformation()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, CheckOperationsResultValidationError{
+ field: "ResolvedDebugInformation",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, CheckOperationsResultValidationError{
+ field: "ResolvedDebugInformation",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetResolvedDebugInformation()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return CheckOperationsResultValidationError{
+ field: "ResolvedDebugInformation",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ if len(errors) > 0 {
+ return CheckOperationsResultMultiError(errors)
+ }
+
+ return nil
+}
+
+// CheckOperationsResultMultiError is an error wrapping multiple validation
+// errors returned by CheckOperationsResult.ValidateAll() if the designated
+// constraints aren't met.
+type CheckOperationsResultMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m CheckOperationsResultMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m CheckOperationsResultMultiError) AllErrors() []error { return m }
+
+// CheckOperationsResultValidationError is the validation error returned by
+// CheckOperationsResult.Validate if the designated constraints aren't met.
+type CheckOperationsResultValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e CheckOperationsResultValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e CheckOperationsResultValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e CheckOperationsResultValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e CheckOperationsResultValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e CheckOperationsResultValidationError) ErrorName() string {
+ return "CheckOperationsResultValidationError"
+}
+
+// Error satisfies the builtin error interface
+func (e CheckOperationsResultValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sCheckOperationsResult.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = CheckOperationsResultValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = CheckOperationsResultValidationError{}
+
+// Validate checks the field values on PartialCaveatInfo with the rules defined
+// in the proto definition for this message. If any rules are violated, the
+// first error encountered is returned, or nil if there are no violations.
+func (m *PartialCaveatInfo) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on PartialCaveatInfo with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the result is a list of violation errors wrapped in
+// PartialCaveatInfoMultiError, or nil if none found.
+func (m *PartialCaveatInfo) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *PartialCaveatInfo) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ if len(m.GetMissingRequiredContext()) < 1 {
+ err := PartialCaveatInfoValidationError{
+ field: "MissingRequiredContext",
+ reason: "value must contain at least 1 item(s)",
+ }
+ if !all {
+ return err
+ }
+ errors = append(errors, err)
+ }
+
+ if len(errors) > 0 {
+ return PartialCaveatInfoMultiError(errors)
+ }
+
+ return nil
+}
+
+// PartialCaveatInfoMultiError is an error wrapping multiple validation errors
+// returned by PartialCaveatInfo.ValidateAll() if the designated constraints
+// aren't met.
+type PartialCaveatInfoMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m PartialCaveatInfoMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m PartialCaveatInfoMultiError) AllErrors() []error { return m }
+
+// PartialCaveatInfoValidationError is the validation error returned by
+// PartialCaveatInfo.Validate if the designated constraints aren't met.
+type PartialCaveatInfoValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e PartialCaveatInfoValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e PartialCaveatInfoValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e PartialCaveatInfoValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e PartialCaveatInfoValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e PartialCaveatInfoValidationError) ErrorName() string {
+ return "PartialCaveatInfoValidationError"
+}
+
+// Error satisfies the builtin error interface
+func (e PartialCaveatInfoValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sPartialCaveatInfo.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = PartialCaveatInfoValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = PartialCaveatInfoValidationError{}
+
+// Validate checks the field values on RunAssertionsParameters with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the first error encountered is returned, or nil if there are no violations.
+func (m *RunAssertionsParameters) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on RunAssertionsParameters with the
+// rules defined in the proto definition for this message. If any rules are
+// violated, the result is a list of violation errors wrapped in
+// RunAssertionsParametersMultiError, or nil if none found.
+func (m *RunAssertionsParameters) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *RunAssertionsParameters) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ // no validation rules for AssertionsYaml
+
+ if len(errors) > 0 {
+ return RunAssertionsParametersMultiError(errors)
+ }
+
+ return nil
+}
+
+// RunAssertionsParametersMultiError is an error wrapping multiple validation
+// errors returned by RunAssertionsParameters.ValidateAll() if the designated
+// constraints aren't met.
+type RunAssertionsParametersMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m RunAssertionsParametersMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m RunAssertionsParametersMultiError) AllErrors() []error { return m }
+
+// RunAssertionsParametersValidationError is the validation error returned by
+// RunAssertionsParameters.Validate if the designated constraints aren't met.
+type RunAssertionsParametersValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e RunAssertionsParametersValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e RunAssertionsParametersValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e RunAssertionsParametersValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e RunAssertionsParametersValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e RunAssertionsParametersValidationError) ErrorName() string {
+ return "RunAssertionsParametersValidationError"
+}
+
+// Error satisfies the builtin error interface
+func (e RunAssertionsParametersValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sRunAssertionsParameters.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = RunAssertionsParametersValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = RunAssertionsParametersValidationError{}
+
+// Validate checks the field values on RunAssertionsResult with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the first error encountered is returned, or nil if there are no violations.
+func (m *RunAssertionsResult) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on RunAssertionsResult with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the result is a list of violation errors wrapped in
+// RunAssertionsResultMultiError, or nil if none found.
+func (m *RunAssertionsResult) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *RunAssertionsResult) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ if all {
+ switch v := interface{}(m.GetInputError()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, RunAssertionsResultValidationError{
+ field: "InputError",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, RunAssertionsResultValidationError{
+ field: "InputError",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetInputError()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return RunAssertionsResultValidationError{
+ field: "InputError",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ for idx, item := range m.GetValidationErrors() {
+ _, _ = idx, item
+
+ if all {
+ switch v := interface{}(item).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, RunAssertionsResultValidationError{
+ field: fmt.Sprintf("ValidationErrors[%v]", idx),
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, RunAssertionsResultValidationError{
+ field: fmt.Sprintf("ValidationErrors[%v]", idx),
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(item).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return RunAssertionsResultValidationError{
+ field: fmt.Sprintf("ValidationErrors[%v]", idx),
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ }
+
+ if len(errors) > 0 {
+ return RunAssertionsResultMultiError(errors)
+ }
+
+ return nil
+}
+
+// RunAssertionsResultMultiError is an error wrapping multiple validation
+// errors returned by RunAssertionsResult.ValidateAll() if the designated
+// constraints aren't met.
+type RunAssertionsResultMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m RunAssertionsResultMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m RunAssertionsResultMultiError) AllErrors() []error { return m }
+
+// RunAssertionsResultValidationError is the validation error returned by
+// RunAssertionsResult.Validate if the designated constraints aren't met.
+type RunAssertionsResultValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e RunAssertionsResultValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e RunAssertionsResultValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e RunAssertionsResultValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e RunAssertionsResultValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e RunAssertionsResultValidationError) ErrorName() string {
+ return "RunAssertionsResultValidationError"
+}
+
+// Error satisfies the builtin error interface
+func (e RunAssertionsResultValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sRunAssertionsResult.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = RunAssertionsResultValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = RunAssertionsResultValidationError{}
+
+// Validate checks the field values on RunValidationParameters with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the first error encountered is returned, or nil if there are no violations.
+func (m *RunValidationParameters) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on RunValidationParameters with the
+// rules defined in the proto definition for this message. If any rules are
+// violated, the result is a list of violation errors wrapped in
+// RunValidationParametersMultiError, or nil if none found.
+func (m *RunValidationParameters) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *RunValidationParameters) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ // no validation rules for ValidationYaml
+
+ if len(errors) > 0 {
+ return RunValidationParametersMultiError(errors)
+ }
+
+ return nil
+}
+
+// RunValidationParametersMultiError is an error wrapping multiple validation
+// errors returned by RunValidationParameters.ValidateAll() if the designated
+// constraints aren't met.
+type RunValidationParametersMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m RunValidationParametersMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m RunValidationParametersMultiError) AllErrors() []error { return m }
+
+// RunValidationParametersValidationError is the validation error returned by
+// RunValidationParameters.Validate if the designated constraints aren't met.
+type RunValidationParametersValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e RunValidationParametersValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e RunValidationParametersValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e RunValidationParametersValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e RunValidationParametersValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e RunValidationParametersValidationError) ErrorName() string {
+ return "RunValidationParametersValidationError"
+}
+
+// Error satisfies the builtin error interface
+func (e RunValidationParametersValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sRunValidationParameters.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = RunValidationParametersValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = RunValidationParametersValidationError{}
+
+// Validate checks the field values on RunValidationResult with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the first error encountered is returned, or nil if there are no violations.
+func (m *RunValidationResult) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on RunValidationResult with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the result is a list of violation errors wrapped in
+// RunValidationResultMultiError, or nil if none found.
+func (m *RunValidationResult) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *RunValidationResult) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ if all {
+ switch v := interface{}(m.GetInputError()).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, RunValidationResultValidationError{
+ field: "InputError",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, RunValidationResultValidationError{
+ field: "InputError",
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(m.GetInputError()).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return RunValidationResultValidationError{
+ field: "InputError",
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ // no validation rules for UpdatedValidationYaml
+
+ for idx, item := range m.GetValidationErrors() {
+ _, _ = idx, item
+
+ if all {
+ switch v := interface{}(item).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, RunValidationResultValidationError{
+ field: fmt.Sprintf("ValidationErrors[%v]", idx),
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, RunValidationResultValidationError{
+ field: fmt.Sprintf("ValidationErrors[%v]", idx),
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(item).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return RunValidationResultValidationError{
+ field: fmt.Sprintf("ValidationErrors[%v]", idx),
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ }
+
+ if len(errors) > 0 {
+ return RunValidationResultMultiError(errors)
+ }
+
+ return nil
+}
+
+// RunValidationResultMultiError is an error wrapping multiple validation
+// errors returned by RunValidationResult.ValidateAll() if the designated
+// constraints aren't met.
+type RunValidationResultMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m RunValidationResultMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m RunValidationResultMultiError) AllErrors() []error { return m }
+
+// RunValidationResultValidationError is the validation error returned by
+// RunValidationResult.Validate if the designated constraints aren't met.
+type RunValidationResultValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e RunValidationResultValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e RunValidationResultValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e RunValidationResultValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e RunValidationResultValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e RunValidationResultValidationError) ErrorName() string {
+ return "RunValidationResultValidationError"
+}
+
+// Error satisfies the builtin error interface
+func (e RunValidationResultValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sRunValidationResult.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = RunValidationResultValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = RunValidationResultValidationError{}
+
+// Validate checks the field values on FormatSchemaParameters with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the first error encountered is returned, or nil if there are no violations.
+func (m *FormatSchemaParameters) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on FormatSchemaParameters with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the result is a list of violation errors wrapped in
+// FormatSchemaParametersMultiError, or nil if none found.
+func (m *FormatSchemaParameters) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *FormatSchemaParameters) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ if len(errors) > 0 {
+ return FormatSchemaParametersMultiError(errors)
+ }
+
+ return nil
+}
+
+// FormatSchemaParametersMultiError is an error wrapping multiple validation
+// errors returned by FormatSchemaParameters.ValidateAll() if the designated
+// constraints aren't met.
+type FormatSchemaParametersMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m FormatSchemaParametersMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m FormatSchemaParametersMultiError) AllErrors() []error { return m }
+
+// FormatSchemaParametersValidationError is the validation error returned by
+// FormatSchemaParameters.Validate if the designated constraints aren't met.
+type FormatSchemaParametersValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e FormatSchemaParametersValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e FormatSchemaParametersValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e FormatSchemaParametersValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e FormatSchemaParametersValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e FormatSchemaParametersValidationError) ErrorName() string {
+ return "FormatSchemaParametersValidationError"
+}
+
+// Error satisfies the builtin error interface
+func (e FormatSchemaParametersValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sFormatSchemaParameters.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = FormatSchemaParametersValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = FormatSchemaParametersValidationError{}
+
+// Validate checks the field values on FormatSchemaResult with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the first error encountered is returned, or nil if there are no violations.
+func (m *FormatSchemaResult) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on FormatSchemaResult with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the result is a list of violation errors wrapped in
+// FormatSchemaResultMultiError, or nil if none found.
+func (m *FormatSchemaResult) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *FormatSchemaResult) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ // no validation rules for FormattedSchema
+
+ if len(errors) > 0 {
+ return FormatSchemaResultMultiError(errors)
+ }
+
+ return nil
+}
+
+// FormatSchemaResultMultiError is an error wrapping multiple validation errors
+// returned by FormatSchemaResult.ValidateAll() if the designated constraints
+// aren't met.
+type FormatSchemaResultMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m FormatSchemaResultMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m FormatSchemaResultMultiError) AllErrors() []error { return m }
+
+// FormatSchemaResultValidationError is the validation error returned by
+// FormatSchemaResult.Validate if the designated constraints aren't met.
+type FormatSchemaResultValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e FormatSchemaResultValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e FormatSchemaResultValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e FormatSchemaResultValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e FormatSchemaResultValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e FormatSchemaResultValidationError) ErrorName() string {
+ return "FormatSchemaResultValidationError"
+}
+
+// Error satisfies the builtin error interface
+func (e FormatSchemaResultValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sFormatSchemaResult.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = FormatSchemaResultValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = FormatSchemaResultValidationError{}
+
+// Validate checks the field values on SchemaWarningsParameters with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the first error encountered is returned, or nil if there are no violations.
+func (m *SchemaWarningsParameters) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on SchemaWarningsParameters with the
+// rules defined in the proto definition for this message. If any rules are
+// violated, the result is a list of violation errors wrapped in
+// SchemaWarningsParametersMultiError, or nil if none found.
+func (m *SchemaWarningsParameters) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *SchemaWarningsParameters) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ if len(errors) > 0 {
+ return SchemaWarningsParametersMultiError(errors)
+ }
+
+ return nil
+}
+
+// SchemaWarningsParametersMultiError is an error wrapping multiple validation
+// errors returned by SchemaWarningsParameters.ValidateAll() if the designated
+// constraints aren't met.
+type SchemaWarningsParametersMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m SchemaWarningsParametersMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m SchemaWarningsParametersMultiError) AllErrors() []error { return m }
+
+// SchemaWarningsParametersValidationError is the validation error returned by
+// SchemaWarningsParameters.Validate if the designated constraints aren't met.
+type SchemaWarningsParametersValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e SchemaWarningsParametersValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e SchemaWarningsParametersValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e SchemaWarningsParametersValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e SchemaWarningsParametersValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e SchemaWarningsParametersValidationError) ErrorName() string {
+ return "SchemaWarningsParametersValidationError"
+}
+
+// Error satisfies the builtin error interface
+func (e SchemaWarningsParametersValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sSchemaWarningsParameters.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = SchemaWarningsParametersValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = SchemaWarningsParametersValidationError{}
+
+// Validate checks the field values on SchemaWarningsResult with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the first error encountered is returned, or nil if there are no violations.
+func (m *SchemaWarningsResult) Validate() error {
+ return m.validate(false)
+}
+
+// ValidateAll checks the field values on SchemaWarningsResult with the rules
+// defined in the proto definition for this message. If any rules are
+// violated, the result is a list of violation errors wrapped in
+// SchemaWarningsResultMultiError, or nil if none found.
+func (m *SchemaWarningsResult) ValidateAll() error {
+ return m.validate(true)
+}
+
+func (m *SchemaWarningsResult) validate(all bool) error {
+ if m == nil {
+ return nil
+ }
+
+ var errors []error
+
+ for idx, item := range m.GetWarnings() {
+ _, _ = idx, item
+
+ if all {
+ switch v := interface{}(item).(type) {
+ case interface{ ValidateAll() error }:
+ if err := v.ValidateAll(); err != nil {
+ errors = append(errors, SchemaWarningsResultValidationError{
+ field: fmt.Sprintf("Warnings[%v]", idx),
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ case interface{ Validate() error }:
+ if err := v.Validate(); err != nil {
+ errors = append(errors, SchemaWarningsResultValidationError{
+ field: fmt.Sprintf("Warnings[%v]", idx),
+ reason: "embedded message failed validation",
+ cause: err,
+ })
+ }
+ }
+ } else if v, ok := interface{}(item).(interface{ Validate() error }); ok {
+ if err := v.Validate(); err != nil {
+ return SchemaWarningsResultValidationError{
+ field: fmt.Sprintf("Warnings[%v]", idx),
+ reason: "embedded message failed validation",
+ cause: err,
+ }
+ }
+ }
+
+ }
+
+ if len(errors) > 0 {
+ return SchemaWarningsResultMultiError(errors)
+ }
+
+ return nil
+}
+
+// SchemaWarningsResultMultiError is an error wrapping multiple validation
+// errors returned by SchemaWarningsResult.ValidateAll() if the designated
+// constraints aren't met.
+type SchemaWarningsResultMultiError []error
+
+// Error returns a concatenation of all the error messages it wraps.
+func (m SchemaWarningsResultMultiError) Error() string {
+ var msgs []string
+ for _, err := range m {
+ msgs = append(msgs, err.Error())
+ }
+ return strings.Join(msgs, "; ")
+}
+
+// AllErrors returns a list of validation violation errors.
+func (m SchemaWarningsResultMultiError) AllErrors() []error { return m }
+
+// SchemaWarningsResultValidationError is the validation error returned by
+// SchemaWarningsResult.Validate if the designated constraints aren't met.
+type SchemaWarningsResultValidationError struct {
+ field string
+ reason string
+ cause error
+ key bool
+}
+
+// Field function returns field value.
+func (e SchemaWarningsResultValidationError) Field() string { return e.field }
+
+// Reason function returns reason value.
+func (e SchemaWarningsResultValidationError) Reason() string { return e.reason }
+
+// Cause function returns cause value.
+func (e SchemaWarningsResultValidationError) Cause() error { return e.cause }
+
+// Key function returns key value.
+func (e SchemaWarningsResultValidationError) Key() bool { return e.key }
+
+// ErrorName returns error name.
+func (e SchemaWarningsResultValidationError) ErrorName() string {
+ return "SchemaWarningsResultValidationError"
+}
+
+// Error satisfies the builtin error interface
+func (e SchemaWarningsResultValidationError) Error() string {
+ cause := ""
+ if e.cause != nil {
+ cause = fmt.Sprintf(" | caused by: %v", e.cause)
+ }
+
+ key := ""
+ if e.key {
+ key = "key for "
+ }
+
+ return fmt.Sprintf(
+ "invalid %sSchemaWarningsResult.%s: %s%s",
+ key,
+ e.field,
+ e.reason,
+ cause)
+}
+
+var _ error = SchemaWarningsResultValidationError{}
+
+var _ interface {
+ Field() string
+ Reason() string
+ Key() bool
+ Cause() error
+ ErrorName() string
+} = SchemaWarningsResultValidationError{}
diff --git a/vendor/github.com/authzed/spicedb/pkg/proto/developer/v1/developer_vtproto.pb.go b/vendor/github.com/authzed/spicedb/pkg/proto/developer/v1/developer_vtproto.pb.go
new file mode 100644
index 0000000..8f53dc6
--- /dev/null
+++ b/vendor/github.com/authzed/spicedb/pkg/proto/developer/v1/developer_vtproto.pb.go
@@ -0,0 +1,5544 @@
+// Code generated by protoc-gen-go-vtproto. DO NOT EDIT.
+// protoc-gen-go-vtproto version: v0.6.1-0.20240409071808-615f978279ca
+// source: developer/v1/developer.proto
+
+package developerv1
+
+import (
+ fmt "fmt"
+ 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"
+ protohelpers "github.com/planetscale/vtprotobuf/protohelpers"
+ structpb1 "github.com/planetscale/vtprotobuf/types/known/structpb"
+ proto "google.golang.org/protobuf/proto"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ structpb "google.golang.org/protobuf/types/known/structpb"
+ io "io"
+)
+
+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)
+)
+
+func (m *DeveloperRequest) CloneVT() *DeveloperRequest {
+ if m == nil {
+ return (*DeveloperRequest)(nil)
+ }
+ r := new(DeveloperRequest)
+ r.Context = m.Context.CloneVT()
+ if rhs := m.Operations; rhs != nil {
+ tmpContainer := make([]*Operation, len(rhs))
+ for k, v := range rhs {
+ tmpContainer[k] = v.CloneVT()
+ }
+ r.Operations = tmpContainer
+ }
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *DeveloperRequest) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *DeveloperResponse) CloneVT() *DeveloperResponse {
+ if m == nil {
+ return (*DeveloperResponse)(nil)
+ }
+ r := new(DeveloperResponse)
+ r.InternalError = m.InternalError
+ r.DeveloperErrors = m.DeveloperErrors.CloneVT()
+ r.OperationsResults = m.OperationsResults.CloneVT()
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *DeveloperResponse) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *RequestContext) CloneVT() *RequestContext {
+ if m == nil {
+ return (*RequestContext)(nil)
+ }
+ r := new(RequestContext)
+ r.Schema = m.Schema
+ if rhs := m.Relationships; rhs != nil {
+ tmpContainer := make([]*v1.RelationTuple, len(rhs))
+ for k, v := range rhs {
+ if vtpb, ok := interface{}(v).(interface{ CloneVT() *v1.RelationTuple }); ok {
+ tmpContainer[k] = vtpb.CloneVT()
+ } else {
+ tmpContainer[k] = proto.Clone(v).(*v1.RelationTuple)
+ }
+ }
+ r.Relationships = tmpContainer
+ }
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *RequestContext) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *Operation) CloneVT() *Operation {
+ if m == nil {
+ return (*Operation)(nil)
+ }
+ r := new(Operation)
+ r.CheckParameters = m.CheckParameters.CloneVT()
+ r.AssertionsParameters = m.AssertionsParameters.CloneVT()
+ r.ValidationParameters = m.ValidationParameters.CloneVT()
+ r.FormatSchemaParameters = m.FormatSchemaParameters.CloneVT()
+ r.SchemaWarningsParameters = m.SchemaWarningsParameters.CloneVT()
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *Operation) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *OperationsResults) CloneVT() *OperationsResults {
+ if m == nil {
+ return (*OperationsResults)(nil)
+ }
+ r := new(OperationsResults)
+ if rhs := m.Results; rhs != nil {
+ tmpContainer := make(map[uint64]*OperationResult, len(rhs))
+ for k, v := range rhs {
+ tmpContainer[k] = v.CloneVT()
+ }
+ r.Results = tmpContainer
+ }
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *OperationsResults) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *OperationResult) CloneVT() *OperationResult {
+ if m == nil {
+ return (*OperationResult)(nil)
+ }
+ r := new(OperationResult)
+ r.CheckResult = m.CheckResult.CloneVT()
+ r.AssertionsResult = m.AssertionsResult.CloneVT()
+ r.ValidationResult = m.ValidationResult.CloneVT()
+ r.FormatSchemaResult = m.FormatSchemaResult.CloneVT()
+ r.SchemaWarningsResult = m.SchemaWarningsResult.CloneVT()
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *OperationResult) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *DeveloperWarning) CloneVT() *DeveloperWarning {
+ if m == nil {
+ return (*DeveloperWarning)(nil)
+ }
+ r := new(DeveloperWarning)
+ r.Message = m.Message
+ r.Line = m.Line
+ r.Column = m.Column
+ r.SourceCode = m.SourceCode
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *DeveloperWarning) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *DeveloperError) CloneVT() *DeveloperError {
+ if m == nil {
+ return (*DeveloperError)(nil)
+ }
+ r := new(DeveloperError)
+ r.Message = m.Message
+ r.Line = m.Line
+ r.Column = m.Column
+ r.Source = m.Source
+ r.Kind = m.Kind
+ r.Context = m.Context
+ if rhs := m.Path; rhs != nil {
+ tmpContainer := make([]string, len(rhs))
+ copy(tmpContainer, rhs)
+ r.Path = tmpContainer
+ }
+ if rhs := m.CheckDebugInformation; rhs != nil {
+ if vtpb, ok := interface{}(rhs).(interface{ CloneVT() *v11.DebugInformation }); ok {
+ r.CheckDebugInformation = vtpb.CloneVT()
+ } else {
+ r.CheckDebugInformation = proto.Clone(rhs).(*v11.DebugInformation)
+ }
+ }
+ if rhs := m.CheckResolvedDebugInformation; rhs != nil {
+ if vtpb, ok := interface{}(rhs).(interface{ CloneVT() *v12.DebugInformation }); ok {
+ r.CheckResolvedDebugInformation = vtpb.CloneVT()
+ } else {
+ r.CheckResolvedDebugInformation = proto.Clone(rhs).(*v12.DebugInformation)
+ }
+ }
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *DeveloperError) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *DeveloperErrors) CloneVT() *DeveloperErrors {
+ if m == nil {
+ return (*DeveloperErrors)(nil)
+ }
+ r := new(DeveloperErrors)
+ if rhs := m.InputErrors; rhs != nil {
+ tmpContainer := make([]*DeveloperError, len(rhs))
+ for k, v := range rhs {
+ tmpContainer[k] = v.CloneVT()
+ }
+ r.InputErrors = tmpContainer
+ }
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *DeveloperErrors) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *CheckOperationParameters) CloneVT() *CheckOperationParameters {
+ if m == nil {
+ return (*CheckOperationParameters)(nil)
+ }
+ r := new(CheckOperationParameters)
+ r.CaveatContext = (*structpb.Struct)((*structpb1.Struct)(m.CaveatContext).CloneVT())
+ if rhs := m.Resource; rhs != nil {
+ if vtpb, ok := interface{}(rhs).(interface{ CloneVT() *v1.ObjectAndRelation }); ok {
+ r.Resource = vtpb.CloneVT()
+ } else {
+ r.Resource = proto.Clone(rhs).(*v1.ObjectAndRelation)
+ }
+ }
+ if rhs := m.Subject; rhs != nil {
+ if vtpb, ok := interface{}(rhs).(interface{ CloneVT() *v1.ObjectAndRelation }); ok {
+ r.Subject = vtpb.CloneVT()
+ } else {
+ r.Subject = proto.Clone(rhs).(*v1.ObjectAndRelation)
+ }
+ }
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *CheckOperationParameters) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *CheckOperationsResult) CloneVT() *CheckOperationsResult {
+ if m == nil {
+ return (*CheckOperationsResult)(nil)
+ }
+ r := new(CheckOperationsResult)
+ r.Membership = m.Membership
+ r.CheckError = m.CheckError.CloneVT()
+ r.PartialCaveatInfo = m.PartialCaveatInfo.CloneVT()
+ if rhs := m.DebugInformation; rhs != nil {
+ if vtpb, ok := interface{}(rhs).(interface{ CloneVT() *v11.DebugInformation }); ok {
+ r.DebugInformation = vtpb.CloneVT()
+ } else {
+ r.DebugInformation = proto.Clone(rhs).(*v11.DebugInformation)
+ }
+ }
+ if rhs := m.ResolvedDebugInformation; rhs != nil {
+ if vtpb, ok := interface{}(rhs).(interface{ CloneVT() *v12.DebugInformation }); ok {
+ r.ResolvedDebugInformation = vtpb.CloneVT()
+ } else {
+ r.ResolvedDebugInformation = proto.Clone(rhs).(*v12.DebugInformation)
+ }
+ }
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *CheckOperationsResult) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *PartialCaveatInfo) CloneVT() *PartialCaveatInfo {
+ if m == nil {
+ return (*PartialCaveatInfo)(nil)
+ }
+ r := new(PartialCaveatInfo)
+ if rhs := m.MissingRequiredContext; rhs != nil {
+ tmpContainer := make([]string, len(rhs))
+ copy(tmpContainer, rhs)
+ r.MissingRequiredContext = tmpContainer
+ }
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *PartialCaveatInfo) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *RunAssertionsParameters) CloneVT() *RunAssertionsParameters {
+ if m == nil {
+ return (*RunAssertionsParameters)(nil)
+ }
+ r := new(RunAssertionsParameters)
+ r.AssertionsYaml = m.AssertionsYaml
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *RunAssertionsParameters) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *RunAssertionsResult) CloneVT() *RunAssertionsResult {
+ if m == nil {
+ return (*RunAssertionsResult)(nil)
+ }
+ r := new(RunAssertionsResult)
+ r.InputError = m.InputError.CloneVT()
+ if rhs := m.ValidationErrors; rhs != nil {
+ tmpContainer := make([]*DeveloperError, len(rhs))
+ for k, v := range rhs {
+ tmpContainer[k] = v.CloneVT()
+ }
+ r.ValidationErrors = tmpContainer
+ }
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *RunAssertionsResult) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *RunValidationParameters) CloneVT() *RunValidationParameters {
+ if m == nil {
+ return (*RunValidationParameters)(nil)
+ }
+ r := new(RunValidationParameters)
+ r.ValidationYaml = m.ValidationYaml
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *RunValidationParameters) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *RunValidationResult) CloneVT() *RunValidationResult {
+ if m == nil {
+ return (*RunValidationResult)(nil)
+ }
+ r := new(RunValidationResult)
+ r.InputError = m.InputError.CloneVT()
+ r.UpdatedValidationYaml = m.UpdatedValidationYaml
+ if rhs := m.ValidationErrors; rhs != nil {
+ tmpContainer := make([]*DeveloperError, len(rhs))
+ for k, v := range rhs {
+ tmpContainer[k] = v.CloneVT()
+ }
+ r.ValidationErrors = tmpContainer
+ }
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *RunValidationResult) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *FormatSchemaParameters) CloneVT() *FormatSchemaParameters {
+ if m == nil {
+ return (*FormatSchemaParameters)(nil)
+ }
+ r := new(FormatSchemaParameters)
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *FormatSchemaParameters) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *FormatSchemaResult) CloneVT() *FormatSchemaResult {
+ if m == nil {
+ return (*FormatSchemaResult)(nil)
+ }
+ r := new(FormatSchemaResult)
+ r.FormattedSchema = m.FormattedSchema
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *FormatSchemaResult) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *SchemaWarningsParameters) CloneVT() *SchemaWarningsParameters {
+ if m == nil {
+ return (*SchemaWarningsParameters)(nil)
+ }
+ r := new(SchemaWarningsParameters)
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *SchemaWarningsParameters) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (m *SchemaWarningsResult) CloneVT() *SchemaWarningsResult {
+ if m == nil {
+ return (*SchemaWarningsResult)(nil)
+ }
+ r := new(SchemaWarningsResult)
+ if rhs := m.Warnings; rhs != nil {
+ tmpContainer := make([]*DeveloperWarning, len(rhs))
+ for k, v := range rhs {
+ tmpContainer[k] = v.CloneVT()
+ }
+ r.Warnings = tmpContainer
+ }
+ if len(m.unknownFields) > 0 {
+ r.unknownFields = make([]byte, len(m.unknownFields))
+ copy(r.unknownFields, m.unknownFields)
+ }
+ return r
+}
+
+func (m *SchemaWarningsResult) CloneMessageVT() proto.Message {
+ return m.CloneVT()
+}
+
+func (this *DeveloperRequest) EqualVT(that *DeveloperRequest) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ if !this.Context.EqualVT(that.Context) {
+ return false
+ }
+ if len(this.Operations) != len(that.Operations) {
+ return false
+ }
+ for i, vx := range this.Operations {
+ vy := that.Operations[i]
+ if p, q := vx, vy; p != q {
+ if p == nil {
+ p = &Operation{}
+ }
+ if q == nil {
+ q = &Operation{}
+ }
+ if !p.EqualVT(q) {
+ return false
+ }
+ }
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *DeveloperRequest) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*DeveloperRequest)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *DeveloperResponse) EqualVT(that *DeveloperResponse) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ if this.InternalError != that.InternalError {
+ return false
+ }
+ if !this.DeveloperErrors.EqualVT(that.DeveloperErrors) {
+ return false
+ }
+ if !this.OperationsResults.EqualVT(that.OperationsResults) {
+ return false
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *DeveloperResponse) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*DeveloperResponse)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *RequestContext) EqualVT(that *RequestContext) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ if this.Schema != that.Schema {
+ return false
+ }
+ if len(this.Relationships) != len(that.Relationships) {
+ return false
+ }
+ for i, vx := range this.Relationships {
+ vy := that.Relationships[i]
+ if p, q := vx, vy; p != q {
+ if p == nil {
+ p = &v1.RelationTuple{}
+ }
+ if q == nil {
+ q = &v1.RelationTuple{}
+ }
+ if equal, ok := interface{}(p).(interface{ EqualVT(*v1.RelationTuple) bool }); ok {
+ if !equal.EqualVT(q) {
+ return false
+ }
+ } else if !proto.Equal(p, q) {
+ return false
+ }
+ }
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *RequestContext) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*RequestContext)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *Operation) EqualVT(that *Operation) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ if !this.CheckParameters.EqualVT(that.CheckParameters) {
+ return false
+ }
+ if !this.AssertionsParameters.EqualVT(that.AssertionsParameters) {
+ return false
+ }
+ if !this.ValidationParameters.EqualVT(that.ValidationParameters) {
+ return false
+ }
+ if !this.FormatSchemaParameters.EqualVT(that.FormatSchemaParameters) {
+ return false
+ }
+ if !this.SchemaWarningsParameters.EqualVT(that.SchemaWarningsParameters) {
+ return false
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *Operation) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*Operation)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *OperationsResults) EqualVT(that *OperationsResults) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ if len(this.Results) != len(that.Results) {
+ return false
+ }
+ for i, vx := range this.Results {
+ vy, ok := that.Results[i]
+ if !ok {
+ return false
+ }
+ if p, q := vx, vy; p != q {
+ if p == nil {
+ p = &OperationResult{}
+ }
+ if q == nil {
+ q = &OperationResult{}
+ }
+ if !p.EqualVT(q) {
+ return false
+ }
+ }
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *OperationsResults) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*OperationsResults)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *OperationResult) EqualVT(that *OperationResult) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ if !this.CheckResult.EqualVT(that.CheckResult) {
+ return false
+ }
+ if !this.AssertionsResult.EqualVT(that.AssertionsResult) {
+ return false
+ }
+ if !this.ValidationResult.EqualVT(that.ValidationResult) {
+ return false
+ }
+ if !this.FormatSchemaResult.EqualVT(that.FormatSchemaResult) {
+ return false
+ }
+ if !this.SchemaWarningsResult.EqualVT(that.SchemaWarningsResult) {
+ return false
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *OperationResult) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*OperationResult)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *DeveloperWarning) EqualVT(that *DeveloperWarning) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ if this.Message != that.Message {
+ return false
+ }
+ if this.Line != that.Line {
+ return false
+ }
+ if this.Column != that.Column {
+ return false
+ }
+ if this.SourceCode != that.SourceCode {
+ return false
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *DeveloperWarning) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*DeveloperWarning)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *DeveloperError) EqualVT(that *DeveloperError) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ if this.Message != that.Message {
+ return false
+ }
+ if this.Line != that.Line {
+ return false
+ }
+ if this.Column != that.Column {
+ return false
+ }
+ if this.Source != that.Source {
+ return false
+ }
+ if this.Kind != that.Kind {
+ return false
+ }
+ if len(this.Path) != len(that.Path) {
+ return false
+ }
+ for i, vx := range this.Path {
+ vy := that.Path[i]
+ if vx != vy {
+ return false
+ }
+ }
+ if this.Context != that.Context {
+ return false
+ }
+ if equal, ok := interface{}(this.CheckDebugInformation).(interface {
+ EqualVT(*v11.DebugInformation) bool
+ }); ok {
+ if !equal.EqualVT(that.CheckDebugInformation) {
+ return false
+ }
+ } else if !proto.Equal(this.CheckDebugInformation, that.CheckDebugInformation) {
+ return false
+ }
+ if equal, ok := interface{}(this.CheckResolvedDebugInformation).(interface {
+ EqualVT(*v12.DebugInformation) bool
+ }); ok {
+ if !equal.EqualVT(that.CheckResolvedDebugInformation) {
+ return false
+ }
+ } else if !proto.Equal(this.CheckResolvedDebugInformation, that.CheckResolvedDebugInformation) {
+ return false
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *DeveloperError) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*DeveloperError)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *DeveloperErrors) EqualVT(that *DeveloperErrors) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ if len(this.InputErrors) != len(that.InputErrors) {
+ return false
+ }
+ for i, vx := range this.InputErrors {
+ vy := that.InputErrors[i]
+ if p, q := vx, vy; p != q {
+ if p == nil {
+ p = &DeveloperError{}
+ }
+ if q == nil {
+ q = &DeveloperError{}
+ }
+ if !p.EqualVT(q) {
+ return false
+ }
+ }
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *DeveloperErrors) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*DeveloperErrors)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *CheckOperationParameters) EqualVT(that *CheckOperationParameters) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ if equal, ok := interface{}(this.Resource).(interface {
+ EqualVT(*v1.ObjectAndRelation) bool
+ }); ok {
+ if !equal.EqualVT(that.Resource) {
+ return false
+ }
+ } else if !proto.Equal(this.Resource, that.Resource) {
+ return false
+ }
+ if equal, ok := interface{}(this.Subject).(interface {
+ EqualVT(*v1.ObjectAndRelation) bool
+ }); ok {
+ if !equal.EqualVT(that.Subject) {
+ return false
+ }
+ } else if !proto.Equal(this.Subject, that.Subject) {
+ return false
+ }
+ if !(*structpb1.Struct)(this.CaveatContext).EqualVT((*structpb1.Struct)(that.CaveatContext)) {
+ return false
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *CheckOperationParameters) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*CheckOperationParameters)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *CheckOperationsResult) EqualVT(that *CheckOperationsResult) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ if this.Membership != that.Membership {
+ return false
+ }
+ if !this.CheckError.EqualVT(that.CheckError) {
+ return false
+ }
+ if equal, ok := interface{}(this.DebugInformation).(interface {
+ EqualVT(*v11.DebugInformation) bool
+ }); ok {
+ if !equal.EqualVT(that.DebugInformation) {
+ return false
+ }
+ } else if !proto.Equal(this.DebugInformation, that.DebugInformation) {
+ return false
+ }
+ if !this.PartialCaveatInfo.EqualVT(that.PartialCaveatInfo) {
+ return false
+ }
+ if equal, ok := interface{}(this.ResolvedDebugInformation).(interface {
+ EqualVT(*v12.DebugInformation) bool
+ }); ok {
+ if !equal.EqualVT(that.ResolvedDebugInformation) {
+ return false
+ }
+ } else if !proto.Equal(this.ResolvedDebugInformation, that.ResolvedDebugInformation) {
+ return false
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *CheckOperationsResult) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*CheckOperationsResult)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *PartialCaveatInfo) EqualVT(that *PartialCaveatInfo) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ if len(this.MissingRequiredContext) != len(that.MissingRequiredContext) {
+ return false
+ }
+ for i, vx := range this.MissingRequiredContext {
+ vy := that.MissingRequiredContext[i]
+ if vx != vy {
+ return false
+ }
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *PartialCaveatInfo) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*PartialCaveatInfo)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *RunAssertionsParameters) EqualVT(that *RunAssertionsParameters) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ if this.AssertionsYaml != that.AssertionsYaml {
+ return false
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *RunAssertionsParameters) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*RunAssertionsParameters)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *RunAssertionsResult) EqualVT(that *RunAssertionsResult) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ if !this.InputError.EqualVT(that.InputError) {
+ return false
+ }
+ if len(this.ValidationErrors) != len(that.ValidationErrors) {
+ return false
+ }
+ for i, vx := range this.ValidationErrors {
+ vy := that.ValidationErrors[i]
+ if p, q := vx, vy; p != q {
+ if p == nil {
+ p = &DeveloperError{}
+ }
+ if q == nil {
+ q = &DeveloperError{}
+ }
+ if !p.EqualVT(q) {
+ return false
+ }
+ }
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *RunAssertionsResult) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*RunAssertionsResult)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *RunValidationParameters) EqualVT(that *RunValidationParameters) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ if this.ValidationYaml != that.ValidationYaml {
+ return false
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *RunValidationParameters) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*RunValidationParameters)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *RunValidationResult) EqualVT(that *RunValidationResult) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ if !this.InputError.EqualVT(that.InputError) {
+ return false
+ }
+ if this.UpdatedValidationYaml != that.UpdatedValidationYaml {
+ return false
+ }
+ if len(this.ValidationErrors) != len(that.ValidationErrors) {
+ return false
+ }
+ for i, vx := range this.ValidationErrors {
+ vy := that.ValidationErrors[i]
+ if p, q := vx, vy; p != q {
+ if p == nil {
+ p = &DeveloperError{}
+ }
+ if q == nil {
+ q = &DeveloperError{}
+ }
+ if !p.EqualVT(q) {
+ return false
+ }
+ }
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *RunValidationResult) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*RunValidationResult)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *FormatSchemaParameters) EqualVT(that *FormatSchemaParameters) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *FormatSchemaParameters) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*FormatSchemaParameters)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *FormatSchemaResult) EqualVT(that *FormatSchemaResult) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ if this.FormattedSchema != that.FormattedSchema {
+ return false
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *FormatSchemaResult) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*FormatSchemaResult)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *SchemaWarningsParameters) EqualVT(that *SchemaWarningsParameters) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *SchemaWarningsParameters) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*SchemaWarningsParameters)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (this *SchemaWarningsResult) EqualVT(that *SchemaWarningsResult) bool {
+ if this == that {
+ return true
+ } else if this == nil || that == nil {
+ return false
+ }
+ if len(this.Warnings) != len(that.Warnings) {
+ return false
+ }
+ for i, vx := range this.Warnings {
+ vy := that.Warnings[i]
+ if p, q := vx, vy; p != q {
+ if p == nil {
+ p = &DeveloperWarning{}
+ }
+ if q == nil {
+ q = &DeveloperWarning{}
+ }
+ if !p.EqualVT(q) {
+ return false
+ }
+ }
+ }
+ return string(this.unknownFields) == string(that.unknownFields)
+}
+
+func (this *SchemaWarningsResult) EqualMessageVT(thatMsg proto.Message) bool {
+ that, ok := thatMsg.(*SchemaWarningsResult)
+ if !ok {
+ return false
+ }
+ return this.EqualVT(that)
+}
+func (m *DeveloperRequest) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *DeveloperRequest) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *DeveloperRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ if len(m.Operations) > 0 {
+ for iNdEx := len(m.Operations) - 1; iNdEx >= 0; iNdEx-- {
+ size, err := m.Operations[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ if m.Context != nil {
+ size, err := m.Context.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *DeveloperResponse) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *DeveloperResponse) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *DeveloperResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ if m.OperationsResults != nil {
+ size, err := m.OperationsResults.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if m.DeveloperErrors != nil {
+ size, err := m.DeveloperErrors.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(m.InternalError) > 0 {
+ i -= len(m.InternalError)
+ copy(dAtA[i:], m.InternalError)
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.InternalError)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *RequestContext) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *RequestContext) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *RequestContext) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ if len(m.Relationships) > 0 {
+ for iNdEx := len(m.Relationships) - 1; iNdEx >= 0; iNdEx-- {
+ if vtmsg, ok := interface{}(m.Relationships[iNdEx]).(interface {
+ MarshalToSizedBufferVT([]byte) (int, error)
+ }); ok {
+ size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ } else {
+ encoded, err := proto.Marshal(m.Relationships[iNdEx])
+ if err != nil {
+ return 0, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ if len(m.Schema) > 0 {
+ i -= len(m.Schema)
+ copy(dAtA[i:], m.Schema)
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Schema)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *Operation) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Operation) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *Operation) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ if m.SchemaWarningsParameters != nil {
+ size, err := m.SchemaWarningsParameters.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x2a
+ }
+ if m.FormatSchemaParameters != nil {
+ size, err := m.FormatSchemaParameters.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x22
+ }
+ if m.ValidationParameters != nil {
+ size, err := m.ValidationParameters.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if m.AssertionsParameters != nil {
+ size, err := m.AssertionsParameters.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.CheckParameters != nil {
+ size, err := m.CheckParameters.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *OperationsResults) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *OperationsResults) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *OperationsResults) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ if len(m.Results) > 0 {
+ for k := range m.Results {
+ v := m.Results[k]
+ baseI := i
+ size, err := v.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x12
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(k))
+ i--
+ dAtA[i] = 0x8
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *OperationResult) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *OperationResult) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *OperationResult) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ if m.SchemaWarningsResult != nil {
+ size, err := m.SchemaWarningsResult.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x2a
+ }
+ if m.FormatSchemaResult != nil {
+ size, err := m.FormatSchemaResult.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x22
+ }
+ if m.ValidationResult != nil {
+ size, err := m.ValidationResult.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if m.AssertionsResult != nil {
+ size, err := m.AssertionsResult.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.CheckResult != nil {
+ size, err := m.CheckResult.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *DeveloperWarning) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *DeveloperWarning) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *DeveloperWarning) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ if len(m.SourceCode) > 0 {
+ i -= len(m.SourceCode)
+ copy(dAtA[i:], m.SourceCode)
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SourceCode)))
+ i--
+ dAtA[i] = 0x22
+ }
+ if m.Column != 0 {
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Column))
+ i--
+ dAtA[i] = 0x18
+ }
+ if m.Line != 0 {
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Line))
+ i--
+ dAtA[i] = 0x10
+ }
+ if len(m.Message) > 0 {
+ i -= len(m.Message)
+ copy(dAtA[i:], m.Message)
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Message)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *DeveloperError) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *DeveloperError) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *DeveloperError) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ if m.CheckResolvedDebugInformation != nil {
+ if vtmsg, ok := interface{}(m.CheckResolvedDebugInformation).(interface {
+ MarshalToSizedBufferVT([]byte) (int, error)
+ }); ok {
+ size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ } else {
+ encoded, err := proto.Marshal(m.CheckResolvedDebugInformation)
+ if err != nil {
+ return 0, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ }
+ i--
+ dAtA[i] = 0x4a
+ }
+ if m.CheckDebugInformation != nil {
+ if vtmsg, ok := interface{}(m.CheckDebugInformation).(interface {
+ MarshalToSizedBufferVT([]byte) (int, error)
+ }); ok {
+ size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ } else {
+ encoded, err := proto.Marshal(m.CheckDebugInformation)
+ if err != nil {
+ return 0, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ }
+ i--
+ dAtA[i] = 0x42
+ }
+ if len(m.Context) > 0 {
+ i -= len(m.Context)
+ copy(dAtA[i:], m.Context)
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Context)))
+ i--
+ dAtA[i] = 0x3a
+ }
+ if len(m.Path) > 0 {
+ for iNdEx := len(m.Path) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.Path[iNdEx])
+ copy(dAtA[i:], m.Path[iNdEx])
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Path[iNdEx])))
+ i--
+ dAtA[i] = 0x32
+ }
+ }
+ if m.Kind != 0 {
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Kind))
+ i--
+ dAtA[i] = 0x28
+ }
+ if m.Source != 0 {
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Source))
+ i--
+ dAtA[i] = 0x20
+ }
+ if m.Column != 0 {
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Column))
+ i--
+ dAtA[i] = 0x18
+ }
+ if m.Line != 0 {
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Line))
+ i--
+ dAtA[i] = 0x10
+ }
+ if len(m.Message) > 0 {
+ i -= len(m.Message)
+ copy(dAtA[i:], m.Message)
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Message)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *DeveloperErrors) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *DeveloperErrors) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *DeveloperErrors) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ if len(m.InputErrors) > 0 {
+ for iNdEx := len(m.InputErrors) - 1; iNdEx >= 0; iNdEx-- {
+ size, err := m.InputErrors[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *CheckOperationParameters) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *CheckOperationParameters) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *CheckOperationParameters) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ if m.CaveatContext != nil {
+ size, err := (*structpb1.Struct)(m.CaveatContext).MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if m.Subject != nil {
+ if vtmsg, ok := interface{}(m.Subject).(interface {
+ MarshalToSizedBufferVT([]byte) (int, error)
+ }); ok {
+ size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ } else {
+ encoded, err := proto.Marshal(m.Subject)
+ if err != nil {
+ return 0, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.Resource != nil {
+ if vtmsg, ok := interface{}(m.Resource).(interface {
+ MarshalToSizedBufferVT([]byte) (int, error)
+ }); ok {
+ size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ } else {
+ encoded, err := proto.Marshal(m.Resource)
+ if err != nil {
+ return 0, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *CheckOperationsResult) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *CheckOperationsResult) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *CheckOperationsResult) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ if m.ResolvedDebugInformation != nil {
+ if vtmsg, ok := interface{}(m.ResolvedDebugInformation).(interface {
+ MarshalToSizedBufferVT([]byte) (int, error)
+ }); ok {
+ size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ } else {
+ encoded, err := proto.Marshal(m.ResolvedDebugInformation)
+ if err != nil {
+ return 0, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ }
+ i--
+ dAtA[i] = 0x2a
+ }
+ if m.PartialCaveatInfo != nil {
+ size, err := m.PartialCaveatInfo.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x22
+ }
+ if m.DebugInformation != nil {
+ if vtmsg, ok := interface{}(m.DebugInformation).(interface {
+ MarshalToSizedBufferVT([]byte) (int, error)
+ }); ok {
+ size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ } else {
+ encoded, err := proto.Marshal(m.DebugInformation)
+ if err != nil {
+ return 0, err
+ }
+ i -= len(encoded)
+ copy(dAtA[i:], encoded)
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded)))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ if m.CheckError != nil {
+ size, err := m.CheckError.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.Membership != 0 {
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Membership))
+ i--
+ dAtA[i] = 0x8
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *PartialCaveatInfo) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *PartialCaveatInfo) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *PartialCaveatInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ if len(m.MissingRequiredContext) > 0 {
+ for iNdEx := len(m.MissingRequiredContext) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.MissingRequiredContext[iNdEx])
+ copy(dAtA[i:], m.MissingRequiredContext[iNdEx])
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.MissingRequiredContext[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *RunAssertionsParameters) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *RunAssertionsParameters) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *RunAssertionsParameters) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ if len(m.AssertionsYaml) > 0 {
+ i -= len(m.AssertionsYaml)
+ copy(dAtA[i:], m.AssertionsYaml)
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssertionsYaml)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *RunAssertionsResult) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *RunAssertionsResult) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *RunAssertionsResult) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ if len(m.ValidationErrors) > 0 {
+ for iNdEx := len(m.ValidationErrors) - 1; iNdEx >= 0; iNdEx-- {
+ size, err := m.ValidationErrors[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ if m.InputError != nil {
+ size, err := m.InputError.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *RunValidationParameters) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *RunValidationParameters) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *RunValidationParameters) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ if len(m.ValidationYaml) > 0 {
+ i -= len(m.ValidationYaml)
+ copy(dAtA[i:], m.ValidationYaml)
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ValidationYaml)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *RunValidationResult) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *RunValidationResult) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *RunValidationResult) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ if len(m.ValidationErrors) > 0 {
+ for iNdEx := len(m.ValidationErrors) - 1; iNdEx >= 0; iNdEx-- {
+ size, err := m.ValidationErrors[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x1a
+ }
+ }
+ if len(m.UpdatedValidationYaml) > 0 {
+ i -= len(m.UpdatedValidationYaml)
+ copy(dAtA[i:], m.UpdatedValidationYaml)
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UpdatedValidationYaml)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.InputError != nil {
+ size, err := m.InputError.MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *FormatSchemaParameters) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *FormatSchemaParameters) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *FormatSchemaParameters) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *FormatSchemaResult) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *FormatSchemaResult) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *FormatSchemaResult) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ if len(m.FormattedSchema) > 0 {
+ i -= len(m.FormattedSchema)
+ copy(dAtA[i:], m.FormattedSchema)
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.FormattedSchema)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *SchemaWarningsParameters) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *SchemaWarningsParameters) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *SchemaWarningsParameters) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *SchemaWarningsResult) MarshalVT() (dAtA []byte, err error) {
+ if m == nil {
+ return nil, nil
+ }
+ size := m.SizeVT()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBufferVT(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *SchemaWarningsResult) MarshalToVT(dAtA []byte) (int, error) {
+ size := m.SizeVT()
+ return m.MarshalToSizedBufferVT(dAtA[:size])
+}
+
+func (m *SchemaWarningsResult) MarshalToSizedBufferVT(dAtA []byte) (int, error) {
+ if m == nil {
+ return 0, nil
+ }
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.unknownFields != nil {
+ i -= len(m.unknownFields)
+ copy(dAtA[i:], m.unknownFields)
+ }
+ if len(m.Warnings) > 0 {
+ for iNdEx := len(m.Warnings) - 1; iNdEx >= 0; iNdEx-- {
+ size, err := m.Warnings[iNdEx].MarshalToSizedBufferVT(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = protohelpers.EncodeVarint(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *DeveloperRequest) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Context != nil {
+ l = m.Context.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if len(m.Operations) > 0 {
+ for _, e := range m.Operations {
+ l = e.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *DeveloperResponse) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.InternalError)
+ if l > 0 {
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.DeveloperErrors != nil {
+ l = m.DeveloperErrors.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.OperationsResults != nil {
+ l = m.OperationsResults.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *RequestContext) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Schema)
+ if l > 0 {
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if len(m.Relationships) > 0 {
+ for _, e := range m.Relationships {
+ if size, ok := interface{}(e).(interface {
+ SizeVT() int
+ }); ok {
+ l = size.SizeVT()
+ } else {
+ l = proto.Size(e)
+ }
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *Operation) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.CheckParameters != nil {
+ l = m.CheckParameters.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.AssertionsParameters != nil {
+ l = m.AssertionsParameters.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.ValidationParameters != nil {
+ l = m.ValidationParameters.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.FormatSchemaParameters != nil {
+ l = m.FormatSchemaParameters.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.SchemaWarningsParameters != nil {
+ l = m.SchemaWarningsParameters.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *OperationsResults) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.Results) > 0 {
+ for k, v := range m.Results {
+ _ = k
+ _ = v
+ l = 0
+ if v != nil {
+ l = v.SizeVT()
+ }
+ l += 1 + protohelpers.SizeOfVarint(uint64(l))
+ mapEntrySize := 1 + protohelpers.SizeOfVarint(uint64(k)) + l
+ n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize))
+ }
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *OperationResult) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.CheckResult != nil {
+ l = m.CheckResult.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.AssertionsResult != nil {
+ l = m.AssertionsResult.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.ValidationResult != nil {
+ l = m.ValidationResult.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.FormatSchemaResult != nil {
+ l = m.FormatSchemaResult.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.SchemaWarningsResult != nil {
+ l = m.SchemaWarningsResult.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *DeveloperWarning) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Message)
+ if l > 0 {
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.Line != 0 {
+ n += 1 + protohelpers.SizeOfVarint(uint64(m.Line))
+ }
+ if m.Column != 0 {
+ n += 1 + protohelpers.SizeOfVarint(uint64(m.Column))
+ }
+ l = len(m.SourceCode)
+ if l > 0 {
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *DeveloperError) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Message)
+ if l > 0 {
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.Line != 0 {
+ n += 1 + protohelpers.SizeOfVarint(uint64(m.Line))
+ }
+ if m.Column != 0 {
+ n += 1 + protohelpers.SizeOfVarint(uint64(m.Column))
+ }
+ if m.Source != 0 {
+ n += 1 + protohelpers.SizeOfVarint(uint64(m.Source))
+ }
+ if m.Kind != 0 {
+ n += 1 + protohelpers.SizeOfVarint(uint64(m.Kind))
+ }
+ if len(m.Path) > 0 {
+ for _, s := range m.Path {
+ l = len(s)
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ }
+ l = len(m.Context)
+ if l > 0 {
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.CheckDebugInformation != nil {
+ if size, ok := interface{}(m.CheckDebugInformation).(interface {
+ SizeVT() int
+ }); ok {
+ l = size.SizeVT()
+ } else {
+ l = proto.Size(m.CheckDebugInformation)
+ }
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.CheckResolvedDebugInformation != nil {
+ if size, ok := interface{}(m.CheckResolvedDebugInformation).(interface {
+ SizeVT() int
+ }); ok {
+ l = size.SizeVT()
+ } else {
+ l = proto.Size(m.CheckResolvedDebugInformation)
+ }
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *DeveloperErrors) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.InputErrors) > 0 {
+ for _, e := range m.InputErrors {
+ l = e.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *CheckOperationParameters) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Resource != nil {
+ if size, ok := interface{}(m.Resource).(interface {
+ SizeVT() int
+ }); ok {
+ l = size.SizeVT()
+ } else {
+ l = proto.Size(m.Resource)
+ }
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.Subject != nil {
+ if size, ok := interface{}(m.Subject).(interface {
+ SizeVT() int
+ }); ok {
+ l = size.SizeVT()
+ } else {
+ l = proto.Size(m.Subject)
+ }
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.CaveatContext != nil {
+ l = (*structpb1.Struct)(m.CaveatContext).SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *CheckOperationsResult) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Membership != 0 {
+ n += 1 + protohelpers.SizeOfVarint(uint64(m.Membership))
+ }
+ if m.CheckError != nil {
+ l = m.CheckError.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.DebugInformation != nil {
+ if size, ok := interface{}(m.DebugInformation).(interface {
+ SizeVT() int
+ }); ok {
+ l = size.SizeVT()
+ } else {
+ l = proto.Size(m.DebugInformation)
+ }
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.PartialCaveatInfo != nil {
+ l = m.PartialCaveatInfo.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if m.ResolvedDebugInformation != nil {
+ if size, ok := interface{}(m.ResolvedDebugInformation).(interface {
+ SizeVT() int
+ }); ok {
+ l = size.SizeVT()
+ } else {
+ l = proto.Size(m.ResolvedDebugInformation)
+ }
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *PartialCaveatInfo) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.MissingRequiredContext) > 0 {
+ for _, s := range m.MissingRequiredContext {
+ l = len(s)
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *RunAssertionsParameters) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.AssertionsYaml)
+ if l > 0 {
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *RunAssertionsResult) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.InputError != nil {
+ l = m.InputError.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if len(m.ValidationErrors) > 0 {
+ for _, e := range m.ValidationErrors {
+ l = e.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *RunValidationParameters) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.ValidationYaml)
+ if l > 0 {
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *RunValidationResult) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.InputError != nil {
+ l = m.InputError.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ l = len(m.UpdatedValidationYaml)
+ if l > 0 {
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ if len(m.ValidationErrors) > 0 {
+ for _, e := range m.ValidationErrors {
+ l = e.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *FormatSchemaParameters) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *FormatSchemaResult) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.FormattedSchema)
+ if l > 0 {
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *SchemaWarningsParameters) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *SchemaWarningsResult) SizeVT() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.Warnings) > 0 {
+ for _, e := range m.Warnings {
+ l = e.SizeVT()
+ n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
+ }
+ }
+ n += len(m.unknownFields)
+ return n
+}
+
+func (m *DeveloperRequest) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: DeveloperRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: DeveloperRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Context == nil {
+ m.Context = &RequestContext{}
+ }
+ if err := m.Context.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Operations", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Operations = append(m.Operations, &Operation{})
+ if err := m.Operations[len(m.Operations)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *DeveloperResponse) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: DeveloperResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: DeveloperResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field InternalError", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.InternalError = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DeveloperErrors", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.DeveloperErrors == nil {
+ m.DeveloperErrors = &DeveloperErrors{}
+ }
+ if err := m.DeveloperErrors.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field OperationsResults", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.OperationsResults == nil {
+ m.OperationsResults = &OperationsResults{}
+ }
+ if err := m.OperationsResults.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *RequestContext) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: RequestContext: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: RequestContext: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Schema = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Relationships", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Relationships = append(m.Relationships, &v1.RelationTuple{})
+ if unmarshal, ok := interface{}(m.Relationships[len(m.Relationships)-1]).(interface {
+ UnmarshalVT([]byte) error
+ }); ok {
+ if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ } else {
+ if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.Relationships[len(m.Relationships)-1]); err != nil {
+ return err
+ }
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *Operation) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Operation: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Operation: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CheckParameters", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.CheckParameters == nil {
+ m.CheckParameters = &CheckOperationParameters{}
+ }
+ if err := m.CheckParameters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AssertionsParameters", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.AssertionsParameters == nil {
+ m.AssertionsParameters = &RunAssertionsParameters{}
+ }
+ if err := m.AssertionsParameters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ValidationParameters", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.ValidationParameters == nil {
+ m.ValidationParameters = &RunValidationParameters{}
+ }
+ if err := m.ValidationParameters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field FormatSchemaParameters", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.FormatSchemaParameters == nil {
+ m.FormatSchemaParameters = &FormatSchemaParameters{}
+ }
+ if err := m.FormatSchemaParameters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SchemaWarningsParameters", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.SchemaWarningsParameters == nil {
+ m.SchemaWarningsParameters = &SchemaWarningsParameters{}
+ }
+ if err := m.SchemaWarningsParameters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *OperationsResults) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: OperationsResults: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: OperationsResults: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Results == nil {
+ m.Results = make(map[uint64]*OperationResult)
+ }
+ var mapkey uint64
+ var mapvalue *OperationResult
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ if fieldNum == 1 {
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapkey |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ } else if fieldNum == 2 {
+ var mapmsglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapmsglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if mapmsglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postmsgIndex := iNdEx + mapmsglen
+ if postmsgIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postmsgIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = &OperationResult{}
+ if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil {
+ return err
+ }
+ iNdEx = postmsgIndex
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Results[mapkey] = mapvalue
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *OperationResult) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: OperationResult: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: OperationResult: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CheckResult", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.CheckResult == nil {
+ m.CheckResult = &CheckOperationsResult{}
+ }
+ if err := m.CheckResult.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AssertionsResult", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.AssertionsResult == nil {
+ m.AssertionsResult = &RunAssertionsResult{}
+ }
+ if err := m.AssertionsResult.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ValidationResult", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.ValidationResult == nil {
+ m.ValidationResult = &RunValidationResult{}
+ }
+ if err := m.ValidationResult.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field FormatSchemaResult", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.FormatSchemaResult == nil {
+ m.FormatSchemaResult = &FormatSchemaResult{}
+ }
+ if err := m.FormatSchemaResult.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SchemaWarningsResult", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.SchemaWarningsResult == nil {
+ m.SchemaWarningsResult = &SchemaWarningsResult{}
+ }
+ if err := m.SchemaWarningsResult.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *DeveloperWarning) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: DeveloperWarning: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: DeveloperWarning: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Message = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Line", wireType)
+ }
+ m.Line = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Line |= uint32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 3:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Column", wireType)
+ }
+ m.Column = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Column |= uint32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SourceCode", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.SourceCode = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *DeveloperError) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: DeveloperError: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: DeveloperError: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Message = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Line", wireType)
+ }
+ m.Line = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Line |= uint32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 3:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Column", wireType)
+ }
+ m.Column = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Column |= uint32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 4:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
+ }
+ m.Source = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Source |= DeveloperError_Source(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 5:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
+ }
+ m.Kind = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Kind |= DeveloperError_ErrorKind(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Path = append(m.Path, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Context = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 8:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CheckDebugInformation", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.CheckDebugInformation == nil {
+ m.CheckDebugInformation = &v11.DebugInformation{}
+ }
+ if unmarshal, ok := interface{}(m.CheckDebugInformation).(interface {
+ UnmarshalVT([]byte) error
+ }); ok {
+ if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ } else {
+ if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.CheckDebugInformation); err != nil {
+ return err
+ }
+ }
+ iNdEx = postIndex
+ case 9:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CheckResolvedDebugInformation", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.CheckResolvedDebugInformation == nil {
+ m.CheckResolvedDebugInformation = &v12.DebugInformation{}
+ }
+ if unmarshal, ok := interface{}(m.CheckResolvedDebugInformation).(interface {
+ UnmarshalVT([]byte) error
+ }); ok {
+ if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ } else {
+ if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.CheckResolvedDebugInformation); err != nil {
+ return err
+ }
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *DeveloperErrors) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: DeveloperErrors: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: DeveloperErrors: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field InputErrors", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.InputErrors = append(m.InputErrors, &DeveloperError{})
+ if err := m.InputErrors[len(m.InputErrors)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *CheckOperationParameters) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: CheckOperationParameters: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: CheckOperationParameters: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Resource == nil {
+ m.Resource = &v1.ObjectAndRelation{}
+ }
+ if unmarshal, ok := interface{}(m.Resource).(interface {
+ UnmarshalVT([]byte) error
+ }); ok {
+ if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ } else {
+ if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.Resource); err != nil {
+ return err
+ }
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Subject == nil {
+ m.Subject = &v1.ObjectAndRelation{}
+ }
+ if unmarshal, ok := interface{}(m.Subject).(interface {
+ UnmarshalVT([]byte) error
+ }); ok {
+ if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ } else {
+ if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.Subject); err != nil {
+ return err
+ }
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CaveatContext", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.CaveatContext == nil {
+ m.CaveatContext = &structpb.Struct{}
+ }
+ if err := (*structpb1.Struct)(m.CaveatContext).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *CheckOperationsResult) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: CheckOperationsResult: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: CheckOperationsResult: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Membership", wireType)
+ }
+ m.Membership = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Membership |= CheckOperationsResult_Membership(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CheckError", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.CheckError == nil {
+ m.CheckError = &DeveloperError{}
+ }
+ if err := m.CheckError.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DebugInformation", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.DebugInformation == nil {
+ m.DebugInformation = &v11.DebugInformation{}
+ }
+ if unmarshal, ok := interface{}(m.DebugInformation).(interface {
+ UnmarshalVT([]byte) error
+ }); ok {
+ if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ } else {
+ if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.DebugInformation); err != nil {
+ return err
+ }
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field PartialCaveatInfo", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.PartialCaveatInfo == nil {
+ m.PartialCaveatInfo = &PartialCaveatInfo{}
+ }
+ if err := m.PartialCaveatInfo.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ResolvedDebugInformation", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.ResolvedDebugInformation == nil {
+ m.ResolvedDebugInformation = &v12.DebugInformation{}
+ }
+ if unmarshal, ok := interface{}(m.ResolvedDebugInformation).(interface {
+ UnmarshalVT([]byte) error
+ }); ok {
+ if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ } else {
+ if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.ResolvedDebugInformation); err != nil {
+ return err
+ }
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *PartialCaveatInfo) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: PartialCaveatInfo: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: PartialCaveatInfo: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field MissingRequiredContext", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.MissingRequiredContext = append(m.MissingRequiredContext, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *RunAssertionsParameters) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: RunAssertionsParameters: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: RunAssertionsParameters: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AssertionsYaml", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.AssertionsYaml = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *RunAssertionsResult) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: RunAssertionsResult: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: RunAssertionsResult: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field InputError", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.InputError == nil {
+ m.InputError = &DeveloperError{}
+ }
+ if err := m.InputError.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ValidationErrors", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ValidationErrors = append(m.ValidationErrors, &DeveloperError{})
+ if err := m.ValidationErrors[len(m.ValidationErrors)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *RunValidationParameters) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: RunValidationParameters: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: RunValidationParameters: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ValidationYaml", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ValidationYaml = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *RunValidationResult) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: RunValidationResult: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: RunValidationResult: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field InputError", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.InputError == nil {
+ m.InputError = &DeveloperError{}
+ }
+ if err := m.InputError.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field UpdatedValidationYaml", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.UpdatedValidationYaml = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ValidationErrors", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ValidationErrors = append(m.ValidationErrors, &DeveloperError{})
+ if err := m.ValidationErrors[len(m.ValidationErrors)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *FormatSchemaParameters) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: FormatSchemaParameters: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: FormatSchemaParameters: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *FormatSchemaResult) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: FormatSchemaResult: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: FormatSchemaResult: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field FormattedSchema", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.FormattedSchema = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *SchemaWarningsParameters) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: SchemaWarningsParameters: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: SchemaWarningsParameters: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *SchemaWarningsResult) UnmarshalVT(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: SchemaWarningsResult: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: SchemaWarningsResult: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Warnings", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return protohelpers.ErrIntOverflow
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Warnings = append(m.Warnings, &DeveloperWarning{})
+ if err := m.Warnings[len(m.Warnings)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := protohelpers.Skip(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return protohelpers.ErrInvalidLength
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}