From a24d01286b93ea5400b036bddb96b6df7f348c74 Mon Sep 17 00:00:00 2001 From: tx7do Date: Sun, 15 Dec 2024 12:12:46 +0800 Subject: [PATCH] feat: edit pagination api. --- api/gen/go/conf/v1/kratos_conf_authn.pb.go | 52 +- api/gen/go/conf/v1/kratos_conf_authz.pb.go | 28 +- .../go/conf/v1/kratos_conf_bootstrap.pb.go | 30 +- api/gen/go/conf/v1/kratos_conf_client.pb.go | 74 +-- api/gen/go/conf/v1/kratos_conf_config.pb.go | 162 ++---- api/gen/go/conf/v1/kratos_conf_data.pb.go | 406 +++------------ api/gen/go/conf/v1/kratos_conf_logger.pb.go | 140 +----- .../go/conf/v1/kratos_conf_middleware.pb.go | 94 +--- api/gen/go/conf/v1/kratos_conf_notify.pb.go | 52 +- api/gen/go/conf/v1/kratos_conf_oss.pb.go | 52 +- api/gen/go/conf/v1/kratos_conf_registry.pb.go | 206 ++------ api/gen/go/conf/v1/kratos_conf_server.pb.go | 470 ++++-------------- api/gen/go/conf/v1/kratos_conf_tls.pb.go | 78 +-- api/gen/go/conf/v1/kratos_conf_tracer.pb.go | 28 +- api/gen/go/pagination/v1/pagination.pb.go | 240 +++++---- api/protos/pagination/v1/pagination.proto | 31 +- tag.bat | 2 +- 17 files changed, 494 insertions(+), 1651 deletions(-) diff --git a/api/gen/go/conf/v1/kratos_conf_authn.pb.go b/api/gen/go/conf/v1/kratos_conf_authn.pb.go index dcffba8..b5ac0cb 100644 --- a/api/gen/go/conf/v1/kratos_conf_authn.pb.go +++ b/api/gen/go/conf/v1/kratos_conf_authn.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc (unknown) // source: conf/v1/kratos_conf_authn.proto @@ -32,11 +32,9 @@ type Authentication struct { func (x *Authentication) Reset() { *x = Authentication{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_authn_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_authn_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Authentication) String() string { @@ -47,7 +45,7 @@ func (*Authentication) ProtoMessage() {} func (x *Authentication) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_authn_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) @@ -81,11 +79,9 @@ type Authentication_Jwt struct { func (x *Authentication_Jwt) Reset() { *x = Authentication_Jwt{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_authn_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_authn_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Authentication_Jwt) String() string { @@ -96,7 +92,7 @@ func (*Authentication_Jwt) ProtoMessage() {} func (x *Authentication_Jwt) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_authn_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) @@ -165,7 +161,7 @@ func file_conf_v1_kratos_conf_authn_proto_rawDescGZIP() []byte { } var file_conf_v1_kratos_conf_authn_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_conf_v1_kratos_conf_authn_proto_goTypes = []interface{}{ +var file_conf_v1_kratos_conf_authn_proto_goTypes = []any{ (*Authentication)(nil), // 0: conf.Authentication (*Authentication_Jwt)(nil), // 1: conf.Authentication.Jwt } @@ -183,33 +179,7 @@ func file_conf_v1_kratos_conf_authn_proto_init() { if File_conf_v1_kratos_conf_authn_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_conf_v1_kratos_conf_authn_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Authentication); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_authn_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Authentication_Jwt); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_conf_v1_kratos_conf_authn_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_conf_v1_kratos_conf_authn_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/api/gen/go/conf/v1/kratos_conf_authz.pb.go b/api/gen/go/conf/v1/kratos_conf_authz.pb.go index a200072..9b6c8e7 100644 --- a/api/gen/go/conf/v1/kratos_conf_authz.pb.go +++ b/api/gen/go/conf/v1/kratos_conf_authz.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc (unknown) // source: conf/v1/kratos_conf_authz.proto @@ -30,11 +30,9 @@ type Authorization struct { func (x *Authorization) Reset() { *x = Authorization{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_authz_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_authz_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Authorization) String() string { @@ -45,7 +43,7 @@ func (*Authorization) ProtoMessage() {} func (x *Authorization) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_authz_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) @@ -93,7 +91,7 @@ func file_conf_v1_kratos_conf_authz_proto_rawDescGZIP() []byte { } var file_conf_v1_kratos_conf_authz_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_conf_v1_kratos_conf_authz_proto_goTypes = []interface{}{ +var file_conf_v1_kratos_conf_authz_proto_goTypes = []any{ (*Authorization)(nil), // 0: conf.Authorization } var file_conf_v1_kratos_conf_authz_proto_depIdxs = []int32{ @@ -109,20 +107,6 @@ func file_conf_v1_kratos_conf_authz_proto_init() { if File_conf_v1_kratos_conf_authz_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_conf_v1_kratos_conf_authz_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Authorization); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/api/gen/go/conf/v1/kratos_conf_bootstrap.pb.go b/api/gen/go/conf/v1/kratos_conf_bootstrap.pb.go index 77eddaf..61e0b35 100644 --- a/api/gen/go/conf/v1/kratos_conf_bootstrap.pb.go +++ b/api/gen/go/conf/v1/kratos_conf_bootstrap.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc (unknown) // source: conf/v1/kratos_conf_bootstrap.proto @@ -41,11 +41,9 @@ type Bootstrap struct { func (x *Bootstrap) Reset() { *x = Bootstrap{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_bootstrap_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_bootstrap_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Bootstrap) String() string { @@ -56,7 +54,7 @@ func (*Bootstrap) ProtoMessage() {} func (x *Bootstrap) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_bootstrap_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) @@ -240,7 +238,7 @@ func file_conf_v1_kratos_conf_bootstrap_proto_rawDescGZIP() []byte { } var file_conf_v1_kratos_conf_bootstrap_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_conf_v1_kratos_conf_bootstrap_proto_goTypes = []interface{}{ +var file_conf_v1_kratos_conf_bootstrap_proto_goTypes = []any{ (*Bootstrap)(nil), // 0: conf.Bootstrap (*Server)(nil), // 1: conf.Server (*Client)(nil), // 2: conf.Client @@ -289,21 +287,7 @@ func file_conf_v1_kratos_conf_bootstrap_proto_init() { file_conf_v1_kratos_conf_notify_proto_init() file_conf_v1_kratos_conf_authn_proto_init() file_conf_v1_kratos_conf_authz_proto_init() - if !protoimpl.UnsafeEnabled { - file_conf_v1_kratos_conf_bootstrap_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Bootstrap); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_conf_v1_kratos_conf_bootstrap_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_conf_v1_kratos_conf_bootstrap_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/api/gen/go/conf/v1/kratos_conf_client.pb.go b/api/gen/go/conf/v1/kratos_conf_client.pb.go index 67166a9..c2c3af8 100644 --- a/api/gen/go/conf/v1/kratos_conf_client.pb.go +++ b/api/gen/go/conf/v1/kratos_conf_client.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc (unknown) // source: conf/v1/kratos_conf_client.proto @@ -33,11 +33,9 @@ type Client struct { func (x *Client) Reset() { *x = Client{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_client_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_client_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Client) String() string { @@ -48,7 +46,7 @@ func (*Client) ProtoMessage() {} func (x *Client) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_client_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) @@ -90,11 +88,9 @@ type Client_REST struct { func (x *Client_REST) Reset() { *x = Client_REST{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_client_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_client_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Client_REST) String() string { @@ -105,7 +101,7 @@ func (*Client_REST) ProtoMessage() {} func (x *Client_REST) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_client_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) @@ -154,11 +150,9 @@ type Client_GRPC struct { func (x *Client_GRPC) Reset() { *x = Client_GRPC{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_client_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_client_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Client_GRPC) String() string { @@ -169,7 +163,7 @@ func (*Client_GRPC) ProtoMessage() {} func (x *Client_GRPC) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_client_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) @@ -266,7 +260,7 @@ func file_conf_v1_kratos_conf_client_proto_rawDescGZIP() []byte { } var file_conf_v1_kratos_conf_client_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_conf_v1_kratos_conf_client_proto_goTypes = []interface{}{ +var file_conf_v1_kratos_conf_client_proto_goTypes = []any{ (*Client)(nil), // 0: conf.Client (*Client_REST)(nil), // 1: conf.Client.REST (*Client_GRPC)(nil), // 2: conf.Client.GRPC @@ -297,45 +291,7 @@ func file_conf_v1_kratos_conf_client_proto_init() { } file_conf_v1_kratos_conf_middleware_proto_init() file_conf_v1_kratos_conf_tls_proto_init() - if !protoimpl.UnsafeEnabled { - file_conf_v1_kratos_conf_client_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Client); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_client_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Client_REST); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_client_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Client_GRPC); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_conf_v1_kratos_conf_client_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_conf_v1_kratos_conf_client_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/api/gen/go/conf/v1/kratos_conf_config.pb.go b/api/gen/go/conf/v1/kratos_conf_config.pb.go index 65e7150..2887d30 100644 --- a/api/gen/go/conf/v1/kratos_conf_config.pb.go +++ b/api/gen/go/conf/v1/kratos_conf_config.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc (unknown) // source: conf/v1/kratos_conf_config.proto @@ -38,11 +38,9 @@ type RemoteConfig struct { func (x *RemoteConfig) Reset() { *x = RemoteConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_config_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoteConfig) String() string { @@ -53,7 +51,7 @@ func (*RemoteConfig) ProtoMessage() {} func (x *RemoteConfig) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_config_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) @@ -129,11 +127,9 @@ type RemoteConfig_Nacos struct { func (x *RemoteConfig_Nacos) Reset() { *x = RemoteConfig_Nacos{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_config_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_config_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoteConfig_Nacos) String() string { @@ -144,7 +140,7 @@ func (*RemoteConfig_Nacos) ProtoMessage() {} func (x *RemoteConfig_Nacos) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_config_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) @@ -192,11 +188,9 @@ type RemoteConfig_Etcd struct { func (x *RemoteConfig_Etcd) Reset() { *x = RemoteConfig_Etcd{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_config_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_config_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoteConfig_Etcd) String() string { @@ -207,7 +201,7 @@ func (*RemoteConfig_Etcd) ProtoMessage() {} func (x *RemoteConfig_Etcd) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_config_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) @@ -255,11 +249,9 @@ type RemoteConfig_Consul struct { func (x *RemoteConfig_Consul) Reset() { *x = RemoteConfig_Consul{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_config_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_config_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoteConfig_Consul) String() string { @@ -270,7 +262,7 @@ func (*RemoteConfig_Consul) ProtoMessage() {} func (x *RemoteConfig_Consul) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_config_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) @@ -320,11 +312,9 @@ type RemoteConfig_Apollo struct { func (x *RemoteConfig_Apollo) Reset() { *x = RemoteConfig_Apollo{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_config_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_config_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoteConfig_Apollo) String() string { @@ -335,7 +325,7 @@ func (*RemoteConfig_Apollo) ProtoMessage() {} func (x *RemoteConfig_Apollo) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_config_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) @@ -395,11 +385,9 @@ type RemoteConfig_Kubernetes struct { func (x *RemoteConfig_Kubernetes) Reset() { *x = RemoteConfig_Kubernetes{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_config_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_config_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoteConfig_Kubernetes) String() string { @@ -410,7 +398,7 @@ func (*RemoteConfig_Kubernetes) ProtoMessage() {} func (x *RemoteConfig_Kubernetes) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_config_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) @@ -440,11 +428,9 @@ type RemoteConfig_Polaris struct { func (x *RemoteConfig_Polaris) Reset() { *x = RemoteConfig_Polaris{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_config_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_config_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoteConfig_Polaris) String() string { @@ -455,7 +441,7 @@ func (*RemoteConfig_Polaris) ProtoMessage() {} func (x *RemoteConfig_Polaris) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_config_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) @@ -559,7 +545,7 @@ func file_conf_v1_kratos_conf_config_proto_rawDescGZIP() []byte { } var file_conf_v1_kratos_conf_config_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_conf_v1_kratos_conf_config_proto_goTypes = []interface{}{ +var file_conf_v1_kratos_conf_config_proto_goTypes = []any{ (*RemoteConfig)(nil), // 0: conf.RemoteConfig (*RemoteConfig_Nacos)(nil), // 1: conf.RemoteConfig.Nacos (*RemoteConfig_Etcd)(nil), // 2: conf.RemoteConfig.Etcd @@ -589,93 +575,7 @@ func file_conf_v1_kratos_conf_config_proto_init() { if File_conf_v1_kratos_conf_config_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_conf_v1_kratos_conf_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoteConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoteConfig_Nacos); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoteConfig_Etcd); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoteConfig_Consul); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoteConfig_Apollo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoteConfig_Kubernetes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoteConfig_Polaris); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_conf_v1_kratos_conf_config_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_conf_v1_kratos_conf_config_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/api/gen/go/conf/v1/kratos_conf_data.pb.go b/api/gen/go/conf/v1/kratos_conf_data.pb.go index d4952e6..65402f0 100644 --- a/api/gen/go/conf/v1/kratos_conf_data.pb.go +++ b/api/gen/go/conf/v1/kratos_conf_data.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc (unknown) // source: conf/v1/kratos_conf_data.proto @@ -47,11 +47,9 @@ type Data struct { func (x *Data) Reset() { *x = Data{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data) String() string { @@ -62,7 +60,7 @@ func (*Data) ProtoMessage() {} func (x *Data) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_data_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) @@ -211,11 +209,9 @@ type Data_Database struct { func (x *Data_Database) Reset() { *x = Data_Database{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data_Database) String() string { @@ -226,7 +222,7 @@ func (*Data_Database) ProtoMessage() {} func (x *Data_Database) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_data_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) @@ -344,11 +340,9 @@ type Data_Redis struct { func (x *Data_Redis) Reset() { *x = Data_Redis{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data_Redis) String() string { @@ -359,7 +353,7 @@ func (*Data_Redis) ProtoMessage() {} func (x *Data_Redis) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_data_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) @@ -450,11 +444,9 @@ type Data_MongoDB struct { func (x *Data_MongoDB) Reset() { *x = Data_MongoDB{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data_MongoDB) String() string { @@ -465,7 +457,7 @@ func (*Data_MongoDB) ProtoMessage() {} func (x *Data_MongoDB) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_data_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) @@ -530,11 +522,9 @@ type Data_ClickHouse struct { func (x *Data_ClickHouse) Reset() { *x = Data_ClickHouse{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data_ClickHouse) String() string { @@ -545,7 +535,7 @@ func (*Data_ClickHouse) ProtoMessage() {} func (x *Data_ClickHouse) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_data_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) @@ -707,11 +697,9 @@ type Data_InfluxDB struct { func (x *Data_InfluxDB) Reset() { *x = Data_InfluxDB{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data_InfluxDB) String() string { @@ -722,7 +710,7 @@ func (*Data_InfluxDB) ProtoMessage() {} func (x *Data_InfluxDB) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_data_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) @@ -775,11 +763,9 @@ type Data_Doris struct { func (x *Data_Doris) Reset() { *x = Data_Doris{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data_Doris) String() string { @@ -790,7 +776,7 @@ func (*Data_Doris) ProtoMessage() {} func (x *Data_Doris) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_data_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) @@ -827,11 +813,9 @@ type Data_ElasticSearch struct { func (x *Data_ElasticSearch) Reset() { *x = Data_ElasticSearch{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data_ElasticSearch) String() string { @@ -842,7 +826,7 @@ func (*Data_ElasticSearch) ProtoMessage() {} func (x *Data_ElasticSearch) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_data_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) @@ -918,11 +902,9 @@ type Data_Cassandra struct { func (x *Data_Cassandra) Reset() { *x = Data_Cassandra{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data_Cassandra) String() string { @@ -933,7 +915,7 @@ func (*Data_Cassandra) ProtoMessage() {} func (x *Data_Cassandra) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_data_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) @@ -1026,11 +1008,9 @@ type Data_Snowflake struct { func (x *Data_Snowflake) Reset() { *x = Data_Snowflake{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data_Snowflake) String() string { @@ -1041,7 +1021,7 @@ func (*Data_Snowflake) ProtoMessage() {} func (x *Data_Snowflake) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_data_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) @@ -1075,11 +1055,9 @@ type Data_Kafka struct { func (x *Data_Kafka) Reset() { *x = Data_Kafka{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data_Kafka) String() string { @@ -1090,7 +1068,7 @@ func (*Data_Kafka) ProtoMessage() {} func (x *Data_Kafka) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_data_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) @@ -1179,11 +1157,9 @@ type Data_RabbitMQ struct { func (x *Data_RabbitMQ) Reset() { *x = Data_RabbitMQ{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data_RabbitMQ) String() string { @@ -1194,7 +1170,7 @@ func (*Data_RabbitMQ) ProtoMessage() {} func (x *Data_RabbitMQ) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_data_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) @@ -1228,11 +1204,9 @@ type Data_Mqtt struct { func (x *Data_Mqtt) Reset() { *x = Data_Mqtt{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data_Mqtt) String() string { @@ -1243,7 +1217,7 @@ func (*Data_Mqtt) ProtoMessage() {} func (x *Data_Mqtt) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_data_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) @@ -1283,11 +1257,9 @@ type Data_ActiveMQ struct { func (x *Data_ActiveMQ) Reset() { *x = Data_ActiveMQ{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data_ActiveMQ) String() string { @@ -1298,7 +1270,7 @@ func (*Data_ActiveMQ) ProtoMessage() {} func (x *Data_ActiveMQ) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_data_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) @@ -1338,11 +1310,9 @@ type Data_NATS struct { func (x *Data_NATS) Reset() { *x = Data_NATS{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data_NATS) String() string { @@ -1353,7 +1323,7 @@ func (*Data_NATS) ProtoMessage() {} func (x *Data_NATS) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_data_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) @@ -1393,11 +1363,9 @@ type Data_NSQ struct { func (x *Data_NSQ) Reset() { *x = Data_NSQ{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data_NSQ) String() string { @@ -1408,7 +1376,7 @@ func (*Data_NSQ) ProtoMessage() {} func (x *Data_NSQ) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_data_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) @@ -1448,11 +1416,9 @@ type Data_Pulsar struct { func (x *Data_Pulsar) Reset() { *x = Data_Pulsar{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data_Pulsar) String() string { @@ -1463,7 +1429,7 @@ func (*Data_Pulsar) ProtoMessage() {} func (x *Data_Pulsar) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_data_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) @@ -1512,11 +1478,9 @@ type Data_RocketMQ struct { func (x *Data_RocketMQ) Reset() { *x = Data_RocketMQ{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_data_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Data_RocketMQ) String() string { @@ -1527,7 +1491,7 @@ func (*Data_RocketMQ) ProtoMessage() {} func (x *Data_RocketMQ) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_data_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) @@ -1962,7 +1926,7 @@ func file_conf_v1_kratos_conf_data_proto_rawDescGZIP() []byte { } var file_conf_v1_kratos_conf_data_proto_msgTypes = make([]protoimpl.MessageInfo, 18) -var file_conf_v1_kratos_conf_data_proto_goTypes = []interface{}{ +var file_conf_v1_kratos_conf_data_proto_goTypes = []any{ (*Data)(nil), // 0: conf.Data (*Data_Database)(nil), // 1: conf.Data.Database (*Data_Redis)(nil), // 2: conf.Data.Redis @@ -2029,226 +1993,8 @@ func file_conf_v1_kratos_conf_data_proto_init() { return } file_conf_v1_kratos_conf_tls_proto_init() - if !protoimpl.UnsafeEnabled { - file_conf_v1_kratos_conf_data_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Data); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_data_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Data_Database); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_data_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Data_Redis); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_data_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Data_MongoDB); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_data_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Data_ClickHouse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_data_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Data_InfluxDB); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_data_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Data_Doris); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_data_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Data_ElasticSearch); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_data_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Data_Cassandra); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_data_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Data_Snowflake); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_data_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Data_Kafka); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_data_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Data_RabbitMQ); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_data_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Data_Mqtt); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_data_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Data_ActiveMQ); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_data_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Data_NATS); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_data_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Data_NSQ); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_data_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Data_Pulsar); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_data_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Data_RocketMQ); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_conf_v1_kratos_conf_data_proto_msgTypes[0].OneofWrappers = []interface{}{} - file_conf_v1_kratos_conf_data_proto_msgTypes[1].OneofWrappers = []interface{}{} + file_conf_v1_kratos_conf_data_proto_msgTypes[0].OneofWrappers = []any{} + file_conf_v1_kratos_conf_data_proto_msgTypes[1].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/api/gen/go/conf/v1/kratos_conf_logger.pb.go b/api/gen/go/conf/v1/kratos_conf_logger.pb.go index 37f458e..83d9994 100644 --- a/api/gen/go/conf/v1/kratos_conf_logger.pb.go +++ b/api/gen/go/conf/v1/kratos_conf_logger.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc (unknown) // source: conf/v1/kratos_conf_logger.proto @@ -36,11 +36,9 @@ type Logger struct { func (x *Logger) Reset() { *x = Logger{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_logger_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_logger_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Logger) String() string { @@ -51,7 +49,7 @@ func (*Logger) ProtoMessage() {} func (x *Logger) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_logger_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) @@ -123,11 +121,9 @@ type Logger_Zap struct { func (x *Logger_Zap) Reset() { *x = Logger_Zap{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_logger_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_logger_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Logger_Zap) String() string { @@ -138,7 +134,7 @@ func (*Logger_Zap) ProtoMessage() {} func (x *Logger_Zap) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_logger_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) @@ -203,11 +199,9 @@ type Logger_Logrus struct { func (x *Logger_Logrus) Reset() { *x = Logger_Logrus{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_logger_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_logger_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Logger_Logrus) String() string { @@ -218,7 +212,7 @@ func (*Logger_Logrus) ProtoMessage() {} func (x *Logger_Logrus) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_logger_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) @@ -279,11 +273,9 @@ type Logger_Fluent struct { func (x *Logger_Fluent) Reset() { *x = Logger_Fluent{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_logger_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_logger_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Logger_Fluent) String() string { @@ -294,7 +286,7 @@ func (*Logger_Fluent) ProtoMessage() {} func (x *Logger_Fluent) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_logger_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) @@ -330,11 +322,9 @@ type Logger_Aliyun struct { func (x *Logger_Aliyun) Reset() { *x = Logger_Aliyun{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_logger_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_logger_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Logger_Aliyun) String() string { @@ -345,7 +335,7 @@ func (*Logger_Aliyun) ProtoMessage() {} func (x *Logger_Aliyun) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_logger_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) @@ -402,11 +392,9 @@ type Logger_Tencent struct { func (x *Logger_Tencent) Reset() { *x = Logger_Tencent{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_logger_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_logger_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Logger_Tencent) String() string { @@ -417,7 +405,7 @@ func (*Logger_Tencent) ProtoMessage() {} func (x *Logger_Tencent) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_logger_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) @@ -551,7 +539,7 @@ func file_conf_v1_kratos_conf_logger_proto_rawDescGZIP() []byte { } var file_conf_v1_kratos_conf_logger_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_conf_v1_kratos_conf_logger_proto_goTypes = []interface{}{ +var file_conf_v1_kratos_conf_logger_proto_goTypes = []any{ (*Logger)(nil), // 0: conf.Logger (*Logger_Zap)(nil), // 1: conf.Logger.Zap (*Logger_Logrus)(nil), // 2: conf.Logger.Logrus @@ -577,81 +565,7 @@ func file_conf_v1_kratos_conf_logger_proto_init() { if File_conf_v1_kratos_conf_logger_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_conf_v1_kratos_conf_logger_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Logger); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_logger_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Logger_Zap); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_logger_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Logger_Logrus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_logger_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Logger_Fluent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_logger_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Logger_Aliyun); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_logger_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Logger_Tencent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_conf_v1_kratos_conf_logger_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_conf_v1_kratos_conf_logger_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/api/gen/go/conf/v1/kratos_conf_middleware.pb.go b/api/gen/go/conf/v1/kratos_conf_middleware.pb.go index a58297b..9e7be52 100644 --- a/api/gen/go/conf/v1/kratos_conf_middleware.pb.go +++ b/api/gen/go/conf/v1/kratos_conf_middleware.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc (unknown) // source: conf/v1/kratos_conf_middleware.proto @@ -39,11 +39,9 @@ type Middleware struct { func (x *Middleware) Reset() { *x = Middleware{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_middleware_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_middleware_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Middleware) String() string { @@ -54,7 +52,7 @@ func (*Middleware) ProtoMessage() {} func (x *Middleware) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_middleware_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) @@ -137,11 +135,9 @@ type Middleware_Auth struct { func (x *Middleware_Auth) Reset() { *x = Middleware_Auth{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_middleware_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_middleware_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Middleware_Auth) String() string { @@ -152,7 +148,7 @@ func (*Middleware_Auth) ProtoMessage() {} func (x *Middleware_Auth) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_middleware_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) @@ -192,11 +188,9 @@ type Middleware_RateLimiter struct { func (x *Middleware_RateLimiter) Reset() { *x = Middleware_RateLimiter{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_middleware_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_middleware_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Middleware_RateLimiter) String() string { @@ -207,7 +201,7 @@ func (*Middleware_RateLimiter) ProtoMessage() {} func (x *Middleware_RateLimiter) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_middleware_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) @@ -243,11 +237,9 @@ type Middleware_Metrics struct { func (x *Middleware_Metrics) Reset() { *x = Middleware_Metrics{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_middleware_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_middleware_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Middleware_Metrics) String() string { @@ -258,7 +250,7 @@ func (*Middleware_Metrics) ProtoMessage() {} func (x *Middleware_Metrics) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_middleware_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) @@ -370,7 +362,7 @@ func file_conf_v1_kratos_conf_middleware_proto_rawDescGZIP() []byte { } var file_conf_v1_kratos_conf_middleware_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_conf_v1_kratos_conf_middleware_proto_goTypes = []interface{}{ +var file_conf_v1_kratos_conf_middleware_proto_goTypes = []any{ (*Middleware)(nil), // 0: conf.Middleware (*Middleware_Auth)(nil), // 1: conf.Middleware.Auth (*Middleware_RateLimiter)(nil), // 2: conf.Middleware.RateLimiter @@ -392,56 +384,6 @@ func file_conf_v1_kratos_conf_middleware_proto_init() { if File_conf_v1_kratos_conf_middleware_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_conf_v1_kratos_conf_middleware_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Middleware); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_middleware_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Middleware_Auth); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_middleware_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Middleware_RateLimiter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_middleware_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Middleware_Metrics); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/api/gen/go/conf/v1/kratos_conf_notify.pb.go b/api/gen/go/conf/v1/kratos_conf_notify.pb.go index f797045..acba465 100644 --- a/api/gen/go/conf/v1/kratos_conf_notify.pb.go +++ b/api/gen/go/conf/v1/kratos_conf_notify.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc (unknown) // source: conf/v1/kratos_conf_notify.proto @@ -31,11 +31,9 @@ type Notification struct { func (x *Notification) Reset() { *x = Notification{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_notify_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_notify_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Notification) String() string { @@ -46,7 +44,7 @@ func (*Notification) ProtoMessage() {} func (x *Notification) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_notify_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) @@ -82,11 +80,9 @@ type Notification_SMS struct { func (x *Notification_SMS) Reset() { *x = Notification_SMS{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_notify_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_notify_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Notification_SMS) String() string { @@ -97,7 +93,7 @@ func (*Notification_SMS) ProtoMessage() {} func (x *Notification_SMS) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_notify_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) @@ -184,7 +180,7 @@ func file_conf_v1_kratos_conf_notify_proto_rawDescGZIP() []byte { } var file_conf_v1_kratos_conf_notify_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_conf_v1_kratos_conf_notify_proto_goTypes = []interface{}{ +var file_conf_v1_kratos_conf_notify_proto_goTypes = []any{ (*Notification)(nil), // 0: conf.Notification (*Notification_SMS)(nil), // 1: conf.Notification.SMS } @@ -202,33 +198,7 @@ func file_conf_v1_kratos_conf_notify_proto_init() { if File_conf_v1_kratos_conf_notify_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_conf_v1_kratos_conf_notify_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Notification); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_notify_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Notification_SMS); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_conf_v1_kratos_conf_notify_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_conf_v1_kratos_conf_notify_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/api/gen/go/conf/v1/kratos_conf_oss.pb.go b/api/gen/go/conf/v1/kratos_conf_oss.pb.go index de76234..646f3f3 100644 --- a/api/gen/go/conf/v1/kratos_conf_oss.pb.go +++ b/api/gen/go/conf/v1/kratos_conf_oss.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc (unknown) // source: conf/v1/kratos_conf_oss.proto @@ -31,11 +31,9 @@ type OSS struct { func (x *OSS) Reset() { *x = OSS{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_oss_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_oss_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OSS) String() string { @@ -46,7 +44,7 @@ func (*OSS) ProtoMessage() {} func (x *OSS) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_oss_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) @@ -86,11 +84,9 @@ type OSS_MinIO struct { func (x *OSS_MinIO) Reset() { *x = OSS_MinIO{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_oss_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_oss_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OSS_MinIO) String() string { @@ -101,7 +97,7 @@ func (*OSS_MinIO) ProtoMessage() {} func (x *OSS_MinIO) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_oss_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) @@ -223,7 +219,7 @@ func file_conf_v1_kratos_conf_oss_proto_rawDescGZIP() []byte { } var file_conf_v1_kratos_conf_oss_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_conf_v1_kratos_conf_oss_proto_goTypes = []interface{}{ +var file_conf_v1_kratos_conf_oss_proto_goTypes = []any{ (*OSS)(nil), // 0: conf.OSS (*OSS_MinIO)(nil), // 1: conf.OSS.MinIO (*TLS)(nil), // 2: conf.TLS @@ -244,33 +240,7 @@ func file_conf_v1_kratos_conf_oss_proto_init() { return } file_conf_v1_kratos_conf_tls_proto_init() - if !protoimpl.UnsafeEnabled { - file_conf_v1_kratos_conf_oss_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OSS); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_oss_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OSS_MinIO); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_conf_v1_kratos_conf_oss_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_conf_v1_kratos_conf_oss_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/api/gen/go/conf/v1/kratos_conf_registry.pb.go b/api/gen/go/conf/v1/kratos_conf_registry.pb.go index 2f96e31..fdebb8b 100644 --- a/api/gen/go/conf/v1/kratos_conf_registry.pb.go +++ b/api/gen/go/conf/v1/kratos_conf_registry.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc (unknown) // source: conf/v1/kratos_conf_registry.proto @@ -40,11 +40,9 @@ type Registry struct { func (x *Registry) Reset() { *x = Registry{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Registry) String() string { @@ -55,7 +53,7 @@ func (*Registry) ProtoMessage() {} func (x *Registry) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_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) @@ -146,11 +144,9 @@ type Registry_Consul struct { func (x *Registry_Consul) Reset() { *x = Registry_Consul{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Registry_Consul) String() string { @@ -161,7 +157,7 @@ func (*Registry_Consul) ProtoMessage() {} func (x *Registry_Consul) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_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) @@ -208,11 +204,9 @@ type Registry_Etcd struct { func (x *Registry_Etcd) Reset() { *x = Registry_Etcd{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Registry_Etcd) String() string { @@ -223,7 +217,7 @@ func (*Registry_Etcd) ProtoMessage() {} func (x *Registry_Etcd) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_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) @@ -257,11 +251,9 @@ type Registry_ZooKeeper struct { func (x *Registry_ZooKeeper) Reset() { *x = Registry_ZooKeeper{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Registry_ZooKeeper) String() string { @@ -272,7 +264,7 @@ func (*Registry_ZooKeeper) ProtoMessage() {} func (x *Registry_ZooKeeper) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_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) @@ -322,11 +314,9 @@ type Registry_Nacos struct { func (x *Registry_Nacos) Reset() { *x = Registry_Nacos{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Registry_Nacos) String() string { @@ -337,7 +327,7 @@ func (*Registry_Nacos) ProtoMessage() {} func (x *Registry_Nacos) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_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) @@ -438,11 +428,9 @@ type Registry_Kubernetes struct { func (x *Registry_Kubernetes) Reset() { *x = Registry_Kubernetes{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Registry_Kubernetes) String() string { @@ -453,7 +441,7 @@ func (*Registry_Kubernetes) ProtoMessage() {} func (x *Registry_Kubernetes) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_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) @@ -482,11 +470,9 @@ type Registry_Eureka struct { func (x *Registry_Eureka) Reset() { *x = Registry_Eureka{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Registry_Eureka) String() string { @@ -497,7 +483,7 @@ func (*Registry_Eureka) ProtoMessage() {} func (x *Registry_Eureka) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_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) @@ -556,11 +542,9 @@ type Registry_Polaris struct { func (x *Registry_Polaris) Reset() { *x = Registry_Polaris{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Registry_Polaris) String() string { @@ -571,7 +555,7 @@ func (*Registry_Polaris) ProtoMessage() {} func (x *Registry_Polaris) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_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) @@ -639,11 +623,9 @@ type Registry_Servicecomb struct { func (x *Registry_Servicecomb) Reset() { *x = Registry_Servicecomb{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Registry_Servicecomb) String() string { @@ -654,7 +636,7 @@ func (*Registry_Servicecomb) ProtoMessage() {} func (x *Registry_Servicecomb) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_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) @@ -814,7 +796,7 @@ func file_conf_v1_kratos_conf_registry_proto_rawDescGZIP() []byte { } var file_conf_v1_kratos_conf_registry_proto_msgTypes = make([]protoimpl.MessageInfo, 9) -var file_conf_v1_kratos_conf_registry_proto_goTypes = []interface{}{ +var file_conf_v1_kratos_conf_registry_proto_goTypes = []any{ (*Registry)(nil), // 0: conf.Registry (*Registry_Consul)(nil), // 1: conf.Registry.Consul (*Registry_Etcd)(nil), // 2: conf.Registry.Etcd @@ -852,117 +834,7 @@ func file_conf_v1_kratos_conf_registry_proto_init() { if File_conf_v1_kratos_conf_registry_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_conf_v1_kratos_conf_registry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Registry); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_registry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Registry_Consul); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_registry_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Registry_Etcd); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_registry_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Registry_ZooKeeper); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_registry_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Registry_Nacos); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_registry_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Registry_Kubernetes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_registry_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Registry_Eureka); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_registry_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Registry_Polaris); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_registry_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Registry_Servicecomb); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_conf_v1_kratos_conf_registry_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_conf_v1_kratos_conf_registry_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/api/gen/go/conf/v1/kratos_conf_server.pb.go b/api/gen/go/conf/v1/kratos_conf_server.pb.go index f665ce1..b969a70 100644 --- a/api/gen/go/conf/v1/kratos_conf_server.pb.go +++ b/api/gen/go/conf/v1/kratos_conf_server.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc (unknown) // source: conf/v1/kratos_conf_server.proto @@ -50,11 +50,9 @@ type Server struct { func (x *Server) Reset() { *x = Server{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server) String() string { @@ -65,7 +63,7 @@ func (*Server) ProtoMessage() {} func (x *Server) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -231,11 +229,9 @@ type Server_REST struct { func (x *Server_REST) Reset() { *x = Server_REST{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_REST) String() string { @@ -246,7 +242,7 @@ func (*Server_REST) ProtoMessage() {} func (x *Server_REST) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -332,11 +328,9 @@ type Server_GRPC struct { func (x *Server_GRPC) Reset() { *x = Server_GRPC{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_GRPC) String() string { @@ -347,7 +341,7 @@ func (*Server_GRPC) ProtoMessage() {} func (x *Server_GRPC) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -413,11 +407,9 @@ type Server_Websocket struct { func (x *Server_Websocket) Reset() { *x = Server_Websocket{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_Websocket) String() string { @@ -428,7 +420,7 @@ func (*Server_Websocket) ProtoMessage() {} func (x *Server_Websocket) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -498,11 +490,9 @@ type Server_Mqtt struct { func (x *Server_Mqtt) Reset() { *x = Server_Mqtt{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_Mqtt) String() string { @@ -513,7 +503,7 @@ func (*Server_Mqtt) ProtoMessage() {} func (x *Server_Mqtt) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -562,11 +552,9 @@ type Server_Kafka struct { func (x *Server_Kafka) Reset() { *x = Server_Kafka{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_Kafka) String() string { @@ -577,7 +565,7 @@ func (*Server_Kafka) ProtoMessage() {} func (x *Server_Kafka) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -626,11 +614,9 @@ type Server_RabbitMQ struct { func (x *Server_RabbitMQ) Reset() { *x = Server_RabbitMQ{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_RabbitMQ) String() string { @@ -641,7 +627,7 @@ func (*Server_RabbitMQ) ProtoMessage() {} func (x *Server_RabbitMQ) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -689,11 +675,9 @@ type Server_ActiveMQ struct { func (x *Server_ActiveMQ) Reset() { *x = Server_ActiveMQ{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_ActiveMQ) String() string { @@ -704,7 +688,7 @@ func (*Server_ActiveMQ) ProtoMessage() {} func (x *Server_ActiveMQ) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -752,11 +736,9 @@ type Server_NATS struct { func (x *Server_NATS) Reset() { *x = Server_NATS{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_NATS) String() string { @@ -767,7 +749,7 @@ func (*Server_NATS) ProtoMessage() {} func (x *Server_NATS) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -815,11 +797,9 @@ type Server_NSQ struct { func (x *Server_NSQ) Reset() { *x = Server_NSQ{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_NSQ) String() string { @@ -830,7 +810,7 @@ func (*Server_NSQ) ProtoMessage() {} func (x *Server_NSQ) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -878,11 +858,9 @@ type Server_Pulsar struct { func (x *Server_Pulsar) Reset() { *x = Server_Pulsar{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_Pulsar) String() string { @@ -893,7 +871,7 @@ func (*Server_Pulsar) ProtoMessage() {} func (x *Server_Pulsar) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -941,11 +919,9 @@ type Server_Redis struct { func (x *Server_Redis) Reset() { *x = Server_Redis{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_Redis) String() string { @@ -956,7 +932,7 @@ func (*Server_Redis) ProtoMessage() {} func (x *Server_Redis) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -1013,11 +989,9 @@ type Server_RocketMQ struct { func (x *Server_RocketMQ) Reset() { *x = Server_RocketMQ{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_RocketMQ) String() string { @@ -1028,7 +1002,7 @@ func (*Server_RocketMQ) ProtoMessage() {} func (x *Server_RocketMQ) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -1142,11 +1116,9 @@ type Server_Asynq struct { func (x *Server_Asynq) Reset() { *x = Server_Asynq{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_Asynq) String() string { @@ -1157,7 +1129,7 @@ func (*Server_Asynq) ProtoMessage() {} func (x *Server_Asynq) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -1220,11 +1192,9 @@ type Server_Machinery struct { func (x *Server_Machinery) Reset() { *x = Server_Machinery{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_Machinery) String() string { @@ -1235,7 +1205,7 @@ func (*Server_Machinery) ProtoMessage() {} func (x *Server_Machinery) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -1292,11 +1262,9 @@ type Server_SSE struct { func (x *Server_SSE) Reset() { *x = Server_SSE{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_SSE) String() string { @@ -1307,7 +1275,7 @@ func (*Server_SSE) ProtoMessage() {} func (x *Server_SSE) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -1414,11 +1382,9 @@ type Server_SocketIO struct { func (x *Server_SocketIO) Reset() { *x = Server_SocketIO{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_SocketIO) String() string { @@ -1429,7 +1395,7 @@ func (*Server_SocketIO) ProtoMessage() {} func (x *Server_SocketIO) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -1497,11 +1463,9 @@ type Server_SignalR struct { func (x *Server_SignalR) Reset() { *x = Server_SignalR{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_SignalR) String() string { @@ -1512,7 +1476,7 @@ func (*Server_SignalR) ProtoMessage() {} func (x *Server_SignalR) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -1600,11 +1564,9 @@ type Server_GraphQL struct { func (x *Server_GraphQL) Reset() { *x = Server_GraphQL{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_GraphQL) String() string { @@ -1615,7 +1577,7 @@ func (*Server_GraphQL) ProtoMessage() {} func (x *Server_GraphQL) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -1696,11 +1658,9 @@ type Server_Thrift struct { func (x *Server_Thrift) Reset() { *x = Server_Thrift{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_Thrift) String() string { @@ -1711,7 +1671,7 @@ func (*Server_Thrift) ProtoMessage() {} func (x *Server_Thrift) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -1787,11 +1747,9 @@ type Server_REST_CORS struct { func (x *Server_REST_CORS) Reset() { *x = Server_REST_CORS{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_server_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Server_REST_CORS) String() string { @@ -1802,7 +1760,7 @@ func (*Server_REST_CORS) ProtoMessage() {} func (x *Server_REST_CORS) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_server_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) @@ -2157,7 +2115,7 @@ func file_conf_v1_kratos_conf_server_proto_rawDescGZIP() []byte { } var file_conf_v1_kratos_conf_server_proto_msgTypes = make([]protoimpl.MessageInfo, 21) -var file_conf_v1_kratos_conf_server_proto_goTypes = []interface{}{ +var file_conf_v1_kratos_conf_server_proto_goTypes = []any{ (*Server)(nil), // 0: conf.Server (*Server_REST)(nil), // 1: conf.Server.REST (*Server_GRPC)(nil), // 2: conf.Server.GRPC @@ -2247,261 +2205,7 @@ func file_conf_v1_kratos_conf_server_proto_init() { } file_conf_v1_kratos_conf_middleware_proto_init() file_conf_v1_kratos_conf_tls_proto_init() - if !protoimpl.UnsafeEnabled { - file_conf_v1_kratos_conf_server_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_REST); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_GRPC); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_Websocket); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_Mqtt); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_Kafka); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_RabbitMQ); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_ActiveMQ); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_NATS); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_NSQ); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_Pulsar); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_Redis); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_RocketMQ); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_Asynq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_Machinery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_SSE); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_SocketIO); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_SignalR); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_GraphQL); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_Thrift); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Server_REST_CORS); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_conf_v1_kratos_conf_server_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_conf_v1_kratos_conf_server_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/api/gen/go/conf/v1/kratos_conf_tls.pb.go b/api/gen/go/conf/v1/kratos_conf_tls.pb.go index 7acad63..6d723e6 100644 --- a/api/gen/go/conf/v1/kratos_conf_tls.pb.go +++ b/api/gen/go/conf/v1/kratos_conf_tls.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc (unknown) // source: conf/v1/kratos_conf_tls.proto @@ -33,11 +33,9 @@ type TLS struct { func (x *TLS) Reset() { *x = TLS{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_tls_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_tls_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TLS) String() string { @@ -48,7 +46,7 @@ func (*TLS) ProtoMessage() {} func (x *TLS) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_tls_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) @@ -96,11 +94,9 @@ type TLS_File struct { func (x *TLS_File) Reset() { *x = TLS_File{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_tls_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_tls_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TLS_File) String() string { @@ -111,7 +107,7 @@ func (*TLS_File) ProtoMessage() {} func (x *TLS_File) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_tls_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) @@ -159,11 +155,9 @@ type TLS_Config struct { func (x *TLS_Config) Reset() { *x = TLS_Config{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_tls_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_tls_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TLS_Config) String() string { @@ -174,7 +168,7 @@ func (*TLS_Config) ProtoMessage() {} func (x *TLS_Config) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_tls_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) @@ -268,7 +262,7 @@ func file_conf_v1_kratos_conf_tls_proto_rawDescGZIP() []byte { } var file_conf_v1_kratos_conf_tls_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_conf_v1_kratos_conf_tls_proto_goTypes = []interface{}{ +var file_conf_v1_kratos_conf_tls_proto_goTypes = []any{ (*TLS)(nil), // 0: conf.TLS (*TLS_File)(nil), // 1: conf.TLS.File (*TLS_Config)(nil), // 2: conf.TLS.Config @@ -288,47 +282,9 @@ func file_conf_v1_kratos_conf_tls_proto_init() { if File_conf_v1_kratos_conf_tls_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_conf_v1_kratos_conf_tls_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TLS); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_tls_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TLS_File); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_conf_v1_kratos_conf_tls_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TLS_Config); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_conf_v1_kratos_conf_tls_proto_msgTypes[0].OneofWrappers = []interface{}{} - file_conf_v1_kratos_conf_tls_proto_msgTypes[1].OneofWrappers = []interface{}{} - file_conf_v1_kratos_conf_tls_proto_msgTypes[2].OneofWrappers = []interface{}{} + file_conf_v1_kratos_conf_tls_proto_msgTypes[0].OneofWrappers = []any{} + file_conf_v1_kratos_conf_tls_proto_msgTypes[1].OneofWrappers = []any{} + file_conf_v1_kratos_conf_tls_proto_msgTypes[2].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/api/gen/go/conf/v1/kratos_conf_tracer.pb.go b/api/gen/go/conf/v1/kratos_conf_tracer.pb.go index 8cd45e6..2fe2d61 100644 --- a/api/gen/go/conf/v1/kratos_conf_tracer.pb.go +++ b/api/gen/go/conf/v1/kratos_conf_tracer.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc (unknown) // source: conf/v1/kratos_conf_tracer.proto @@ -35,11 +35,9 @@ type Tracer struct { func (x *Tracer) Reset() { *x = Tracer{} - if protoimpl.UnsafeEnabled { - mi := &file_conf_v1_kratos_conf_tracer_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conf_v1_kratos_conf_tracer_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Tracer) String() string { @@ -50,7 +48,7 @@ func (*Tracer) ProtoMessage() {} func (x *Tracer) ProtoReflect() protoreflect.Message { mi := &file_conf_v1_kratos_conf_tracer_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,7 +137,7 @@ func file_conf_v1_kratos_conf_tracer_proto_rawDescGZIP() []byte { } var file_conf_v1_kratos_conf_tracer_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_conf_v1_kratos_conf_tracer_proto_goTypes = []interface{}{ +var file_conf_v1_kratos_conf_tracer_proto_goTypes = []any{ (*Tracer)(nil), // 0: conf.Tracer } var file_conf_v1_kratos_conf_tracer_proto_depIdxs = []int32{ @@ -155,20 +153,6 @@ func file_conf_v1_kratos_conf_tracer_proto_init() { if File_conf_v1_kratos_conf_tracer_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_conf_v1_kratos_conf_tracer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Tracer); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/api/gen/go/pagination/v1/pagination.pb.go b/api/gen/go/pagination/v1/pagination.pb.go index fbcc8b5..9dc5d2b 100644 --- a/api/gen/go/pagination/v1/pagination.pb.go +++ b/api/gen/go/pagination/v1/pagination.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.35.2 // protoc (unknown) // source: pagination/v1/pagination.proto @@ -10,7 +10,6 @@ import ( _ "github.com/google/gnostic/openapiv3" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" reflect "reflect" sync "sync" @@ -31,27 +30,25 @@ type PagingRequest struct { // 当前页码 Page *int32 `protobuf:"varint,1,opt,name=page,proto3,oneof" json:"page,omitempty"` - // 每页的行数 + // 每一页的行数 PageSize *int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"` - // 与过滤参数 + // AND过滤参数,其语法为json格式的字符串,如:{"key1":"val1","key2":"val2"},具体请参见:https://github.com/tx7do/go-utils/tree/main/entgo/query/README.md Query *string `protobuf:"bytes,3,opt,name=query,proto3,oneof" json:"query,omitempty"` - // 或过滤参数 + // OR过滤参数,语法同AND过滤参数。 OrQuery *string `protobuf:"bytes,4,opt,name=or_query,json=or,proto3,oneof" json:"or_query,omitempty"` - // 排序条件 + // 排序条件,其语法为JSON字符串,例如:{"val1", "-val2"}。字段名前加'-'为降序,否则为升序。 OrderBy []string `protobuf:"bytes,5,rep,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` - // 是否不分页 - NoPaging *bool `protobuf:"varint,6,opt,name=no_paging,json=nopaging,proto3,oneof" json:"no_paging,omitempty"` - // 字段掩码 - FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,7,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` + // 是否不分页,如果为true,则page和pageSize参数无效。 + NoPaging *bool `protobuf:"varint,6,opt,name=no_paging,json=noPaging,proto3,oneof" json:"no_paging,omitempty"` + // 字段掩码,其作用为SELECT中的字段,其语法为使用逗号分隔字段名,例如:id,realName,userName。如果为空则选中所有字段,即SELECT *。 + FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,7,opt,name=field_mask,json=fieldMask,proto3,oneof" json:"field_mask,omitempty"` } func (x *PagingRequest) Reset() { *x = PagingRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_pagination_v1_pagination_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pagination_v1_pagination_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PagingRequest) String() string { @@ -62,7 +59,7 @@ func (*PagingRequest) ProtoMessage() {} func (x *PagingRequest) ProtoReflect() protoreflect.Message { mi := &file_pagination_v1_pagination_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) @@ -135,16 +132,14 @@ type PagingResponse struct { // 总数 Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 分页数据 - Items []*anypb.Any `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` + Items [][]byte `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` } func (x *PagingResponse) Reset() { *x = PagingResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_pagination_v1_pagination_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pagination_v1_pagination_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PagingResponse) String() string { @@ -155,7 +150,7 @@ func (*PagingResponse) ProtoMessage() {} func (x *PagingResponse) ProtoReflect() protoreflect.Message { mi := &file_pagination_v1_pagination_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) @@ -177,7 +172,7 @@ func (x *PagingResponse) GetTotal() int32 { return 0 } -func (x *PagingResponse) GetItems() []*anypb.Any { +func (x *PagingResponse) GetItems() [][]byte { if x != nil { return x.Items } @@ -189,73 +184,96 @@ var File_pagination_v1_pagination_proto protoreflect.FileDescriptor var file_pagination_v1_pagination_proto_rawDesc = []byte{ 0x0a, 0x1e, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x19, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, - 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, - 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x67, 0x6e, 0x6f, 0x73, 0x74, - 0x69, 0x63, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x33, 0x2f, 0x61, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0xb1, 0x05, 0x0a, 0x0d, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x37, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x42, - 0x1e, 0xba, 0x47, 0x1b, 0x8a, 0x02, 0x09, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x3f, - 0x92, 0x02, 0x0c, 0xe5, 0xbd, 0x93, 0xe5, 0x89, 0x8d, 0xe9, 0xa1, 0xb5, 0xe7, 0xa0, 0x81, 0x48, - 0x00, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, 0x12, 0x46, 0x0a, 0x09, 0x70, 0x61, - 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x24, 0xba, - 0x47, 0x21, 0x8a, 0x02, 0x09, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x40, 0x92, 0x02, - 0x12, 0xe6, 0xaf, 0x8f, 0xe4, 0xb8, 0x80, 0xe9, 0xa1, 0xb5, 0xe7, 0x9a, 0x84, 0xe8, 0xa1, 0x8c, - 0xe6, 0x95, 0xb0, 0x48, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x88, - 0x01, 0x01, 0x12, 0x51, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x36, 0xba, 0x47, 0x33, 0x3a, 0x1f, 0x12, 0x1d, 0x7b, 0x22, 0x6b, 0x65, 0x79, 0x31, - 0x22, 0x3a, 0x22, 0x76, 0x61, 0x6c, 0x31, 0x22, 0x2c, 0x22, 0x6b, 0x65, 0x79, 0x32, 0x22, 0x3a, - 0x22, 0x76, 0x61, 0x6c, 0x32, 0x22, 0x7d, 0x92, 0x02, 0x0f, 0xe4, 0xb8, 0x8e, 0xe8, 0xbf, 0x87, - 0xe6, 0xbb, 0xa4, 0xe5, 0x8f, 0x82, 0xe6, 0x95, 0xb0, 0x48, 0x02, 0x52, 0x05, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x88, 0x01, 0x01, 0x12, 0x51, 0x0a, 0x08, 0x6f, 0x72, 0x5f, 0x71, 0x75, 0x65, 0x72, - 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xba, 0x47, 0x33, 0x3a, 0x1f, 0x12, 0x1d, + 0x12, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x20, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, + 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, + 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x2f, + 0x76, 0x33, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd5, 0x08, 0x0a, 0x0d, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x05, 0x42, 0x1e, 0xba, 0x47, 0x1b, 0x8a, 0x02, 0x09, 0x09, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0xf0, 0x3f, 0x92, 0x02, 0x0c, 0xe5, 0xbd, 0x93, 0xe5, 0x89, 0x8d, 0xe9, 0xa1, + 0xb5, 0xe7, 0xa0, 0x81, 0x48, 0x00, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, 0x12, + 0x46, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x05, 0x42, 0x24, 0xba, 0x47, 0x21, 0x8a, 0x02, 0x09, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x24, 0x40, 0x92, 0x02, 0x12, 0xe6, 0xaf, 0x8f, 0xe4, 0xb8, 0x80, 0xe9, 0xa1, 0xb5, 0xe7, + 0x9a, 0x84, 0xe8, 0xa1, 0x8c, 0xe6, 0x95, 0xb0, 0x48, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, + 0x53, 0x69, 0x7a, 0x65, 0x88, 0x01, 0x01, 0x12, 0xf5, 0x01, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0xd9, 0x01, 0xba, 0x47, 0xd5, 0x01, 0x3a, 0x1f, + 0x12, 0x1d, 0x7b, 0x22, 0x6b, 0x65, 0x79, 0x31, 0x22, 0x3a, 0x22, 0x76, 0x61, 0x6c, 0x31, 0x22, + 0x2c, 0x22, 0x6b, 0x65, 0x79, 0x32, 0x22, 0x3a, 0x22, 0x76, 0x61, 0x6c, 0x32, 0x22, 0x7d, 0x92, + 0x02, 0xb0, 0x01, 0x41, 0x4e, 0x44, 0xe8, 0xbf, 0x87, 0xe6, 0xbb, 0xa4, 0xe5, 0x8f, 0x82, 0xe6, + 0x95, 0xb0, 0xef, 0xbc, 0x8c, 0xe5, 0x85, 0xb6, 0xe8, 0xaf, 0xad, 0xe6, 0xb3, 0x95, 0xe4, 0xb8, + 0xba, 0x6a, 0x73, 0x6f, 0x6e, 0xe6, 0xa0, 0xbc, 0xe5, 0xbc, 0x8f, 0xe7, 0x9a, 0x84, 0xe5, 0xad, + 0x97, 0xe7, 0xac, 0xa6, 0xe4, 0xb8, 0xb2, 0xef, 0xbc, 0x8c, 0xe5, 0xa6, 0x82, 0xef, 0xbc, 0x9a, 0x7b, 0x22, 0x6b, 0x65, 0x79, 0x31, 0x22, 0x3a, 0x22, 0x76, 0x61, 0x6c, 0x31, 0x22, 0x2c, 0x22, - 0x6b, 0x65, 0x79, 0x32, 0x22, 0x3a, 0x22, 0x76, 0x61, 0x6c, 0x32, 0x22, 0x7d, 0x92, 0x02, 0x0f, - 0xe6, 0x88, 0x96, 0xe8, 0xbf, 0x87, 0xe6, 0xbb, 0xa4, 0xe5, 0x8f, 0x82, 0xe6, 0x95, 0xb0, 0x48, - 0x03, 0x52, 0x02, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x12, 0x75, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, - 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x42, 0x5a, 0xba, 0x47, 0x57, 0x3a, - 0x13, 0x12, 0x11, 0x7b, 0x22, 0x76, 0x61, 0x6c, 0x31, 0x22, 0x2c, 0x20, 0x22, 0x2d, 0x76, 0x61, - 0x6c, 0x32, 0x22, 0x7d, 0x92, 0x02, 0x3f, 0xe6, 0x8e, 0x92, 0xe5, 0xba, 0x8f, 0xe6, 0x9d, 0xa1, - 0xe4, 0xbb, 0xb6, 0xef, 0xbc, 0x8c, 0xe5, 0xad, 0x97, 0xe6, 0xae, 0xb5, 0xe5, 0x90, 0x8d, 0xe5, - 0x89, 0x8d, 0xe5, 0x8a, 0xa0, 0x27, 0x2d, 0x27, 0xe4, 0xb8, 0xba, 0xe9, 0x99, 0x8d, 0xe5, 0xba, - 0x8f, 0xef, 0xbc, 0x8c, 0xe5, 0x90, 0xa6, 0xe5, 0x88, 0x99, 0xe4, 0xb8, 0xba, 0xe5, 0x8d, 0x87, - 0xe5, 0xba, 0x8f, 0xe3, 0x80, 0x82, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, - 0x37, 0x0a, 0x09, 0x6e, 0x6f, 0x5f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x08, 0x42, 0x15, 0xba, 0x47, 0x12, 0x92, 0x02, 0x0f, 0xe6, 0x98, 0xaf, 0xe5, 0x90, 0xa6, - 0xe4, 0xb8, 0x8d, 0xe5, 0x88, 0x86, 0xe9, 0xa1, 0xb5, 0x48, 0x04, 0x52, 0x08, 0x6e, 0x6f, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x67, 0x88, 0x01, 0x01, 0x12, 0x8c, 0x01, 0x0a, 0x0a, 0x66, 0x69, 0x65, - 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x51, 0xba, 0x47, 0x4e, 0x3a, 0x16, - 0x12, 0x14, 0x69, 0x64, 0x2c, 0x72, 0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x2c, 0x75, 0x73, - 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x92, 0x02, 0x33, 0xe5, 0xad, 0x97, 0xe6, 0xae, 0xb5, 0xe6, - 0x8e, 0xa9, 0xe7, 0xa0, 0x81, 0xef, 0xbc, 0x8c, 0xe5, 0xa6, 0x82, 0xe6, 0x9e, 0x9c, 0xe4, 0xb8, - 0xba, 0xe7, 0xa9, 0xba, 0xe5, 0x88, 0x99, 0xe9, 0x80, 0x89, 0xe4, 0xb8, 0xad, 0xe6, 0x89, 0x80, - 0xe6, 0x9c, 0x89, 0xe5, 0xad, 0x97, 0xe6, 0xae, 0xb5, 0xe3, 0x80, 0x82, 0x52, 0x09, 0x66, 0x69, - 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x70, 0x61, 0x67, 0x65, - 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x42, 0x08, - 0x0a, 0x06, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x72, 0x5f, - 0x71, 0x75, 0x65, 0x72, 0x79, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x6e, 0x6f, 0x5f, 0x70, 0x61, 0x67, - 0x69, 0x6e, 0x67, 0x22, 0x52, 0x0a, 0x0e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x2a, 0x0a, 0x05, 0x69, - 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, - 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x42, 0xa5, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0f, 0x50, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x78, 0x37, 0x64, 0x6f, 0x2f, - 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x50, 0x58, 0x58, 0xaa, - 0x02, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x0a, 0x50, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x16, 0x50, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6b, 0x65, 0x79, 0x32, 0x22, 0x3a, 0x22, 0x76, 0x61, 0x6c, 0x32, 0x22, 0x7d, 0xef, 0xbc, 0x8c, + 0xe5, 0x85, 0xb7, 0xe4, 0xbd, 0x93, 0xe8, 0xaf, 0xb7, 0xe5, 0x8f, 0x82, 0xe8, 0xa7, 0x81, 0xef, + 0xbc, 0x9a, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x78, 0x37, 0x64, 0x6f, 0x2f, 0x67, 0x6f, 0x2d, 0x75, 0x74, + 0x69, 0x6c, 0x73, 0x2f, 0x74, 0x72, 0x65, 0x65, 0x2f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x65, 0x6e, + 0x74, 0x67, 0x6f, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x52, 0x45, 0x41, 0x44, 0x4d, 0x45, + 0x2e, 0x6d, 0x64, 0x48, 0x02, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x88, 0x01, 0x01, 0x12, + 0x50, 0x0a, 0x08, 0x6f, 0x72, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x35, 0xba, 0x47, 0x32, 0x3a, 0x1f, 0x12, 0x1d, 0x7b, 0x22, 0x6b, 0x65, 0x79, 0x31, + 0x22, 0x3a, 0x22, 0x76, 0x61, 0x6c, 0x31, 0x22, 0x2c, 0x22, 0x6b, 0x65, 0x79, 0x32, 0x22, 0x3a, + 0x22, 0x76, 0x61, 0x6c, 0x32, 0x22, 0x7d, 0x92, 0x02, 0x0e, 0x4f, 0x52, 0xe8, 0xbf, 0x87, 0xe6, + 0xbb, 0xa4, 0xe5, 0x8f, 0x82, 0xe6, 0x95, 0xb0, 0x48, 0x03, 0x52, 0x02, 0x6f, 0x72, 0x88, 0x01, + 0x01, 0x12, 0xb0, 0x01, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, + 0x20, 0x03, 0x28, 0x09, 0x42, 0x94, 0x01, 0xba, 0x47, 0x90, 0x01, 0x3a, 0x13, 0x12, 0x11, 0x7b, + 0x22, 0x76, 0x61, 0x6c, 0x31, 0x22, 0x2c, 0x20, 0x22, 0x2d, 0x76, 0x61, 0x6c, 0x32, 0x22, 0x7d, + 0x92, 0x02, 0x78, 0xe6, 0x8e, 0x92, 0xe5, 0xba, 0x8f, 0xe6, 0x9d, 0xa1, 0xe4, 0xbb, 0xb6, 0xef, + 0xbc, 0x8c, 0xe5, 0x85, 0xb6, 0xe8, 0xaf, 0xad, 0xe6, 0xb3, 0x95, 0xe4, 0xb8, 0xba, 0x4a, 0x53, + 0x4f, 0x4e, 0xe5, 0xad, 0x97, 0xe7, 0xac, 0xa6, 0xe4, 0xb8, 0xb2, 0xef, 0xbc, 0x8c, 0xe4, 0xbe, + 0x8b, 0xe5, 0xa6, 0x82, 0xef, 0xbc, 0x9a, 0x7b, 0x22, 0x76, 0x61, 0x6c, 0x31, 0x22, 0x2c, 0x20, + 0x22, 0x2d, 0x76, 0x61, 0x6c, 0x32, 0x22, 0x7d, 0xe3, 0x80, 0x82, 0xe5, 0xad, 0x97, 0xe6, 0xae, + 0xb5, 0xe5, 0x90, 0x8d, 0xe5, 0x89, 0x8d, 0xe5, 0x8a, 0xa0, 0x27, 0x2d, 0x27, 0xe4, 0xb8, 0xba, + 0xe9, 0x99, 0x8d, 0xe5, 0xba, 0x8f, 0xef, 0xbc, 0x8c, 0xe5, 0x90, 0xa6, 0xe5, 0x88, 0x99, 0xe4, + 0xb8, 0xba, 0xe5, 0x8d, 0x87, 0xe5, 0xba, 0x8f, 0xe3, 0x80, 0x82, 0x52, 0x07, 0x6f, 0x72, 0x64, + 0x65, 0x72, 0x42, 0x79, 0x12, 0x6b, 0x0a, 0x09, 0x6e, 0x6f, 0x5f, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x42, 0x49, 0xba, 0x47, 0x46, 0x92, 0x02, 0x43, 0xe6, + 0x98, 0xaf, 0xe5, 0x90, 0xa6, 0xe4, 0xb8, 0x8d, 0xe5, 0x88, 0x86, 0xe9, 0xa1, 0xb5, 0xef, 0xbc, + 0x8c, 0xe5, 0xa6, 0x82, 0xe6, 0x9e, 0x9c, 0xe4, 0xb8, 0xba, 0x74, 0x72, 0x75, 0x65, 0xef, 0xbc, + 0x8c, 0xe5, 0x88, 0x99, 0x70, 0x61, 0x67, 0x65, 0xe5, 0x92, 0x8c, 0x70, 0x61, 0x67, 0x65, 0x53, + 0x69, 0x7a, 0x65, 0xe5, 0x8f, 0x82, 0xe6, 0x95, 0xb0, 0xe6, 0x97, 0xa0, 0xe6, 0x95, 0x88, 0xe3, + 0x80, 0x82, 0x48, 0x04, 0x52, 0x08, 0x6e, 0x6f, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x88, 0x01, + 0x01, 0x12, 0x8d, 0x02, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, + 0x73, 0x6b, 0x42, 0xcc, 0x01, 0xba, 0x47, 0xc8, 0x01, 0x3a, 0x16, 0x12, 0x14, 0x69, 0x64, 0x2c, + 0x72, 0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x2c, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, + 0x65, 0x92, 0x02, 0xac, 0x01, 0xe5, 0xad, 0x97, 0xe6, 0xae, 0xb5, 0xe6, 0x8e, 0xa9, 0xe7, 0xa0, + 0x81, 0xef, 0xbc, 0x8c, 0xe5, 0x85, 0xb6, 0xe4, 0xbd, 0x9c, 0xe7, 0x94, 0xa8, 0xe4, 0xb8, 0xba, + 0x53, 0x45, 0x4c, 0x45, 0x43, 0x54, 0xe4, 0xb8, 0xad, 0xe7, 0x9a, 0x84, 0xe5, 0xad, 0x97, 0xe6, + 0xae, 0xb5, 0xef, 0xbc, 0x8c, 0xe5, 0x85, 0xb6, 0xe8, 0xaf, 0xad, 0xe6, 0xb3, 0x95, 0xe4, 0xb8, + 0xba, 0xe4, 0xbd, 0xbf, 0xe7, 0x94, 0xa8, 0xe9, 0x80, 0x97, 0xe5, 0x8f, 0xb7, 0xe5, 0x88, 0x86, + 0xe9, 0x9a, 0x94, 0xe5, 0xad, 0x97, 0xe6, 0xae, 0xb5, 0xe5, 0x90, 0x8d, 0xef, 0xbc, 0x8c, 0xe4, + 0xbe, 0x8b, 0xe5, 0xa6, 0x82, 0xef, 0xbc, 0x9a, 0x69, 0x64, 0x2c, 0x72, 0x65, 0x61, 0x6c, 0x4e, + 0x61, 0x6d, 0x65, 0x2c, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0xe3, 0x80, 0x82, 0xe5, + 0xa6, 0x82, 0xe6, 0x9e, 0x9c, 0xe4, 0xb8, 0xba, 0xe7, 0xa9, 0xba, 0xe5, 0x88, 0x99, 0xe9, 0x80, + 0x89, 0xe4, 0xb8, 0xad, 0xe6, 0x89, 0x80, 0xe6, 0x9c, 0x89, 0xe5, 0xad, 0x97, 0xe6, 0xae, 0xb5, + 0xef, 0xbc, 0x8c, 0xe5, 0x8d, 0xb3, 0x53, 0x45, 0x4c, 0x45, 0x43, 0x54, 0x20, 0x2a, 0xe3, 0x80, + 0x82, 0x48, 0x05, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x88, 0x01, + 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x72, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x42, + 0x0c, 0x0a, 0x0a, 0x5f, 0x6e, 0x6f, 0x5f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x42, 0x0d, 0x0a, + 0x0b, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x22, 0x3c, 0x0a, 0x0e, + 0x50, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0c, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x42, 0xa5, 0x01, 0x0a, 0x0e, 0x63, + 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0f, 0x50, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x78, 0x37, + 0x64, 0x6f, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, + 0x72, 0x61, 0x70, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x50, + 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xca, + 0x02, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x16, 0x50, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -271,20 +289,18 @@ func file_pagination_v1_pagination_proto_rawDescGZIP() []byte { } var file_pagination_v1_pagination_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_pagination_v1_pagination_proto_goTypes = []interface{}{ +var file_pagination_v1_pagination_proto_goTypes = []any{ (*PagingRequest)(nil), // 0: pagination.PagingRequest (*PagingResponse)(nil), // 1: pagination.PagingResponse (*fieldmaskpb.FieldMask)(nil), // 2: google.protobuf.FieldMask - (*anypb.Any)(nil), // 3: google.protobuf.Any } var file_pagination_v1_pagination_proto_depIdxs = []int32{ 2, // 0: pagination.PagingRequest.field_mask:type_name -> google.protobuf.FieldMask - 3, // 1: pagination.PagingResponse.items:type_name -> google.protobuf.Any - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name } func init() { file_pagination_v1_pagination_proto_init() } @@ -292,33 +308,7 @@ func file_pagination_v1_pagination_proto_init() { if File_pagination_v1_pagination_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_pagination_v1_pagination_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PagingRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pagination_v1_pagination_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PagingResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_pagination_v1_pagination_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_pagination_v1_pagination_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/api/protos/pagination/v1/pagination.proto b/api/protos/pagination/v1/pagination.proto index 74a6b10..3bf0852 100644 --- a/api/protos/pagination/v1/pagination.proto +++ b/api/protos/pagination/v1/pagination.proto @@ -4,7 +4,6 @@ package pagination; option go_package = "github.com/tx7do/kratos-bootstrap/gen/api/go/pagination/v1;pagination"; -import "google/protobuf/any.proto"; import "google/protobuf/field_mask.proto"; import "gnostic/openapi/v3/annotations.proto"; @@ -19,7 +18,7 @@ message PagingRequest { } ]; - // 每页的行数 + // 每一页的行数 optional int32 page_size = 2 [ json_name = "pageSize", (gnostic.openapi.v3.property) = { @@ -28,44 +27,46 @@ message PagingRequest { } ]; - // 与过滤参数 + // AND过滤参数,其语法为json格式的字符串,如:{"key1":"val1","key2":"val2"},具体请参见:https://github.com/tx7do/go-utils/tree/main/entgo/query/README.md optional string query = 3 [ json_name = "query", (gnostic.openapi.v3.property) = { - description: "与过滤参数", + description: "AND过滤参数,其语法为json格式的字符串,如:{\"key1\":\"val1\",\"key2\":\"val2\"},具体请参见:https://github.com/tx7do/go-utils/tree/main/entgo/query/README.md", example: {yaml: "{\"key1\":\"val1\",\"key2\":\"val2\"}"} } ]; - // 或过滤参数 + // OR过滤参数,语法同AND过滤参数。 optional string or_query = 4 [ json_name = "or", (gnostic.openapi.v3.property) = { - description: "或过滤参数", + description: "OR过滤参数", example: {yaml: "{\"key1\":\"val1\",\"key2\":\"val2\"}"} } ]; - // 排序条件 + // 排序条件,其语法为JSON字符串,例如:{"val1", "-val2"}。字段名前加'-'为降序,否则为升序。 repeated string order_by = 5 [ json_name = "orderBy", (gnostic.openapi.v3.property) = { - description: "排序条件,字段名前加'-'为降序,否则为升序。" + description: "排序条件,其语法为JSON字符串,例如:{\"val1\", \"-val2\"}。字段名前加'-'为降序,否则为升序。" example: {yaml: "{\"val1\", \"-val2\"}"} } ]; - // 是否不分页 + // 是否不分页,如果为true,则page和pageSize参数无效。 optional bool no_paging = 6 [ - json_name = "nopaging", - (gnostic.openapi.v3.property) = {description: "是否不分页"} + json_name = "noPaging", + (gnostic.openapi.v3.property) = { + description: "是否不分页,如果为true,则page和pageSize参数无效。" + } ]; - // 字段掩码 - google.protobuf.FieldMask field_mask = 7 [ + // 字段掩码,其作用为SELECT中的字段,其语法为使用逗号分隔字段名,例如:id,realName,userName。如果为空则选中所有字段,即SELECT *。 + optional google.protobuf.FieldMask field_mask = 7 [ json_name = "fieldMask", (gnostic.openapi.v3.property) = { - description: "字段掩码,如果为空则选中所有字段。", + description: "字段掩码,其作用为SELECT中的字段,其语法为使用逗号分隔字段名,例如:id,realName,userName。如果为空则选中所有字段,即SELECT *。", example: {yaml : "id,realName,userName"} } ]; @@ -77,5 +78,5 @@ message PagingResponse { int32 total = 1; // 分页数据 - repeated google.protobuf.Any items = 2; + repeated bytes items = 2; } diff --git a/tag.bat b/tag.bat index 8c88693..f581c96 100644 --- a/tag.bat +++ b/tag.bat @@ -1,4 +1,4 @@ -git tag api/v0.0.9 --force +git tag api/v0.0.10 --force git tag utils/v0.1.2 --force