// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v4.25.0 // source: conf/conf.proto package conf 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 Bootstrap struct { state protoimpl.MessageState `protogen:"open.v1"` Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Bootstrap) Reset() { *x = Bootstrap{} mi := &file_conf_conf_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Bootstrap) String() string { return protoimpl.X.MessageStringOf(x) } func (*Bootstrap) ProtoMessage() {} func (x *Bootstrap) ProtoReflect() protoreflect.Message { mi := &file_conf_conf_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 Bootstrap.ProtoReflect.Descriptor instead. func (*Bootstrap) Descriptor() ([]byte, []int) { return file_conf_conf_proto_rawDescGZIP(), []int{0} } func (x *Bootstrap) GetServer() *Server { if x != nil { return x.Server } return nil } func (x *Bootstrap) GetData() *Data { if x != nil { return x.Data } return nil } type Server struct { state protoimpl.MessageState `protogen:"open.v1"` Http *Server_HTTP `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"` Grpc *Server_GRPC `protobuf:"bytes,2,opt,name=grpc,proto3" json:"grpc,omitempty"` Websocket *Server_WebSocket `protobuf:"bytes,3,opt,name=websocket,proto3" json:"websocket,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Server) Reset() { *x = Server{} mi := &file_conf_conf_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Server) String() string { return protoimpl.X.MessageStringOf(x) } func (*Server) ProtoMessage() {} func (x *Server) ProtoReflect() protoreflect.Message { mi := &file_conf_conf_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 Server.ProtoReflect.Descriptor instead. func (*Server) Descriptor() ([]byte, []int) { return file_conf_conf_proto_rawDescGZIP(), []int{1} } func (x *Server) GetHttp() *Server_HTTP { if x != nil { return x.Http } return nil } func (x *Server) GetGrpc() *Server_GRPC { if x != nil { return x.Grpc } return nil } func (x *Server) GetWebsocket() *Server_WebSocket { if x != nil { return x.Websocket } return nil } type Data struct { state protoimpl.MessageState `protogen:"open.v1"` Kafka *Data_Kafka `protobuf:"bytes,1,opt,name=kafka,proto3" json:"kafka,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Data) Reset() { *x = Data{} mi := &file_conf_conf_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Data) String() string { return protoimpl.X.MessageStringOf(x) } func (*Data) ProtoMessage() {} func (x *Data) ProtoReflect() protoreflect.Message { mi := &file_conf_conf_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 Data.ProtoReflect.Descriptor instead. func (*Data) Descriptor() ([]byte, []int) { return file_conf_conf_proto_rawDescGZIP(), []int{2} } func (x *Data) GetKafka() *Data_Kafka { if x != nil { return x.Kafka } return nil } type Server_HTTP struct { state protoimpl.MessageState `protogen:"open.v1"` Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Server_HTTP) Reset() { *x = Server_HTTP{} mi := &file_conf_conf_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Server_HTTP) String() string { return protoimpl.X.MessageStringOf(x) } func (*Server_HTTP) ProtoMessage() {} func (x *Server_HTTP) ProtoReflect() protoreflect.Message { mi := &file_conf_conf_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Server_HTTP.ProtoReflect.Descriptor instead. func (*Server_HTTP) Descriptor() ([]byte, []int) { return file_conf_conf_proto_rawDescGZIP(), []int{1, 0} } func (x *Server_HTTP) GetNetwork() string { if x != nil { return x.Network } return "" } func (x *Server_HTTP) GetAddr() string { if x != nil { return x.Addr } return "" } func (x *Server_HTTP) GetTimeout() *durationpb.Duration { if x != nil { return x.Timeout } return nil } type Server_GRPC struct { state protoimpl.MessageState `protogen:"open.v1"` Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Server_GRPC) Reset() { *x = Server_GRPC{} mi := &file_conf_conf_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Server_GRPC) String() string { return protoimpl.X.MessageStringOf(x) } func (*Server_GRPC) ProtoMessage() {} func (x *Server_GRPC) ProtoReflect() protoreflect.Message { mi := &file_conf_conf_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Server_GRPC.ProtoReflect.Descriptor instead. func (*Server_GRPC) Descriptor() ([]byte, []int) { return file_conf_conf_proto_rawDescGZIP(), []int{1, 1} } func (x *Server_GRPC) GetNetwork() string { if x != nil { return x.Network } return "" } func (x *Server_GRPC) GetAddr() string { if x != nil { return x.Addr } return "" } func (x *Server_GRPC) GetTimeout() *durationpb.Duration { if x != nil { return x.Timeout } return nil } type Server_WebSocket struct { state protoimpl.MessageState `protogen:"open.v1"` Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Server_WebSocket) Reset() { *x = Server_WebSocket{} mi := &file_conf_conf_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Server_WebSocket) String() string { return protoimpl.X.MessageStringOf(x) } func (*Server_WebSocket) ProtoMessage() {} func (x *Server_WebSocket) ProtoReflect() protoreflect.Message { mi := &file_conf_conf_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Server_WebSocket.ProtoReflect.Descriptor instead. func (*Server_WebSocket) Descriptor() ([]byte, []int) { return file_conf_conf_proto_rawDescGZIP(), []int{1, 2} } func (x *Server_WebSocket) GetAddr() string { if x != nil { return x.Addr } return "" } func (x *Server_WebSocket) GetPath() string { if x != nil { return x.Path } return "" } type Data_Kafka struct { state protoimpl.MessageState `protogen:"open.v1"` Brokers []string `protobuf:"bytes,1,rep,name=brokers,proto3" json:"brokers,omitempty"` Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` Partition int64 `protobuf:"varint,3,opt,name=partition,proto3" json:"partition,omitempty"` GroupId string `protobuf:"bytes,4,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Data_Kafka) Reset() { *x = Data_Kafka{} mi := &file_conf_conf_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Data_Kafka) String() string { return protoimpl.X.MessageStringOf(x) } func (*Data_Kafka) ProtoMessage() {} func (x *Data_Kafka) ProtoReflect() protoreflect.Message { mi := &file_conf_conf_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Data_Kafka.ProtoReflect.Descriptor instead. func (*Data_Kafka) Descriptor() ([]byte, []int) { return file_conf_conf_proto_rawDescGZIP(), []int{2, 0} } func (x *Data_Kafka) GetBrokers() []string { if x != nil { return x.Brokers } return nil } func (x *Data_Kafka) GetTopic() string { if x != nil { return x.Topic } return "" } func (x *Data_Kafka) GetPartition() int64 { if x != nil { return x.Partition } return 0 } func (x *Data_Kafka) GetGroupId() string { if x != nil { return x.GroupId } return "" } var File_conf_conf_proto protoreflect.FileDescriptor const file_conf_conf_proto_rawDesc = "" + "\n" + "\x0fconf/conf.proto\x12\n" + "kratos.api\x1a\x1egoogle/protobuf/duration.proto\"]\n" + "\tBootstrap\x12*\n" + "\x06server\x18\x01 \x01(\v2\x12.kratos.api.ServerR\x06server\x12$\n" + "\x04data\x18\x02 \x01(\v2\x10.kratos.api.DataR\x04data\"\xa9\x03\n" + "\x06Server\x12+\n" + "\x04http\x18\x01 \x01(\v2\x17.kratos.api.Server.HTTPR\x04http\x12+\n" + "\x04grpc\x18\x02 \x01(\v2\x17.kratos.api.Server.GRPCR\x04grpc\x12:\n" + "\twebsocket\x18\x03 \x01(\v2\x1c.kratos.api.Server.WebSocketR\twebsocket\x1ai\n" + "\x04HTTP\x12\x18\n" + "\anetwork\x18\x01 \x01(\tR\anetwork\x12\x12\n" + "\x04addr\x18\x02 \x01(\tR\x04addr\x123\n" + "\atimeout\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\atimeout\x1ai\n" + "\x04GRPC\x12\x18\n" + "\anetwork\x18\x01 \x01(\tR\anetwork\x12\x12\n" + "\x04addr\x18\x02 \x01(\tR\x04addr\x123\n" + "\atimeout\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\atimeout\x1a3\n" + "\tWebSocket\x12\x12\n" + "\x04addr\x18\x01 \x01(\tR\x04addr\x12\x12\n" + "\x04path\x18\x02 \x01(\tR\x04path\"\xa6\x01\n" + "\x04Data\x12,\n" + "\x05kafka\x18\x01 \x01(\v2\x16.kratos.api.Data.KafkaR\x05kafka\x1ap\n" + "\x05Kafka\x12\x18\n" + "\abrokers\x18\x01 \x03(\tR\abrokers\x12\x14\n" + "\x05topic\x18\x02 \x01(\tR\x05topic\x12\x1c\n" + "\tpartition\x18\x03 \x01(\x03R\tpartition\x12\x19\n" + "\bgroup_id\x18\x04 \x01(\tR\agroupIdB/Z-ky-go-kratos/app/websocket/internal/conf;confb\x06proto3" var ( file_conf_conf_proto_rawDescOnce sync.Once file_conf_conf_proto_rawDescData []byte ) func file_conf_conf_proto_rawDescGZIP() []byte { file_conf_conf_proto_rawDescOnce.Do(func() { file_conf_conf_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_conf_proto_rawDesc), len(file_conf_conf_proto_rawDesc))) }) return file_conf_conf_proto_rawDescData } var file_conf_conf_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_conf_conf_proto_goTypes = []any{ (*Bootstrap)(nil), // 0: kratos.api.Bootstrap (*Server)(nil), // 1: kratos.api.Server (*Data)(nil), // 2: kratos.api.Data (*Server_HTTP)(nil), // 3: kratos.api.Server.HTTP (*Server_GRPC)(nil), // 4: kratos.api.Server.GRPC (*Server_WebSocket)(nil), // 5: kratos.api.Server.WebSocket (*Data_Kafka)(nil), // 6: kratos.api.Data.Kafka (*durationpb.Duration)(nil), // 7: google.protobuf.Duration } var file_conf_conf_proto_depIdxs = []int32{ 1, // 0: kratos.api.Bootstrap.server:type_name -> kratos.api.Server 2, // 1: kratos.api.Bootstrap.data:type_name -> kratos.api.Data 3, // 2: kratos.api.Server.http:type_name -> kratos.api.Server.HTTP 4, // 3: kratos.api.Server.grpc:type_name -> kratos.api.Server.GRPC 5, // 4: kratos.api.Server.websocket:type_name -> kratos.api.Server.WebSocket 6, // 5: kratos.api.Data.kafka:type_name -> kratos.api.Data.Kafka 7, // 6: kratos.api.Server.HTTP.timeout:type_name -> google.protobuf.Duration 7, // 7: kratos.api.Server.GRPC.timeout:type_name -> google.protobuf.Duration 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_conf_proto_init() } func file_conf_conf_proto_init() { if File_conf_conf_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_conf_proto_rawDesc), len(file_conf_conf_proto_rawDesc)), NumEnums: 0, NumMessages: 7, NumExtensions: 0, NumServices: 0, }, GoTypes: file_conf_conf_proto_goTypes, DependencyIndexes: file_conf_conf_proto_depIdxs, MessageInfos: file_conf_conf_proto_msgTypes, }.Build() File_conf_conf_proto = out.File file_conf_conf_proto_goTypes = nil file_conf_conf_proto_depIdxs = nil }