diff --git a/pkg/proto/errcodepb/api.pb.go b/pkg/proto/errcodepb/api.pb.go index 885c066a..b6209786 100644 --- a/pkg/proto/errcodepb/api.pb.go +++ b/pkg/proto/errcodepb/api.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 -// protoc v5.28.0 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: lava/services/errcode/api.proto package errcodepb @@ -33,11 +33,9 @@ type ErrCodes struct { func (x *ErrCodes) Reset() { *x = ErrCodes{} - if protoimpl.UnsafeEnabled { - mi := &file_lava_services_errcode_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_lava_services_errcode_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ErrCodes) String() string { @@ -48,7 +46,7 @@ func (*ErrCodes) ProtoMessage() {} func (x *ErrCodes) ProtoReflect() protoreflect.Message { mi := &file_lava_services_errcode_api_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) @@ -131,20 +129,6 @@ func file_lava_services_errcode_api_proto_init() { if File_lava_services_errcode_api_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_lava_services_errcode_api_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ErrCodes); 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/pkg/proto/errcodepb/api_grpc.pb.go b/pkg/proto/errcodepb/api_grpc.pb.go index 931544bd..c02d538c 100644 --- a/pkg/proto/errcodepb/api_grpc.pb.go +++ b/pkg/proto/errcodepb/api_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v5.28.0 +// - protoc v5.28.2 // source: lava/services/errcode/api.proto package errcodepb diff --git a/pkg/proto/lavapbv1/event.pb.go b/pkg/proto/lavapbv1/event.pb.go index 70677571..453a0849 100644 --- a/pkg/proto/lavapbv1/event.pb.go +++ b/pkg/proto/lavapbv1/event.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 -// protoc v5.28.0 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: lava/event.proto package lavapbv1 diff --git a/pkg/proto/lavapbv1/form_file.pb.go b/pkg/proto/lavapbv1/form_file.pb.go index 13f57193..31667f92 100644 --- a/pkg/proto/lavapbv1/form_file.pb.go +++ b/pkg/proto/lavapbv1/form_file.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 -// protoc v5.28.0 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: lava/form_file.proto package lavapbv1 @@ -33,11 +33,9 @@ type FormFile struct { func (x *FormFile) Reset() { *x = FormFile{} - if protoimpl.UnsafeEnabled { - mi := &file_lava_form_file_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_lava_form_file_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FormFile) String() string { @@ -48,7 +46,7 @@ func (*FormFile) ProtoMessage() {} func (x *FormFile) ProtoReflect() protoreflect.Message { mi := &file_lava_form_file_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) @@ -138,20 +136,6 @@ func file_lava_form_file_proto_init() { if File_lava_form_file_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_lava_form_file_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*FormFile); 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/pkg/proto/lavapbv1/rpc.pb.go b/pkg/proto/lavapbv1/rpc.pb.go index 1f077c8f..d978d028 100644 --- a/pkg/proto/lavapbv1/rpc.pb.go +++ b/pkg/proto/lavapbv1/rpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 -// protoc v5.28.0 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: lava/rpc.proto package lavapbv1 @@ -26,18 +26,19 @@ type RpcMeta struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Version *string `protobuf:"bytes,2,opt,name=version,proto3,oneof" json:"version,omitempty"` - Tags map[string]string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // rpc custom name, e.g. people.say.hello + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // rpc version, e.g. v0.0.1-alpha.1 + Version *string `protobuf:"bytes,2,opt,name=version,proto3,oneof" json:"version,omitempty"` + // rpc tags + Tags map[string]string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } func (x *RpcMeta) Reset() { *x = RpcMeta{} - if protoimpl.UnsafeEnabled { - mi := &file_lava_rpc_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_lava_rpc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RpcMeta) String() string { @@ -48,7 +49,7 @@ func (*RpcMeta) ProtoMessage() {} func (x *RpcMeta) ProtoReflect() protoreflect.Message { mi := &file_lava_rpc_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) @@ -164,20 +165,6 @@ func file_lava_rpc_proto_init() { if File_lava_rpc_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_lava_rpc_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*RpcMeta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_lava_rpc_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ diff --git a/pkg/proto/lavapbv1/service.pb.go b/pkg/proto/lavapbv1/service.pb.go index ba27e6c2..b693059b 100644 --- a/pkg/proto/lavapbv1/service.pb.go +++ b/pkg/proto/lavapbv1/service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 -// protoc v5.28.0 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: lava/service.proto package lavapbv1 @@ -34,11 +34,9 @@ type ServiceInfo struct { func (x *ServiceInfo) Reset() { *x = ServiceInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_lava_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_lava_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ServiceInfo) String() string { @@ -49,7 +47,7 @@ func (*ServiceInfo) ProtoMessage() {} func (x *ServiceInfo) ProtoReflect() protoreflect.Message { mi := &file_lava_service_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) @@ -147,20 +145,6 @@ func file_lava_service_proto_init() { if File_lava_service_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_lava_service_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ServiceInfo); 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/pkg/proto/metadatapb/metadata.pb.go b/pkg/proto/metadatapb/metadata.pb.go index 74505b76..3c33bec7 100644 --- a/pkg/proto/metadatapb/metadata.pb.go +++ b/pkg/proto/metadatapb/metadata.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 -// protoc v5.28.0 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: lava/services/metadata/metadata.proto package metadatapb @@ -30,11 +30,9 @@ type ListServicesRequest struct { func (x *ListServicesRequest) Reset() { *x = ListServicesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_lava_services_metadata_metadata_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_lava_services_metadata_metadata_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListServicesRequest) String() string { @@ -45,7 +43,7 @@ func (*ListServicesRequest) ProtoMessage() {} func (x *ListServicesRequest) ProtoReflect() protoreflect.Message { mi := &file_lava_services_metadata_metadata_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) @@ -71,11 +69,9 @@ type ListServicesReply struct { func (x *ListServicesReply) Reset() { *x = ListServicesReply{} - if protoimpl.UnsafeEnabled { - mi := &file_lava_services_metadata_metadata_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_lava_services_metadata_metadata_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListServicesReply) String() string { @@ -86,7 +82,7 @@ func (*ListServicesReply) ProtoMessage() {} func (x *ListServicesReply) ProtoReflect() protoreflect.Message { mi := &file_lava_services_metadata_metadata_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) @@ -125,11 +121,9 @@ type GetServiceDescRequest struct { func (x *GetServiceDescRequest) Reset() { *x = GetServiceDescRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_lava_services_metadata_metadata_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_lava_services_metadata_metadata_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetServiceDescRequest) String() string { @@ -140,7 +134,7 @@ func (*GetServiceDescRequest) ProtoMessage() {} func (x *GetServiceDescRequest) ProtoReflect() protoreflect.Message { mi := &file_lava_services_metadata_metadata_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) @@ -172,11 +166,9 @@ type GetServiceDescReply struct { func (x *GetServiceDescReply) Reset() { *x = GetServiceDescReply{} - if protoimpl.UnsafeEnabled { - mi := &file_lava_services_metadata_metadata_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_lava_services_metadata_metadata_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetServiceDescReply) String() string { @@ -187,7 +179,7 @@ func (*GetServiceDescReply) ProtoMessage() {} func (x *GetServiceDescReply) ProtoReflect() protoreflect.Message { mi := &file_lava_services_metadata_metadata_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) @@ -295,56 +287,6 @@ func file_lava_services_metadata_metadata_proto_init() { if File_lava_services_metadata_metadata_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_lava_services_metadata_metadata_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ListServicesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lava_services_metadata_metadata_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ListServicesReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lava_services_metadata_metadata_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*GetServiceDescRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_lava_services_metadata_metadata_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*GetServiceDescReply); 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/pkg/proto/metadatapb/metadata_grpc.pb.go b/pkg/proto/metadatapb/metadata_grpc.pb.go index 1fa6c981..e3cdea4d 100644 --- a/pkg/proto/metadatapb/metadata_grpc.pb.go +++ b/pkg/proto/metadatapb/metadata_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v5.28.0 +// - protoc v5.28.2 // source: lava/services/metadata/metadata.proto package metadatapb diff --git a/proto/lava/rpc.proto b/proto/lava/rpc.proto index 0bec0c71..17f869e1 100644 --- a/proto/lava/rpc.proto +++ b/proto/lava/rpc.proto @@ -7,11 +7,14 @@ import "google/protobuf/descriptor.proto"; option go_package = "github.com/pubgo/lava/pkg/proto/lavapbv1;lavapbv1"; message RpcMeta { - string name = 1; - optional string version = 2; - map tags = 3; -} + // rpc custom name, e.g. people.say.hello + string name = 1; + + // rpc version, e.g. v0.0.1-alpha.1 + optional string version = 2; -extend google.protobuf.MethodOptions { - RpcMeta options = 100004; + // rpc tags + map tags = 3; } + +extend google.protobuf.MethodOptions { RpcMeta options = 100004; } diff --git a/protobuf.yaml b/protobuf.yaml index a37c7d9e..43065d23 100644 --- a/protobuf.yaml +++ b/protobuf.yaml @@ -1,4 +1,4 @@ -checksum: 3c56fe865d5c58a597e2a00e689b5e5e9d3a12a0 +checksum: e0510f214c57f40c401509269c3bd12647e77233 vendor: .proto base: out: ./pkg @@ -18,7 +18,7 @@ deps: - name: errorpb url: github.com/pubgo/funk path: /proto/errorpb - version: v0.5.52 + version: v0.5.56 plugins: - name: go - name: go-errors