diff --git a/api/kessel/relations/v1/health.pb.go b/api/kessel/relations/v1/health.pb.go index e622ec5b..8f39d6cc 100644 --- a/api/kessel/relations/v1/health.pb.go +++ b/api/kessel/relations/v1/health.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: kessel/relations/v1/health.proto @@ -29,11 +29,9 @@ type GetLivezRequest struct { func (x *GetLivezRequest) Reset() { *x = GetLivezRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1_health_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1_health_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetLivezRequest) String() string { @@ -44,7 +42,7 @@ func (*GetLivezRequest) ProtoMessage() {} func (x *GetLivezRequest) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1_health_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -70,11 +68,9 @@ type GetLivezResponse struct { func (x *GetLivezResponse) Reset() { *x = GetLivezResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1_health_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1_health_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetLivezResponse) String() string { @@ -85,7 +81,7 @@ func (*GetLivezResponse) ProtoMessage() {} func (x *GetLivezResponse) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1_health_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -122,11 +118,9 @@ type GetReadyzRequest struct { func (x *GetReadyzRequest) Reset() { *x = GetReadyzRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1_health_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1_health_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetReadyzRequest) String() string { @@ -137,7 +131,7 @@ func (*GetReadyzRequest) ProtoMessage() {} func (x *GetReadyzRequest) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1_health_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -163,11 +157,9 @@ type GetReadyzResponse struct { func (x *GetReadyzResponse) Reset() { *x = GetReadyzResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1_health_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1_health_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetReadyzResponse) String() string { @@ -178,7 +170,7 @@ func (*GetReadyzResponse) ProtoMessage() {} func (x *GetReadyzResponse) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1_health_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -287,56 +279,6 @@ func file_kessel_relations_v1_health_proto_init() { if File_kessel_relations_v1_health_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_kessel_relations_v1_health_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*GetLivezRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1_health_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*GetLivezResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1_health_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*GetReadyzRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1_health_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*GetReadyzResponse); 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{ diff --git a/api/kessel/relations/v1beta1/check.pb.go b/api/kessel/relations/v1beta1/check.pb.go index 3ed89da9..7a9a448b 100644 --- a/api/kessel/relations/v1beta1/check.pb.go +++ b/api/kessel/relations/v1beta1/check.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: kessel/relations/v1beta1/check.proto @@ -83,11 +83,9 @@ type CheckRequest struct { func (x *CheckRequest) Reset() { *x = CheckRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_check_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_check_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CheckRequest) String() string { @@ -98,7 +96,7 @@ func (*CheckRequest) ProtoMessage() {} func (x *CheckRequest) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_check_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -144,11 +142,9 @@ type CheckResponse struct { func (x *CheckResponse) Reset() { *x = CheckResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_check_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_check_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CheckResponse) String() string { @@ -159,7 +155,7 @@ func (*CheckResponse) ProtoMessage() {} func (x *CheckResponse) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_check_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -277,32 +273,6 @@ func file_kessel_relations_v1beta1_check_proto_init() { return } file_kessel_relations_v1beta1_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_kessel_relations_v1beta1_check_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*CheckRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1beta1_check_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*CheckResponse); 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{ diff --git a/api/kessel/relations/v1beta1/common.pb.go b/api/kessel/relations/v1beta1/common.pb.go index 4dd0d3dd..4d2da49b 100644 --- a/api/kessel/relations/v1beta1/common.pb.go +++ b/api/kessel/relations/v1beta1/common.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: kessel/relations/v1beta1/common.proto @@ -42,11 +42,9 @@ type Relationship struct { func (x *Relationship) Reset() { *x = Relationship{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_common_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_common_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Relationship) String() string { @@ -57,7 +55,7 @@ func (*Relationship) ProtoMessage() {} func (x *Relationship) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_common_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -107,11 +105,9 @@ type SubjectReference struct { func (x *SubjectReference) Reset() { *x = SubjectReference{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_common_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_common_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SubjectReference) String() string { @@ -122,7 +118,7 @@ func (*SubjectReference) ProtoMessage() {} func (x *SubjectReference) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_common_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -162,11 +158,9 @@ type RequestPagination struct { func (x *RequestPagination) Reset() { *x = RequestPagination{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_common_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_common_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RequestPagination) String() string { @@ -177,7 +171,7 @@ func (*RequestPagination) ProtoMessage() {} func (x *RequestPagination) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_common_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -216,11 +210,9 @@ type ResponsePagination struct { func (x *ResponsePagination) Reset() { *x = ResponsePagination{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_common_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_common_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResponsePagination) String() string { @@ -231,7 +223,7 @@ func (*ResponsePagination) ProtoMessage() {} func (x *ResponsePagination) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_common_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -264,11 +256,9 @@ type ObjectReference struct { func (x *ObjectReference) Reset() { *x = ObjectReference{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_common_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_common_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectReference) String() string { @@ -279,7 +269,7 @@ func (*ObjectReference) ProtoMessage() {} func (x *ObjectReference) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_common_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -319,11 +309,9 @@ type ObjectType struct { func (x *ObjectType) Reset() { *x = ObjectType{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_common_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_common_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectType) String() string { @@ -334,7 +322,7 @@ func (*ObjectType) ProtoMessage() {} func (x *ObjectType) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_common_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -467,80 +455,6 @@ func file_kessel_relations_v1beta1_common_proto_init() { if File_kessel_relations_v1beta1_common_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_kessel_relations_v1beta1_common_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Relationship); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1beta1_common_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*SubjectReference); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1beta1_common_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*RequestPagination); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1beta1_common_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ResponsePagination); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1beta1_common_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*ObjectReference); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1beta1_common_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*ObjectType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_kessel_relations_v1beta1_common_proto_msgTypes[1].OneofWrappers = []any{} file_kessel_relations_v1beta1_common_proto_msgTypes[2].OneofWrappers = []any{} type x struct{} diff --git a/api/kessel/relations/v1beta1/lookup.pb.go b/api/kessel/relations/v1beta1/lookup.pb.go index 4b88a27b..0c8af19b 100644 --- a/api/kessel/relations/v1beta1/lookup.pb.go +++ b/api/kessel/relations/v1beta1/lookup.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: kessel/relations/v1beta1/lookup.proto @@ -35,11 +35,9 @@ type LookupResourcesRequest struct { func (x *LookupResourcesRequest) Reset() { *x = LookupResourcesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_lookup_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_lookup_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LookupResourcesRequest) String() string { @@ -50,7 +48,7 @@ func (*LookupResourcesRequest) ProtoMessage() {} func (x *LookupResourcesRequest) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_lookup_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -104,11 +102,9 @@ type LookupResourcesResponse struct { func (x *LookupResourcesResponse) Reset() { *x = LookupResourcesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_lookup_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_lookup_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LookupResourcesResponse) String() string { @@ -119,7 +115,7 @@ func (*LookupResourcesResponse) ProtoMessage() {} func (x *LookupResourcesResponse) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_lookup_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -162,11 +158,9 @@ type LookupSubjectsRequest struct { func (x *LookupSubjectsRequest) Reset() { *x = LookupSubjectsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_lookup_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_lookup_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LookupSubjectsRequest) String() string { @@ -177,7 +171,7 @@ func (*LookupSubjectsRequest) ProtoMessage() {} func (x *LookupSubjectsRequest) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_lookup_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -238,11 +232,9 @@ type LookupSubjectsResponse struct { func (x *LookupSubjectsResponse) Reset() { *x = LookupSubjectsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_lookup_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_lookup_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LookupSubjectsResponse) String() string { @@ -253,7 +245,7 @@ func (*LookupSubjectsResponse) ProtoMessage() {} func (x *LookupSubjectsResponse) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_lookup_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -444,56 +436,6 @@ func file_kessel_relations_v1beta1_lookup_proto_init() { return } file_kessel_relations_v1beta1_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_kessel_relations_v1beta1_lookup_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*LookupResourcesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1beta1_lookup_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*LookupResourcesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1beta1_lookup_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*LookupSubjectsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1beta1_lookup_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*LookupSubjectsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_kessel_relations_v1beta1_lookup_proto_msgTypes[0].OneofWrappers = []any{} file_kessel_relations_v1beta1_lookup_proto_msgTypes[2].OneofWrappers = []any{} type x struct{} diff --git a/api/kessel/relations/v1beta1/relation_tuples.pb.go b/api/kessel/relations/v1beta1/relation_tuples.pb.go index 9c1d7fc7..568f86a9 100644 --- a/api/kessel/relations/v1beta1/relation_tuples.pb.go +++ b/api/kessel/relations/v1beta1/relation_tuples.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: kessel/relations/v1beta1/relation_tuples.proto @@ -32,11 +32,9 @@ type ImportBulkTuplesRequest struct { func (x *ImportBulkTuplesRequest) Reset() { *x = ImportBulkTuplesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImportBulkTuplesRequest) String() string { @@ -47,7 +45,7 @@ func (*ImportBulkTuplesRequest) ProtoMessage() {} func (x *ImportBulkTuplesRequest) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -79,11 +77,9 @@ type ImportBulkTuplesResponse struct { func (x *ImportBulkTuplesResponse) Reset() { *x = ImportBulkTuplesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImportBulkTuplesResponse) String() string { @@ -94,7 +90,7 @@ func (*ImportBulkTuplesResponse) ProtoMessage() {} func (x *ImportBulkTuplesResponse) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -130,11 +126,9 @@ type CreateTuplesRequest struct { func (x *CreateTuplesRequest) Reset() { *x = CreateTuplesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateTuplesRequest) String() string { @@ -145,7 +139,7 @@ func (*CreateTuplesRequest) ProtoMessage() {} func (x *CreateTuplesRequest) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -182,11 +176,9 @@ type CreateTuplesResponse struct { func (x *CreateTuplesResponse) Reset() { *x = CreateTuplesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateTuplesResponse) String() string { @@ -197,7 +189,7 @@ func (*CreateTuplesResponse) ProtoMessage() {} func (x *CreateTuplesResponse) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -223,11 +215,9 @@ type ReadTuplesRequest struct { func (x *ReadTuplesRequest) Reset() { *x = ReadTuplesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReadTuplesRequest) String() string { @@ -238,7 +228,7 @@ func (*ReadTuplesRequest) ProtoMessage() {} func (x *ReadTuplesRequest) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -278,11 +268,9 @@ type ReadTuplesResponse struct { func (x *ReadTuplesResponse) Reset() { *x = ReadTuplesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReadTuplesResponse) String() string { @@ -293,7 +281,7 @@ func (*ReadTuplesResponse) ProtoMessage() {} func (x *ReadTuplesResponse) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -332,11 +320,9 @@ type DeleteTuplesRequest struct { func (x *DeleteTuplesRequest) Reset() { *x = DeleteTuplesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteTuplesRequest) String() string { @@ -347,7 +333,7 @@ func (*DeleteTuplesRequest) ProtoMessage() {} func (x *DeleteTuplesRequest) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -377,11 +363,9 @@ type DeleteTuplesResponse struct { func (x *DeleteTuplesResponse) Reset() { *x = DeleteTuplesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteTuplesResponse) String() string { @@ -392,7 +376,7 @@ func (*DeleteTuplesResponse) ProtoMessage() {} func (x *DeleteTuplesResponse) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -424,11 +408,9 @@ type RelationTupleFilter struct { func (x *RelationTupleFilter) Reset() { *x = RelationTupleFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RelationTupleFilter) String() string { @@ -439,7 +421,7 @@ func (*RelationTupleFilter) ProtoMessage() {} func (x *RelationTupleFilter) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -502,11 +484,9 @@ type SubjectFilter struct { func (x *SubjectFilter) Reset() { *x = SubjectFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SubjectFilter) String() string { @@ -517,7 +497,7 @@ func (*SubjectFilter) ProtoMessage() {} func (x *SubjectFilter) ProtoReflect() protoreflect.Message { mi := &file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -766,128 +746,6 @@ func file_kessel_relations_v1beta1_relation_tuples_proto_init() { return } file_kessel_relations_v1beta1_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ImportBulkTuplesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ImportBulkTuplesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*CreateTuplesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*CreateTuplesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*ReadTuplesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*ReadTuplesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*DeleteTuplesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*DeleteTuplesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*RelationTupleFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*SubjectFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[4].OneofWrappers = []any{} file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[8].OneofWrappers = []any{} file_kessel_relations_v1beta1_relation_tuples_proto_msgTypes[9].OneofWrappers = []any{} diff --git a/cmd/kessel-relations/wire_gen.go b/cmd/kessel-relations/wire_gen.go index a855b8a3..e8b1d6c9 100644 --- a/cmd/kessel-relations/wire_gen.go +++ b/cmd/kessel-relations/wire_gen.go @@ -32,7 +32,7 @@ func wireApp(confServer *conf.Server, confData *conf.Data, logger log.Logger) (* readRelationshipsUsecase := biz.NewReadRelationshipsUsecase(spiceDbRepository, logger) deleteRelationshipsUsecase := biz.NewDeleteRelationshipsUsecase(spiceDbRepository, logger) importBulkTuplesUsecase := biz.NewImportBulkTuplesUsecase(spiceDbRepository, logger) - relationshipsService := service.NewRelationshipsService(logger, createRelationshipsUsecase, readRelationshipsUsecase, deleteRelationshipsUsecase,importBulkTuplesUsecase) + relationshipsService := service.NewRelationshipsService(logger, createRelationshipsUsecase, readRelationshipsUsecase, deleteRelationshipsUsecase, importBulkTuplesUsecase) isBackendAvaliableUsecase := biz.NewIsBackendAvailableUsecase(spiceDbRepository) healthService := service.NewHealthService(isBackendAvaliableUsecase) checkUsecase := biz.NewCheckUsecase(spiceDbRepository, logger) diff --git a/go.mod b/go.mod index 34209dfb..3e3a87fb 100644 --- a/go.mod +++ b/go.mod @@ -23,7 +23,7 @@ require ( go.uber.org/automaxprocs v1.6.0 google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 google.golang.org/grpc v1.67.1 - google.golang.org/protobuf v1.34.2 + google.golang.org/protobuf v1.35.1 ) require ( diff --git a/go.sum b/go.sum index bd874266..d4a3bc4d 100644 --- a/go.sum +++ b/go.sum @@ -339,8 +339,8 @@ google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8 google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= -google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= +google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= diff --git a/internal/conf/conf.pb.go b/internal/conf/conf.pb.go index 5416146a..ea4b5332 100644 --- a/internal/conf/conf.pb.go +++ b/internal/conf/conf.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: conf.proto @@ -32,11 +32,9 @@ type Bootstrap struct { func (x *Bootstrap) Reset() { *x = Bootstrap{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Bootstrap) String() string { @@ -47,7 +45,7 @@ func (*Bootstrap) ProtoMessage() {} func (x *Bootstrap) ProtoReflect() protoreflect.Message { mi := &file_conf_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -89,11 +87,9 @@ type Server struct { func (x *Server) Reset() { *x = Server{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server) String() string { @@ -104,7 +100,7 @@ func (*Server) ProtoMessage() {} func (x *Server) ProtoReflect() protoreflect.Message { mi := &file_conf_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -157,11 +153,9 @@ type Data struct { func (x *Data) Reset() { *x = Data{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data) String() string { @@ -172,7 +166,7 @@ func (*Data) ProtoMessage() {} func (x *Data) ProtoReflect() protoreflect.Message { mi := &file_conf_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -207,11 +201,9 @@ type Server_HTTP struct { func (x *Server_HTTP) Reset() { *x = Server_HTTP{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_HTTP) String() string { @@ -222,7 +214,7 @@ func (*Server_HTTP) ProtoMessage() {} func (x *Server_HTTP) ProtoReflect() protoreflect.Message { mi := &file_conf_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -277,11 +269,9 @@ type Server_GRPC struct { func (x *Server_GRPC) Reset() { *x = Server_GRPC{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_GRPC) String() string { @@ -292,7 +282,7 @@ func (*Server_GRPC) ProtoMessage() {} func (x *Server_GRPC) ProtoReflect() protoreflect.Message { mi := &file_conf_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -339,11 +329,9 @@ type Server_Auth struct { func (x *Server_Auth) Reset() { *x = Server_Auth{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_Auth) String() string { @@ -354,7 +342,7 @@ func (*Server_Auth) ProtoMessage() {} func (x *Server_Auth) ProtoReflect() protoreflect.Message { mi := &file_conf_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -397,11 +385,9 @@ type Data_SpiceDb struct { func (x *Data_SpiceDb) Reset() { *x = Data_SpiceDb{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data_SpiceDb) String() string { @@ -412,7 +398,7 @@ func (*Data_SpiceDb) ProtoMessage() {} func (x *Data_SpiceDb) ProtoReflect() protoreflect.Message { mi := &file_conf_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -570,92 +556,6 @@ func file_conf_proto_init() { if File_conf_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_conf_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Bootstrap); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*Server); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*Data); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*Server_HTTP); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*Server_GRPC); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*Server_Auth); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*Data_SpiceDb); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_conf_proto_msgTypes[1].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{