From d03258fa561a4c4823997f652707d34b73150857 Mon Sep 17 00:00:00 2001 From: Maxime Jublou Date: Wed, 9 Oct 2024 13:57:24 +0200 Subject: [PATCH] feat: Add Ontology --- docker-compose.yaml | 2 +- .../validate/validate.pb.go | 510 +--- .../naas-models/go/aimodel/aimodel.pb.go | 290 +-- .../naas-models/go/asset/asset.pb.go | 334 +-- .../naas-models/go/chat/chat.pb.go | 796 ++---- .../naas-models/go/common/common.pb.go | 26 +- .../naas-models/go/credit/credit.pb.go | 48 +- .../naas-models/go/errors/errors.pb.go | 43 +- .../jupyter-naas/naas-models/go/iam/iam.pb.go | 92 +- .../naas-models/go/ontology/ontology.pb.go | 1124 +++++++++ .../go/ontology/ontology.pb.validate.go | 2173 +++++++++++++++++ .../naas-models/go/registry/registry.pb.go | 334 +-- .../naas-models/go/secrets/secret.pb.go | 268 +- .../naas-models/go/space/space.pb.go | 334 +-- .../naas-models/go/storage/storage.pb.go | 576 +---- .../naas-models/go/workspace/workspace.pb.go | 884 ++----- protos/errors.proto | 3 + protos/graph.proto | 0 protos/ontology.proto | 99 + python/naas_models/errors_pb2.py | 4 +- python/naas_models/ontology_pb2.py | 86 + python/naas_models/pydantic/errors_p2p.py | 1 + python/naas_models/pydantic/ontology_p2p.py | 77 + 23 files changed, 4402 insertions(+), 3702 deletions(-) create mode 100644 go/github.com/jupyter-naas/naas-models/go/ontology/ontology.pb.go create mode 100644 go/github.com/jupyter-naas/naas-models/go/ontology/ontology.pb.validate.go create mode 100644 protos/graph.proto create mode 100644 protos/ontology.proto create mode 100644 python/naas_models/ontology_pb2.py create mode 100644 python/naas_models/pydantic/ontology_p2p.py diff --git a/docker-compose.yaml b/docker-compose.yaml index 6c46c0a..04f93c2 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -19,4 +19,4 @@ services: --python_out=../python/naas_models \ --go_out=../go \ --validate_out="lang=go:../go" \ - space.proto registry.proto iam.proto aimodel.proto chat.proto credit.proto secret.proto storage.proto workspace.proto asset.proto errors.proto validate.proto common.proto \ No newline at end of file + space.proto registry.proto iam.proto aimodel.proto chat.proto credit.proto secret.proto storage.proto workspace.proto asset.proto errors.proto validate.proto ontology.proto common.proto \ No newline at end of file diff --git a/go/github.com/envoyproxy/protoc-gen-validate/validate/validate.pb.go b/go/github.com/envoyproxy/protoc-gen-validate/validate/validate.pb.go index 290518a..d4a86af 100644 --- a/go/github.com/envoyproxy/protoc-gen-validate/validate/validate.pb.go +++ b/go/github.com/envoyproxy/protoc-gen-validate/validate/validate.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 v5.26.1 // source: validate.proto @@ -121,11 +121,9 @@ type FieldRules struct { func (x *FieldRules) Reset() { *x = FieldRules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldRules) String() string { @@ -136,7 +134,7 @@ func (*FieldRules) ProtoMessage() {} func (x *FieldRules) ProtoReflect() protoreflect.Message { mi := &file_validate_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) @@ -480,11 +478,9 @@ type FloatRules struct { func (x *FloatRules) Reset() { *x = FloatRules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FloatRules) String() string { @@ -495,7 +491,7 @@ func (*FloatRules) ProtoMessage() {} func (x *FloatRules) ProtoReflect() protoreflect.Message { mi := &file_validate_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) @@ -601,11 +597,9 @@ type DoubleRules struct { func (x *DoubleRules) Reset() { *x = DoubleRules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DoubleRules) String() string { @@ -616,7 +610,7 @@ func (*DoubleRules) ProtoMessage() {} func (x *DoubleRules) ProtoReflect() protoreflect.Message { mi := &file_validate_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) @@ -722,11 +716,9 @@ type Int32Rules struct { func (x *Int32Rules) Reset() { *x = Int32Rules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Int32Rules) String() string { @@ -737,7 +729,7 @@ func (*Int32Rules) ProtoMessage() {} func (x *Int32Rules) ProtoReflect() protoreflect.Message { mi := &file_validate_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) @@ -843,11 +835,9 @@ type Int64Rules struct { func (x *Int64Rules) Reset() { *x = Int64Rules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Int64Rules) String() string { @@ -858,7 +848,7 @@ func (*Int64Rules) ProtoMessage() {} func (x *Int64Rules) ProtoReflect() protoreflect.Message { mi := &file_validate_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) @@ -964,11 +954,9 @@ type UInt32Rules struct { func (x *UInt32Rules) Reset() { *x = UInt32Rules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UInt32Rules) String() string { @@ -979,7 +967,7 @@ func (*UInt32Rules) ProtoMessage() {} func (x *UInt32Rules) ProtoReflect() protoreflect.Message { mi := &file_validate_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) @@ -1085,11 +1073,9 @@ type UInt64Rules struct { func (x *UInt64Rules) Reset() { *x = UInt64Rules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UInt64Rules) String() string { @@ -1100,7 +1086,7 @@ func (*UInt64Rules) ProtoMessage() {} func (x *UInt64Rules) ProtoReflect() protoreflect.Message { mi := &file_validate_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) @@ -1206,11 +1192,9 @@ type SInt32Rules struct { func (x *SInt32Rules) Reset() { *x = SInt32Rules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SInt32Rules) String() string { @@ -1221,7 +1205,7 @@ func (*SInt32Rules) ProtoMessage() {} func (x *SInt32Rules) ProtoReflect() protoreflect.Message { mi := &file_validate_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) @@ -1327,11 +1311,9 @@ type SInt64Rules struct { func (x *SInt64Rules) Reset() { *x = SInt64Rules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SInt64Rules) String() string { @@ -1342,7 +1324,7 @@ func (*SInt64Rules) ProtoMessage() {} func (x *SInt64Rules) ProtoReflect() protoreflect.Message { mi := &file_validate_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) @@ -1448,11 +1430,9 @@ type Fixed32Rules struct { func (x *Fixed32Rules) Reset() { *x = Fixed32Rules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Fixed32Rules) String() string { @@ -1463,7 +1443,7 @@ func (*Fixed32Rules) ProtoMessage() {} func (x *Fixed32Rules) ProtoReflect() protoreflect.Message { mi := &file_validate_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) @@ -1569,11 +1549,9 @@ type Fixed64Rules struct { func (x *Fixed64Rules) Reset() { *x = Fixed64Rules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Fixed64Rules) String() string { @@ -1584,7 +1562,7 @@ func (*Fixed64Rules) ProtoMessage() {} func (x *Fixed64Rules) ProtoReflect() protoreflect.Message { mi := &file_validate_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1690,11 +1668,9 @@ type SFixed32Rules struct { func (x *SFixed32Rules) Reset() { *x = SFixed32Rules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SFixed32Rules) String() string { @@ -1705,7 +1681,7 @@ func (*SFixed32Rules) ProtoMessage() {} func (x *SFixed32Rules) ProtoReflect() protoreflect.Message { mi := &file_validate_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1811,11 +1787,9 @@ type SFixed64Rules struct { func (x *SFixed64Rules) Reset() { *x = SFixed64Rules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SFixed64Rules) String() string { @@ -1826,7 +1800,7 @@ func (*SFixed64Rules) ProtoMessage() {} func (x *SFixed64Rules) ProtoReflect() protoreflect.Message { mi := &file_validate_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1909,11 +1883,9 @@ type BoolRules struct { func (x *BoolRules) Reset() { *x = BoolRules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BoolRules) String() string { @@ -1924,7 +1896,7 @@ func (*BoolRules) ProtoMessage() {} func (x *BoolRules) ProtoReflect() protoreflect.Message { mi := &file_validate_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2030,11 +2002,9 @@ const ( func (x *StringRules) Reset() { *x = StringRules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StringRules) String() string { @@ -2045,7 +2015,7 @@ func (*StringRules) ProtoMessage() {} func (x *StringRules) ProtoReflect() protoreflect.Message { mi := &file_validate_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2384,11 +2354,9 @@ type BytesRules struct { func (x *BytesRules) Reset() { *x = BytesRules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BytesRules) String() string { @@ -2399,7 +2367,7 @@ func (*BytesRules) ProtoMessage() {} func (x *BytesRules) ProtoReflect() protoreflect.Message { mi := &file_validate_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2568,11 +2536,9 @@ type EnumRules struct { func (x *EnumRules) Reset() { *x = EnumRules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumRules) String() string { @@ -2583,7 +2549,7 @@ func (*EnumRules) ProtoMessage() {} func (x *EnumRules) ProtoReflect() protoreflect.Message { mi := &file_validate_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2642,11 +2608,9 @@ type MessageRules struct { func (x *MessageRules) Reset() { *x = MessageRules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageRules) String() string { @@ -2657,7 +2621,7 @@ func (*MessageRules) ProtoMessage() {} func (x *MessageRules) ProtoReflect() protoreflect.Message { mi := &file_validate_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2713,11 +2677,9 @@ type RepeatedRules struct { func (x *RepeatedRules) Reset() { *x = RepeatedRules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RepeatedRules) String() string { @@ -2728,7 +2690,7 @@ func (*RepeatedRules) ProtoMessage() {} func (x *RepeatedRules) ProtoReflect() protoreflect.Message { mi := &file_validate_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2806,11 +2768,9 @@ type MapRules struct { func (x *MapRules) Reset() { *x = MapRules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MapRules) String() string { @@ -2821,7 +2781,7 @@ func (*MapRules) ProtoMessage() {} func (x *MapRules) ProtoReflect() protoreflect.Message { mi := &file_validate_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2897,11 +2857,9 @@ type AnyRules struct { func (x *AnyRules) Reset() { *x = AnyRules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AnyRules) String() string { @@ -2912,7 +2870,7 @@ func (*AnyRules) ProtoMessage() {} func (x *AnyRules) ProtoReflect() protoreflect.Message { mi := &file_validate_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2981,11 +2939,9 @@ type DurationRules struct { func (x *DurationRules) Reset() { *x = DurationRules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DurationRules) String() string { @@ -2996,7 +2952,7 @@ func (*DurationRules) ProtoMessage() {} func (x *DurationRules) ProtoReflect() protoreflect.Message { mi := &file_validate_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3104,11 +3060,9 @@ type TimestampRules struct { func (x *TimestampRules) Reset() { *x = TimestampRules{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TimestampRules) String() string { @@ -3119,7 +3073,7 @@ func (*TimestampRules) ProtoMessage() {} func (x *TimestampRules) ProtoReflect() protoreflect.Message { mi := &file_validate_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3765,284 +3719,6 @@ func file_validate_proto_init() { if File_validate_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_validate_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*FieldRules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*FloatRules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*DoubleRules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*Int32Rules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*Int64Rules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*UInt32Rules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*UInt64Rules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*SInt32Rules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*SInt64Rules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*Fixed32Rules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*Fixed64Rules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*SFixed32Rules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*SFixed64Rules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*BoolRules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*StringRules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*BytesRules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*EnumRules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*MessageRules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*RepeatedRules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*MapRules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[20].Exporter = func(v any, i int) any { - switch v := v.(*AnyRules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[21].Exporter = func(v any, i int) any { - switch v := v.(*DurationRules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_proto_msgTypes[22].Exporter = func(v any, i int) any { - switch v := v.(*TimestampRules); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_validate_proto_msgTypes[0].OneofWrappers = []any{ (*FieldRules_Float)(nil), (*FieldRules_Double)(nil), diff --git a/go/github.com/jupyter-naas/naas-models/go/aimodel/aimodel.pb.go b/go/github.com/jupyter-naas/naas-models/go/aimodel/aimodel.pb.go index bbe31cf..fbbfd7e 100644 --- a/go/github.com/jupyter-naas/naas-models/go/aimodel/aimodel.pb.go +++ b/go/github.com/jupyter-naas/naas-models/go/aimodel/aimodel.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 v5.26.1 // source: aimodel.proto @@ -100,11 +100,9 @@ type AIModel struct { func (x *AIModel) Reset() { *x = AIModel{} - if protoimpl.UnsafeEnabled { - mi := &file_aimodel_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_aimodel_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AIModel) String() string { @@ -115,7 +113,7 @@ func (*AIModel) ProtoMessage() {} func (x *AIModel) ProtoReflect() protoreflect.Message { mi := &file_aimodel_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) @@ -208,11 +206,9 @@ type CompletionResponse struct { func (x *CompletionResponse) Reset() { *x = CompletionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_aimodel_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_aimodel_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CompletionResponse) String() string { @@ -223,7 +219,7 @@ func (*CompletionResponse) ProtoMessage() {} func (x *CompletionResponse) ProtoReflect() protoreflect.Message { mi := &file_aimodel_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) @@ -293,11 +289,9 @@ type AIModelResponseError struct { func (x *AIModelResponseError) Reset() { *x = AIModelResponseError{} - if protoimpl.UnsafeEnabled { - mi := &file_aimodel_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_aimodel_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AIModelResponseError) String() string { @@ -308,7 +302,7 @@ func (*AIModelResponseError) ProtoMessage() {} func (x *AIModelResponseError) ProtoReflect() protoreflect.Message { mi := &file_aimodel_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) @@ -362,11 +356,9 @@ type AIModelListRequest struct { func (x *AIModelListRequest) Reset() { *x = AIModelListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_aimodel_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_aimodel_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AIModelListRequest) String() string { @@ -377,7 +369,7 @@ func (*AIModelListRequest) ProtoMessage() {} func (x *AIModelListRequest) ProtoReflect() protoreflect.Message { mi := &file_aimodel_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) @@ -418,11 +410,9 @@ type AIModelListResponse struct { func (x *AIModelListResponse) Reset() { *x = AIModelListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_aimodel_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_aimodel_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AIModelListResponse) String() string { @@ -433,7 +423,7 @@ func (*AIModelListResponse) ProtoMessage() {} func (x *AIModelListResponse) ProtoReflect() protoreflect.Message { mi := &file_aimodel_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) @@ -479,11 +469,9 @@ type AIModelGetRequest struct { func (x *AIModelGetRequest) Reset() { *x = AIModelGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_aimodel_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_aimodel_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AIModelGetRequest) String() string { @@ -494,7 +482,7 @@ func (*AIModelGetRequest) ProtoMessage() {} func (x *AIModelGetRequest) ProtoReflect() protoreflect.Message { mi := &file_aimodel_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) @@ -527,11 +515,9 @@ type AIModelGetResponse struct { func (x *AIModelGetResponse) Reset() { *x = AIModelGetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_aimodel_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_aimodel_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AIModelGetResponse) String() string { @@ -542,7 +528,7 @@ func (*AIModelGetResponse) ProtoMessage() {} func (x *AIModelGetResponse) ProtoReflect() protoreflect.Message { mi := &file_aimodel_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) @@ -582,11 +568,9 @@ type AIModelCompletionRequest struct { func (x *AIModelCompletionRequest) Reset() { *x = AIModelCompletionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_aimodel_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_aimodel_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AIModelCompletionRequest) String() string { @@ -597,7 +581,7 @@ func (*AIModelCompletionRequest) ProtoMessage() {} func (x *AIModelCompletionRequest) ProtoReflect() protoreflect.Message { mi := &file_aimodel_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) @@ -637,11 +621,9 @@ type AIModelCompletionResponse struct { func (x *AIModelCompletionResponse) Reset() { *x = AIModelCompletionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_aimodel_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_aimodel_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AIModelCompletionResponse) String() string { @@ -652,7 +634,7 @@ func (*AIModelCompletionResponse) ProtoMessage() {} func (x *AIModelCompletionResponse) ProtoReflect() protoreflect.Message { mi := &file_aimodel_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) @@ -697,11 +679,9 @@ type AIModelAdminCreationRequest struct { func (x *AIModelAdminCreationRequest) Reset() { *x = AIModelAdminCreationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_aimodel_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_aimodel_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AIModelAdminCreationRequest) String() string { @@ -712,7 +692,7 @@ func (*AIModelAdminCreationRequest) ProtoMessage() {} func (x *AIModelAdminCreationRequest) ProtoReflect() protoreflect.Message { mi := &file_aimodel_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) @@ -787,11 +767,9 @@ type AIModelAdminCreationResponse struct { func (x *AIModelAdminCreationResponse) Reset() { *x = AIModelAdminCreationResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_aimodel_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_aimodel_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AIModelAdminCreationResponse) String() string { @@ -802,7 +780,7 @@ func (*AIModelAdminCreationResponse) ProtoMessage() {} func (x *AIModelAdminCreationResponse) ProtoReflect() protoreflect.Message { mi := &file_aimodel_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -841,11 +819,9 @@ type AIModelAdminDeleteRequest struct { func (x *AIModelAdminDeleteRequest) Reset() { *x = AIModelAdminDeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_aimodel_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_aimodel_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AIModelAdminDeleteRequest) String() string { @@ -856,7 +832,7 @@ func (*AIModelAdminDeleteRequest) ProtoMessage() {} func (x *AIModelAdminDeleteRequest) ProtoReflect() protoreflect.Message { mi := &file_aimodel_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -888,11 +864,9 @@ type AIModelAdminDeleteResponse struct { func (x *AIModelAdminDeleteResponse) Reset() { *x = AIModelAdminDeleteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_aimodel_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_aimodel_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AIModelAdminDeleteResponse) String() string { @@ -903,7 +877,7 @@ func (*AIModelAdminDeleteResponse) ProtoMessage() {} func (x *AIModelAdminDeleteResponse) ProtoReflect() protoreflect.Message { mi := &file_aimodel_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1152,164 +1126,6 @@ func file_aimodel_proto_init() { if File_aimodel_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_aimodel_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*AIModel); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_aimodel_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*CompletionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_aimodel_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*AIModelResponseError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_aimodel_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*AIModelListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_aimodel_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*AIModelListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_aimodel_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*AIModelGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_aimodel_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*AIModelGetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_aimodel_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*AIModelCompletionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_aimodel_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*AIModelCompletionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_aimodel_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*AIModelAdminCreationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_aimodel_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*AIModelAdminCreationResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_aimodel_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*AIModelAdminDeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_aimodel_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*AIModelAdminDeleteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_aimodel_proto_msgTypes[0].OneofWrappers = []any{} file_aimodel_proto_msgTypes[1].OneofWrappers = []any{} file_aimodel_proto_msgTypes[2].OneofWrappers = []any{} diff --git a/go/github.com/jupyter-naas/naas-models/go/asset/asset.pb.go b/go/github.com/jupyter-naas/naas-models/go/asset/asset.pb.go index c35eded..2bc0099 100644 --- a/go/github.com/jupyter-naas/naas-models/go/asset/asset.pb.go +++ b/go/github.com/jupyter-naas/naas-models/go/asset/asset.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 v5.26.1 // source: asset.proto @@ -97,11 +97,9 @@ type ObjectMetadata struct { func (x *ObjectMetadata) Reset() { *x = ObjectMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_asset_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_asset_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectMetadata) String() string { @@ -112,7 +110,7 @@ func (*ObjectMetadata) ProtoMessage() {} func (x *ObjectMetadata) ProtoReflect() protoreflect.Message { mi := &file_asset_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) @@ -229,11 +227,9 @@ type Asset struct { func (x *Asset) Reset() { *x = Asset{} - if protoimpl.UnsafeEnabled { - mi := &file_asset_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_asset_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Asset) String() string { @@ -244,7 +240,7 @@ func (*Asset) ProtoMessage() {} func (x *Asset) ProtoReflect() protoreflect.Message { mi := &file_asset_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) @@ -387,11 +383,9 @@ type AssetCreation struct { func (x *AssetCreation) Reset() { *x = AssetCreation{} - if protoimpl.UnsafeEnabled { - mi := &file_asset_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_asset_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetCreation) String() string { @@ -402,7 +396,7 @@ func (*AssetCreation) ProtoMessage() {} func (x *AssetCreation) ProtoReflect() protoreflect.Message { mi := &file_asset_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) @@ -477,11 +471,9 @@ type AssetUpdate struct { func (x *AssetUpdate) Reset() { *x = AssetUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_asset_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_asset_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetUpdate) String() string { @@ -492,7 +484,7 @@ func (*AssetUpdate) ProtoMessage() {} func (x *AssetUpdate) ProtoReflect() protoreflect.Message { mi := &file_asset_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) @@ -532,11 +524,9 @@ type AssetResponseError struct { func (x *AssetResponseError) Reset() { *x = AssetResponseError{} - if protoimpl.UnsafeEnabled { - mi := &file_asset_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_asset_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetResponseError) String() string { @@ -547,7 +537,7 @@ func (*AssetResponseError) ProtoMessage() {} func (x *AssetResponseError) ProtoReflect() protoreflect.Message { mi := &file_asset_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) @@ -588,11 +578,9 @@ type AssetCreateRequest struct { func (x *AssetCreateRequest) Reset() { *x = AssetCreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_asset_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_asset_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetCreateRequest) String() string { @@ -603,7 +591,7 @@ func (*AssetCreateRequest) ProtoMessage() {} func (x *AssetCreateRequest) ProtoReflect() protoreflect.Message { mi := &file_asset_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) @@ -643,11 +631,9 @@ type AssetCreateResponse struct { func (x *AssetCreateResponse) Reset() { *x = AssetCreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_asset_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_asset_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetCreateResponse) String() string { @@ -658,7 +644,7 @@ func (*AssetCreateResponse) ProtoMessage() {} func (x *AssetCreateResponse) ProtoReflect() protoreflect.Message { mi := &file_asset_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) @@ -699,11 +685,9 @@ type AssetGetRequest struct { func (x *AssetGetRequest) Reset() { *x = AssetGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_asset_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_asset_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetGetRequest) String() string { @@ -714,7 +698,7 @@ func (*AssetGetRequest) ProtoMessage() {} func (x *AssetGetRequest) ProtoReflect() protoreflect.Message { mi := &file_asset_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) @@ -754,11 +738,9 @@ type AssetGetResponse struct { func (x *AssetGetResponse) Reset() { *x = AssetGetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_asset_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_asset_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetGetResponse) String() string { @@ -769,7 +751,7 @@ func (*AssetGetResponse) ProtoMessage() {} func (x *AssetGetResponse) ProtoReflect() protoreflect.Message { mi := &file_asset_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) @@ -810,11 +792,9 @@ type AssetGetObjectRequest struct { func (x *AssetGetObjectRequest) Reset() { *x = AssetGetObjectRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_asset_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_asset_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetGetObjectRequest) String() string { @@ -825,7 +805,7 @@ func (*AssetGetObjectRequest) ProtoMessage() {} func (x *AssetGetObjectRequest) ProtoReflect() protoreflect.Message { mi := &file_asset_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) @@ -865,11 +845,9 @@ type AssetGetObjectResponse struct { func (x *AssetGetObjectResponse) Reset() { *x = AssetGetObjectResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_asset_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_asset_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetGetObjectResponse) String() string { @@ -880,7 +858,7 @@ func (*AssetGetObjectResponse) ProtoMessage() {} func (x *AssetGetObjectResponse) ProtoReflect() protoreflect.Message { mi := &file_asset_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -921,11 +899,9 @@ type AssetUpdateRequest struct { func (x *AssetUpdateRequest) Reset() { *x = AssetUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_asset_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_asset_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetUpdateRequest) String() string { @@ -936,7 +912,7 @@ func (*AssetUpdateRequest) ProtoMessage() {} func (x *AssetUpdateRequest) ProtoReflect() protoreflect.Message { mi := &file_asset_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -976,11 +952,9 @@ type AssetUpdateResponse struct { func (x *AssetUpdateResponse) Reset() { *x = AssetUpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_asset_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_asset_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetUpdateResponse) String() string { @@ -991,7 +965,7 @@ func (*AssetUpdateResponse) ProtoMessage() {} func (x *AssetUpdateResponse) ProtoReflect() protoreflect.Message { mi := &file_asset_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1032,11 +1006,9 @@ type AssetDeleteRequest struct { func (x *AssetDeleteRequest) Reset() { *x = AssetDeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_asset_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_asset_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetDeleteRequest) String() string { @@ -1047,7 +1019,7 @@ func (*AssetDeleteRequest) ProtoMessage() {} func (x *AssetDeleteRequest) ProtoReflect() protoreflect.Message { mi := &file_asset_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1086,11 +1058,9 @@ type AssetDeleteResponse struct { func (x *AssetDeleteResponse) Reset() { *x = AssetDeleteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_asset_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_asset_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetDeleteResponse) String() string { @@ -1101,7 +1071,7 @@ func (*AssetDeleteResponse) ProtoMessage() {} func (x *AssetDeleteResponse) ProtoReflect() protoreflect.Message { mi := &file_asset_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1439,188 +1409,6 @@ func file_asset_proto_init() { if File_asset_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_asset_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ObjectMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_asset_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*Asset); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_asset_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*AssetCreation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_asset_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*AssetUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_asset_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*AssetResponseError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_asset_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*AssetCreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_asset_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*AssetCreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_asset_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*AssetGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_asset_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*AssetGetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_asset_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*AssetGetObjectRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_asset_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*AssetGetObjectResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_asset_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*AssetUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_asset_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*AssetUpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_asset_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*AssetDeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_asset_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*AssetDeleteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_asset_proto_msgTypes[0].OneofWrappers = []any{} file_asset_proto_msgTypes[1].OneofWrappers = []any{} file_asset_proto_msgTypes[2].OneofWrappers = []any{} diff --git a/go/github.com/jupyter-naas/naas-models/go/chat/chat.pb.go b/go/github.com/jupyter-naas/naas-models/go/chat/chat.pb.go index 16ee97d..1f5acdb 100644 --- a/go/github.com/jupyter-naas/naas-models/go/chat/chat.pb.go +++ b/go/github.com/jupyter-naas/naas-models/go/chat/chat.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 v5.26.1 // source: chat.proto @@ -265,11 +265,9 @@ type MessageResponseError struct { func (x *MessageResponseError) Reset() { *x = MessageResponseError{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageResponseError) String() string { @@ -280,7 +278,7 @@ func (*MessageResponseError) ProtoMessage() {} func (x *MessageResponseError) ProtoReflect() protoreflect.Message { mi := &file_chat_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) @@ -346,11 +344,9 @@ type Message struct { func (x *Message) Reset() { *x = Message{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message) String() string { @@ -361,7 +357,7 @@ func (*Message) ProtoMessage() {} func (x *Message) ProtoReflect() protoreflect.Message { mi := &file_chat_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) @@ -490,11 +486,9 @@ type MessageUpdate struct { func (x *MessageUpdate) Reset() { *x = MessageUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageUpdate) String() string { @@ -505,7 +499,7 @@ func (*MessageUpdate) ProtoMessage() {} func (x *MessageUpdate) ProtoReflect() protoreflect.Message { mi := &file_chat_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) @@ -579,11 +573,9 @@ type Messages struct { func (x *Messages) Reset() { *x = Messages{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Messages) String() string { @@ -594,7 +586,7 @@ func (*Messages) ProtoMessage() {} func (x *Messages) ProtoReflect() protoreflect.Message { mi := &file_chat_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) @@ -627,11 +619,9 @@ type MessageDeletionRequest struct { func (x *MessageDeletionRequest) Reset() { *x = MessageDeletionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageDeletionRequest) String() string { @@ -642,7 +632,7 @@ func (*MessageDeletionRequest) ProtoMessage() {} func (x *MessageDeletionRequest) ProtoReflect() protoreflect.Message { mi := &file_chat_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) @@ -681,11 +671,9 @@ type MessageDeletionResponse struct { func (x *MessageDeletionResponse) Reset() { *x = MessageDeletionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageDeletionResponse) String() string { @@ -696,7 +684,7 @@ func (*MessageDeletionResponse) ProtoMessage() {} func (x *MessageDeletionResponse) ProtoReflect() protoreflect.Message { mi := &file_chat_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) @@ -731,11 +719,9 @@ type MessageRatinResponseError struct { func (x *MessageRatinResponseError) Reset() { *x = MessageRatinResponseError{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageRatinResponseError) String() string { @@ -746,7 +732,7 @@ func (*MessageRatinResponseError) ProtoMessage() {} func (x *MessageRatinResponseError) ProtoReflect() protoreflect.Message { mi := &file_chat_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) @@ -803,11 +789,9 @@ type MessageRating struct { func (x *MessageRating) Reset() { *x = MessageRating{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageRating) String() string { @@ -818,7 +802,7 @@ func (*MessageRating) ProtoMessage() {} func (x *MessageRating) ProtoReflect() protoreflect.Message { mi := &file_chat_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) @@ -880,11 +864,9 @@ type MessageRatingCreationRequest struct { func (x *MessageRatingCreationRequest) Reset() { *x = MessageRatingCreationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageRatingCreationRequest) String() string { @@ -895,7 +877,7 @@ func (*MessageRatingCreationRequest) ProtoMessage() {} func (x *MessageRatingCreationRequest) ProtoReflect() protoreflect.Message { mi := &file_chat_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) @@ -942,11 +924,9 @@ type MessageRatingCreationResponse struct { func (x *MessageRatingCreationResponse) Reset() { *x = MessageRatingCreationResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageRatingCreationResponse) String() string { @@ -957,7 +937,7 @@ func (*MessageRatingCreationResponse) ProtoMessage() {} func (x *MessageRatingCreationResponse) ProtoReflect() protoreflect.Message { mi := &file_chat_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) @@ -1003,11 +983,9 @@ type Chat struct { func (x *Chat) Reset() { *x = Chat{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Chat) String() string { @@ -1018,7 +996,7 @@ func (*Chat) ProtoMessage() {} func (x *Chat) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1103,11 +1081,9 @@ type ChatUpdate struct { func (x *ChatUpdate) Reset() { *x = ChatUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatUpdate) String() string { @@ -1118,7 +1094,7 @@ func (*ChatUpdate) ProtoMessage() {} func (x *ChatUpdate) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1178,11 +1154,9 @@ type ChatMessages struct { func (x *ChatMessages) Reset() { *x = ChatMessages{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatMessages) String() string { @@ -1193,7 +1167,7 @@ func (*ChatMessages) ProtoMessage() {} func (x *ChatMessages) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1228,11 +1202,9 @@ type ChatResponseError struct { func (x *ChatResponseError) Reset() { *x = ChatResponseError{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatResponseError) String() string { @@ -1243,7 +1215,7 @@ func (*ChatResponseError) ProtoMessage() {} func (x *ChatResponseError) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1297,11 +1269,9 @@ type ChatCreationRequest struct { func (x *ChatCreationRequest) Reset() { *x = ChatCreationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatCreationRequest) String() string { @@ -1312,7 +1282,7 @@ func (*ChatCreationRequest) ProtoMessage() {} func (x *ChatCreationRequest) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1352,11 +1322,9 @@ type ChatCreationResponse struct { func (x *ChatCreationResponse) Reset() { *x = ChatCreationResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatCreationResponse) String() string { @@ -1367,7 +1335,7 @@ func (*ChatCreationResponse) ProtoMessage() {} func (x *ChatCreationResponse) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1406,11 +1374,9 @@ type ChatGetRequest struct { func (x *ChatGetRequest) Reset() { *x = ChatGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatGetRequest) String() string { @@ -1421,7 +1387,7 @@ func (*ChatGetRequest) ProtoMessage() {} func (x *ChatGetRequest) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1454,11 +1420,9 @@ type ChatGetResponse struct { func (x *ChatGetResponse) Reset() { *x = ChatGetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatGetResponse) String() string { @@ -1469,7 +1433,7 @@ func (*ChatGetResponse) ProtoMessage() {} func (x *ChatGetResponse) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1508,11 +1472,9 @@ type ChatMessageGetRequest struct { func (x *ChatMessageGetRequest) Reset() { *x = ChatMessageGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatMessageGetRequest) String() string { @@ -1523,7 +1485,7 @@ func (*ChatMessageGetRequest) ProtoMessage() {} func (x *ChatMessageGetRequest) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1556,11 +1518,9 @@ type ChatMessageGetResponse struct { func (x *ChatMessageGetResponse) Reset() { *x = ChatMessageGetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatMessageGetResponse) String() string { @@ -1571,7 +1531,7 @@ func (*ChatMessageGetResponse) ProtoMessage() {} func (x *ChatMessageGetResponse) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1610,11 +1570,9 @@ type ChatDeletionRequest struct { func (x *ChatDeletionRequest) Reset() { *x = ChatDeletionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatDeletionRequest) String() string { @@ -1625,7 +1583,7 @@ func (*ChatDeletionRequest) ProtoMessage() {} func (x *ChatDeletionRequest) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1657,11 +1615,9 @@ type ChatDeletionResponse struct { func (x *ChatDeletionResponse) Reset() { *x = ChatDeletionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatDeletionResponse) String() string { @@ -1672,7 +1628,7 @@ func (*ChatDeletionResponse) ProtoMessage() {} func (x *ChatDeletionResponse) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1705,11 +1661,9 @@ type ChatUpdateRequest struct { func (x *ChatUpdateRequest) Reset() { *x = ChatUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatUpdateRequest) String() string { @@ -1720,7 +1674,7 @@ func (*ChatUpdateRequest) ProtoMessage() {} func (x *ChatUpdateRequest) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1760,11 +1714,9 @@ type ChatUpdateResponse struct { func (x *ChatUpdateResponse) Reset() { *x = ChatUpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatUpdateResponse) String() string { @@ -1775,7 +1727,7 @@ func (*ChatUpdateResponse) ProtoMessage() {} func (x *ChatUpdateResponse) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1815,11 +1767,9 @@ type ChatListRequest struct { func (x *ChatListRequest) Reset() { *x = ChatListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatListRequest) String() string { @@ -1830,7 +1780,7 @@ func (*ChatListRequest) ProtoMessage() {} func (x *ChatListRequest) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1870,11 +1820,9 @@ type ChatListResponse struct { func (x *ChatListResponse) Reset() { *x = ChatListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatListResponse) String() string { @@ -1885,7 +1833,7 @@ func (*ChatListResponse) ProtoMessage() {} func (x *ChatListResponse) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1925,11 +1873,9 @@ type ChatStarRequest struct { func (x *ChatStarRequest) Reset() { *x = ChatStarRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatStarRequest) String() string { @@ -1940,7 +1886,7 @@ func (*ChatStarRequest) ProtoMessage() {} func (x *ChatStarRequest) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1980,11 +1926,9 @@ type ChatStarResponse struct { func (x *ChatStarResponse) Reset() { *x = ChatStarResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatStarResponse) String() string { @@ -1995,7 +1939,7 @@ func (*ChatStarResponse) ProtoMessage() {} func (x *ChatStarResponse) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2034,11 +1978,9 @@ type ChatArchiveRequest struct { func (x *ChatArchiveRequest) Reset() { *x = ChatArchiveRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatArchiveRequest) String() string { @@ -2049,7 +1991,7 @@ func (*ChatArchiveRequest) ProtoMessage() {} func (x *ChatArchiveRequest) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2081,11 +2023,9 @@ type ChatArchiveResponse struct { func (x *ChatArchiveResponse) Reset() { *x = ChatArchiveResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatArchiveResponse) String() string { @@ -2096,7 +2036,7 @@ func (*ChatArchiveResponse) ProtoMessage() {} func (x *ChatArchiveResponse) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2133,11 +2073,9 @@ type CompletionResponse struct { func (x *CompletionResponse) Reset() { *x = CompletionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CompletionResponse) String() string { @@ -2148,7 +2086,7 @@ func (*CompletionResponse) ProtoMessage() {} func (x *CompletionResponse) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2217,11 +2155,9 @@ type BasePayload struct { func (x *BasePayload) Reset() { *x = BasePayload{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BasePayload) String() string { @@ -2232,7 +2168,7 @@ func (*BasePayload) ProtoMessage() {} func (x *BasePayload) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2281,11 +2217,9 @@ type ChatCompletionRequest struct { func (x *ChatCompletionRequest) Reset() { *x = ChatCompletionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatCompletionRequest) String() string { @@ -2296,7 +2230,7 @@ func (*ChatCompletionRequest) ProtoMessage() {} func (x *ChatCompletionRequest) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2349,11 +2283,9 @@ type ChatStopCompletionRequest struct { func (x *ChatStopCompletionRequest) Reset() { *x = ChatStopCompletionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatStopCompletionRequest) String() string { @@ -2364,7 +2296,7 @@ func (*ChatStopCompletionRequest) ProtoMessage() {} func (x *ChatStopCompletionRequest) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2396,11 +2328,9 @@ type ChatStopCompletionResponse struct { func (x *ChatStopCompletionResponse) Reset() { *x = ChatStopCompletionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatStopCompletionResponse) String() string { @@ -2411,7 +2341,7 @@ func (*ChatStopCompletionResponse) ProtoMessage() {} func (x *ChatStopCompletionResponse) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2444,11 +2374,9 @@ type ChatCompletionResponse struct { func (x *ChatCompletionResponse) Reset() { *x = ChatCompletionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChatCompletionResponse) String() string { @@ -2459,7 +2387,7 @@ func (*ChatCompletionResponse) ProtoMessage() {} func (x *ChatCompletionResponse) ProtoReflect() protoreflect.Message { mi := &file_chat_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3064,440 +2992,6 @@ func file_chat_proto_init() { if File_chat_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_chat_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*MessageResponseError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*Message); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*MessageUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*Messages); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*MessageDeletionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*MessageDeletionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*MessageRatinResponseError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*MessageRating); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*MessageRatingCreationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*MessageRatingCreationResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*Chat); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*ChatUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*ChatMessages); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*ChatResponseError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*ChatCreationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*ChatCreationResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*ChatGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*ChatGetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*ChatMessageGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*ChatMessageGetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[20].Exporter = func(v any, i int) any { - switch v := v.(*ChatDeletionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[21].Exporter = func(v any, i int) any { - switch v := v.(*ChatDeletionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[22].Exporter = func(v any, i int) any { - switch v := v.(*ChatUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[23].Exporter = func(v any, i int) any { - switch v := v.(*ChatUpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[24].Exporter = func(v any, i int) any { - switch v := v.(*ChatListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[25].Exporter = func(v any, i int) any { - switch v := v.(*ChatListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[26].Exporter = func(v any, i int) any { - switch v := v.(*ChatStarRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[27].Exporter = func(v any, i int) any { - switch v := v.(*ChatStarResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[28].Exporter = func(v any, i int) any { - switch v := v.(*ChatArchiveRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[29].Exporter = func(v any, i int) any { - switch v := v.(*ChatArchiveResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[30].Exporter = func(v any, i int) any { - switch v := v.(*CompletionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[31].Exporter = func(v any, i int) any { - switch v := v.(*BasePayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[32].Exporter = func(v any, i int) any { - switch v := v.(*ChatCompletionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[33].Exporter = func(v any, i int) any { - switch v := v.(*ChatStopCompletionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[34].Exporter = func(v any, i int) any { - switch v := v.(*ChatStopCompletionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_proto_msgTypes[35].Exporter = func(v any, i int) any { - switch v := v.(*ChatCompletionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_chat_proto_msgTypes[0].OneofWrappers = []any{} file_chat_proto_msgTypes[1].OneofWrappers = []any{} file_chat_proto_msgTypes[2].OneofWrappers = []any{} diff --git a/go/github.com/jupyter-naas/naas-models/go/common/common.pb.go b/go/github.com/jupyter-naas/naas-models/go/common/common.pb.go index a2004a2..fabe82c 100644 --- a/go/github.com/jupyter-naas/naas-models/go/common/common.pb.go +++ b/go/github.com/jupyter-naas/naas-models/go/common/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 v5.26.1 // source: common.proto @@ -32,11 +32,9 @@ type FieldMask struct { func (x *FieldMask) Reset() { *x = FieldMask{} - if protoimpl.UnsafeEnabled { - mi := &file_common_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_common_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldMask) String() string { @@ -47,7 +45,7 @@ func (*FieldMask) ProtoMessage() {} func (x *FieldMask) ProtoReflect() protoreflect.Message { mi := &file_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) @@ -112,20 +110,6 @@ func file_common_proto_init() { if File_common_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_common_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*FieldMask); 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/go/github.com/jupyter-naas/naas-models/go/credit/credit.pb.go b/go/github.com/jupyter-naas/naas-models/go/credit/credit.pb.go index bb44867..a0180be 100644 --- a/go/github.com/jupyter-naas/naas-models/go/credit/credit.pb.go +++ b/go/github.com/jupyter-naas/naas-models/go/credit/credit.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 v5.26.1 // source: credit.proto @@ -46,11 +46,9 @@ type CreditTransaction struct { func (x *CreditTransaction) Reset() { *x = CreditTransaction{} - if protoimpl.UnsafeEnabled { - mi := &file_credit_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_credit_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreditTransaction) String() string { @@ -61,7 +59,7 @@ func (*CreditTransaction) ProtoMessage() {} func (x *CreditTransaction) ProtoReflect() protoreflect.Message { mi := &file_credit_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) @@ -199,11 +197,9 @@ type Balance struct { func (x *Balance) Reset() { *x = Balance{} - if protoimpl.UnsafeEnabled { - mi := &file_credit_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_credit_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Balance) String() string { @@ -214,7 +210,7 @@ func (*Balance) ProtoMessage() {} func (x *Balance) ProtoReflect() protoreflect.Message { mi := &file_credit_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) @@ -338,32 +334,6 @@ func file_credit_proto_init() { if File_credit_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_credit_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*CreditTransaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_credit_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*Balance); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_credit_proto_msgTypes[0].OneofWrappers = []any{} file_credit_proto_msgTypes[1].OneofWrappers = []any{} type x struct{} diff --git a/go/github.com/jupyter-naas/naas-models/go/errors/errors.pb.go b/go/github.com/jupyter-naas/naas-models/go/errors/errors.pb.go index 4842cfa..f0daeab 100644 --- a/go/github.com/jupyter-naas/naas-models/go/errors/errors.pb.go +++ b/go/github.com/jupyter-naas/naas-models/go/errors/errors.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 v5.26.1 // source: errors.proto @@ -37,6 +37,8 @@ const ( Error_WORKSPACE_INVITE_INVALID Error = 307 Error_WORKSPACE_CANNOT_INVITE_TO_PERSONAL_WORKSPACE Error = 308 Error_CREDITS_USER_HAS_NO_PARENT Error = 400 + // Ontology errors 500 - 599 + Error_ONTOLOGY_NOT_FOUND Error = 500 ) // Enum value maps for Error. @@ -55,6 +57,7 @@ var ( 307: "WORKSPACE_INVITE_INVALID", 308: "WORKSPACE_CANNOT_INVITE_TO_PERSONAL_WORKSPACE", 400: "CREDITS_USER_HAS_NO_PARENT", + 500: "ONTOLOGY_NOT_FOUND", } Error_value = map[string]int32{ "NO_ERROR": 0, @@ -70,6 +73,7 @@ var ( "WORKSPACE_INVITE_INVALID": 307, "WORKSPACE_CANNOT_INVITE_TO_PERSONAL_WORKSPACE": 308, "CREDITS_USER_HAS_NO_PARENT": 400, + "ONTOLOGY_NOT_FOUND": 500, } ) @@ -111,11 +115,9 @@ type ErrorResponse struct { func (x *ErrorResponse) Reset() { *x = ErrorResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_errors_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_errors_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ErrorResponse) String() string { @@ -126,7 +128,7 @@ func (*ErrorResponse) ProtoMessage() {} func (x *ErrorResponse) ProtoReflect() protoreflect.Message { mi := &file_errors_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) @@ -167,7 +169,7 @@ var file_errors_proto_rawDesc = []byte{ 0x1d, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x2a, 0xb3, 0x03, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x0c, 0x0a, + 0x61, 0x67, 0x65, 0x2a, 0xcc, 0x03, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x4f, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x15, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0xc7, 0x01, 0x12, 0x17, 0x0a, 0x12, 0x49, 0x41, 0x4d, 0x5f, 0x55, @@ -194,11 +196,12 @@ var file_errors_proto_rawDesc = []byte{ 0x54, 0x4f, 0x5f, 0x50, 0x45, 0x52, 0x53, 0x4f, 0x4e, 0x41, 0x4c, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0xb4, 0x02, 0x12, 0x1f, 0x0a, 0x1a, 0x43, 0x52, 0x45, 0x44, 0x49, 0x54, 0x53, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x48, 0x41, 0x53, 0x5f, 0x4e, 0x4f, 0x5f, - 0x50, 0x41, 0x52, 0x45, 0x4e, 0x54, 0x10, 0x90, 0x03, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6a, 0x75, 0x70, 0x79, 0x74, 0x65, 0x72, 0x2d, - 0x6e, 0x61, 0x61, 0x73, 0x2f, 0x6e, 0x61, 0x61, 0x73, 0x2d, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, - 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x50, 0x41, 0x52, 0x45, 0x4e, 0x54, 0x10, 0x90, 0x03, 0x12, 0x17, 0x0a, 0x12, 0x4f, 0x4e, 0x54, + 0x4f, 0x4c, 0x4f, 0x47, 0x59, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, + 0xf4, 0x03, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x6a, 0x75, 0x70, 0x79, 0x74, 0x65, 0x72, 0x2d, 0x6e, 0x61, 0x61, 0x73, 0x2f, 0x6e, 0x61, + 0x61, 0x73, 0x2d, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -233,20 +236,6 @@ func file_errors_proto_init() { if File_errors_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_errors_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ErrorResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_errors_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ diff --git a/go/github.com/jupyter-naas/naas-models/go/iam/iam.pb.go b/go/github.com/jupyter-naas/naas-models/go/iam/iam.pb.go index 710da5a..e987e8a 100644 --- a/go/github.com/jupyter-naas/naas-models/go/iam/iam.pb.go +++ b/go/github.com/jupyter-naas/naas-models/go/iam/iam.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 v5.26.1 // source: iam.proto @@ -33,11 +33,9 @@ type TokenData struct { func (x *TokenData) Reset() { *x = TokenData{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TokenData) String() string { @@ -48,7 +46,7 @@ func (*TokenData) ProtoMessage() {} func (x *TokenData) ProtoReflect() protoreflect.Message { mi := &file_iam_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) @@ -97,11 +95,9 @@ type Profile struct { func (x *Profile) Reset() { *x = Profile{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Profile) String() string { @@ -112,7 +108,7 @@ func (*Profile) ProtoMessage() {} func (x *Profile) ProtoReflect() protoreflect.Message { mi := &file_iam_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) @@ -218,11 +214,9 @@ type ImpersonateUserRequest struct { func (x *ImpersonateUserRequest) Reset() { *x = ImpersonateUserRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImpersonateUserRequest) String() string { @@ -233,7 +227,7 @@ func (*ImpersonateUserRequest) ProtoMessage() {} func (x *ImpersonateUserRequest) ProtoReflect() protoreflect.Message { mi := &file_iam_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) @@ -296,11 +290,9 @@ type ImpersonateUserResponse struct { func (x *ImpersonateUserResponse) Reset() { *x = ImpersonateUserResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_iam_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_iam_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImpersonateUserResponse) String() string { @@ -311,7 +303,7 @@ func (*ImpersonateUserResponse) ProtoMessage() {} func (x *ImpersonateUserResponse) ProtoReflect() protoreflect.Message { mi := &file_iam_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) @@ -441,56 +433,6 @@ func file_iam_proto_init() { if File_iam_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_iam_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*TokenData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*Profile); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*ImpersonateUserRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_iam_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ImpersonateUserResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_iam_proto_msgTypes[0].OneofWrappers = []any{} file_iam_proto_msgTypes[1].OneofWrappers = []any{} file_iam_proto_msgTypes[2].OneofWrappers = []any{ diff --git a/go/github.com/jupyter-naas/naas-models/go/ontology/ontology.pb.go b/go/github.com/jupyter-naas/naas-models/go/ontology/ontology.pb.go new file mode 100644 index 0000000..e59bc55 --- /dev/null +++ b/go/github.com/jupyter-naas/naas-models/go/ontology/ontology.pb.go @@ -0,0 +1,1124 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.1 +// protoc v5.26.1 +// source: ontology.proto + +package ontology + +import ( + _ "github.com/envoyproxy/protoc-gen-validate/validate" + common "github.com/jupyter-naas/naas-models/go/common" + errors "github.com/jupyter-naas/naas-models/go/errors" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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 Ontology struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` + WorkspaceId *string `protobuf:"bytes,2,opt,name=workspace_id,json=workspaceId,proto3,oneof" json:"workspace_id,omitempty"` + Label *string `protobuf:"bytes,3,opt,name=label,proto3,oneof" json:"label,omitempty"` + Source *string `protobuf:"bytes,4,opt,name=source,proto3,oneof" json:"source,omitempty"` + DownloadUrl *string `protobuf:"bytes,5,opt,name=download_url,json=downloadUrl,proto3,oneof" json:"download_url,omitempty"` +} + +func (x *Ontology) Reset() { + *x = Ontology{} + mi := &file_ontology_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Ontology) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Ontology) ProtoMessage() {} + +func (x *Ontology) ProtoReflect() protoreflect.Message { + mi := &file_ontology_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Ontology.ProtoReflect.Descriptor instead. +func (*Ontology) Descriptor() ([]byte, []int) { + return file_ontology_proto_rawDescGZIP(), []int{0} +} + +func (x *Ontology) GetId() string { + if x != nil && x.Id != nil { + return *x.Id + } + return "" +} + +func (x *Ontology) GetWorkspaceId() string { + if x != nil && x.WorkspaceId != nil { + return *x.WorkspaceId + } + return "" +} + +func (x *Ontology) GetLabel() string { + if x != nil && x.Label != nil { + return *x.Label + } + return "" +} + +func (x *Ontology) GetSource() string { + if x != nil && x.Source != nil { + return *x.Source + } + return "" +} + +func (x *Ontology) GetDownloadUrl() string { + if x != nil && x.DownloadUrl != nil { + return *x.DownloadUrl + } + return "" +} + +type OntologySummary struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` + WorkspaceId *string `protobuf:"bytes,2,opt,name=workspace_id,json=workspaceId,proto3,oneof" json:"workspace_id,omitempty"` + Label *string `protobuf:"bytes,3,opt,name=label,proto3,oneof" json:"label,omitempty"` + DownloadUrl *string `protobuf:"bytes,4,opt,name=download_url,json=downloadUrl,proto3,oneof" json:"download_url,omitempty"` +} + +func (x *OntologySummary) Reset() { + *x = OntologySummary{} + mi := &file_ontology_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OntologySummary) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OntologySummary) ProtoMessage() {} + +func (x *OntologySummary) ProtoReflect() protoreflect.Message { + mi := &file_ontology_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OntologySummary.ProtoReflect.Descriptor instead. +func (*OntologySummary) Descriptor() ([]byte, []int) { + return file_ontology_proto_rawDescGZIP(), []int{1} +} + +func (x *OntologySummary) GetId() string { + if x != nil && x.Id != nil { + return *x.Id + } + return "" +} + +func (x *OntologySummary) GetWorkspaceId() string { + if x != nil && x.WorkspaceId != nil { + return *x.WorkspaceId + } + return "" +} + +func (x *OntologySummary) GetLabel() string { + if x != nil && x.Label != nil { + return *x.Label + } + return "" +} + +func (x *OntologySummary) GetDownloadUrl() string { + if x != nil && x.DownloadUrl != nil { + return *x.DownloadUrl + } + return "" +} + +type OntologyCreation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + WorkspaceId *string `protobuf:"bytes,1,opt,name=workspace_id,json=workspaceId,proto3,oneof" json:"workspace_id,omitempty"` + Label *string `protobuf:"bytes,2,opt,name=label,proto3,oneof" json:"label,omitempty"` + Source *string `protobuf:"bytes,3,opt,name=source,proto3,oneof" json:"source,omitempty"` + DownloadUrl *string `protobuf:"bytes,4,opt,name=download_url,json=downloadUrl,proto3,oneof" json:"download_url,omitempty"` +} + +func (x *OntologyCreation) Reset() { + *x = OntologyCreation{} + mi := &file_ontology_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OntologyCreation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OntologyCreation) ProtoMessage() {} + +func (x *OntologyCreation) ProtoReflect() protoreflect.Message { + mi := &file_ontology_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OntologyCreation.ProtoReflect.Descriptor instead. +func (*OntologyCreation) Descriptor() ([]byte, []int) { + return file_ontology_proto_rawDescGZIP(), []int{2} +} + +func (x *OntologyCreation) GetWorkspaceId() string { + if x != nil && x.WorkspaceId != nil { + return *x.WorkspaceId + } + return "" +} + +func (x *OntologyCreation) GetLabel() string { + if x != nil && x.Label != nil { + return *x.Label + } + return "" +} + +func (x *OntologyCreation) GetSource() string { + if x != nil && x.Source != nil { + return *x.Source + } + return "" +} + +func (x *OntologyCreation) GetDownloadUrl() string { + if x != nil && x.DownloadUrl != nil { + return *x.DownloadUrl + } + return "" +} + +type OntologyUpdate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` + WorkspaceId *string `protobuf:"bytes,2,opt,name=workspace_id,json=workspaceId,proto3,oneof" json:"workspace_id,omitempty"` + Label *string `protobuf:"bytes,3,opt,name=label,proto3,oneof" json:"label,omitempty"` + Source *string `protobuf:"bytes,4,opt,name=source,proto3,oneof" json:"source,omitempty"` + DownloadUrl *string `protobuf:"bytes,5,opt,name=download_url,json=downloadUrl,proto3,oneof" json:"download_url,omitempty"` + FieldMask *common.FieldMask `protobuf:"bytes,100,opt,name=field_mask,json=fieldMask,proto3,oneof" json:"field_mask,omitempty"` +} + +func (x *OntologyUpdate) Reset() { + *x = OntologyUpdate{} + mi := &file_ontology_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OntologyUpdate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OntologyUpdate) ProtoMessage() {} + +func (x *OntologyUpdate) ProtoReflect() protoreflect.Message { + mi := &file_ontology_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OntologyUpdate.ProtoReflect.Descriptor instead. +func (*OntologyUpdate) Descriptor() ([]byte, []int) { + return file_ontology_proto_rawDescGZIP(), []int{3} +} + +func (x *OntologyUpdate) GetId() string { + if x != nil && x.Id != nil { + return *x.Id + } + return "" +} + +func (x *OntologyUpdate) GetWorkspaceId() string { + if x != nil && x.WorkspaceId != nil { + return *x.WorkspaceId + } + return "" +} + +func (x *OntologyUpdate) GetLabel() string { + if x != nil && x.Label != nil { + return *x.Label + } + return "" +} + +func (x *OntologyUpdate) GetSource() string { + if x != nil && x.Source != nil { + return *x.Source + } + return "" +} + +func (x *OntologyUpdate) GetDownloadUrl() string { + if x != nil && x.DownloadUrl != nil { + return *x.DownloadUrl + } + return "" +} + +func (x *OntologyUpdate) GetFieldMask() *common.FieldMask { + if x != nil { + return x.FieldMask + } + return nil +} + +type OntologyListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + WorkspaceId *string `protobuf:"bytes,1,opt,name=workspace_id,json=workspaceId,proto3,oneof" json:"workspace_id,omitempty"` + PageSize *int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"` + PageNumber *int32 `protobuf:"varint,3,opt,name=page_number,json=pageNumber,proto3,oneof" json:"page_number,omitempty"` +} + +func (x *OntologyListRequest) Reset() { + *x = OntologyListRequest{} + mi := &file_ontology_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OntologyListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OntologyListRequest) ProtoMessage() {} + +func (x *OntologyListRequest) ProtoReflect() protoreflect.Message { + mi := &file_ontology_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OntologyListRequest.ProtoReflect.Descriptor instead. +func (*OntologyListRequest) Descriptor() ([]byte, []int) { + return file_ontology_proto_rawDescGZIP(), []int{4} +} + +func (x *OntologyListRequest) GetWorkspaceId() string { + if x != nil && x.WorkspaceId != nil { + return *x.WorkspaceId + } + return "" +} + +func (x *OntologyListRequest) GetPageSize() int32 { + if x != nil && x.PageSize != nil { + return *x.PageSize + } + return 0 +} + +func (x *OntologyListRequest) GetPageNumber() int32 { + if x != nil && x.PageNumber != nil { + return *x.PageNumber + } + return 0 +} + +type OntologyListResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *errors.ErrorResponse `protobuf:"bytes,1,opt,name=error,proto3,oneof" json:"error,omitempty"` + Ontologies []*OntologySummary `protobuf:"bytes,2,rep,name=ontologies,proto3" json:"ontologies,omitempty"` +} + +func (x *OntologyListResponse) Reset() { + *x = OntologyListResponse{} + mi := &file_ontology_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OntologyListResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OntologyListResponse) ProtoMessage() {} + +func (x *OntologyListResponse) ProtoReflect() protoreflect.Message { + mi := &file_ontology_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OntologyListResponse.ProtoReflect.Descriptor instead. +func (*OntologyListResponse) Descriptor() ([]byte, []int) { + return file_ontology_proto_rawDescGZIP(), []int{5} +} + +func (x *OntologyListResponse) GetError() *errors.ErrorResponse { + if x != nil { + return x.Error + } + return nil +} + +func (x *OntologyListResponse) GetOntologies() []*OntologySummary { + if x != nil { + return x.Ontologies + } + return nil +} + +type OntologyGetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` + WorkspaceId *string `protobuf:"bytes,2,opt,name=workspace_id,json=workspaceId,proto3,oneof" json:"workspace_id,omitempty"` +} + +func (x *OntologyGetRequest) Reset() { + *x = OntologyGetRequest{} + mi := &file_ontology_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OntologyGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OntologyGetRequest) ProtoMessage() {} + +func (x *OntologyGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_ontology_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OntologyGetRequest.ProtoReflect.Descriptor instead. +func (*OntologyGetRequest) Descriptor() ([]byte, []int) { + return file_ontology_proto_rawDescGZIP(), []int{6} +} + +func (x *OntologyGetRequest) GetId() string { + if x != nil && x.Id != nil { + return *x.Id + } + return "" +} + +func (x *OntologyGetRequest) GetWorkspaceId() string { + if x != nil && x.WorkspaceId != nil { + return *x.WorkspaceId + } + return "" +} + +type OntologyGetResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *errors.ErrorResponse `protobuf:"bytes,1,opt,name=error,proto3,oneof" json:"error,omitempty"` + Ontology *Ontology `protobuf:"bytes,2,opt,name=ontology,proto3,oneof" json:"ontology,omitempty"` +} + +func (x *OntologyGetResponse) Reset() { + *x = OntologyGetResponse{} + mi := &file_ontology_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OntologyGetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OntologyGetResponse) ProtoMessage() {} + +func (x *OntologyGetResponse) ProtoReflect() protoreflect.Message { + mi := &file_ontology_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OntologyGetResponse.ProtoReflect.Descriptor instead. +func (*OntologyGetResponse) Descriptor() ([]byte, []int) { + return file_ontology_proto_rawDescGZIP(), []int{7} +} + +func (x *OntologyGetResponse) GetError() *errors.ErrorResponse { + if x != nil { + return x.Error + } + return nil +} + +func (x *OntologyGetResponse) GetOntology() *Ontology { + if x != nil { + return x.Ontology + } + return nil +} + +type OntologyCreationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ontology *OntologyCreation `protobuf:"bytes,1,opt,name=ontology,proto3" json:"ontology,omitempty"` +} + +func (x *OntologyCreationRequest) Reset() { + *x = OntologyCreationRequest{} + mi := &file_ontology_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OntologyCreationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OntologyCreationRequest) ProtoMessage() {} + +func (x *OntologyCreationRequest) ProtoReflect() protoreflect.Message { + mi := &file_ontology_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OntologyCreationRequest.ProtoReflect.Descriptor instead. +func (*OntologyCreationRequest) Descriptor() ([]byte, []int) { + return file_ontology_proto_rawDescGZIP(), []int{8} +} + +func (x *OntologyCreationRequest) GetOntology() *OntologyCreation { + if x != nil { + return x.Ontology + } + return nil +} + +type OntologyCreationResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *errors.ErrorResponse `protobuf:"bytes,1,opt,name=error,proto3,oneof" json:"error,omitempty"` + Ontology *Ontology `protobuf:"bytes,2,opt,name=ontology,proto3,oneof" json:"ontology,omitempty"` +} + +func (x *OntologyCreationResponse) Reset() { + *x = OntologyCreationResponse{} + mi := &file_ontology_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OntologyCreationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OntologyCreationResponse) ProtoMessage() {} + +func (x *OntologyCreationResponse) ProtoReflect() protoreflect.Message { + mi := &file_ontology_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OntologyCreationResponse.ProtoReflect.Descriptor instead. +func (*OntologyCreationResponse) Descriptor() ([]byte, []int) { + return file_ontology_proto_rawDescGZIP(), []int{9} +} + +func (x *OntologyCreationResponse) GetError() *errors.ErrorResponse { + if x != nil { + return x.Error + } + return nil +} + +func (x *OntologyCreationResponse) GetOntology() *Ontology { + if x != nil { + return x.Ontology + } + return nil +} + +type OntologyUpdateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ontology *OntologyUpdate `protobuf:"bytes,1,opt,name=ontology,proto3,oneof" json:"ontology,omitempty"` +} + +func (x *OntologyUpdateRequest) Reset() { + *x = OntologyUpdateRequest{} + mi := &file_ontology_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OntologyUpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OntologyUpdateRequest) ProtoMessage() {} + +func (x *OntologyUpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_ontology_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OntologyUpdateRequest.ProtoReflect.Descriptor instead. +func (*OntologyUpdateRequest) Descriptor() ([]byte, []int) { + return file_ontology_proto_rawDescGZIP(), []int{10} +} + +func (x *OntologyUpdateRequest) GetOntology() *OntologyUpdate { + if x != nil { + return x.Ontology + } + return nil +} + +type OntologyUpdateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *errors.ErrorResponse `protobuf:"bytes,1,opt,name=error,proto3,oneof" json:"error,omitempty"` + Ontology *Ontology `protobuf:"bytes,2,opt,name=ontology,proto3,oneof" json:"ontology,omitempty"` +} + +func (x *OntologyUpdateResponse) Reset() { + *x = OntologyUpdateResponse{} + mi := &file_ontology_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OntologyUpdateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OntologyUpdateResponse) ProtoMessage() {} + +func (x *OntologyUpdateResponse) ProtoReflect() protoreflect.Message { + mi := &file_ontology_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OntologyUpdateResponse.ProtoReflect.Descriptor instead. +func (*OntologyUpdateResponse) Descriptor() ([]byte, []int) { + return file_ontology_proto_rawDescGZIP(), []int{11} +} + +func (x *OntologyUpdateResponse) GetError() *errors.ErrorResponse { + if x != nil { + return x.Error + } + return nil +} + +func (x *OntologyUpdateResponse) GetOntology() *Ontology { + if x != nil { + return x.Ontology + } + return nil +} + +type OntologyDeletionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` + WorkspaceId *string `protobuf:"bytes,2,opt,name=workspace_id,json=workspaceId,proto3,oneof" json:"workspace_id,omitempty"` +} + +func (x *OntologyDeletionRequest) Reset() { + *x = OntologyDeletionRequest{} + mi := &file_ontology_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OntologyDeletionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OntologyDeletionRequest) ProtoMessage() {} + +func (x *OntologyDeletionRequest) ProtoReflect() protoreflect.Message { + mi := &file_ontology_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OntologyDeletionRequest.ProtoReflect.Descriptor instead. +func (*OntologyDeletionRequest) Descriptor() ([]byte, []int) { + return file_ontology_proto_rawDescGZIP(), []int{12} +} + +func (x *OntologyDeletionRequest) GetId() string { + if x != nil && x.Id != nil { + return *x.Id + } + return "" +} + +func (x *OntologyDeletionRequest) GetWorkspaceId() string { + if x != nil && x.WorkspaceId != nil { + return *x.WorkspaceId + } + return "" +} + +type OntologyDeletionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *errors.ErrorResponse `protobuf:"bytes,1,opt,name=error,proto3,oneof" json:"error,omitempty"` +} + +func (x *OntologyDeletionResponse) Reset() { + *x = OntologyDeletionResponse{} + mi := &file_ontology_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OntologyDeletionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OntologyDeletionResponse) ProtoMessage() {} + +func (x *OntologyDeletionResponse) ProtoReflect() protoreflect.Message { + mi := &file_ontology_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OntologyDeletionResponse.ProtoReflect.Descriptor instead. +func (*OntologyDeletionResponse) Descriptor() ([]byte, []int) { + return file_ontology_proto_rawDescGZIP(), []int{13} +} + +func (x *OntologyDeletionResponse) GetError() *errors.ErrorResponse { + if x != nil { + return x.Error + } + return nil +} + +var File_ontology_proto protoreflect.FileDescriptor + +var file_ontology_proto_rawDesc = []byte{ + 0x0a, 0x0e, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x08, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x1a, 0x0e, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf9, 0x01, 0x0a, 0x08, 0x4f, 0x6e, 0x74, 0x6f, 0x6c, + 0x6f, 0x67, 0x79, 0x12, 0x1d, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x88, + 0x01, 0x01, 0x12, 0x30, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xb0, + 0x01, 0x01, 0x48, 0x01, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, + 0x64, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x88, 0x01, 0x01, 0x12, + 0x1b, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x03, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, 0x0c, + 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x04, 0x52, 0x0b, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, + 0x6c, 0x88, 0x01, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x69, 0x64, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, + 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, + 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x75, + 0x72, 0x6c, 0x22, 0xd8, 0x01, 0x0a, 0x0f, 0x4f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x53, + 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x1d, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x48, 0x00, 0x52, 0x02, + 0x69, 0x64, 0x88, 0x01, 0x01, 0x12, 0x30, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, + 0x72, 0x03, 0xb0, 0x01, 0x01, 0x48, 0x01, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x88, + 0x01, 0x01, 0x12, 0x26, 0x0a, 0x0c, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x75, + 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x0b, 0x64, 0x6f, 0x77, 0x6e, + 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x88, 0x01, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x69, + 0x64, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, + 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x42, 0x0f, 0x0a, 0x0d, + 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x22, 0xf0, 0x01, + 0x0a, 0x10, 0x4f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xb0, + 0x01, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, + 0x64, 0x88, 0x01, 0x01, 0x12, 0x25, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xff, 0x01, 0x48, + 0x01, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x88, 0x01, 0x01, 0x12, 0x24, 0x0a, 0x06, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, + 0x72, 0x02, 0x10, 0x01, 0x48, 0x02, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x88, 0x01, + 0x01, 0x12, 0x26, 0x0a, 0x0c, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x75, 0x72, + 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x0b, 0x64, 0x6f, 0x77, 0x6e, 0x6c, + 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x77, 0x6f, + 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, + 0x0f, 0x0a, 0x0d, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x75, 0x72, 0x6c, + 0x22, 0xc5, 0x02, 0x0a, 0x0e, 0x4f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x88, + 0x01, 0x01, 0x12, 0x30, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xb0, + 0x01, 0x01, 0x48, 0x01, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, + 0x64, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x88, 0x01, 0x01, 0x12, + 0x1b, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x03, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, 0x0c, + 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x04, 0x52, 0x0b, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, + 0x6c, 0x88, 0x01, 0x01, 0x12, 0x35, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, + 0x73, 0x6b, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x05, 0x52, 0x09, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x88, 0x01, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x5f, + 0x69, 0x64, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x5f, 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x42, 0x09, 0x0a, + 0x07, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x64, 0x6f, 0x77, + 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x66, 0x69, + 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x22, 0xbe, 0x01, 0x0a, 0x13, 0x4f, 0x6e, 0x74, + 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x30, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, + 0x48, 0x00, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x88, + 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, + 0x65, 0x88, 0x01, 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x48, 0x02, 0x52, 0x0a, 0x70, 0x61, 0x67, + 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x77, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x8d, 0x01, 0x0a, 0x14, 0x4f, 0x6e, + 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x15, 0x2e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x88, 0x01, 0x01, 0x12, 0x39, 0x0a, 0x0a, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x69, + 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, + 0x6f, 0x67, 0x79, 0x2e, 0x4f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x53, 0x75, 0x6d, 0x6d, + 0x61, 0x72, 0x79, 0x52, 0x0a, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x69, 0x65, 0x73, 0x42, + 0x08, 0x0a, 0x06, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x7d, 0x0a, 0x12, 0x4f, 0x6e, 0x74, + 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1d, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, + 0x72, 0x03, 0xb0, 0x01, 0x01, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x88, 0x01, 0x01, 0x12, 0x30, + 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x48, 0x01, + 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, + 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x69, 0x64, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x77, 0x6f, 0x72, 0x6b, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x93, 0x01, 0x0a, 0x13, 0x4f, 0x6e, 0x74, + 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x30, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x15, 0x2e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x88, + 0x01, 0x01, 0x12, 0x33, 0x0a, 0x08, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2e, + 0x4f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x48, 0x01, 0x52, 0x08, 0x6f, 0x6e, 0x74, 0x6f, + 0x6c, 0x6f, 0x67, 0x79, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x22, 0x51, + 0x0a, 0x17, 0x4f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x08, 0x6f, 0x6e, 0x74, + 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6f, 0x6e, + 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2e, 0x4f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, + 0x79, 0x22, 0x98, 0x01, 0x0a, 0x18, 0x4f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, + 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x88, 0x01, 0x01, + 0x12, 0x33, 0x0a, 0x08, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2e, 0x4f, 0x6e, + 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x48, 0x01, 0x52, 0x08, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, + 0x67, 0x79, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, + 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x22, 0x5f, 0x0a, 0x15, + 0x4f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x08, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, + 0x67, 0x79, 0x2e, 0x4f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x48, 0x00, 0x52, 0x08, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x88, 0x01, 0x01, + 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x22, 0x96, 0x01, + 0x0a, 0x16, 0x4f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, + 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, + 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x12, 0x33, 0x0a, 0x08, 0x6f, 0x6e, + 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6f, + 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2e, 0x4f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, + 0x48, 0x01, 0x52, 0x08, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x88, 0x01, 0x01, 0x42, + 0x08, 0x0a, 0x06, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x6e, + 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x22, 0x82, 0x01, 0x0a, 0x17, 0x4f, 0x6e, 0x74, 0x6f, 0x6c, + 0x6f, 0x67, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, + 0xfa, 0x42, 0x05, 0x72, 0x03, 0xb0, 0x01, 0x01, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x88, 0x01, + 0x01, 0x12, 0x30, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xb0, 0x01, + 0x01, 0x48, 0x01, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, + 0x88, 0x01, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x69, 0x64, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x77, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x56, 0x0a, 0x18, 0x4f, + 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2e, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, + 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x32, 0x95, 0x03, 0x0a, 0x0f, 0x4f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, + 0x1d, 0x2e, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2e, 0x4f, 0x6e, 0x74, 0x6f, 0x6c, + 0x6f, 0x67, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, + 0x2e, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2e, 0x4f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, + 0x67, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x44, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x1c, 0x2e, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, + 0x67, 0x79, 0x2e, 0x4f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, + 0x2e, 0x4f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x12, 0x21, 0x2e, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2e, 0x4f, 0x6e, 0x74, 0x6f, + 0x6c, 0x6f, 0x67, 0x79, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2e, 0x4f, + 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x06, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x12, 0x1f, 0x2e, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2e, 0x4f, + 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2e, + 0x4f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x12, 0x21, 0x2e, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2e, 0x4f, 0x6e, + 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, + 0x2e, 0x4f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x31, 0x5a, 0x2f, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6a, 0x75, 0x70, 0x79, 0x74, 0x65, + 0x72, 0x2d, 0x6e, 0x61, 0x61, 0x73, 0x2f, 0x6e, 0x61, 0x61, 0x73, 0x2d, 0x6d, 0x6f, 0x64, 0x65, + 0x6c, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x6f, 0x6e, 0x74, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_ontology_proto_rawDescOnce sync.Once + file_ontology_proto_rawDescData = file_ontology_proto_rawDesc +) + +func file_ontology_proto_rawDescGZIP() []byte { + file_ontology_proto_rawDescOnce.Do(func() { + file_ontology_proto_rawDescData = protoimpl.X.CompressGZIP(file_ontology_proto_rawDescData) + }) + return file_ontology_proto_rawDescData +} + +var file_ontology_proto_msgTypes = make([]protoimpl.MessageInfo, 14) +var file_ontology_proto_goTypes = []any{ + (*Ontology)(nil), // 0: ontology.Ontology + (*OntologySummary)(nil), // 1: ontology.OntologySummary + (*OntologyCreation)(nil), // 2: ontology.OntologyCreation + (*OntologyUpdate)(nil), // 3: ontology.OntologyUpdate + (*OntologyListRequest)(nil), // 4: ontology.OntologyListRequest + (*OntologyListResponse)(nil), // 5: ontology.OntologyListResponse + (*OntologyGetRequest)(nil), // 6: ontology.OntologyGetRequest + (*OntologyGetResponse)(nil), // 7: ontology.OntologyGetResponse + (*OntologyCreationRequest)(nil), // 8: ontology.OntologyCreationRequest + (*OntologyCreationResponse)(nil), // 9: ontology.OntologyCreationResponse + (*OntologyUpdateRequest)(nil), // 10: ontology.OntologyUpdateRequest + (*OntologyUpdateResponse)(nil), // 11: ontology.OntologyUpdateResponse + (*OntologyDeletionRequest)(nil), // 12: ontology.OntologyDeletionRequest + (*OntologyDeletionResponse)(nil), // 13: ontology.OntologyDeletionResponse + (*common.FieldMask)(nil), // 14: common.FieldMask + (*errors.ErrorResponse)(nil), // 15: errors.ErrorResponse +} +var file_ontology_proto_depIdxs = []int32{ + 14, // 0: ontology.OntologyUpdate.field_mask:type_name -> common.FieldMask + 15, // 1: ontology.OntologyListResponse.error:type_name -> errors.ErrorResponse + 1, // 2: ontology.OntologyListResponse.ontologies:type_name -> ontology.OntologySummary + 15, // 3: ontology.OntologyGetResponse.error:type_name -> errors.ErrorResponse + 0, // 4: ontology.OntologyGetResponse.ontology:type_name -> ontology.Ontology + 2, // 5: ontology.OntologyCreationRequest.ontology:type_name -> ontology.OntologyCreation + 15, // 6: ontology.OntologyCreationResponse.error:type_name -> errors.ErrorResponse + 0, // 7: ontology.OntologyCreationResponse.ontology:type_name -> ontology.Ontology + 3, // 8: ontology.OntologyUpdateRequest.ontology:type_name -> ontology.OntologyUpdate + 15, // 9: ontology.OntologyUpdateResponse.error:type_name -> errors.ErrorResponse + 0, // 10: ontology.OntologyUpdateResponse.ontology:type_name -> ontology.Ontology + 15, // 11: ontology.OntologyDeletionResponse.error:type_name -> errors.ErrorResponse + 4, // 12: ontology.OntologyService.List:input_type -> ontology.OntologyListRequest + 6, // 13: ontology.OntologyService.Get:input_type -> ontology.OntologyGetRequest + 8, // 14: ontology.OntologyService.Create:input_type -> ontology.OntologyCreationRequest + 10, // 15: ontology.OntologyService.Update:input_type -> ontology.OntologyUpdateRequest + 12, // 16: ontology.OntologyService.Delete:input_type -> ontology.OntologyDeletionRequest + 5, // 17: ontology.OntologyService.List:output_type -> ontology.OntologyListResponse + 7, // 18: ontology.OntologyService.Get:output_type -> ontology.OntologyGetResponse + 9, // 19: ontology.OntologyService.Create:output_type -> ontology.OntologyCreationResponse + 11, // 20: ontology.OntologyService.Update:output_type -> ontology.OntologyUpdateResponse + 13, // 21: ontology.OntologyService.Delete:output_type -> ontology.OntologyDeletionResponse + 17, // [17:22] is the sub-list for method output_type + 12, // [12:17] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name +} + +func init() { file_ontology_proto_init() } +func file_ontology_proto_init() { + if File_ontology_proto != nil { + return + } + file_ontology_proto_msgTypes[0].OneofWrappers = []any{} + file_ontology_proto_msgTypes[1].OneofWrappers = []any{} + file_ontology_proto_msgTypes[2].OneofWrappers = []any{} + file_ontology_proto_msgTypes[3].OneofWrappers = []any{} + file_ontology_proto_msgTypes[4].OneofWrappers = []any{} + file_ontology_proto_msgTypes[5].OneofWrappers = []any{} + file_ontology_proto_msgTypes[6].OneofWrappers = []any{} + file_ontology_proto_msgTypes[7].OneofWrappers = []any{} + file_ontology_proto_msgTypes[9].OneofWrappers = []any{} + file_ontology_proto_msgTypes[10].OneofWrappers = []any{} + file_ontology_proto_msgTypes[11].OneofWrappers = []any{} + file_ontology_proto_msgTypes[12].OneofWrappers = []any{} + file_ontology_proto_msgTypes[13].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_ontology_proto_rawDesc, + NumEnums: 0, + NumMessages: 14, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_ontology_proto_goTypes, + DependencyIndexes: file_ontology_proto_depIdxs, + MessageInfos: file_ontology_proto_msgTypes, + }.Build() + File_ontology_proto = out.File + file_ontology_proto_rawDesc = nil + file_ontology_proto_goTypes = nil + file_ontology_proto_depIdxs = nil +} diff --git a/go/github.com/jupyter-naas/naas-models/go/ontology/ontology.pb.validate.go b/go/github.com/jupyter-naas/naas-models/go/ontology/ontology.pb.validate.go new file mode 100644 index 0000000..c72c8f1 --- /dev/null +++ b/go/github.com/jupyter-naas/naas-models/go/ontology/ontology.pb.validate.go @@ -0,0 +1,2173 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: ontology.proto + +package ontology + +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 +) + +// define the regex for a UUID once up-front +var _ontology_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + +// Validate checks the field values on Ontology 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 *Ontology) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on Ontology 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 OntologyMultiError, or nil +// if none found. +func (m *Ontology) ValidateAll() error { + return m.validate(true) +} + +func (m *Ontology) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if m.Id != nil { + + if err := m._validateUuid(m.GetId()); err != nil { + err = OntologyValidationError{ + field: "Id", + reason: "value must be a valid UUID", + cause: err, + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + if m.WorkspaceId != nil { + + if err := m._validateUuid(m.GetWorkspaceId()); err != nil { + err = OntologyValidationError{ + field: "WorkspaceId", + reason: "value must be a valid UUID", + cause: err, + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + if m.Label != nil { + // no validation rules for Label + } + + if m.Source != nil { + // no validation rules for Source + } + + if m.DownloadUrl != nil { + // no validation rules for DownloadUrl + } + + if len(errors) > 0 { + return OntologyMultiError(errors) + } + + return nil +} + +func (m *Ontology) _validateUuid(uuid string) error { + if matched := _ontology_uuidPattern.MatchString(uuid); !matched { + return errors.New("invalid uuid format") + } + + return nil +} + +// OntologyMultiError is an error wrapping multiple validation errors returned +// by Ontology.ValidateAll() if the designated constraints aren't met. +type OntologyMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m OntologyMultiError) 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 OntologyMultiError) AllErrors() []error { return m } + +// OntologyValidationError is the validation error returned by +// Ontology.Validate if the designated constraints aren't met. +type OntologyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OntologyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OntologyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OntologyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OntologyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OntologyValidationError) ErrorName() string { return "OntologyValidationError" } + +// Error satisfies the builtin error interface +func (e OntologyValidationError) 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 %sOntology.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OntologyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OntologyValidationError{} + +// Validate checks the field values on OntologySummary 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 *OntologySummary) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on OntologySummary 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 +// OntologySummaryMultiError, or nil if none found. +func (m *OntologySummary) ValidateAll() error { + return m.validate(true) +} + +func (m *OntologySummary) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if m.Id != nil { + + if err := m._validateUuid(m.GetId()); err != nil { + err = OntologySummaryValidationError{ + field: "Id", + reason: "value must be a valid UUID", + cause: err, + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + if m.WorkspaceId != nil { + + if err := m._validateUuid(m.GetWorkspaceId()); err != nil { + err = OntologySummaryValidationError{ + field: "WorkspaceId", + reason: "value must be a valid UUID", + cause: err, + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + if m.Label != nil { + // no validation rules for Label + } + + if m.DownloadUrl != nil { + // no validation rules for DownloadUrl + } + + if len(errors) > 0 { + return OntologySummaryMultiError(errors) + } + + return nil +} + +func (m *OntologySummary) _validateUuid(uuid string) error { + if matched := _ontology_uuidPattern.MatchString(uuid); !matched { + return errors.New("invalid uuid format") + } + + return nil +} + +// OntologySummaryMultiError is an error wrapping multiple validation errors +// returned by OntologySummary.ValidateAll() if the designated constraints +// aren't met. +type OntologySummaryMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m OntologySummaryMultiError) 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 OntologySummaryMultiError) AllErrors() []error { return m } + +// OntologySummaryValidationError is the validation error returned by +// OntologySummary.Validate if the designated constraints aren't met. +type OntologySummaryValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OntologySummaryValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OntologySummaryValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OntologySummaryValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OntologySummaryValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OntologySummaryValidationError) ErrorName() string { return "OntologySummaryValidationError" } + +// Error satisfies the builtin error interface +func (e OntologySummaryValidationError) 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 %sOntologySummary.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OntologySummaryValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OntologySummaryValidationError{} + +// Validate checks the field values on OntologyCreation 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 *OntologyCreation) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on OntologyCreation 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 +// OntologyCreationMultiError, or nil if none found. +func (m *OntologyCreation) ValidateAll() error { + return m.validate(true) +} + +func (m *OntologyCreation) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if m.WorkspaceId != nil { + + if err := m._validateUuid(m.GetWorkspaceId()); err != nil { + err = OntologyCreationValidationError{ + field: "WorkspaceId", + reason: "value must be a valid UUID", + cause: err, + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + if m.Label != nil { + + if l := utf8.RuneCountInString(m.GetLabel()); l < 1 || l > 255 { + err := OntologyCreationValidationError{ + field: "Label", + reason: "value length must be between 1 and 255 runes, inclusive", + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + if m.Source != nil { + + if utf8.RuneCountInString(m.GetSource()) < 1 { + err := OntologyCreationValidationError{ + field: "Source", + reason: "value length must be at least 1 runes", + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + if m.DownloadUrl != nil { + // no validation rules for DownloadUrl + } + + if len(errors) > 0 { + return OntologyCreationMultiError(errors) + } + + return nil +} + +func (m *OntologyCreation) _validateUuid(uuid string) error { + if matched := _ontology_uuidPattern.MatchString(uuid); !matched { + return errors.New("invalid uuid format") + } + + return nil +} + +// OntologyCreationMultiError is an error wrapping multiple validation errors +// returned by OntologyCreation.ValidateAll() if the designated constraints +// aren't met. +type OntologyCreationMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m OntologyCreationMultiError) 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 OntologyCreationMultiError) AllErrors() []error { return m } + +// OntologyCreationValidationError is the validation error returned by +// OntologyCreation.Validate if the designated constraints aren't met. +type OntologyCreationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OntologyCreationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OntologyCreationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OntologyCreationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OntologyCreationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OntologyCreationValidationError) ErrorName() string { return "OntologyCreationValidationError" } + +// Error satisfies the builtin error interface +func (e OntologyCreationValidationError) 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 %sOntologyCreation.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OntologyCreationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OntologyCreationValidationError{} + +// Validate checks the field values on OntologyUpdate 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 *OntologyUpdate) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on OntologyUpdate 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 OntologyUpdateMultiError, +// or nil if none found. +func (m *OntologyUpdate) ValidateAll() error { + return m.validate(true) +} + +func (m *OntologyUpdate) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if m.Id != nil { + + if err := m._validateUuid(m.GetId()); err != nil { + err = OntologyUpdateValidationError{ + field: "Id", + reason: "value must be a valid UUID", + cause: err, + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + if m.WorkspaceId != nil { + + if err := m._validateUuid(m.GetWorkspaceId()); err != nil { + err = OntologyUpdateValidationError{ + field: "WorkspaceId", + reason: "value must be a valid UUID", + cause: err, + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + if m.Label != nil { + // no validation rules for Label + } + + if m.Source != nil { + // no validation rules for Source + } + + if m.DownloadUrl != nil { + // no validation rules for DownloadUrl + } + + if m.FieldMask != nil { + + if all { + switch v := interface{}(m.GetFieldMask()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, OntologyUpdateValidationError{ + field: "FieldMask", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, OntologyUpdateValidationError{ + field: "FieldMask", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetFieldMask()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OntologyUpdateValidationError{ + field: "FieldMask", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if len(errors) > 0 { + return OntologyUpdateMultiError(errors) + } + + return nil +} + +func (m *OntologyUpdate) _validateUuid(uuid string) error { + if matched := _ontology_uuidPattern.MatchString(uuid); !matched { + return errors.New("invalid uuid format") + } + + return nil +} + +// OntologyUpdateMultiError is an error wrapping multiple validation errors +// returned by OntologyUpdate.ValidateAll() if the designated constraints +// aren't met. +type OntologyUpdateMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m OntologyUpdateMultiError) 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 OntologyUpdateMultiError) AllErrors() []error { return m } + +// OntologyUpdateValidationError is the validation error returned by +// OntologyUpdate.Validate if the designated constraints aren't met. +type OntologyUpdateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OntologyUpdateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OntologyUpdateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OntologyUpdateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OntologyUpdateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OntologyUpdateValidationError) ErrorName() string { return "OntologyUpdateValidationError" } + +// Error satisfies the builtin error interface +func (e OntologyUpdateValidationError) 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 %sOntologyUpdate.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OntologyUpdateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OntologyUpdateValidationError{} + +// Validate checks the field values on OntologyListRequest 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 *OntologyListRequest) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on OntologyListRequest 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 +// OntologyListRequestMultiError, or nil if none found. +func (m *OntologyListRequest) ValidateAll() error { + return m.validate(true) +} + +func (m *OntologyListRequest) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if m.WorkspaceId != nil { + + if err := m._validateUuid(m.GetWorkspaceId()); err != nil { + err = OntologyListRequestValidationError{ + field: "WorkspaceId", + reason: "value must be a valid UUID", + cause: err, + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + if m.PageSize != nil { + // no validation rules for PageSize + } + + if m.PageNumber != nil { + // no validation rules for PageNumber + } + + if len(errors) > 0 { + return OntologyListRequestMultiError(errors) + } + + return nil +} + +func (m *OntologyListRequest) _validateUuid(uuid string) error { + if matched := _ontology_uuidPattern.MatchString(uuid); !matched { + return errors.New("invalid uuid format") + } + + return nil +} + +// OntologyListRequestMultiError is an error wrapping multiple validation +// errors returned by OntologyListRequest.ValidateAll() if the designated +// constraints aren't met. +type OntologyListRequestMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m OntologyListRequestMultiError) 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 OntologyListRequestMultiError) AllErrors() []error { return m } + +// OntologyListRequestValidationError is the validation error returned by +// OntologyListRequest.Validate if the designated constraints aren't met. +type OntologyListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OntologyListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OntologyListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OntologyListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OntologyListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OntologyListRequestValidationError) ErrorName() string { + return "OntologyListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e OntologyListRequestValidationError) 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 %sOntologyListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OntologyListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OntologyListRequestValidationError{} + +// Validate checks the field values on OntologyListResponse 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 *OntologyListResponse) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on OntologyListResponse 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 +// OntologyListResponseMultiError, or nil if none found. +func (m *OntologyListResponse) ValidateAll() error { + return m.validate(true) +} + +func (m *OntologyListResponse) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + for idx, item := range m.GetOntologies() { + _, _ = idx, item + + if all { + switch v := interface{}(item).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, OntologyListResponseValidationError{ + field: fmt.Sprintf("Ontologies[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, OntologyListResponseValidationError{ + field: fmt.Sprintf("Ontologies[%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 OntologyListResponseValidationError{ + field: fmt.Sprintf("Ontologies[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if m.Error != nil { + + if all { + switch v := interface{}(m.GetError()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, OntologyListResponseValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, OntologyListResponseValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OntologyListResponseValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if len(errors) > 0 { + return OntologyListResponseMultiError(errors) + } + + return nil +} + +// OntologyListResponseMultiError is an error wrapping multiple validation +// errors returned by OntologyListResponse.ValidateAll() if the designated +// constraints aren't met. +type OntologyListResponseMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m OntologyListResponseMultiError) 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 OntologyListResponseMultiError) AllErrors() []error { return m } + +// OntologyListResponseValidationError is the validation error returned by +// OntologyListResponse.Validate if the designated constraints aren't met. +type OntologyListResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OntologyListResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OntologyListResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OntologyListResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OntologyListResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OntologyListResponseValidationError) ErrorName() string { + return "OntologyListResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e OntologyListResponseValidationError) 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 %sOntologyListResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OntologyListResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OntologyListResponseValidationError{} + +// Validate checks the field values on OntologyGetRequest 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 *OntologyGetRequest) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on OntologyGetRequest 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 +// OntologyGetRequestMultiError, or nil if none found. +func (m *OntologyGetRequest) ValidateAll() error { + return m.validate(true) +} + +func (m *OntologyGetRequest) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if m.Id != nil { + + if err := m._validateUuid(m.GetId()); err != nil { + err = OntologyGetRequestValidationError{ + field: "Id", + reason: "value must be a valid UUID", + cause: err, + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + if m.WorkspaceId != nil { + + if err := m._validateUuid(m.GetWorkspaceId()); err != nil { + err = OntologyGetRequestValidationError{ + field: "WorkspaceId", + reason: "value must be a valid UUID", + cause: err, + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + if len(errors) > 0 { + return OntologyGetRequestMultiError(errors) + } + + return nil +} + +func (m *OntologyGetRequest) _validateUuid(uuid string) error { + if matched := _ontology_uuidPattern.MatchString(uuid); !matched { + return errors.New("invalid uuid format") + } + + return nil +} + +// OntologyGetRequestMultiError is an error wrapping multiple validation errors +// returned by OntologyGetRequest.ValidateAll() if the designated constraints +// aren't met. +type OntologyGetRequestMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m OntologyGetRequestMultiError) 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 OntologyGetRequestMultiError) AllErrors() []error { return m } + +// OntologyGetRequestValidationError is the validation error returned by +// OntologyGetRequest.Validate if the designated constraints aren't met. +type OntologyGetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OntologyGetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OntologyGetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OntologyGetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OntologyGetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OntologyGetRequestValidationError) ErrorName() string { + return "OntologyGetRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e OntologyGetRequestValidationError) 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 %sOntologyGetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OntologyGetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OntologyGetRequestValidationError{} + +// Validate checks the field values on OntologyGetResponse 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 *OntologyGetResponse) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on OntologyGetResponse 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 +// OntologyGetResponseMultiError, or nil if none found. +func (m *OntologyGetResponse) ValidateAll() error { + return m.validate(true) +} + +func (m *OntologyGetResponse) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if m.Error != nil { + + if all { + switch v := interface{}(m.GetError()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, OntologyGetResponseValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, OntologyGetResponseValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OntologyGetResponseValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if m.Ontology != nil { + + if all { + switch v := interface{}(m.GetOntology()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, OntologyGetResponseValidationError{ + field: "Ontology", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, OntologyGetResponseValidationError{ + field: "Ontology", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetOntology()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OntologyGetResponseValidationError{ + field: "Ontology", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if len(errors) > 0 { + return OntologyGetResponseMultiError(errors) + } + + return nil +} + +// OntologyGetResponseMultiError is an error wrapping multiple validation +// errors returned by OntologyGetResponse.ValidateAll() if the designated +// constraints aren't met. +type OntologyGetResponseMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m OntologyGetResponseMultiError) 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 OntologyGetResponseMultiError) AllErrors() []error { return m } + +// OntologyGetResponseValidationError is the validation error returned by +// OntologyGetResponse.Validate if the designated constraints aren't met. +type OntologyGetResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OntologyGetResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OntologyGetResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OntologyGetResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OntologyGetResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OntologyGetResponseValidationError) ErrorName() string { + return "OntologyGetResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e OntologyGetResponseValidationError) 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 %sOntologyGetResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OntologyGetResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OntologyGetResponseValidationError{} + +// Validate checks the field values on OntologyCreationRequest 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 *OntologyCreationRequest) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on OntologyCreationRequest 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 +// OntologyCreationRequestMultiError, or nil if none found. +func (m *OntologyCreationRequest) ValidateAll() error { + return m.validate(true) +} + +func (m *OntologyCreationRequest) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if all { + switch v := interface{}(m.GetOntology()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, OntologyCreationRequestValidationError{ + field: "Ontology", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, OntologyCreationRequestValidationError{ + field: "Ontology", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetOntology()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OntologyCreationRequestValidationError{ + field: "Ontology", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if len(errors) > 0 { + return OntologyCreationRequestMultiError(errors) + } + + return nil +} + +// OntologyCreationRequestMultiError is an error wrapping multiple validation +// errors returned by OntologyCreationRequest.ValidateAll() if the designated +// constraints aren't met. +type OntologyCreationRequestMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m OntologyCreationRequestMultiError) 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 OntologyCreationRequestMultiError) AllErrors() []error { return m } + +// OntologyCreationRequestValidationError is the validation error returned by +// OntologyCreationRequest.Validate if the designated constraints aren't met. +type OntologyCreationRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OntologyCreationRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OntologyCreationRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OntologyCreationRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OntologyCreationRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OntologyCreationRequestValidationError) ErrorName() string { + return "OntologyCreationRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e OntologyCreationRequestValidationError) 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 %sOntologyCreationRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OntologyCreationRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OntologyCreationRequestValidationError{} + +// Validate checks the field values on OntologyCreationResponse 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 *OntologyCreationResponse) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on OntologyCreationResponse 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 +// OntologyCreationResponseMultiError, or nil if none found. +func (m *OntologyCreationResponse) ValidateAll() error { + return m.validate(true) +} + +func (m *OntologyCreationResponse) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if m.Error != nil { + + if all { + switch v := interface{}(m.GetError()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, OntologyCreationResponseValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, OntologyCreationResponseValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OntologyCreationResponseValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if m.Ontology != nil { + + if all { + switch v := interface{}(m.GetOntology()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, OntologyCreationResponseValidationError{ + field: "Ontology", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, OntologyCreationResponseValidationError{ + field: "Ontology", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetOntology()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OntologyCreationResponseValidationError{ + field: "Ontology", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if len(errors) > 0 { + return OntologyCreationResponseMultiError(errors) + } + + return nil +} + +// OntologyCreationResponseMultiError is an error wrapping multiple validation +// errors returned by OntologyCreationResponse.ValidateAll() if the designated +// constraints aren't met. +type OntologyCreationResponseMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m OntologyCreationResponseMultiError) 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 OntologyCreationResponseMultiError) AllErrors() []error { return m } + +// OntologyCreationResponseValidationError is the validation error returned by +// OntologyCreationResponse.Validate if the designated constraints aren't met. +type OntologyCreationResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OntologyCreationResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OntologyCreationResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OntologyCreationResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OntologyCreationResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OntologyCreationResponseValidationError) ErrorName() string { + return "OntologyCreationResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e OntologyCreationResponseValidationError) 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 %sOntologyCreationResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OntologyCreationResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OntologyCreationResponseValidationError{} + +// Validate checks the field values on OntologyUpdateRequest 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 *OntologyUpdateRequest) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on OntologyUpdateRequest 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 +// OntologyUpdateRequestMultiError, or nil if none found. +func (m *OntologyUpdateRequest) ValidateAll() error { + return m.validate(true) +} + +func (m *OntologyUpdateRequest) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if m.Ontology != nil { + + if all { + switch v := interface{}(m.GetOntology()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, OntologyUpdateRequestValidationError{ + field: "Ontology", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, OntologyUpdateRequestValidationError{ + field: "Ontology", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetOntology()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OntologyUpdateRequestValidationError{ + field: "Ontology", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if len(errors) > 0 { + return OntologyUpdateRequestMultiError(errors) + } + + return nil +} + +// OntologyUpdateRequestMultiError is an error wrapping multiple validation +// errors returned by OntologyUpdateRequest.ValidateAll() if the designated +// constraints aren't met. +type OntologyUpdateRequestMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m OntologyUpdateRequestMultiError) 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 OntologyUpdateRequestMultiError) AllErrors() []error { return m } + +// OntologyUpdateRequestValidationError is the validation error returned by +// OntologyUpdateRequest.Validate if the designated constraints aren't met. +type OntologyUpdateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OntologyUpdateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OntologyUpdateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OntologyUpdateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OntologyUpdateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OntologyUpdateRequestValidationError) ErrorName() string { + return "OntologyUpdateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e OntologyUpdateRequestValidationError) 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 %sOntologyUpdateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OntologyUpdateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OntologyUpdateRequestValidationError{} + +// Validate checks the field values on OntologyUpdateResponse 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 *OntologyUpdateResponse) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on OntologyUpdateResponse 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 +// OntologyUpdateResponseMultiError, or nil if none found. +func (m *OntologyUpdateResponse) ValidateAll() error { + return m.validate(true) +} + +func (m *OntologyUpdateResponse) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if m.Error != nil { + + if all { + switch v := interface{}(m.GetError()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, OntologyUpdateResponseValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, OntologyUpdateResponseValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OntologyUpdateResponseValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if m.Ontology != nil { + + if all { + switch v := interface{}(m.GetOntology()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, OntologyUpdateResponseValidationError{ + field: "Ontology", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, OntologyUpdateResponseValidationError{ + field: "Ontology", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetOntology()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OntologyUpdateResponseValidationError{ + field: "Ontology", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if len(errors) > 0 { + return OntologyUpdateResponseMultiError(errors) + } + + return nil +} + +// OntologyUpdateResponseMultiError is an error wrapping multiple validation +// errors returned by OntologyUpdateResponse.ValidateAll() if the designated +// constraints aren't met. +type OntologyUpdateResponseMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m OntologyUpdateResponseMultiError) 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 OntologyUpdateResponseMultiError) AllErrors() []error { return m } + +// OntologyUpdateResponseValidationError is the validation error returned by +// OntologyUpdateResponse.Validate if the designated constraints aren't met. +type OntologyUpdateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OntologyUpdateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OntologyUpdateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OntologyUpdateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OntologyUpdateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OntologyUpdateResponseValidationError) ErrorName() string { + return "OntologyUpdateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e OntologyUpdateResponseValidationError) 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 %sOntologyUpdateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OntologyUpdateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OntologyUpdateResponseValidationError{} + +// Validate checks the field values on OntologyDeletionRequest 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 *OntologyDeletionRequest) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on OntologyDeletionRequest 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 +// OntologyDeletionRequestMultiError, or nil if none found. +func (m *OntologyDeletionRequest) ValidateAll() error { + return m.validate(true) +} + +func (m *OntologyDeletionRequest) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if m.Id != nil { + + if err := m._validateUuid(m.GetId()); err != nil { + err = OntologyDeletionRequestValidationError{ + field: "Id", + reason: "value must be a valid UUID", + cause: err, + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + if m.WorkspaceId != nil { + + if err := m._validateUuid(m.GetWorkspaceId()); err != nil { + err = OntologyDeletionRequestValidationError{ + field: "WorkspaceId", + reason: "value must be a valid UUID", + cause: err, + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + if len(errors) > 0 { + return OntologyDeletionRequestMultiError(errors) + } + + return nil +} + +func (m *OntologyDeletionRequest) _validateUuid(uuid string) error { + if matched := _ontology_uuidPattern.MatchString(uuid); !matched { + return errors.New("invalid uuid format") + } + + return nil +} + +// OntologyDeletionRequestMultiError is an error wrapping multiple validation +// errors returned by OntologyDeletionRequest.ValidateAll() if the designated +// constraints aren't met. +type OntologyDeletionRequestMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m OntologyDeletionRequestMultiError) 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 OntologyDeletionRequestMultiError) AllErrors() []error { return m } + +// OntologyDeletionRequestValidationError is the validation error returned by +// OntologyDeletionRequest.Validate if the designated constraints aren't met. +type OntologyDeletionRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OntologyDeletionRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OntologyDeletionRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OntologyDeletionRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OntologyDeletionRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OntologyDeletionRequestValidationError) ErrorName() string { + return "OntologyDeletionRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e OntologyDeletionRequestValidationError) 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 %sOntologyDeletionRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OntologyDeletionRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OntologyDeletionRequestValidationError{} + +// Validate checks the field values on OntologyDeletionResponse 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 *OntologyDeletionResponse) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on OntologyDeletionResponse 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 +// OntologyDeletionResponseMultiError, or nil if none found. +func (m *OntologyDeletionResponse) ValidateAll() error { + return m.validate(true) +} + +func (m *OntologyDeletionResponse) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if m.Error != nil { + + if all { + switch v := interface{}(m.GetError()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, OntologyDeletionResponseValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, OntologyDeletionResponseValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OntologyDeletionResponseValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if len(errors) > 0 { + return OntologyDeletionResponseMultiError(errors) + } + + return nil +} + +// OntologyDeletionResponseMultiError is an error wrapping multiple validation +// errors returned by OntologyDeletionResponse.ValidateAll() if the designated +// constraints aren't met. +type OntologyDeletionResponseMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m OntologyDeletionResponseMultiError) 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 OntologyDeletionResponseMultiError) AllErrors() []error { return m } + +// OntologyDeletionResponseValidationError is the validation error returned by +// OntologyDeletionResponse.Validate if the designated constraints aren't met. +type OntologyDeletionResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OntologyDeletionResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OntologyDeletionResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OntologyDeletionResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OntologyDeletionResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OntologyDeletionResponseValidationError) ErrorName() string { + return "OntologyDeletionResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e OntologyDeletionResponseValidationError) 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 %sOntologyDeletionResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OntologyDeletionResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OntologyDeletionResponseValidationError{} diff --git a/go/github.com/jupyter-naas/naas-models/go/registry/registry.pb.go b/go/github.com/jupyter-naas/naas-models/go/registry/registry.pb.go index fc53946..d768ba8 100644 --- a/go/github.com/jupyter-naas/naas-models/go/registry/registry.pb.go +++ b/go/github.com/jupyter-naas/naas-models/go/registry/registry.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 v5.26.1 // source: registry.proto @@ -82,11 +82,9 @@ type Registry struct { func (x *Registry) Reset() { *x = Registry{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Registry) String() string { @@ -97,7 +95,7 @@ func (*Registry) ProtoMessage() {} func (x *Registry) ProtoReflect() protoreflect.Message { mi := &file_registry_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 RegistryCredentials struct { func (x *RegistryCredentials) Reset() { *x = RegistryCredentials{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegistryCredentials) String() string { @@ -159,7 +155,7 @@ func (*RegistryCredentials) ProtoMessage() {} func (x *RegistryCredentials) ProtoReflect() protoreflect.Message { mi := &file_registry_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) @@ -198,11 +194,9 @@ type RegistryCreationRequest struct { func (x *RegistryCreationRequest) Reset() { *x = RegistryCreationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegistryCreationRequest) String() string { @@ -213,7 +207,7 @@ func (*RegistryCreationRequest) ProtoMessage() {} func (x *RegistryCreationRequest) ProtoReflect() protoreflect.Message { mi := &file_registry_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) @@ -245,11 +239,9 @@ type RegistryCreationResponse struct { func (x *RegistryCreationResponse) Reset() { *x = RegistryCreationResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegistryCreationResponse) String() string { @@ -260,7 +252,7 @@ func (*RegistryCreationResponse) ProtoMessage() {} func (x *RegistryCreationResponse) ProtoReflect() protoreflect.Message { mi := &file_registry_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) @@ -293,11 +285,9 @@ type RegistryCreationResponseError struct { func (x *RegistryCreationResponseError) Reset() { *x = RegistryCreationResponseError{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegistryCreationResponseError) String() string { @@ -308,7 +298,7 @@ func (*RegistryCreationResponseError) ProtoMessage() {} func (x *RegistryCreationResponseError) ProtoReflect() protoreflect.Message { mi := &file_registry_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) @@ -348,11 +338,9 @@ type RegistryListRequest struct { func (x *RegistryListRequest) Reset() { *x = RegistryListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegistryListRequest) String() string { @@ -363,7 +351,7 @@ func (*RegistryListRequest) ProtoMessage() {} func (x *RegistryListRequest) ProtoReflect() protoreflect.Message { mi := &file_registry_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) @@ -402,11 +390,9 @@ type RegistryListResponse struct { func (x *RegistryListResponse) Reset() { *x = RegistryListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegistryListResponse) String() string { @@ -417,7 +403,7 @@ func (*RegistryListResponse) ProtoMessage() {} func (x *RegistryListResponse) ProtoReflect() protoreflect.Message { mi := &file_registry_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) @@ -449,11 +435,9 @@ type RegistryGetRequest struct { func (x *RegistryGetRequest) Reset() { *x = RegistryGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegistryGetRequest) String() string { @@ -464,7 +448,7 @@ func (*RegistryGetRequest) ProtoMessage() {} func (x *RegistryGetRequest) ProtoReflect() protoreflect.Message { mi := &file_registry_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) @@ -496,11 +480,9 @@ type RegistryGetResponse struct { func (x *RegistryGetResponse) Reset() { *x = RegistryGetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegistryGetResponse) String() string { @@ -511,7 +493,7 @@ func (*RegistryGetResponse) ProtoMessage() {} func (x *RegistryGetResponse) ProtoReflect() protoreflect.Message { mi := &file_registry_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) @@ -544,11 +526,9 @@ type RegistryGetResponseError struct { func (x *RegistryGetResponseError) Reset() { *x = RegistryGetResponseError{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegistryGetResponseError) String() string { @@ -559,7 +539,7 @@ func (*RegistryGetResponseError) ProtoMessage() {} func (x *RegistryGetResponseError) ProtoReflect() protoreflect.Message { mi := &file_registry_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) @@ -598,11 +578,9 @@ type RegistryDeleteRequest struct { func (x *RegistryDeleteRequest) Reset() { *x = RegistryDeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegistryDeleteRequest) String() string { @@ -613,7 +591,7 @@ func (*RegistryDeleteRequest) ProtoMessage() {} func (x *RegistryDeleteRequest) ProtoReflect() protoreflect.Message { mi := &file_registry_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -646,11 +624,9 @@ type RegistryDeleteResponseError struct { func (x *RegistryDeleteResponseError) Reset() { *x = RegistryDeleteResponseError{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegistryDeleteResponseError) String() string { @@ -661,7 +637,7 @@ func (*RegistryDeleteResponseError) ProtoMessage() {} func (x *RegistryDeleteResponseError) ProtoReflect() protoreflect.Message { mi := &file_registry_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -700,11 +676,9 @@ type RegistryCredentialsRequest struct { func (x *RegistryCredentialsRequest) Reset() { *x = RegistryCredentialsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegistryCredentialsRequest) String() string { @@ -715,7 +689,7 @@ func (*RegistryCredentialsRequest) ProtoMessage() {} func (x *RegistryCredentialsRequest) ProtoReflect() protoreflect.Message { mi := &file_registry_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -748,11 +722,9 @@ type RegistryCredentialsResponse struct { func (x *RegistryCredentialsResponse) Reset() { *x = RegistryCredentialsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegistryCredentialsResponse) String() string { @@ -763,7 +735,7 @@ func (*RegistryCredentialsResponse) ProtoMessage() {} func (x *RegistryCredentialsResponse) ProtoReflect() protoreflect.Message { mi := &file_registry_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -803,11 +775,9 @@ type RegistryCredentialsResponseError struct { func (x *RegistryCredentialsResponseError) Reset() { *x = RegistryCredentialsResponseError{} - if protoimpl.UnsafeEnabled { - mi := &file_registry_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_registry_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegistryCredentialsResponseError) String() string { @@ -818,7 +788,7 @@ func (*RegistryCredentialsResponseError) ProtoMessage() {} func (x *RegistryCredentialsResponseError) ProtoReflect() protoreflect.Message { mi := &file_registry_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1033,188 +1003,6 @@ func file_registry_proto_init() { if File_registry_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_registry_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Registry); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*RegistryCredentials); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*RegistryCreationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*RegistryCreationResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*RegistryCreationResponseError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*RegistryListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*RegistryListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*RegistryGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*RegistryGetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*RegistryGetResponseError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*RegistryDeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*RegistryDeleteResponseError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*RegistryCredentialsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*RegistryCredentialsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*RegistryCredentialsResponseError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_registry_proto_msgTypes[0].OneofWrappers = []any{} file_registry_proto_msgTypes[1].OneofWrappers = []any{} file_registry_proto_msgTypes[2].OneofWrappers = []any{} diff --git a/go/github.com/jupyter-naas/naas-models/go/secrets/secret.pb.go b/go/github.com/jupyter-naas/naas-models/go/secrets/secret.pb.go index 514c220..928c6cc 100644 --- a/go/github.com/jupyter-naas/naas-models/go/secrets/secret.pb.go +++ b/go/github.com/jupyter-naas/naas-models/go/secrets/secret.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 v5.26.1 // source: secret.proto @@ -84,11 +84,9 @@ type Secret struct { func (x *Secret) Reset() { *x = Secret{} - if protoimpl.UnsafeEnabled { - mi := &file_secret_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_secret_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Secret) String() string { @@ -99,7 +97,7 @@ func (*Secret) ProtoMessage() {} func (x *Secret) ProtoReflect() protoreflect.Message { mi := &file_secret_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) @@ -139,11 +137,9 @@ type SecretResponseError struct { func (x *SecretResponseError) Reset() { *x = SecretResponseError{} - if protoimpl.UnsafeEnabled { - mi := &file_secret_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_secret_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SecretResponseError) String() string { @@ -154,7 +150,7 @@ func (*SecretResponseError) ProtoMessage() {} func (x *SecretResponseError) ProtoReflect() protoreflect.Message { mi := &file_secret_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) @@ -193,11 +189,9 @@ type SecretCreateRequest struct { func (x *SecretCreateRequest) Reset() { *x = SecretCreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_secret_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_secret_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SecretCreateRequest) String() string { @@ -208,7 +202,7 @@ func (*SecretCreateRequest) ProtoMessage() {} func (x *SecretCreateRequest) ProtoReflect() protoreflect.Message { mi := &file_secret_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) @@ -240,11 +234,9 @@ type SecretCreateResponse struct { func (x *SecretCreateResponse) Reset() { *x = SecretCreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_secret_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_secret_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SecretCreateResponse) String() string { @@ -255,7 +247,7 @@ func (*SecretCreateResponse) ProtoMessage() {} func (x *SecretCreateResponse) ProtoReflect() protoreflect.Message { mi := &file_secret_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,11 +279,9 @@ type SecretGetRequest struct { func (x *SecretGetRequest) Reset() { *x = SecretGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_secret_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_secret_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SecretGetRequest) String() string { @@ -302,7 +292,7 @@ func (*SecretGetRequest) ProtoMessage() {} func (x *SecretGetRequest) ProtoReflect() protoreflect.Message { mi := &file_secret_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) @@ -335,11 +325,9 @@ type SecretGetResponse struct { func (x *SecretGetResponse) Reset() { *x = SecretGetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_secret_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_secret_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SecretGetResponse) String() string { @@ -350,7 +338,7 @@ func (*SecretGetResponse) ProtoMessage() {} func (x *SecretGetResponse) ProtoReflect() protoreflect.Message { mi := &file_secret_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) @@ -389,11 +377,9 @@ type SecretDeleteRequest struct { func (x *SecretDeleteRequest) Reset() { *x = SecretDeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_secret_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_secret_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SecretDeleteRequest) String() string { @@ -404,7 +390,7 @@ func (*SecretDeleteRequest) ProtoMessage() {} func (x *SecretDeleteRequest) ProtoReflect() protoreflect.Message { mi := &file_secret_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) @@ -436,11 +422,9 @@ type SecretDeleteResponse struct { func (x *SecretDeleteResponse) Reset() { *x = SecretDeleteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_secret_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_secret_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SecretDeleteResponse) String() string { @@ -451,7 +435,7 @@ func (*SecretDeleteResponse) ProtoMessage() {} func (x *SecretDeleteResponse) ProtoReflect() protoreflect.Message { mi := &file_secret_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) @@ -484,11 +468,9 @@ type SecretListRequest struct { func (x *SecretListRequest) Reset() { *x = SecretListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_secret_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_secret_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SecretListRequest) String() string { @@ -499,7 +481,7 @@ func (*SecretListRequest) ProtoMessage() {} func (x *SecretListRequest) ProtoReflect() protoreflect.Message { mi := &file_secret_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) @@ -539,11 +521,9 @@ type SecretListResponse struct { func (x *SecretListResponse) Reset() { *x = SecretListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_secret_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_secret_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SecretListResponse) String() string { @@ -554,7 +534,7 @@ func (*SecretListResponse) ProtoMessage() {} func (x *SecretListResponse) ProtoReflect() protoreflect.Message { mi := &file_secret_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) @@ -593,11 +573,9 @@ type SecretBulkCreateRequest struct { func (x *SecretBulkCreateRequest) Reset() { *x = SecretBulkCreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_secret_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_secret_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SecretBulkCreateRequest) String() string { @@ -608,7 +586,7 @@ func (*SecretBulkCreateRequest) ProtoMessage() {} func (x *SecretBulkCreateRequest) ProtoReflect() protoreflect.Message { mi := &file_secret_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -640,11 +618,9 @@ type SecretBulkCreateResponse struct { func (x *SecretBulkCreateResponse) Reset() { *x = SecretBulkCreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_secret_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_secret_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SecretBulkCreateResponse) String() string { @@ -655,7 +631,7 @@ func (*SecretBulkCreateResponse) ProtoMessage() {} func (x *SecretBulkCreateResponse) ProtoReflect() protoreflect.Message { mi := &file_secret_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -819,152 +795,6 @@ func file_secret_proto_init() { if File_secret_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_secret_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Secret); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_secret_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*SecretResponseError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_secret_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*SecretCreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_secret_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*SecretCreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_secret_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*SecretGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_secret_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*SecretGetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_secret_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*SecretDeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_secret_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*SecretDeleteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_secret_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*SecretListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_secret_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*SecretListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_secret_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*SecretBulkCreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_secret_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*SecretBulkCreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_secret_proto_msgTypes[0].OneofWrappers = []any{} file_secret_proto_msgTypes[1].OneofWrappers = []any{} file_secret_proto_msgTypes[2].OneofWrappers = []any{} diff --git a/go/github.com/jupyter-naas/naas-models/go/space/space.pb.go b/go/github.com/jupyter-naas/naas-models/go/space/space.pb.go index ed923a6..d30541f 100644 --- a/go/github.com/jupyter-naas/naas-models/go/space/space.pb.go +++ b/go/github.com/jupyter-naas/naas-models/go/space/space.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 v5.26.1 // source: space.proto @@ -91,11 +91,9 @@ type Container struct { func (x *Container) Reset() { *x = Container{} - if protoimpl.UnsafeEnabled { - mi := &file_space_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_space_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Container) String() string { @@ -106,7 +104,7 @@ func (*Container) ProtoMessage() {} func (x *Container) ProtoReflect() protoreflect.Message { mi := &file_space_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) @@ -178,11 +176,9 @@ type ContainerUpdate struct { func (x *ContainerUpdate) Reset() { *x = ContainerUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_space_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_space_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ContainerUpdate) String() string { @@ -193,7 +189,7 @@ func (*ContainerUpdate) ProtoMessage() {} func (x *ContainerUpdate) ProtoReflect() protoreflect.Message { mi := &file_space_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) @@ -264,11 +260,9 @@ type Space struct { func (x *Space) Reset() { *x = Space{} - if protoimpl.UnsafeEnabled { - mi := &file_space_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_space_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Space) String() string { @@ -279,7 +273,7 @@ func (*Space) ProtoMessage() {} func (x *Space) ProtoReflect() protoreflect.Message { mi := &file_space_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) @@ -340,11 +334,9 @@ type SpaceUpdate struct { func (x *SpaceUpdate) Reset() { *x = SpaceUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_space_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_space_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SpaceUpdate) String() string { @@ -355,7 +347,7 @@ func (*SpaceUpdate) ProtoMessage() {} func (x *SpaceUpdate) ProtoReflect() protoreflect.Message { mi := &file_space_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) @@ -397,11 +389,9 @@ type SpaceResponseError struct { func (x *SpaceResponseError) Reset() { *x = SpaceResponseError{} - if protoimpl.UnsafeEnabled { - mi := &file_space_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_space_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SpaceResponseError) String() string { @@ -412,7 +402,7 @@ func (*SpaceResponseError) ProtoMessage() {} func (x *SpaceResponseError) ProtoReflect() protoreflect.Message { mi := &file_space_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) @@ -467,11 +457,9 @@ type SpaceCreationRequest struct { func (x *SpaceCreationRequest) Reset() { *x = SpaceCreationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_space_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_space_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SpaceCreationRequest) String() string { @@ -482,7 +470,7 @@ func (*SpaceCreationRequest) ProtoMessage() {} func (x *SpaceCreationRequest) ProtoReflect() protoreflect.Message { mi := &file_space_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) @@ -529,11 +517,9 @@ type SpaceCreationResponse struct { func (x *SpaceCreationResponse) Reset() { *x = SpaceCreationResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_space_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_space_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SpaceCreationResponse) String() string { @@ -544,7 +530,7 @@ func (*SpaceCreationResponse) ProtoMessage() {} func (x *SpaceCreationResponse) ProtoReflect() protoreflect.Message { mi := &file_space_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) @@ -583,11 +569,9 @@ type SpaceGetRequest struct { func (x *SpaceGetRequest) Reset() { *x = SpaceGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_space_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_space_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SpaceGetRequest) String() string { @@ -598,7 +582,7 @@ func (*SpaceGetRequest) ProtoMessage() {} func (x *SpaceGetRequest) ProtoReflect() protoreflect.Message { mi := &file_space_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) @@ -631,11 +615,9 @@ type SpaceGetResponse struct { func (x *SpaceGetResponse) Reset() { *x = SpaceGetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_space_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_space_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SpaceGetResponse) String() string { @@ -646,7 +628,7 @@ func (*SpaceGetResponse) ProtoMessage() {} func (x *SpaceGetResponse) ProtoReflect() protoreflect.Message { mi := &file_space_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) @@ -685,11 +667,9 @@ type SpaceDeletionRequest struct { func (x *SpaceDeletionRequest) Reset() { *x = SpaceDeletionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_space_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_space_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SpaceDeletionRequest) String() string { @@ -700,7 +680,7 @@ func (*SpaceDeletionRequest) ProtoMessage() {} func (x *SpaceDeletionRequest) ProtoReflect() protoreflect.Message { mi := &file_space_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) @@ -732,11 +712,9 @@ type SpaceDeletionResponse struct { func (x *SpaceDeletionResponse) Reset() { *x = SpaceDeletionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_space_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_space_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SpaceDeletionResponse) String() string { @@ -747,7 +725,7 @@ func (*SpaceDeletionResponse) ProtoMessage() {} func (x *SpaceDeletionResponse) ProtoReflect() protoreflect.Message { mi := &file_space_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -780,11 +758,9 @@ type SpaceListRequest struct { func (x *SpaceListRequest) Reset() { *x = SpaceListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_space_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_space_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SpaceListRequest) String() string { @@ -795,7 +771,7 @@ func (*SpaceListRequest) ProtoMessage() {} func (x *SpaceListRequest) ProtoReflect() protoreflect.Message { mi := &file_space_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -834,11 +810,9 @@ type SpaceListResponse struct { func (x *SpaceListResponse) Reset() { *x = SpaceListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_space_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_space_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SpaceListResponse) String() string { @@ -849,7 +823,7 @@ func (*SpaceListResponse) ProtoMessage() {} func (x *SpaceListResponse) ProtoReflect() protoreflect.Message { mi := &file_space_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -882,11 +856,9 @@ type SpaceUpdateRequest struct { func (x *SpaceUpdateRequest) Reset() { *x = SpaceUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_space_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_space_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SpaceUpdateRequest) String() string { @@ -897,7 +869,7 @@ func (*SpaceUpdateRequest) ProtoMessage() {} func (x *SpaceUpdateRequest) ProtoReflect() protoreflect.Message { mi := &file_space_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -937,11 +909,9 @@ type SpaceUpdateResponse struct { func (x *SpaceUpdateResponse) Reset() { *x = SpaceUpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_space_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_space_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SpaceUpdateResponse) String() string { @@ -952,7 +922,7 @@ func (*SpaceUpdateResponse) ProtoMessage() {} func (x *SpaceUpdateResponse) ProtoReflect() protoreflect.Message { mi := &file_space_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1228,188 +1198,6 @@ func file_space_proto_init() { if File_space_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_space_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Container); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_space_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ContainerUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_space_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*Space); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_space_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*SpaceUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_space_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*SpaceResponseError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_space_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*SpaceCreationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_space_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*SpaceCreationResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_space_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*SpaceGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_space_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*SpaceGetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_space_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*SpaceDeletionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_space_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*SpaceDeletionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_space_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*SpaceListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_space_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*SpaceListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_space_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*SpaceUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_space_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*SpaceUpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_space_proto_msgTypes[0].OneofWrappers = []any{} file_space_proto_msgTypes[1].OneofWrappers = []any{} file_space_proto_msgTypes[2].OneofWrappers = []any{} diff --git a/go/github.com/jupyter-naas/naas-models/go/storage/storage.pb.go b/go/github.com/jupyter-naas/naas-models/go/storage/storage.pb.go index 8c9ca35..306f0ad 100644 --- a/go/github.com/jupyter-naas/naas-models/go/storage/storage.pb.go +++ b/go/github.com/jupyter-naas/naas-models/go/storage/storage.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 v5.26.1 // source: storage.proto @@ -181,11 +181,9 @@ type Storage struct { func (x *Storage) Reset() { *x = Storage{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Storage) String() string { @@ -196,7 +194,7 @@ func (*Storage) ProtoMessage() {} func (x *Storage) ProtoReflect() protoreflect.Message { mi := &file_storage_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) @@ -232,11 +230,9 @@ type Object struct { func (x *Object) Reset() { *x = Object{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Object) String() string { @@ -247,7 +243,7 @@ func (*Object) ProtoMessage() {} func (x *Object) ProtoReflect() protoreflect.Message { mi := &file_storage_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) @@ -308,11 +304,9 @@ type StorageResponseError struct { func (x *StorageResponseError) Reset() { *x = StorageResponseError{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StorageResponseError) String() string { @@ -323,7 +317,7 @@ func (*StorageResponseError) ProtoMessage() {} func (x *StorageResponseError) ProtoReflect() protoreflect.Message { mi := &file_storage_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) @@ -363,11 +357,9 @@ type ObjectResponseError struct { func (x *ObjectResponseError) Reset() { *x = ObjectResponseError{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectResponseError) String() string { @@ -378,7 +370,7 @@ func (*ObjectResponseError) ProtoMessage() {} func (x *ObjectResponseError) ProtoReflect() protoreflect.Message { mi := &file_storage_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) @@ -418,11 +410,9 @@ type ObjectStorageCredentialsResponseError struct { func (x *ObjectStorageCredentialsResponseError) Reset() { *x = ObjectStorageCredentialsResponseError{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectStorageCredentialsResponseError) String() string { @@ -433,7 +423,7 @@ func (*ObjectStorageCredentialsResponseError) ProtoMessage() {} func (x *ObjectStorageCredentialsResponseError) ProtoReflect() protoreflect.Message { mi := &file_storage_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) @@ -473,11 +463,9 @@ type StorageListRequest struct { func (x *StorageListRequest) Reset() { *x = StorageListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StorageListRequest) String() string { @@ -488,7 +476,7 @@ func (*StorageListRequest) ProtoMessage() {} func (x *StorageListRequest) ProtoReflect() protoreflect.Message { mi := &file_storage_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) @@ -528,11 +516,9 @@ type StorageListResponse struct { func (x *StorageListResponse) Reset() { *x = StorageListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StorageListResponse) String() string { @@ -543,7 +529,7 @@ func (*StorageListResponse) ProtoMessage() {} func (x *StorageListResponse) ProtoReflect() protoreflect.Message { mi := &file_storage_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) @@ -582,11 +568,9 @@ type StorageCreateRequest struct { func (x *StorageCreateRequest) Reset() { *x = StorageCreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StorageCreateRequest) String() string { @@ -597,7 +581,7 @@ func (*StorageCreateRequest) ProtoMessage() {} func (x *StorageCreateRequest) ProtoReflect() protoreflect.Message { mi := &file_storage_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) @@ -630,11 +614,9 @@ type StorageCreateResponse struct { func (x *StorageCreateResponse) Reset() { *x = StorageCreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StorageCreateResponse) String() string { @@ -645,7 +627,7 @@ func (*StorageCreateResponse) ProtoMessage() {} func (x *StorageCreateResponse) ProtoReflect() protoreflect.Message { mi := &file_storage_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) @@ -684,11 +666,9 @@ type StorageDeleteRequest struct { func (x *StorageDeleteRequest) Reset() { *x = StorageDeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StorageDeleteRequest) String() string { @@ -699,7 +679,7 @@ func (*StorageDeleteRequest) ProtoMessage() {} func (x *StorageDeleteRequest) ProtoReflect() protoreflect.Message { mi := &file_storage_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) @@ -731,11 +711,9 @@ type StorageDeleteResponse struct { func (x *StorageDeleteResponse) Reset() { *x = StorageDeleteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StorageDeleteResponse) String() string { @@ -746,7 +724,7 @@ func (*StorageDeleteResponse) ProtoMessage() {} func (x *StorageDeleteResponse) ProtoReflect() protoreflect.Message { mi := &file_storage_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -779,11 +757,9 @@ type StorageListObjectRequest struct { func (x *StorageListObjectRequest) Reset() { *x = StorageListObjectRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StorageListObjectRequest) String() string { @@ -794,7 +770,7 @@ func (*StorageListObjectRequest) ProtoMessage() {} func (x *StorageListObjectRequest) ProtoReflect() protoreflect.Message { mi := &file_storage_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -834,11 +810,9 @@ type StorageListObjectResponse struct { func (x *StorageListObjectResponse) Reset() { *x = StorageListObjectResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StorageListObjectResponse) String() string { @@ -849,7 +823,7 @@ func (*StorageListObjectResponse) ProtoMessage() {} func (x *StorageListObjectResponse) ProtoReflect() protoreflect.Message { mi := &file_storage_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -889,11 +863,9 @@ type ObjectCreateRequest struct { func (x *ObjectCreateRequest) Reset() { *x = ObjectCreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectCreateRequest) String() string { @@ -904,7 +876,7 @@ func (*ObjectCreateRequest) ProtoMessage() {} func (x *ObjectCreateRequest) ProtoReflect() protoreflect.Message { mi := &file_storage_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -943,11 +915,9 @@ type ObjectCreateResponse struct { func (x *ObjectCreateResponse) Reset() { *x = ObjectCreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectCreateResponse) String() string { @@ -958,7 +928,7 @@ func (*ObjectCreateResponse) ProtoMessage() {} func (x *ObjectCreateResponse) ProtoReflect() protoreflect.Message { mi := &file_storage_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -991,11 +961,9 @@ type ObjectListRequest struct { func (x *ObjectListRequest) Reset() { *x = ObjectListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectListRequest) String() string { @@ -1006,7 +974,7 @@ func (*ObjectListRequest) ProtoMessage() {} func (x *ObjectListRequest) ProtoReflect() protoreflect.Message { mi := &file_storage_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1046,11 +1014,9 @@ type ObjectListResponse struct { func (x *ObjectListResponse) Reset() { *x = ObjectListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectListResponse) String() string { @@ -1061,7 +1027,7 @@ func (*ObjectListResponse) ProtoMessage() {} func (x *ObjectListResponse) ProtoReflect() protoreflect.Message { mi := &file_storage_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1101,11 +1067,9 @@ type ObjectGetRequest struct { func (x *ObjectGetRequest) Reset() { *x = ObjectGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectGetRequest) String() string { @@ -1116,7 +1080,7 @@ func (*ObjectGetRequest) ProtoMessage() {} func (x *ObjectGetRequest) ProtoReflect() protoreflect.Message { mi := &file_storage_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1156,11 +1120,9 @@ type ObjectGetResponse struct { func (x *ObjectGetResponse) Reset() { *x = ObjectGetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectGetResponse) String() string { @@ -1171,7 +1133,7 @@ func (*ObjectGetResponse) ProtoMessage() {} func (x *ObjectGetResponse) ProtoReflect() protoreflect.Message { mi := &file_storage_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1210,11 +1172,9 @@ type ObjectDeleteRequest struct { func (x *ObjectDeleteRequest) Reset() { *x = ObjectDeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectDeleteRequest) String() string { @@ -1225,7 +1185,7 @@ func (*ObjectDeleteRequest) ProtoMessage() {} func (x *ObjectDeleteRequest) ProtoReflect() protoreflect.Message { mi := &file_storage_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1257,11 +1217,9 @@ type ObjectDeleteResponse struct { func (x *ObjectDeleteResponse) Reset() { *x = ObjectDeleteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectDeleteResponse) String() string { @@ -1272,7 +1230,7 @@ func (*ObjectDeleteResponse) ProtoMessage() {} func (x *ObjectDeleteResponse) ProtoReflect() protoreflect.Message { mi := &file_storage_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1310,11 +1268,9 @@ type ObjectStorageS3Credentials struct { func (x *ObjectStorageS3Credentials) Reset() { *x = ObjectStorageS3Credentials{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectStorageS3Credentials) String() string { @@ -1325,7 +1281,7 @@ func (*ObjectStorageS3Credentials) ProtoMessage() {} func (x *ObjectStorageS3Credentials) ProtoReflect() protoreflect.Message { mi := &file_storage_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1394,11 +1350,9 @@ type ObjectStorageAzureCredentials struct { func (x *ObjectStorageAzureCredentials) Reset() { *x = ObjectStorageAzureCredentials{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectStorageAzureCredentials) String() string { @@ -1409,7 +1363,7 @@ func (*ObjectStorageAzureCredentials) ProtoMessage() {} func (x *ObjectStorageAzureCredentials) ProtoReflect() protoreflect.Message { mi := &file_storage_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1455,11 +1409,9 @@ type ObjectStorageCredentials struct { func (x *ObjectStorageCredentials) Reset() { *x = ObjectStorageCredentials{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectStorageCredentials) String() string { @@ -1470,7 +1422,7 @@ func (*ObjectStorageCredentials) ProtoMessage() {} func (x *ObjectStorageCredentials) ProtoReflect() protoreflect.Message { mi := &file_storage_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1503,11 +1455,9 @@ type ObjectStorageCredentialsRequest struct { func (x *ObjectStorageCredentialsRequest) Reset() { *x = ObjectStorageCredentialsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectStorageCredentialsRequest) String() string { @@ -1518,7 +1468,7 @@ func (*ObjectStorageCredentialsRequest) ProtoMessage() {} func (x *ObjectStorageCredentialsRequest) ProtoReflect() protoreflect.Message { mi := &file_storage_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1551,11 +1501,9 @@ type ObjectStorageCredentialsResponse struct { func (x *ObjectStorageCredentialsResponse) Reset() { *x = ObjectStorageCredentialsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_storage_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_storage_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObjectStorageCredentialsResponse) String() string { @@ -1566,7 +1514,7 @@ func (*ObjectStorageCredentialsResponse) ProtoMessage() {} func (x *ObjectStorageCredentialsResponse) ProtoReflect() protoreflect.Message { mi := &file_storage_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1938,320 +1886,6 @@ func file_storage_proto_init() { if File_storage_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_storage_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Storage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*Object); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*StorageResponseError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ObjectResponseError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*ObjectStorageCredentialsResponseError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*StorageListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*StorageListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*StorageCreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*StorageCreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*StorageDeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*StorageDeleteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*StorageListObjectRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*StorageListObjectResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*ObjectCreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*ObjectCreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*ObjectListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*ObjectListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*ObjectGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*ObjectGetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*ObjectDeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[20].Exporter = func(v any, i int) any { - switch v := v.(*ObjectDeleteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[21].Exporter = func(v any, i int) any { - switch v := v.(*ObjectStorageS3Credentials); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[22].Exporter = func(v any, i int) any { - switch v := v.(*ObjectStorageAzureCredentials); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[23].Exporter = func(v any, i int) any { - switch v := v.(*ObjectStorageCredentials); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[24].Exporter = func(v any, i int) any { - switch v := v.(*ObjectStorageCredentialsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_storage_proto_msgTypes[25].Exporter = func(v any, i int) any { - switch v := v.(*ObjectStorageCredentialsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_storage_proto_msgTypes[0].OneofWrappers = []any{} file_storage_proto_msgTypes[1].OneofWrappers = []any{} file_storage_proto_msgTypes[2].OneofWrappers = []any{} diff --git a/go/github.com/jupyter-naas/naas-models/go/workspace/workspace.pb.go b/go/github.com/jupyter-naas/naas-models/go/workspace/workspace.pb.go index 7cb1901..83541c2 100644 --- a/go/github.com/jupyter-naas/naas-models/go/workspace/workspace.pb.go +++ b/go/github.com/jupyter-naas/naas-models/go/workspace/workspace.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 v5.26.1 // source: workspace.proto @@ -43,11 +43,9 @@ type Workspace struct { func (x *Workspace) Reset() { *x = Workspace{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Workspace) String() string { @@ -58,7 +56,7 @@ func (*Workspace) ProtoMessage() {} func (x *Workspace) ProtoReflect() protoreflect.Message { mi := &file_workspace_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) @@ -176,11 +174,9 @@ type WorkspaceCreation struct { func (x *WorkspaceCreation) Reset() { *x = WorkspaceCreation{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceCreation) String() string { @@ -191,7 +187,7 @@ func (*WorkspaceCreation) ProtoMessage() {} func (x *WorkspaceCreation) ProtoReflect() protoreflect.Message { mi := &file_workspace_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) @@ -294,11 +290,9 @@ type WorkspaceUpdate struct { func (x *WorkspaceUpdate) Reset() { *x = WorkspaceUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceUpdate) String() string { @@ -309,7 +303,7 @@ func (*WorkspaceUpdate) ProtoMessage() {} func (x *WorkspaceUpdate) ProtoReflect() protoreflect.Message { mi := &file_workspace_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) @@ -402,11 +396,9 @@ type WorkspaceUser struct { func (x *WorkspaceUser) Reset() { *x = WorkspaceUser{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceUser) String() string { @@ -417,7 +409,7 @@ func (*WorkspaceUser) ProtoMessage() {} func (x *WorkspaceUser) ProtoReflect() protoreflect.Message { mi := &file_workspace_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) @@ -485,11 +477,9 @@ type WorkspaceUserUpdate struct { func (x *WorkspaceUserUpdate) Reset() { *x = WorkspaceUserUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceUserUpdate) String() string { @@ -500,7 +490,7 @@ func (*WorkspaceUserUpdate) ProtoMessage() {} func (x *WorkspaceUserUpdate) ProtoReflect() protoreflect.Message { mi := &file_workspace_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) @@ -542,11 +532,9 @@ type WorkspacePlugin struct { func (x *WorkspacePlugin) Reset() { *x = WorkspacePlugin{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspacePlugin) String() string { @@ -557,7 +545,7 @@ func (*WorkspacePlugin) ProtoMessage() {} func (x *WorkspacePlugin) ProtoReflect() protoreflect.Message { mi := &file_workspace_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) @@ -610,11 +598,9 @@ type WorkspacePluginUpdate struct { func (x *WorkspacePluginUpdate) Reset() { *x = WorkspacePluginUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspacePluginUpdate) String() string { @@ -625,7 +611,7 @@ func (*WorkspacePluginUpdate) ProtoMessage() {} func (x *WorkspacePluginUpdate) ProtoReflect() protoreflect.Message { mi := &file_workspace_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) @@ -658,11 +644,9 @@ type WorkspaceResponseError struct { func (x *WorkspaceResponseError) Reset() { *x = WorkspaceResponseError{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceResponseError) String() string { @@ -673,7 +657,7 @@ func (*WorkspaceResponseError) ProtoMessage() {} func (x *WorkspaceResponseError) ProtoReflect() protoreflect.Message { mi := &file_workspace_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) @@ -712,11 +696,9 @@ type WorkspaceListRequest struct { func (x *WorkspaceListRequest) Reset() { *x = WorkspaceListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceListRequest) String() string { @@ -727,7 +709,7 @@ func (*WorkspaceListRequest) ProtoMessage() {} func (x *WorkspaceListRequest) ProtoReflect() protoreflect.Message { mi := &file_workspace_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) @@ -760,11 +742,9 @@ type WorkspaceListResponse struct { func (x *WorkspaceListResponse) Reset() { *x = WorkspaceListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceListResponse) String() string { @@ -775,7 +755,7 @@ func (*WorkspaceListResponse) ProtoMessage() {} func (x *WorkspaceListResponse) ProtoReflect() protoreflect.Message { mi := &file_workspace_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) @@ -814,11 +794,9 @@ type InvitedWorkspaceListRequest struct { func (x *InvitedWorkspaceListRequest) Reset() { *x = InvitedWorkspaceListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvitedWorkspaceListRequest) String() string { @@ -829,7 +807,7 @@ func (*InvitedWorkspaceListRequest) ProtoMessage() {} func (x *InvitedWorkspaceListRequest) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -862,11 +840,9 @@ type InvitedWorkspaceListResponse struct { func (x *InvitedWorkspaceListResponse) Reset() { *x = InvitedWorkspaceListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvitedWorkspaceListResponse) String() string { @@ -877,7 +853,7 @@ func (*InvitedWorkspaceListResponse) ProtoMessage() {} func (x *InvitedWorkspaceListResponse) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -917,11 +893,9 @@ type WorkspaceCreateRequest struct { func (x *WorkspaceCreateRequest) Reset() { *x = WorkspaceCreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceCreateRequest) String() string { @@ -932,7 +906,7 @@ func (*WorkspaceCreateRequest) ProtoMessage() {} func (x *WorkspaceCreateRequest) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -972,11 +946,9 @@ type WorkspaceCreateResponse struct { func (x *WorkspaceCreateResponse) Reset() { *x = WorkspaceCreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceCreateResponse) String() string { @@ -987,7 +959,7 @@ func (*WorkspaceCreateResponse) ProtoMessage() {} func (x *WorkspaceCreateResponse) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1027,11 +999,9 @@ type WorkspaceGetRequest struct { func (x *WorkspaceGetRequest) Reset() { *x = WorkspaceGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceGetRequest) String() string { @@ -1042,7 +1012,7 @@ func (*WorkspaceGetRequest) ProtoMessage() {} func (x *WorkspaceGetRequest) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1082,11 +1052,9 @@ type WorkspaceGetResponse struct { func (x *WorkspaceGetResponse) Reset() { *x = WorkspaceGetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceGetResponse) String() string { @@ -1097,7 +1065,7 @@ func (*WorkspaceGetResponse) ProtoMessage() {} func (x *WorkspaceGetResponse) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1137,11 +1105,9 @@ type WorkspaceUpdateRequest struct { func (x *WorkspaceUpdateRequest) Reset() { *x = WorkspaceUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceUpdateRequest) String() string { @@ -1152,7 +1118,7 @@ func (*WorkspaceUpdateRequest) ProtoMessage() {} func (x *WorkspaceUpdateRequest) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1192,11 +1158,9 @@ type WorkspaceUpdateResponse struct { func (x *WorkspaceUpdateResponse) Reset() { *x = WorkspaceUpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceUpdateResponse) String() string { @@ -1207,7 +1171,7 @@ func (*WorkspaceUpdateResponse) ProtoMessage() {} func (x *WorkspaceUpdateResponse) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1247,11 +1211,9 @@ type WorkspaceDeleteRequest struct { func (x *WorkspaceDeleteRequest) Reset() { *x = WorkspaceDeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceDeleteRequest) String() string { @@ -1262,7 +1224,7 @@ func (*WorkspaceDeleteRequest) ProtoMessage() {} func (x *WorkspaceDeleteRequest) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1301,11 +1263,9 @@ type WorkspaceDeleteResponse struct { func (x *WorkspaceDeleteResponse) Reset() { *x = WorkspaceDeleteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceDeleteResponse) String() string { @@ -1316,7 +1276,7 @@ func (*WorkspaceDeleteResponse) ProtoMessage() {} func (x *WorkspaceDeleteResponse) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1354,11 +1314,9 @@ type WorkspaceInviteUserRequest struct { func (x *WorkspaceInviteUserRequest) Reset() { *x = WorkspaceInviteUserRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceInviteUserRequest) String() string { @@ -1369,7 +1327,7 @@ func (*WorkspaceInviteUserRequest) ProtoMessage() {} func (x *WorkspaceInviteUserRequest) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1446,11 +1404,9 @@ type WorkspaceInviteUserResponse struct { func (x *WorkspaceInviteUserResponse) Reset() { *x = WorkspaceInviteUserResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceInviteUserResponse) String() string { @@ -1461,7 +1417,7 @@ func (*WorkspaceInviteUserResponse) ProtoMessage() {} func (x *WorkspaceInviteUserResponse) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1500,11 +1456,9 @@ type WorkspaceUserListRequest struct { func (x *WorkspaceUserListRequest) Reset() { *x = WorkspaceUserListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceUserListRequest) String() string { @@ -1515,7 +1469,7 @@ func (*WorkspaceUserListRequest) ProtoMessage() {} func (x *WorkspaceUserListRequest) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1548,11 +1502,9 @@ type WorkspaceUserListResponse struct { func (x *WorkspaceUserListResponse) Reset() { *x = WorkspaceUserListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceUserListResponse) String() string { @@ -1563,7 +1515,7 @@ func (*WorkspaceUserListResponse) ProtoMessage() {} func (x *WorkspaceUserListResponse) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1603,11 +1555,9 @@ type WorkspaceUserGetRequest struct { func (x *WorkspaceUserGetRequest) Reset() { *x = WorkspaceUserGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceUserGetRequest) String() string { @@ -1618,7 +1568,7 @@ func (*WorkspaceUserGetRequest) ProtoMessage() {} func (x *WorkspaceUserGetRequest) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1658,11 +1608,9 @@ type WorkspaceUserGetResponse struct { func (x *WorkspaceUserGetResponse) Reset() { *x = WorkspaceUserGetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceUserGetResponse) String() string { @@ -1673,7 +1621,7 @@ func (*WorkspaceUserGetResponse) ProtoMessage() {} func (x *WorkspaceUserGetResponse) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1714,11 +1662,9 @@ type WorkspaceUserUpdateRequest struct { func (x *WorkspaceUserUpdateRequest) Reset() { *x = WorkspaceUserUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceUserUpdateRequest) String() string { @@ -1729,7 +1675,7 @@ func (*WorkspaceUserUpdateRequest) ProtoMessage() {} func (x *WorkspaceUserUpdateRequest) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1776,11 +1722,9 @@ type WorkspaceUserUpdateResponse struct { func (x *WorkspaceUserUpdateResponse) Reset() { *x = WorkspaceUserUpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceUserUpdateResponse) String() string { @@ -1791,7 +1735,7 @@ func (*WorkspaceUserUpdateResponse) ProtoMessage() {} func (x *WorkspaceUserUpdateResponse) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1831,11 +1775,9 @@ type WorkspaceUserDeleteRequest struct { func (x *WorkspaceUserDeleteRequest) Reset() { *x = WorkspaceUserDeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceUserDeleteRequest) String() string { @@ -1846,7 +1788,7 @@ func (*WorkspaceUserDeleteRequest) ProtoMessage() {} func (x *WorkspaceUserDeleteRequest) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1885,11 +1827,9 @@ type WorkspaceUserDeleteResponse struct { func (x *WorkspaceUserDeleteResponse) Reset() { *x = WorkspaceUserDeleteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspaceUserDeleteResponse) String() string { @@ -1900,7 +1840,7 @@ func (*WorkspaceUserDeleteResponse) ProtoMessage() {} func (x *WorkspaceUserDeleteResponse) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1933,11 +1873,9 @@ type WorkspacePluginCreateRequest struct { func (x *WorkspacePluginCreateRequest) Reset() { *x = WorkspacePluginCreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspacePluginCreateRequest) String() string { @@ -1948,7 +1886,7 @@ func (*WorkspacePluginCreateRequest) ProtoMessage() {} func (x *WorkspacePluginCreateRequest) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1988,11 +1926,9 @@ type WorkspacePluginCreateResponse struct { func (x *WorkspacePluginCreateResponse) Reset() { *x = WorkspacePluginCreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspacePluginCreateResponse) String() string { @@ -2003,7 +1939,7 @@ func (*WorkspacePluginCreateResponse) ProtoMessage() {} func (x *WorkspacePluginCreateResponse) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2043,11 +1979,9 @@ type WorkspacePluginGetRequest struct { func (x *WorkspacePluginGetRequest) Reset() { *x = WorkspacePluginGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspacePluginGetRequest) String() string { @@ -2058,7 +1992,7 @@ func (*WorkspacePluginGetRequest) ProtoMessage() {} func (x *WorkspacePluginGetRequest) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2098,11 +2032,9 @@ type WorkspacePluginGetResponse struct { func (x *WorkspacePluginGetResponse) Reset() { *x = WorkspacePluginGetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspacePluginGetResponse) String() string { @@ -2113,7 +2045,7 @@ func (*WorkspacePluginGetResponse) ProtoMessage() {} func (x *WorkspacePluginGetResponse) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2152,11 +2084,9 @@ type WorkspacePluginListRequest struct { func (x *WorkspacePluginListRequest) Reset() { *x = WorkspacePluginListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspacePluginListRequest) String() string { @@ -2167,7 +2097,7 @@ func (*WorkspacePluginListRequest) ProtoMessage() {} func (x *WorkspacePluginListRequest) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2200,11 +2130,9 @@ type WorkspacePluginListResponse struct { func (x *WorkspacePluginListResponse) Reset() { *x = WorkspacePluginListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspacePluginListResponse) String() string { @@ -2215,7 +2143,7 @@ func (*WorkspacePluginListResponse) ProtoMessage() {} func (x *WorkspacePluginListResponse) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2256,11 +2184,9 @@ type WorkspacePluginUpdateRequest struct { func (x *WorkspacePluginUpdateRequest) Reset() { *x = WorkspacePluginUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspacePluginUpdateRequest) String() string { @@ -2271,7 +2197,7 @@ func (*WorkspacePluginUpdateRequest) ProtoMessage() {} func (x *WorkspacePluginUpdateRequest) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2318,11 +2244,9 @@ type WorkspacePluginUpdateResponse struct { func (x *WorkspacePluginUpdateResponse) Reset() { *x = WorkspacePluginUpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspacePluginUpdateResponse) String() string { @@ -2333,7 +2257,7 @@ func (*WorkspacePluginUpdateResponse) ProtoMessage() {} func (x *WorkspacePluginUpdateResponse) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2373,11 +2297,9 @@ type WorkspacePluginDeleteRequest struct { func (x *WorkspacePluginDeleteRequest) Reset() { *x = WorkspacePluginDeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspacePluginDeleteRequest) String() string { @@ -2388,7 +2310,7 @@ func (*WorkspacePluginDeleteRequest) ProtoMessage() {} func (x *WorkspacePluginDeleteRequest) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2427,11 +2349,9 @@ type WorkspacePluginDeleteResponse struct { func (x *WorkspacePluginDeleteResponse) Reset() { *x = WorkspacePluginDeleteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workspace_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workspace_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkspacePluginDeleteResponse) String() string { @@ -2442,7 +2362,7 @@ func (*WorkspacePluginDeleteResponse) ProtoMessage() {} func (x *WorkspacePluginDeleteResponse) ProtoReflect() protoreflect.Message { mi := &file_workspace_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3072,488 +2992,6 @@ func file_workspace_proto_init() { if File_workspace_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_workspace_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Workspace); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceCreation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceUser); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceUserUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*WorkspacePlugin); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*WorkspacePluginUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceResponseError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*InvitedWorkspaceListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*InvitedWorkspaceListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceCreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceCreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceGetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceUpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceDeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceDeleteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[20].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceInviteUserRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[21].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceInviteUserResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[22].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceUserListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[23].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceUserListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[24].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceUserGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[25].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceUserGetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[26].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceUserUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[27].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceUserUpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[28].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceUserDeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[29].Exporter = func(v any, i int) any { - switch v := v.(*WorkspaceUserDeleteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[30].Exporter = func(v any, i int) any { - switch v := v.(*WorkspacePluginCreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[31].Exporter = func(v any, i int) any { - switch v := v.(*WorkspacePluginCreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[32].Exporter = func(v any, i int) any { - switch v := v.(*WorkspacePluginGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[33].Exporter = func(v any, i int) any { - switch v := v.(*WorkspacePluginGetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[34].Exporter = func(v any, i int) any { - switch v := v.(*WorkspacePluginListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[35].Exporter = func(v any, i int) any { - switch v := v.(*WorkspacePluginListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[36].Exporter = func(v any, i int) any { - switch v := v.(*WorkspacePluginUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[37].Exporter = func(v any, i int) any { - switch v := v.(*WorkspacePluginUpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[38].Exporter = func(v any, i int) any { - switch v := v.(*WorkspacePluginDeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workspace_proto_msgTypes[39].Exporter = func(v any, i int) any { - switch v := v.(*WorkspacePluginDeleteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_workspace_proto_msgTypes[0].OneofWrappers = []any{} file_workspace_proto_msgTypes[1].OneofWrappers = []any{} file_workspace_proto_msgTypes[2].OneofWrappers = []any{} diff --git a/protos/errors.proto b/protos/errors.proto index 7eb632e..4043a66 100644 --- a/protos/errors.proto +++ b/protos/errors.proto @@ -31,6 +31,9 @@ enum Error { // Credits errors 400 - 499 CREDITS_USER_HAS_NO_PARENT = 400; + + // Ontology errors 500 - 599 + ONTOLOGY_NOT_FOUND = 500; } message ErrorResponse { diff --git a/protos/graph.proto b/protos/graph.proto new file mode 100644 index 0000000..e69de29 diff --git a/protos/ontology.proto b/protos/ontology.proto new file mode 100644 index 0000000..0218121 --- /dev/null +++ b/protos/ontology.proto @@ -0,0 +1,99 @@ +syntax = "proto3"; + +package ontology; + +option go_package = "github.com/jupyter-naas/naas-models/go/ontology"; + +import "validate.proto"; +import "errors.proto"; +import "common.proto"; + + +message Ontology { + optional string id = 1 [(validate.rules).string.uuid = true]; + optional string workspace_id = 2 [(validate.rules).string.uuid = true]; + optional string label = 3; + optional string source = 4; + optional string download_url = 5; +} + +message OntologySummary { + optional string id = 1 [(validate.rules).string.uuid = true]; + optional string workspace_id = 2 [(validate.rules).string.uuid = true]; + optional string label = 3; + optional string download_url = 4; +} + +message OntologyCreation { + optional string workspace_id = 1 [(validate.rules).string.uuid = true]; + optional string label = 2 [(validate.rules).string = {min_len: 1, max_len: 255}]; + optional string source = 3 [(validate.rules).string = {min_len: 1}]; + optional string download_url = 4; +} + +message OntologyUpdate { + optional string id = 1 [(validate.rules).string.uuid = true]; + optional string workspace_id = 2 [(validate.rules).string.uuid = true]; + optional string label = 3; + optional string source = 4; + optional string download_url = 5; + + optional common.FieldMask field_mask = 100; +} + +message OntologyListRequest { + optional string workspace_id = 1 [(validate.rules).string.uuid = true]; + optional int32 page_size = 2; + optional int32 page_number = 3; +} + +message OntologyListResponse { + optional errors.ErrorResponse error = 1; + repeated OntologySummary ontologies = 2; +} + +message OntologyGetRequest { + optional string id = 1 [(validate.rules).string.uuid = true]; + optional string workspace_id = 2 [(validate.rules).string.uuid = true]; +} + +message OntologyGetResponse { + optional errors.ErrorResponse error = 1; + optional Ontology ontology = 2; +} + +message OntologyCreationRequest { + OntologyCreation ontology = 1; +} + +message OntologyCreationResponse { + optional errors.ErrorResponse error = 1; + optional Ontology ontology = 2; +} + +message OntologyUpdateRequest { + optional OntologyUpdate ontology = 1; +} + +message OntologyUpdateResponse { + optional errors.ErrorResponse error = 1; + optional Ontology ontology = 2; +} + +message OntologyDeletionRequest { + optional string id = 1 [(validate.rules).string.uuid = true]; + optional string workspace_id = 2 [(validate.rules).string.uuid = true]; +} + +message OntologyDeletionResponse { + optional errors.ErrorResponse error = 1; +} + +// Ontology service +service OntologyService { + rpc List(OntologyListRequest) returns (OntologyListResponse) {} + rpc Get(OntologyGetRequest) returns (OntologyGetResponse) {} + rpc Create(OntologyCreationRequest) returns (OntologyCreationResponse) {} + rpc Update(OntologyUpdateRequest) returns (OntologyUpdateResponse) {} + rpc Delete(OntologyDeletionRequest) returns (OntologyDeletionResponse) {} +} \ No newline at end of file diff --git a/python/naas_models/errors_pb2.py b/python/naas_models/errors_pb2.py index 3c6db64..2ce797b 100644 --- a/python/naas_models/errors_pb2.py +++ b/python/naas_models/errors_pb2.py @@ -15,7 +15,7 @@ import naas_models.validate_pb2 as validate__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0c\x65rrors.proto\x12\x06\x65rrors\x1a\x0evalidate.proto\"\\\n\rErrorResponse\x12 \n\x04\x63ode\x18\x01 \x01(\x0e\x32\r.errors.ErrorH\x00\x88\x01\x01\x12\x14\n\x07message\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x07\n\x05_codeB\n\n\x08_message*\xb3\x03\n\x05\x45rror\x12\x0c\n\x08NO_ERROR\x10\x00\x12\x1a\n\x15INTERNAL_SERVER_ERROR\x10\xc7\x01\x12\x17\n\x12IAM_USER_NOT_FOUND\x10\xc8\x01\x12\x1c\n\x17IAM_USER_NOT_AUTHORIZED\x10\xc9\x01\x12\x18\n\x13WORKSPACE_NOT_FOUND\x10\xac\x02\x12\"\n\x1dWORKSPACE_USER_ALREADY_EXISTS\x10\xae\x02\x12\x1d\n\x18WORKSPACE_USER_NOT_FOUND\x10\xaf\x02\x12\"\n\x1dWORKSPACE_USER_ALREADY_ACTIVE\x10\xb0\x02\x12\x33\n.WORKSPACE_USER_ALREADY_HAVE_PERSONAL_WORKSPACE\x10\xb1\x02\x12\x1f\n\x1aWORKSPACE_PLUGIN_NOT_FOUND\x10\xb2\x02\x12\x1d\n\x18WORKSPACE_INVITE_INVALID\x10\xb3\x02\x12\x32\n-WORKSPACE_CANNOT_INVITE_TO_PERSONAL_WORKSPACE\x10\xb4\x02\x12\x1f\n\x1a\x43REDITS_USER_HAS_NO_PARENT\x10\x90\x03\x42/Z-github.com/jupyter-naas/naas-models/go/errorsb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0c\x65rrors.proto\x12\x06\x65rrors\x1a\x0evalidate.proto\"\\\n\rErrorResponse\x12 \n\x04\x63ode\x18\x01 \x01(\x0e\x32\r.errors.ErrorH\x00\x88\x01\x01\x12\x14\n\x07message\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x07\n\x05_codeB\n\n\x08_message*\xcc\x03\n\x05\x45rror\x12\x0c\n\x08NO_ERROR\x10\x00\x12\x1a\n\x15INTERNAL_SERVER_ERROR\x10\xc7\x01\x12\x17\n\x12IAM_USER_NOT_FOUND\x10\xc8\x01\x12\x1c\n\x17IAM_USER_NOT_AUTHORIZED\x10\xc9\x01\x12\x18\n\x13WORKSPACE_NOT_FOUND\x10\xac\x02\x12\"\n\x1dWORKSPACE_USER_ALREADY_EXISTS\x10\xae\x02\x12\x1d\n\x18WORKSPACE_USER_NOT_FOUND\x10\xaf\x02\x12\"\n\x1dWORKSPACE_USER_ALREADY_ACTIVE\x10\xb0\x02\x12\x33\n.WORKSPACE_USER_ALREADY_HAVE_PERSONAL_WORKSPACE\x10\xb1\x02\x12\x1f\n\x1aWORKSPACE_PLUGIN_NOT_FOUND\x10\xb2\x02\x12\x1d\n\x18WORKSPACE_INVITE_INVALID\x10\xb3\x02\x12\x32\n-WORKSPACE_CANNOT_INVITE_TO_PERSONAL_WORKSPACE\x10\xb4\x02\x12\x1f\n\x1a\x43REDITS_USER_HAS_NO_PARENT\x10\x90\x03\x12\x17\n\x12ONTOLOGY_NOT_FOUND\x10\xf4\x03\x42/Z-github.com/jupyter-naas/naas-models/go/errorsb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -24,7 +24,7 @@ _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'Z-github.com/jupyter-naas/naas-models/go/errors' _globals['_ERROR']._serialized_start=135 - _globals['_ERROR']._serialized_end=570 + _globals['_ERROR']._serialized_end=595 _globals['_ERRORRESPONSE']._serialized_start=40 _globals['_ERRORRESPONSE']._serialized_end=132 # @@protoc_insertion_point(module_scope) diff --git a/python/naas_models/ontology_pb2.py b/python/naas_models/ontology_pb2.py new file mode 100644 index 0000000..6b0bc35 --- /dev/null +++ b/python/naas_models/ontology_pb2.py @@ -0,0 +1,86 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: ontology.proto +# Protobuf Python Version: 5.26.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +import naas_models.validate_pb2 as validate__pb2 +import errors_pb2 as errors__pb2 +import common_pb2 as common__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0eontology.proto\x12\x08ontology\x1a\x0evalidate.proto\x1a\x0c\x65rrors.proto\x1a\x0c\x63ommon.proto\"\xcc\x01\n\x08Ontology\x12\x19\n\x02id\x18\x01 \x01(\tB\x08\xfa\x42\x05r\x03\xb0\x01\x01H\x00\x88\x01\x01\x12#\n\x0cworkspace_id\x18\x02 \x01(\tB\x08\xfa\x42\x05r\x03\xb0\x01\x01H\x01\x88\x01\x01\x12\x12\n\x05label\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06source\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x19\n\x0c\x64ownload_url\x18\x05 \x01(\tH\x04\x88\x01\x01\x42\x05\n\x03_idB\x0f\n\r_workspace_idB\x08\n\x06_labelB\t\n\x07_sourceB\x0f\n\r_download_url\"\xb3\x01\n\x0fOntologySummary\x12\x19\n\x02id\x18\x01 \x01(\tB\x08\xfa\x42\x05r\x03\xb0\x01\x01H\x00\x88\x01\x01\x12#\n\x0cworkspace_id\x18\x02 \x01(\tB\x08\xfa\x42\x05r\x03\xb0\x01\x01H\x01\x88\x01\x01\x12\x12\n\x05label\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x19\n\x0c\x64ownload_url\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\x05\n\x03_idB\x0f\n\r_workspace_idB\x08\n\x06_labelB\x0f\n\r_download_url\"\xc7\x01\n\x10OntologyCreation\x12#\n\x0cworkspace_id\x18\x01 \x01(\tB\x08\xfa\x42\x05r\x03\xb0\x01\x01H\x00\x88\x01\x01\x12\x1e\n\x05label\x18\x02 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\x18\xff\x01H\x01\x88\x01\x01\x12\x1c\n\x06source\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01H\x02\x88\x01\x01\x12\x19\n\x0c\x64ownload_url\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\x0f\n\r_workspace_idB\x08\n\x06_labelB\t\n\x07_sourceB\x0f\n\r_download_url\"\x8d\x02\n\x0eOntologyUpdate\x12\x19\n\x02id\x18\x01 \x01(\tB\x08\xfa\x42\x05r\x03\xb0\x01\x01H\x00\x88\x01\x01\x12#\n\x0cworkspace_id\x18\x02 \x01(\tB\x08\xfa\x42\x05r\x03\xb0\x01\x01H\x01\x88\x01\x01\x12\x12\n\x05label\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x13\n\x06source\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x19\n\x0c\x64ownload_url\x18\x05 \x01(\tH\x04\x88\x01\x01\x12*\n\nfield_mask\x18\x64 \x01(\x0b\x32\x11.common.FieldMaskH\x05\x88\x01\x01\x42\x05\n\x03_idB\x0f\n\r_workspace_idB\x08\n\x06_labelB\t\n\x07_sourceB\x0f\n\r_download_urlB\r\n\x0b_field_mask\"\x9b\x01\n\x13OntologyListRequest\x12#\n\x0cworkspace_id\x18\x01 \x01(\tB\x08\xfa\x42\x05r\x03\xb0\x01\x01H\x00\x88\x01\x01\x12\x16\n\tpage_size\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x18\n\x0bpage_number\x18\x03 \x01(\x05H\x02\x88\x01\x01\x42\x0f\n\r_workspace_idB\x0c\n\n_page_sizeB\x0e\n\x0c_page_number\"z\n\x14OntologyListResponse\x12)\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x15.errors.ErrorResponseH\x00\x88\x01\x01\x12-\n\nontologies\x18\x02 \x03(\x0b\x32\x19.ontology.OntologySummaryB\x08\n\x06_error\"l\n\x12OntologyGetRequest\x12\x19\n\x02id\x18\x01 \x01(\tB\x08\xfa\x42\x05r\x03\xb0\x01\x01H\x00\x88\x01\x01\x12#\n\x0cworkspace_id\x18\x02 \x01(\tB\x08\xfa\x42\x05r\x03\xb0\x01\x01H\x01\x88\x01\x01\x42\x05\n\x03_idB\x0f\n\r_workspace_id\"\x82\x01\n\x13OntologyGetResponse\x12)\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x15.errors.ErrorResponseH\x00\x88\x01\x01\x12)\n\x08ontology\x18\x02 \x01(\x0b\x32\x12.ontology.OntologyH\x01\x88\x01\x01\x42\x08\n\x06_errorB\x0b\n\t_ontology\"G\n\x17OntologyCreationRequest\x12,\n\x08ontology\x18\x01 \x01(\x0b\x32\x1a.ontology.OntologyCreation\"\x87\x01\n\x18OntologyCreationResponse\x12)\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x15.errors.ErrorResponseH\x00\x88\x01\x01\x12)\n\x08ontology\x18\x02 \x01(\x0b\x32\x12.ontology.OntologyH\x01\x88\x01\x01\x42\x08\n\x06_errorB\x0b\n\t_ontology\"U\n\x15OntologyUpdateRequest\x12/\n\x08ontology\x18\x01 \x01(\x0b\x32\x18.ontology.OntologyUpdateH\x00\x88\x01\x01\x42\x0b\n\t_ontology\"\x85\x01\n\x16OntologyUpdateResponse\x12)\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x15.errors.ErrorResponseH\x00\x88\x01\x01\x12)\n\x08ontology\x18\x02 \x01(\x0b\x32\x12.ontology.OntologyH\x01\x88\x01\x01\x42\x08\n\x06_errorB\x0b\n\t_ontology\"q\n\x17OntologyDeletionRequest\x12\x19\n\x02id\x18\x01 \x01(\tB\x08\xfa\x42\x05r\x03\xb0\x01\x01H\x00\x88\x01\x01\x12#\n\x0cworkspace_id\x18\x02 \x01(\tB\x08\xfa\x42\x05r\x03\xb0\x01\x01H\x01\x88\x01\x01\x42\x05\n\x03_idB\x0f\n\r_workspace_id\"O\n\x18OntologyDeletionResponse\x12)\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x15.errors.ErrorResponseH\x00\x88\x01\x01\x42\x08\n\x06_error2\x95\x03\n\x0fOntologyService\x12G\n\x04List\x12\x1d.ontology.OntologyListRequest\x1a\x1e.ontology.OntologyListResponse\"\x00\x12\x44\n\x03Get\x12\x1c.ontology.OntologyGetRequest\x1a\x1d.ontology.OntologyGetResponse\"\x00\x12Q\n\x06\x43reate\x12!.ontology.OntologyCreationRequest\x1a\".ontology.OntologyCreationResponse\"\x00\x12M\n\x06Update\x12\x1f.ontology.OntologyUpdateRequest\x1a .ontology.OntologyUpdateResponse\"\x00\x12Q\n\x06\x44\x65lete\x12!.ontology.OntologyDeletionRequest\x1a\".ontology.OntologyDeletionResponse\"\x00\x42\x31Z/github.com/jupyter-naas/naas-models/go/ontologyb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ontology_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'Z/github.com/jupyter-naas/naas-models/go/ontology' + _globals['_ONTOLOGY'].fields_by_name['id']._loaded_options = None + _globals['_ONTOLOGY'].fields_by_name['id']._serialized_options = b'\372B\005r\003\260\001\001' + _globals['_ONTOLOGY'].fields_by_name['workspace_id']._loaded_options = None + _globals['_ONTOLOGY'].fields_by_name['workspace_id']._serialized_options = b'\372B\005r\003\260\001\001' + _globals['_ONTOLOGYSUMMARY'].fields_by_name['id']._loaded_options = None + _globals['_ONTOLOGYSUMMARY'].fields_by_name['id']._serialized_options = b'\372B\005r\003\260\001\001' + _globals['_ONTOLOGYSUMMARY'].fields_by_name['workspace_id']._loaded_options = None + _globals['_ONTOLOGYSUMMARY'].fields_by_name['workspace_id']._serialized_options = b'\372B\005r\003\260\001\001' + _globals['_ONTOLOGYCREATION'].fields_by_name['workspace_id']._loaded_options = None + _globals['_ONTOLOGYCREATION'].fields_by_name['workspace_id']._serialized_options = b'\372B\005r\003\260\001\001' + _globals['_ONTOLOGYCREATION'].fields_by_name['label']._loaded_options = None + _globals['_ONTOLOGYCREATION'].fields_by_name['label']._serialized_options = b'\372B\007r\005\020\001\030\377\001' + _globals['_ONTOLOGYCREATION'].fields_by_name['source']._loaded_options = None + _globals['_ONTOLOGYCREATION'].fields_by_name['source']._serialized_options = b'\372B\004r\002\020\001' + _globals['_ONTOLOGYUPDATE'].fields_by_name['id']._loaded_options = None + _globals['_ONTOLOGYUPDATE'].fields_by_name['id']._serialized_options = b'\372B\005r\003\260\001\001' + _globals['_ONTOLOGYUPDATE'].fields_by_name['workspace_id']._loaded_options = None + _globals['_ONTOLOGYUPDATE'].fields_by_name['workspace_id']._serialized_options = b'\372B\005r\003\260\001\001' + _globals['_ONTOLOGYLISTREQUEST'].fields_by_name['workspace_id']._loaded_options = None + _globals['_ONTOLOGYLISTREQUEST'].fields_by_name['workspace_id']._serialized_options = b'\372B\005r\003\260\001\001' + _globals['_ONTOLOGYGETREQUEST'].fields_by_name['id']._loaded_options = None + _globals['_ONTOLOGYGETREQUEST'].fields_by_name['id']._serialized_options = b'\372B\005r\003\260\001\001' + _globals['_ONTOLOGYGETREQUEST'].fields_by_name['workspace_id']._loaded_options = None + _globals['_ONTOLOGYGETREQUEST'].fields_by_name['workspace_id']._serialized_options = b'\372B\005r\003\260\001\001' + _globals['_ONTOLOGYDELETIONREQUEST'].fields_by_name['id']._loaded_options = None + _globals['_ONTOLOGYDELETIONREQUEST'].fields_by_name['id']._serialized_options = b'\372B\005r\003\260\001\001' + _globals['_ONTOLOGYDELETIONREQUEST'].fields_by_name['workspace_id']._loaded_options = None + _globals['_ONTOLOGYDELETIONREQUEST'].fields_by_name['workspace_id']._serialized_options = b'\372B\005r\003\260\001\001' + _globals['_ONTOLOGY']._serialized_start=73 + _globals['_ONTOLOGY']._serialized_end=277 + _globals['_ONTOLOGYSUMMARY']._serialized_start=280 + _globals['_ONTOLOGYSUMMARY']._serialized_end=459 + _globals['_ONTOLOGYCREATION']._serialized_start=462 + _globals['_ONTOLOGYCREATION']._serialized_end=661 + _globals['_ONTOLOGYUPDATE']._serialized_start=664 + _globals['_ONTOLOGYUPDATE']._serialized_end=933 + _globals['_ONTOLOGYLISTREQUEST']._serialized_start=936 + _globals['_ONTOLOGYLISTREQUEST']._serialized_end=1091 + _globals['_ONTOLOGYLISTRESPONSE']._serialized_start=1093 + _globals['_ONTOLOGYLISTRESPONSE']._serialized_end=1215 + _globals['_ONTOLOGYGETREQUEST']._serialized_start=1217 + _globals['_ONTOLOGYGETREQUEST']._serialized_end=1325 + _globals['_ONTOLOGYGETRESPONSE']._serialized_start=1328 + _globals['_ONTOLOGYGETRESPONSE']._serialized_end=1458 + _globals['_ONTOLOGYCREATIONREQUEST']._serialized_start=1460 + _globals['_ONTOLOGYCREATIONREQUEST']._serialized_end=1531 + _globals['_ONTOLOGYCREATIONRESPONSE']._serialized_start=1534 + _globals['_ONTOLOGYCREATIONRESPONSE']._serialized_end=1669 + _globals['_ONTOLOGYUPDATEREQUEST']._serialized_start=1671 + _globals['_ONTOLOGYUPDATEREQUEST']._serialized_end=1756 + _globals['_ONTOLOGYUPDATERESPONSE']._serialized_start=1759 + _globals['_ONTOLOGYUPDATERESPONSE']._serialized_end=1892 + _globals['_ONTOLOGYDELETIONREQUEST']._serialized_start=1894 + _globals['_ONTOLOGYDELETIONREQUEST']._serialized_end=2007 + _globals['_ONTOLOGYDELETIONRESPONSE']._serialized_start=2009 + _globals['_ONTOLOGYDELETIONRESPONSE']._serialized_end=2088 + _globals['_ONTOLOGYSERVICE']._serialized_start=2091 + _globals['_ONTOLOGYSERVICE']._serialized_end=2496 +# @@protoc_insertion_point(module_scope) diff --git a/python/naas_models/pydantic/errors_p2p.py b/python/naas_models/pydantic/errors_p2p.py index 60a1025..b082246 100644 --- a/python/naas_models/pydantic/errors_p2p.py +++ b/python/naas_models/pydantic/errors_p2p.py @@ -22,6 +22,7 @@ class Error(IntEnum): WORKSPACE_INVITE_INVALID = 307 WORKSPACE_CANNOT_INVITE_TO_PERSONAL_WORKSPACE = 308 CREDITS_USER_HAS_NO_PARENT = 400 + ONTOLOGY_NOT_FOUND = 500 class ErrorResponse(BaseModel): code: typing.Optional[Error] = Field(default=0) diff --git a/python/naas_models/pydantic/ontology_p2p.py b/python/naas_models/pydantic/ontology_p2p.py new file mode 100644 index 0000000..862bfd0 --- /dev/null +++ b/python/naas_models/pydantic/ontology_p2p.py @@ -0,0 +1,77 @@ +# This is an automatically generated file, please do not change +# gen by protobuf_to_pydantic[v0.2.6.2](https://github.com/so1n/protobuf_to_pydantic) +# Protobuf Version: 5.26.1 +# Pydantic Version: 2.7.1 +from naas_models.pydantic.common_p2p import FieldMask +from naas_models.pydantic.errors_p2p import ErrorResponse +from google.protobuf.message import Message # type: ignore +from pydantic import BaseModel +from pydantic import Field +from uuid import UUID +import typing + + +class Ontology(BaseModel): + id: typing.Optional[UUID] = Field(default="") + workspace_id: typing.Optional[UUID] = Field(default="") + label: typing.Optional[str] = Field(default="") + source: typing.Optional[str] = Field(default="") + download_url: typing.Optional[str] = Field(default="") + +class OntologySummary(BaseModel): + id: typing.Optional[UUID] = Field(default="") + workspace_id: typing.Optional[UUID] = Field(default="") + label: typing.Optional[str] = Field(default="") + download_url: typing.Optional[str] = Field(default="") + +class OntologyCreation(BaseModel): + workspace_id: typing.Optional[UUID] = Field(default="") + label: typing.Optional[str] = Field(default="", min_length=1, max_length=255) + source: typing.Optional[str] = Field(default="", min_length=1) + download_url: typing.Optional[str] = Field(default="") + +class OntologyUpdate(BaseModel): + id: typing.Optional[UUID] = Field(default="") + workspace_id: typing.Optional[UUID] = Field(default="") + label: typing.Optional[str] = Field(default="") + source: typing.Optional[str] = Field(default="") + download_url: typing.Optional[str] = Field(default="") + field_mask: typing.Optional[FieldMask] = Field(default=None) + +class OntologyListRequest(BaseModel): + workspace_id: typing.Optional[UUID] = Field(default="") + page_size: typing.Optional[int] = Field(default=0) + page_number: typing.Optional[int] = Field(default=0) + +class OntologyListResponse(BaseModel): + error: typing.Optional[ErrorResponse] = Field(default=None) + ontologies: typing.List[OntologySummary] = Field(default_factory=list) + +class OntologyGetRequest(BaseModel): + id: typing.Optional[UUID] = Field(default="") + workspace_id: typing.Optional[UUID] = Field(default="") + +class OntologyGetResponse(BaseModel): + error: typing.Optional[ErrorResponse] = Field(default=None) + ontology: typing.Optional[Ontology] = Field(default=None) + +class OntologyCreationRequest(BaseModel): + ontology: OntologyCreation = Field() + +class OntologyCreationResponse(BaseModel): + error: typing.Optional[ErrorResponse] = Field(default=None) + ontology: typing.Optional[Ontology] = Field(default=None) + +class OntologyUpdateRequest(BaseModel): + ontology: typing.Optional[OntologyUpdate] = Field(default=None) + +class OntologyUpdateResponse(BaseModel): + error: typing.Optional[ErrorResponse] = Field(default=None) + ontology: typing.Optional[Ontology] = Field(default=None) + +class OntologyDeletionRequest(BaseModel): + id: typing.Optional[UUID] = Field(default="") + workspace_id: typing.Optional[UUID] = Field(default="") + +class OntologyDeletionResponse(BaseModel): + error: typing.Optional[ErrorResponse] = Field(default=None)