// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v3.5.1 // source: wx_msg.proto package wxproto 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 WxRecvMsg struct { state protoimpl.MessageState `protogen:"open.v1"` RecvType int32 `protobuf:"varint,1,opt,name=recv_type,json=recvType,proto3" json:"recv_type,omitempty"` Wrapper *WxRecvMsgWrapper `protobuf:"bytes,2,opt,name=wrapper,proto3" json:"wrapper,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *WxRecvMsg) Reset() { *x = WxRecvMsg{} mi := &file_wx_msg_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *WxRecvMsg) String() string { return protoimpl.X.MessageStringOf(x) } func (*WxRecvMsg) ProtoMessage() {} func (x *WxRecvMsg) ProtoReflect() protoreflect.Message { mi := &file_wx_msg_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 WxRecvMsg.ProtoReflect.Descriptor instead. func (*WxRecvMsg) Descriptor() ([]byte, []int) { return file_wx_msg_proto_rawDescGZIP(), []int{0} } func (x *WxRecvMsg) GetRecvType() int32 { if x != nil { return x.RecvType } return 0 } func (x *WxRecvMsg) GetWrapper() *WxRecvMsgWrapper { if x != nil { return x.Wrapper } return nil } // 第二层 type WxRecvMsgWrapper struct { state protoimpl.MessageState `protogen:"open.v1"` MsgType int32 `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3" json:"msg_type,omitempty"` Body *WxRecvMsgBody `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *WxRecvMsgWrapper) Reset() { *x = WxRecvMsgWrapper{} mi := &file_wx_msg_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *WxRecvMsgWrapper) String() string { return protoimpl.X.MessageStringOf(x) } func (*WxRecvMsgWrapper) ProtoMessage() {} func (x *WxRecvMsgWrapper) ProtoReflect() protoreflect.Message { mi := &file_wx_msg_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 WxRecvMsgWrapper.ProtoReflect.Descriptor instead. func (*WxRecvMsgWrapper) Descriptor() ([]byte, []int) { return file_wx_msg_proto_rawDescGZIP(), []int{1} } func (x *WxRecvMsgWrapper) GetMsgType() int32 { if x != nil { return x.MsgType } return 0 } func (x *WxRecvMsgWrapper) GetBody() *WxRecvMsgBody { if x != nil { return x.Body } return nil } // 第三层: 包含消息类型 type WxRecvMsgBody struct { state protoimpl.MessageState `protogen:"open.v1"` MsgType int32 `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3" json:"msg_type,omitempty"` Content *WxRecvMsgContent `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *WxRecvMsgBody) Reset() { *x = WxRecvMsgBody{} mi := &file_wx_msg_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *WxRecvMsgBody) String() string { return protoimpl.X.MessageStringOf(x) } func (*WxRecvMsgBody) ProtoMessage() {} func (x *WxRecvMsgBody) ProtoReflect() protoreflect.Message { mi := &file_wx_msg_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 WxRecvMsgBody.ProtoReflect.Descriptor instead. func (*WxRecvMsgBody) Descriptor() ([]byte, []int) { return file_wx_msg_proto_rawDescGZIP(), []int{2} } func (x *WxRecvMsgBody) GetMsgType() int32 { if x != nil { return x.MsgType } return 0 } func (x *WxRecvMsgBody) GetContent() *WxRecvMsgContent { if x != nil { return x.Content } return nil } // 第四层 type WxRecvMsgContent struct { state protoimpl.MessageState `protogen:"open.v1"` DataLen int32 `protobuf:"varint,1,opt,name=data_len,json=dataLen,proto3" json:"data_len,omitempty"` Data *WxRecvMsgData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *WxRecvMsgContent) Reset() { *x = WxRecvMsgContent{} mi := &file_wx_msg_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *WxRecvMsgContent) String() string { return protoimpl.X.MessageStringOf(x) } func (*WxRecvMsgContent) ProtoMessage() {} func (x *WxRecvMsgContent) ProtoReflect() protoreflect.Message { mi := &file_wx_msg_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 WxRecvMsgContent.ProtoReflect.Descriptor instead. func (*WxRecvMsgContent) Descriptor() ([]byte, []int) { return file_wx_msg_proto_rawDescGZIP(), []int{3} } func (x *WxRecvMsgContent) GetDataLen() int32 { if x != nil { return x.DataLen } return 0 } func (x *WxRecvMsgContent) GetData() *WxRecvMsgData { if x != nil { return x.Data } return nil } // 第五层: 实际消息数据 type WxRecvMsgData struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Sender *WxString `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` Receiver *WxString `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` Flag int32 `protobuf:"varint,4,opt,name=flag,proto3" json:"flag,omitempty"` Content *WxString `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` ContentType int32 `protobuf:"varint,6,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` SubType int32 `protobuf:"varint,7,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"` MediaContent []byte `protobuf:"bytes,8,opt,name=media_content,json=mediaContent,proto3" json:"media_content,omitempty"` CreateTime int64 `protobuf:"varint,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` Xml []byte `protobuf:"bytes,10,opt,name=xml,proto3" json:"xml,omitempty"` UserContent []byte `protobuf:"bytes,11,opt,name=user_content,json=userContent,proto3" json:"user_content,omitempty"` MsgId int64 `protobuf:"varint,12,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty"` MsgOrder int64 `protobuf:"varint,13,opt,name=msg_order,json=msgOrder,proto3" json:"msg_order,omitempty"` ExtraXml []byte `protobuf:"bytes,14,opt,name=extra_xml,json=extraXml,proto3" json:"extra_xml,omitempty"` Unknown15 int32 `protobuf:"varint,15,opt,name=unknown15,proto3" json:"unknown15,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *WxRecvMsgData) Reset() { *x = WxRecvMsgData{} mi := &file_wx_msg_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *WxRecvMsgData) String() string { return protoimpl.X.MessageStringOf(x) } func (*WxRecvMsgData) ProtoMessage() {} func (x *WxRecvMsgData) ProtoReflect() protoreflect.Message { mi := &file_wx_msg_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 WxRecvMsgData.ProtoReflect.Descriptor instead. func (*WxRecvMsgData) Descriptor() ([]byte, []int) { return file_wx_msg_proto_rawDescGZIP(), []int{4} } func (x *WxRecvMsgData) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *WxRecvMsgData) GetSender() *WxString { if x != nil { return x.Sender } return nil } func (x *WxRecvMsgData) GetReceiver() *WxString { if x != nil { return x.Receiver } return nil } func (x *WxRecvMsgData) GetFlag() int32 { if x != nil { return x.Flag } return 0 } func (x *WxRecvMsgData) GetContent() *WxString { if x != nil { return x.Content } return nil } func (x *WxRecvMsgData) GetContentType() int32 { if x != nil { return x.ContentType } return 0 } func (x *WxRecvMsgData) GetSubType() int32 { if x != nil { return x.SubType } return 0 } func (x *WxRecvMsgData) GetMediaContent() []byte { if x != nil { return x.MediaContent } return nil } func (x *WxRecvMsgData) GetCreateTime() int64 { if x != nil { return x.CreateTime } return 0 } func (x *WxRecvMsgData) GetXml() []byte { if x != nil { return x.Xml } return nil } func (x *WxRecvMsgData) GetUserContent() []byte { if x != nil { return x.UserContent } return nil } func (x *WxRecvMsgData) GetMsgId() int64 { if x != nil { return x.MsgId } return 0 } func (x *WxRecvMsgData) GetMsgOrder() int64 { if x != nil { return x.MsgOrder } return 0 } func (x *WxRecvMsgData) GetExtraXml() []byte { if x != nil { return x.ExtraXml } return nil } func (x *WxRecvMsgData) GetUnknown15() int32 { if x != nil { return x.Unknown15 } return 0 } // 字符串包装 type WxString struct { state protoimpl.MessageState `protogen:"open.v1"` Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *WxString) Reset() { *x = WxString{} mi := &file_wx_msg_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *WxString) String() string { return protoimpl.X.MessageStringOf(x) } func (*WxString) ProtoMessage() {} func (x *WxString) ProtoReflect() protoreflect.Message { mi := &file_wx_msg_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 WxString.ProtoReflect.Descriptor instead. func (*WxString) Descriptor() ([]byte, []int) { return file_wx_msg_proto_rawDescGZIP(), []int{5} } func (x *WxString) GetValue() string { if x != nil { return x.Value } return "" } var File_wx_msg_proto protoreflect.FileDescriptor const file_wx_msg_proto_rawDesc = "" + "\n" + "\fwx_msg.proto\x12\awxproto\"]\n" + "\tWxRecvMsg\x12\x1b\n" + "\trecv_type\x18\x01 \x01(\x05R\brecvType\x123\n" + "\awrapper\x18\x02 \x01(\v2\x19.wxproto.WxRecvMsgWrapperR\awrapper\"Y\n" + "\x10WxRecvMsgWrapper\x12\x19\n" + "\bmsg_type\x18\x01 \x01(\x05R\amsgType\x12*\n" + "\x04body\x18\x02 \x01(\v2\x16.wxproto.WxRecvMsgBodyR\x04body\"_\n" + "\rWxRecvMsgBody\x12\x19\n" + "\bmsg_type\x18\x01 \x01(\x05R\amsgType\x123\n" + "\acontent\x18\x02 \x01(\v2\x19.wxproto.WxRecvMsgContentR\acontent\"Y\n" + "\x10WxRecvMsgContent\x12\x19\n" + "\bdata_len\x18\x01 \x01(\x05R\adataLen\x12*\n" + "\x04data\x18\x02 \x01(\v2\x16.wxproto.WxRecvMsgDataR\x04data\"\xe2\x03\n" + "\rWxRecvMsgData\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12)\n" + "\x06sender\x18\x02 \x01(\v2\x11.wxproto.WxStringR\x06sender\x12-\n" + "\breceiver\x18\x03 \x01(\v2\x11.wxproto.WxStringR\breceiver\x12\x12\n" + "\x04flag\x18\x04 \x01(\x05R\x04flag\x12+\n" + "\acontent\x18\x05 \x01(\v2\x11.wxproto.WxStringR\acontent\x12!\n" + "\fcontent_type\x18\x06 \x01(\x05R\vcontentType\x12\x19\n" + "\bsub_type\x18\a \x01(\x05R\asubType\x12#\n" + "\rmedia_content\x18\b \x01(\fR\fmediaContent\x12\x1f\n" + "\vcreate_time\x18\t \x01(\x03R\n" + "createTime\x12\x10\n" + "\x03xml\x18\n" + " \x01(\fR\x03xml\x12!\n" + "\fuser_content\x18\v \x01(\fR\vuserContent\x12\x15\n" + "\x06msg_id\x18\f \x01(\x03R\x05msgId\x12\x1b\n" + "\tmsg_order\x18\r \x01(\x03R\bmsgOrder\x12\x1b\n" + "\textra_xml\x18\x0e \x01(\fR\bextraXml\x12\x1c\n" + "\tunknown15\x18\x0f \x01(\x05R\tunknown15\" \n" + "\bWxString\x12\x14\n" + "\x05value\x18\x01 \x01(\tR\x05valueB>Z wxproto.WxRecvMsgWrapper 2, // 1: wxproto.WxRecvMsgWrapper.body:type_name -> wxproto.WxRecvMsgBody 3, // 2: wxproto.WxRecvMsgBody.content:type_name -> wxproto.WxRecvMsgContent 4, // 3: wxproto.WxRecvMsgContent.data:type_name -> wxproto.WxRecvMsgData 5, // 4: wxproto.WxRecvMsgData.sender:type_name -> wxproto.WxString 5, // 5: wxproto.WxRecvMsgData.receiver:type_name -> wxproto.WxString 5, // 6: wxproto.WxRecvMsgData.content:type_name -> wxproto.WxString 7, // [7:7] is the sub-list for method output_type 7, // [7:7] is the sub-list for method input_type 7, // [7:7] is the sub-list for extension type_name 7, // [7:7] is the sub-list for extension extendee 0, // [0:7] is the sub-list for field type_name } func init() { file_wx_msg_proto_init() } func file_wx_msg_proto_init() { if File_wx_msg_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_wx_msg_proto_rawDesc), len(file_wx_msg_proto_rawDesc)), NumEnums: 0, NumMessages: 6, NumExtensions: 0, NumServices: 0, }, GoTypes: file_wx_msg_proto_goTypes, DependencyIndexes: file_wx_msg_proto_depIdxs, MessageInfos: file_wx_msg_proto_msgTypes, }.Build() File_wx_msg_proto = out.File file_wx_msg_proto_goTypes = nil file_wx_msg_proto_depIdxs = nil }