287 lines
9.3 KiB
Go
287 lines
9.3 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.6
|
|
// protoc (unknown)
|
|
// source: conf/v1/kratos_conf_client.proto
|
|
|
|
package v1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
durationpb "google.golang.org/protobuf/types/known/durationpb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// 客户端
|
|
type Client struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Rest *Client_REST `protobuf:"bytes,1,opt,name=rest,proto3,oneof" json:"rest,omitempty"` // REST服务
|
|
Grpc *Client_GRPC `protobuf:"bytes,2,opt,name=grpc,proto3,oneof" json:"grpc,omitempty"` // gRPC服务
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Client) Reset() {
|
|
*x = Client{}
|
|
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 {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Client) ProtoMessage() {}
|
|
|
|
func (x *Client) ProtoReflect() protoreflect.Message {
|
|
mi := &file_conf_v1_kratos_conf_client_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Client.ProtoReflect.Descriptor instead.
|
|
func (*Client) Descriptor() ([]byte, []int) {
|
|
return file_conf_v1_kratos_conf_client_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Client) GetRest() *Client_REST {
|
|
if x != nil {
|
|
return x.Rest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Client) GetGrpc() *Client_GRPC {
|
|
if x != nil {
|
|
return x.Grpc
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// REST
|
|
type Client_REST struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Timeout *durationpb.Duration `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"` // 超时时间
|
|
Middleware *Middleware `protobuf:"bytes,2,opt,name=middleware,proto3" json:"middleware,omitempty"` // 中间件
|
|
Tls *TLS `protobuf:"bytes,3,opt,name=tls,proto3" json:"tls,omitempty"` // TLS配置
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Client_REST) Reset() {
|
|
*x = Client_REST{}
|
|
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 {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Client_REST) ProtoMessage() {}
|
|
|
|
func (x *Client_REST) ProtoReflect() protoreflect.Message {
|
|
mi := &file_conf_v1_kratos_conf_client_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Client_REST.ProtoReflect.Descriptor instead.
|
|
func (*Client_REST) Descriptor() ([]byte, []int) {
|
|
return file_conf_v1_kratos_conf_client_proto_rawDescGZIP(), []int{0, 0}
|
|
}
|
|
|
|
func (x *Client_REST) GetTimeout() *durationpb.Duration {
|
|
if x != nil {
|
|
return x.Timeout
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Client_REST) GetMiddleware() *Middleware {
|
|
if x != nil {
|
|
return x.Middleware
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Client_REST) GetTls() *TLS {
|
|
if x != nil {
|
|
return x.Tls
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// gPRC
|
|
type Client_GRPC struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Timeout *durationpb.Duration `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"` // 超时时间
|
|
Middleware *Middleware `protobuf:"bytes,2,opt,name=middleware,proto3" json:"middleware,omitempty"` // 中间件
|
|
Tls *TLS `protobuf:"bytes,3,opt,name=tls,proto3" json:"tls,omitempty"` // TLS配置
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Client_GRPC) Reset() {
|
|
*x = Client_GRPC{}
|
|
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 {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Client_GRPC) ProtoMessage() {}
|
|
|
|
func (x *Client_GRPC) ProtoReflect() protoreflect.Message {
|
|
mi := &file_conf_v1_kratos_conf_client_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Client_GRPC.ProtoReflect.Descriptor instead.
|
|
func (*Client_GRPC) Descriptor() ([]byte, []int) {
|
|
return file_conf_v1_kratos_conf_client_proto_rawDescGZIP(), []int{0, 1}
|
|
}
|
|
|
|
func (x *Client_GRPC) GetTimeout() *durationpb.Duration {
|
|
if x != nil {
|
|
return x.Timeout
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Client_GRPC) GetMiddleware() *Middleware {
|
|
if x != nil {
|
|
return x.Middleware
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Client_GRPC) GetTls() *TLS {
|
|
if x != nil {
|
|
return x.Tls
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_conf_v1_kratos_conf_client_proto protoreflect.FileDescriptor
|
|
|
|
const file_conf_v1_kratos_conf_client_proto_rawDesc = "" +
|
|
"\n" +
|
|
" conf/v1/kratos_conf_client.proto\x12\x04conf\x1a\x1egoogle/protobuf/duration.proto\x1a$conf/v1/kratos_conf_middleware.proto\x1a\x1dconf/v1/kratos_conf_tls.proto\"\x8c\x03\n" +
|
|
"\x06Client\x12*\n" +
|
|
"\x04rest\x18\x01 \x01(\v2\x11.conf.Client.RESTH\x00R\x04rest\x88\x01\x01\x12*\n" +
|
|
"\x04grpc\x18\x02 \x01(\v2\x11.conf.Client.GRPCH\x01R\x04grpc\x88\x01\x01\x1a\x8a\x01\n" +
|
|
"\x04REST\x123\n" +
|
|
"\atimeout\x18\x01 \x01(\v2\x19.google.protobuf.DurationR\atimeout\x120\n" +
|
|
"\n" +
|
|
"middleware\x18\x02 \x01(\v2\x10.conf.MiddlewareR\n" +
|
|
"middleware\x12\x1b\n" +
|
|
"\x03tls\x18\x03 \x01(\v2\t.conf.TLSR\x03tls\x1a\x8a\x01\n" +
|
|
"\x04GRPC\x123\n" +
|
|
"\atimeout\x18\x01 \x01(\v2\x19.google.protobuf.DurationR\atimeout\x120\n" +
|
|
"\n" +
|
|
"middleware\x18\x02 \x01(\v2\x10.conf.MiddlewareR\n" +
|
|
"middleware\x12\x1b\n" +
|
|
"\x03tls\x18\x03 \x01(\v2\t.conf.TLSR\x03tlsB\a\n" +
|
|
"\x05_restB\a\n" +
|
|
"\x05_grpcB\x87\x01\n" +
|
|
"\bcom.confB\x15KratosConfClientProtoP\x01Z4github.com/tx7do/kratos-bootstrap/api/gen/go/conf/v1\xa2\x02\x03CXX\xaa\x02\x04Conf\xca\x02\x04Conf\xe2\x02\x10Conf\\GPBMetadata\xea\x02\x04Confb\x06proto3"
|
|
|
|
var (
|
|
file_conf_v1_kratos_conf_client_proto_rawDescOnce sync.Once
|
|
file_conf_v1_kratos_conf_client_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_conf_v1_kratos_conf_client_proto_rawDescGZIP() []byte {
|
|
file_conf_v1_kratos_conf_client_proto_rawDescOnce.Do(func() {
|
|
file_conf_v1_kratos_conf_client_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_client_proto_rawDesc), len(file_conf_v1_kratos_conf_client_proto_rawDesc)))
|
|
})
|
|
return file_conf_v1_kratos_conf_client_proto_rawDescData
|
|
}
|
|
|
|
var file_conf_v1_kratos_conf_client_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
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
|
|
(*durationpb.Duration)(nil), // 3: google.protobuf.Duration
|
|
(*Middleware)(nil), // 4: conf.Middleware
|
|
(*TLS)(nil), // 5: conf.TLS
|
|
}
|
|
var file_conf_v1_kratos_conf_client_proto_depIdxs = []int32{
|
|
1, // 0: conf.Client.rest:type_name -> conf.Client.REST
|
|
2, // 1: conf.Client.grpc:type_name -> conf.Client.GRPC
|
|
3, // 2: conf.Client.REST.timeout:type_name -> google.protobuf.Duration
|
|
4, // 3: conf.Client.REST.middleware:type_name -> conf.Middleware
|
|
5, // 4: conf.Client.REST.tls:type_name -> conf.TLS
|
|
3, // 5: conf.Client.GRPC.timeout:type_name -> google.protobuf.Duration
|
|
4, // 6: conf.Client.GRPC.middleware:type_name -> conf.Middleware
|
|
5, // 7: conf.Client.GRPC.tls:type_name -> conf.TLS
|
|
8, // [8:8] is the sub-list for method output_type
|
|
8, // [8:8] is the sub-list for method input_type
|
|
8, // [8:8] is the sub-list for extension type_name
|
|
8, // [8:8] is the sub-list for extension extendee
|
|
0, // [0:8] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_conf_v1_kratos_conf_client_proto_init() }
|
|
func file_conf_v1_kratos_conf_client_proto_init() {
|
|
if File_conf_v1_kratos_conf_client_proto != nil {
|
|
return
|
|
}
|
|
file_conf_v1_kratos_conf_middleware_proto_init()
|
|
file_conf_v1_kratos_conf_tls_proto_init()
|
|
file_conf_v1_kratos_conf_client_proto_msgTypes[0].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_client_proto_rawDesc), len(file_conf_v1_kratos_conf_client_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_conf_v1_kratos_conf_client_proto_goTypes,
|
|
DependencyIndexes: file_conf_v1_kratos_conf_client_proto_depIdxs,
|
|
MessageInfos: file_conf_v1_kratos_conf_client_proto_msgTypes,
|
|
}.Build()
|
|
File_conf_v1_kratos_conf_client_proto = out.File
|
|
file_conf_v1_kratos_conf_client_proto_goTypes = nil
|
|
file_conf_v1_kratos_conf_client_proto_depIdxs = nil
|
|
}
|