145 lines
4.2 KiB
Go
145 lines
4.2 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// versions:
|
||
|
// protoc-gen-go v1.36.6
|
||
|
// protoc v6.31.0
|
||
|
// source: client.proto
|
||
|
|
||
|
package pb
|
||
|
|
||
|
import (
|
||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
|
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 ClientMsg struct {
|
||
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||
|
ServiceId ServiceTypeId `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3,enum=pb.ServiceTypeId" json:"service_id,omitempty"` // 服务id
|
||
|
MsgId int32 `protobuf:"varint,2,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty"` // 消息id
|
||
|
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // 消息体
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
}
|
||
|
|
||
|
func (x *ClientMsg) Reset() {
|
||
|
*x = ClientMsg{}
|
||
|
mi := &file_client_proto_msgTypes[0]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
|
||
|
func (x *ClientMsg) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*ClientMsg) ProtoMessage() {}
|
||
|
|
||
|
func (x *ClientMsg) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_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 ClientMsg.ProtoReflect.Descriptor instead.
|
||
|
func (*ClientMsg) Descriptor() ([]byte, []int) {
|
||
|
return file_client_proto_rawDescGZIP(), []int{0}
|
||
|
}
|
||
|
|
||
|
func (x *ClientMsg) GetServiceId() ServiceTypeId {
|
||
|
if x != nil {
|
||
|
return x.ServiceId
|
||
|
}
|
||
|
return ServiceTypeId_STI_Unknown
|
||
|
}
|
||
|
|
||
|
func (x *ClientMsg) GetMsgId() int32 {
|
||
|
if x != nil {
|
||
|
return x.MsgId
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *ClientMsg) GetData() []byte {
|
||
|
if x != nil {
|
||
|
return x.Data
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
var File_client_proto protoreflect.FileDescriptor
|
||
|
|
||
|
const file_client_proto_rawDesc = "" +
|
||
|
"\n" +
|
||
|
"\fclient.proto\x12\x02pb\x1a\rservice.proto\"h\n" +
|
||
|
"\tClientMsg\x120\n" +
|
||
|
"\n" +
|
||
|
"service_id\x18\x01 \x01(\x0e2\x11.pb.ServiceTypeIdR\tserviceId\x12\x15\n" +
|
||
|
"\x06msg_id\x18\x02 \x01(\x05R\x05msgId\x12\x12\n" +
|
||
|
"\x04data\x18\x03 \x01(\fR\x04dataB\x11Z\x0fcommon/proto/pbb\x06proto3"
|
||
|
|
||
|
var (
|
||
|
file_client_proto_rawDescOnce sync.Once
|
||
|
file_client_proto_rawDescData []byte
|
||
|
)
|
||
|
|
||
|
func file_client_proto_rawDescGZIP() []byte {
|
||
|
file_client_proto_rawDescOnce.Do(func() {
|
||
|
file_client_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_client_proto_rawDesc), len(file_client_proto_rawDesc)))
|
||
|
})
|
||
|
return file_client_proto_rawDescData
|
||
|
}
|
||
|
|
||
|
var file_client_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||
|
var file_client_proto_goTypes = []any{
|
||
|
(*ClientMsg)(nil), // 0: pb.ClientMsg
|
||
|
(ServiceTypeId)(0), // 1: pb.ServiceTypeId
|
||
|
}
|
||
|
var file_client_proto_depIdxs = []int32{
|
||
|
1, // 0: pb.ClientMsg.service_id:type_name -> pb.ServiceTypeId
|
||
|
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_client_proto_init() }
|
||
|
func file_client_proto_init() {
|
||
|
if File_client_proto != nil {
|
||
|
return
|
||
|
}
|
||
|
file_service_proto_init()
|
||
|
type x struct{}
|
||
|
out := protoimpl.TypeBuilder{
|
||
|
File: protoimpl.DescBuilder{
|
||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_client_proto_rawDesc), len(file_client_proto_rawDesc)),
|
||
|
NumEnums: 0,
|
||
|
NumMessages: 1,
|
||
|
NumExtensions: 0,
|
||
|
NumServices: 0,
|
||
|
},
|
||
|
GoTypes: file_client_proto_goTypes,
|
||
|
DependencyIndexes: file_client_proto_depIdxs,
|
||
|
MessageInfos: file_client_proto_msgTypes,
|
||
|
}.Build()
|
||
|
File_client_proto = out.File
|
||
|
file_client_proto_goTypes = nil
|
||
|
file_client_proto_depIdxs = nil
|
||
|
}
|