// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v3.5.1 // source: text_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) ) // 发送文本消息的protobuf结构 type WxSendTextMsg struct { state protoimpl.MessageState `protogen:"open.v1"` Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` Body *WxSendTextBody `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *WxSendTextMsg) Reset() { *x = WxSendTextMsg{} mi := &file_text_msg_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *WxSendTextMsg) String() string { return protoimpl.X.MessageStringOf(x) } func (*WxSendTextMsg) ProtoMessage() {} func (x *WxSendTextMsg) ProtoReflect() protoreflect.Message { mi := &file_text_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 WxSendTextMsg.ProtoReflect.Descriptor instead. func (*WxSendTextMsg) Descriptor() ([]byte, []int) { return file_text_msg_proto_rawDescGZIP(), []int{0} } func (x *WxSendTextMsg) GetType() int32 { if x != nil { return x.Type } return 0 } func (x *WxSendTextMsg) GetBody() *WxSendTextBody { if x != nil { return x.Body } return nil } type WxSendTextBody struct { state protoimpl.MessageState `protogen:"open.v1"` Receiver *WxString `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty"` Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Flag int32 `protobuf:"varint,3,opt,name=flag,proto3" json:"flag,omitempty"` Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` MsgId int64 `protobuf:"varint,5,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty"` Xml []byte `protobuf:"bytes,6,opt,name=xml,proto3" json:"xml,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *WxSendTextBody) Reset() { *x = WxSendTextBody{} mi := &file_text_msg_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *WxSendTextBody) String() string { return protoimpl.X.MessageStringOf(x) } func (*WxSendTextBody) ProtoMessage() {} func (x *WxSendTextBody) ProtoReflect() protoreflect.Message { mi := &file_text_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 WxSendTextBody.ProtoReflect.Descriptor instead. func (*WxSendTextBody) Descriptor() ([]byte, []int) { return file_text_msg_proto_rawDescGZIP(), []int{1} } func (x *WxSendTextBody) GetReceiver() *WxString { if x != nil { return x.Receiver } return nil } func (x *WxSendTextBody) GetContent() []byte { if x != nil { return x.Content } return nil } func (x *WxSendTextBody) GetFlag() int32 { if x != nil { return x.Flag } return 0 } func (x *WxSendTextBody) GetTimestamp() int64 { if x != nil { return x.Timestamp } return 0 } func (x *WxSendTextBody) GetMsgId() int64 { if x != nil { return x.MsgId } return 0 } func (x *WxSendTextBody) GetXml() []byte { if x != nil { return x.Xml } return nil } var File_text_msg_proto protoreflect.FileDescriptor const file_text_msg_proto_rawDesc = "" + "\n" + "\x0etext_msg.proto\x12\awxproto\x1a\fwx_msg.proto\"P\n" + "\rWxSendTextMsg\x12\x12\n" + "\x04type\x18\x01 \x01(\x05R\x04type\x12+\n" + "\x04body\x18\x02 \x01(\v2\x17.wxproto.WxSendTextBodyR\x04body\"\xb4\x01\n" + "\x0eWxSendTextBody\x12-\n" + "\breceiver\x18\x01 \x01(\v2\x11.wxproto.WxStringR\breceiver\x12\x18\n" + "\acontent\x18\x02 \x01(\fR\acontent\x12\x12\n" + "\x04flag\x18\x03 \x01(\x05R\x04flag\x12\x1c\n" + "\ttimestamp\x18\x04 \x01(\x03R\ttimestamp\x12\x15\n" + "\x06msg_id\x18\x05 \x01(\x03R\x05msgId\x12\x10\n" + "\x03xml\x18\x06 \x01(\fR\x03xmlB>Z wxproto.WxSendTextBody 2, // 1: wxproto.WxSendTextBody.receiver:type_name -> wxproto.WxString 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 } func init() { file_text_msg_proto_init() } func file_text_msg_proto_init() { if File_text_msg_proto != nil { return } file_wx_msg_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_text_msg_proto_rawDesc), len(file_text_msg_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, GoTypes: file_text_msg_proto_goTypes, DependencyIndexes: file_text_msg_proto_depIdxs, MessageInfos: file_text_msg_proto_msgTypes, }.Build() File_text_msg_proto = out.File file_text_msg_proto_goTypes = nil file_text_msg_proto_depIdxs = nil }