mirror of
https://github.com/yincongcyincong/wechat_chatter.git
synced 2026-07-15 10:26:52 +08:00
457 lines
14 KiB
Go
457 lines
14 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.5.1
|
|
// source: common_resp.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)
|
|
)
|
|
|
|
// 通用响应: BaseResponse 在 field 1 (适用于 text/video/image/file/reply 等)
|
|
type SendMsgResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BaseResponse *BaseResponse `protobuf:"bytes,1,opt,name=baseResponse" json:"baseResponse,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SendMsgResponse) Reset() {
|
|
*x = SendMsgResponse{}
|
|
mi := &file_common_resp_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SendMsgResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SendMsgResponse) ProtoMessage() {}
|
|
|
|
func (x *SendMsgResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_common_resp_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 SendMsgResponse.ProtoReflect.Descriptor instead.
|
|
func (*SendMsgResponse) Descriptor() ([]byte, []int) {
|
|
return file_common_resp_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *SendMsgResponse) GetBaseResponse() *BaseResponse {
|
|
if x != nil {
|
|
return x.BaseResponse
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 语音响应: BaseResponse 在 field 10
|
|
type SendVoiceMsgResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SenderWxid *string `protobuf:"bytes,1,opt,name=senderWxid" json:"senderWxid,omitempty"`
|
|
ReceiverWxid *string `protobuf:"bytes,2,opt,name=receiverWxid" json:"receiverWxid,omitempty"`
|
|
Field3 *uint64 `protobuf:"varint,3,opt,name=field3" json:"field3,omitempty"`
|
|
Field4 *uint64 `protobuf:"varint,4,opt,name=field4" json:"field4,omitempty"`
|
|
Field5 *uint64 `protobuf:"varint,5,opt,name=field5" json:"field5,omitempty"`
|
|
ClientMsgId *string `protobuf:"bytes,6,opt,name=clientMsgId" json:"clientMsgId,omitempty"`
|
|
NewMsgId *uint64 `protobuf:"varint,7,opt,name=newMsgId" json:"newMsgId,omitempty"`
|
|
Field8 *uint64 `protobuf:"varint,8,opt,name=field8" json:"field8,omitempty"`
|
|
Field9 *uint64 `protobuf:"varint,9,opt,name=field9" json:"field9,omitempty"`
|
|
BaseResponse *BaseResponse `protobuf:"bytes,10,opt,name=baseResponse" json:"baseResponse,omitempty"`
|
|
Field11 *uint64 `protobuf:"varint,11,opt,name=field11" json:"field11,omitempty"`
|
|
MsgSvrId *uint64 `protobuf:"varint,12,opt,name=msgSvrId" json:"msgSvrId,omitempty"`
|
|
Field13 *uint64 `protobuf:"varint,13,opt,name=field13" json:"field13,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SendVoiceMsgResponse) Reset() {
|
|
*x = SendVoiceMsgResponse{}
|
|
mi := &file_common_resp_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SendVoiceMsgResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SendVoiceMsgResponse) ProtoMessage() {}
|
|
|
|
func (x *SendVoiceMsgResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_common_resp_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 SendVoiceMsgResponse.ProtoReflect.Descriptor instead.
|
|
func (*SendVoiceMsgResponse) Descriptor() ([]byte, []int) {
|
|
return file_common_resp_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *SendVoiceMsgResponse) GetSenderWxid() string {
|
|
if x != nil && x.SenderWxid != nil {
|
|
return *x.SenderWxid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SendVoiceMsgResponse) GetReceiverWxid() string {
|
|
if x != nil && x.ReceiverWxid != nil {
|
|
return *x.ReceiverWxid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SendVoiceMsgResponse) GetField3() uint64 {
|
|
if x != nil && x.Field3 != nil {
|
|
return *x.Field3
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendVoiceMsgResponse) GetField4() uint64 {
|
|
if x != nil && x.Field4 != nil {
|
|
return *x.Field4
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendVoiceMsgResponse) GetField5() uint64 {
|
|
if x != nil && x.Field5 != nil {
|
|
return *x.Field5
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendVoiceMsgResponse) GetClientMsgId() string {
|
|
if x != nil && x.ClientMsgId != nil {
|
|
return *x.ClientMsgId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SendVoiceMsgResponse) GetNewMsgId() uint64 {
|
|
if x != nil && x.NewMsgId != nil {
|
|
return *x.NewMsgId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendVoiceMsgResponse) GetField8() uint64 {
|
|
if x != nil && x.Field8 != nil {
|
|
return *x.Field8
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendVoiceMsgResponse) GetField9() uint64 {
|
|
if x != nil && x.Field9 != nil {
|
|
return *x.Field9
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendVoiceMsgResponse) GetBaseResponse() *BaseResponse {
|
|
if x != nil {
|
|
return x.BaseResponse
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SendVoiceMsgResponse) GetField11() uint64 {
|
|
if x != nil && x.Field11 != nil {
|
|
return *x.Field11
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendVoiceMsgResponse) GetMsgSvrId() uint64 {
|
|
if x != nil && x.MsgSvrId != nil {
|
|
return *x.MsgSvrId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendVoiceMsgResponse) GetField13() uint64 {
|
|
if x != nil && x.Field13 != nil {
|
|
return *x.Field13
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// sendfileuploadmsg 专用响应
|
|
type SendFileUploadMsgResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BaseResponse *BaseResponse `protobuf:"bytes,1,opt,name=baseResponse" json:"baseResponse,omitempty"`
|
|
FileUploadToken *string `protobuf:"bytes,2,opt,name=fileUploadToken" json:"fileUploadToken,omitempty"`
|
|
MsgSvrId *uint64 `protobuf:"varint,3,opt,name=msgSvrId" json:"msgSvrId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SendFileUploadMsgResponse) Reset() {
|
|
*x = SendFileUploadMsgResponse{}
|
|
mi := &file_common_resp_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SendFileUploadMsgResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SendFileUploadMsgResponse) ProtoMessage() {}
|
|
|
|
func (x *SendFileUploadMsgResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_common_resp_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 SendFileUploadMsgResponse.ProtoReflect.Descriptor instead.
|
|
func (*SendFileUploadMsgResponse) Descriptor() ([]byte, []int) {
|
|
return file_common_resp_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *SendFileUploadMsgResponse) GetBaseResponse() *BaseResponse {
|
|
if x != nil {
|
|
return x.BaseResponse
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SendFileUploadMsgResponse) GetFileUploadToken() string {
|
|
if x != nil && x.FileUploadToken != nil {
|
|
return *x.FileUploadToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SendFileUploadMsgResponse) GetMsgSvrId() uint64 {
|
|
if x != nil && x.MsgSvrId != nil {
|
|
return *x.MsgSvrId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type BaseResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ret *int32 `protobuf:"varint,1,opt,name=ret" json:"ret,omitempty"`
|
|
ErrMsg *BaseErrMsg `protobuf:"bytes,2,opt,name=errMsg" json:"errMsg,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *BaseResponse) Reset() {
|
|
*x = BaseResponse{}
|
|
mi := &file_common_resp_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *BaseResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*BaseResponse) ProtoMessage() {}
|
|
|
|
func (x *BaseResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_common_resp_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 BaseResponse.ProtoReflect.Descriptor instead.
|
|
func (*BaseResponse) Descriptor() ([]byte, []int) {
|
|
return file_common_resp_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *BaseResponse) GetRet() int32 {
|
|
if x != nil && x.Ret != nil {
|
|
return *x.Ret
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BaseResponse) GetErrMsg() *BaseErrMsg {
|
|
if x != nil {
|
|
return x.ErrMsg
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type BaseErrMsg struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Msg *string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *BaseErrMsg) Reset() {
|
|
*x = BaseErrMsg{}
|
|
mi := &file_common_resp_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *BaseErrMsg) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*BaseErrMsg) ProtoMessage() {}
|
|
|
|
func (x *BaseErrMsg) ProtoReflect() protoreflect.Message {
|
|
mi := &file_common_resp_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 BaseErrMsg.ProtoReflect.Descriptor instead.
|
|
func (*BaseErrMsg) Descriptor() ([]byte, []int) {
|
|
return file_common_resp_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *BaseErrMsg) GetMsg() string {
|
|
if x != nil && x.Msg != nil {
|
|
return *x.Msg
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_common_resp_proto protoreflect.FileDescriptor
|
|
|
|
const file_common_resp_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x11common_resp.proto\x12\awxproto\"L\n" +
|
|
"\x0fSendMsgResponse\x129\n" +
|
|
"\fbaseResponse\x18\x01 \x01(\v2\x15.wxproto.BaseResponseR\fbaseResponse\"\x9b\x03\n" +
|
|
"\x14SendVoiceMsgResponse\x12\x1e\n" +
|
|
"\n" +
|
|
"senderWxid\x18\x01 \x01(\tR\n" +
|
|
"senderWxid\x12\"\n" +
|
|
"\freceiverWxid\x18\x02 \x01(\tR\freceiverWxid\x12\x16\n" +
|
|
"\x06field3\x18\x03 \x01(\x04R\x06field3\x12\x16\n" +
|
|
"\x06field4\x18\x04 \x01(\x04R\x06field4\x12\x16\n" +
|
|
"\x06field5\x18\x05 \x01(\x04R\x06field5\x12 \n" +
|
|
"\vclientMsgId\x18\x06 \x01(\tR\vclientMsgId\x12\x1a\n" +
|
|
"\bnewMsgId\x18\a \x01(\x04R\bnewMsgId\x12\x16\n" +
|
|
"\x06field8\x18\b \x01(\x04R\x06field8\x12\x16\n" +
|
|
"\x06field9\x18\t \x01(\x04R\x06field9\x129\n" +
|
|
"\fbaseResponse\x18\n" +
|
|
" \x01(\v2\x15.wxproto.BaseResponseR\fbaseResponse\x12\x18\n" +
|
|
"\afield11\x18\v \x01(\x04R\afield11\x12\x1a\n" +
|
|
"\bmsgSvrId\x18\f \x01(\x04R\bmsgSvrId\x12\x18\n" +
|
|
"\afield13\x18\r \x01(\x04R\afield13\"\x9c\x01\n" +
|
|
"\x19SendFileUploadMsgResponse\x129\n" +
|
|
"\fbaseResponse\x18\x01 \x01(\v2\x15.wxproto.BaseResponseR\fbaseResponse\x12(\n" +
|
|
"\x0ffileUploadToken\x18\x02 \x01(\tR\x0ffileUploadToken\x12\x1a\n" +
|
|
"\bmsgSvrId\x18\x03 \x01(\x04R\bmsgSvrId\"M\n" +
|
|
"\fBaseResponse\x12\x10\n" +
|
|
"\x03ret\x18\x01 \x01(\x05R\x03ret\x12+\n" +
|
|
"\x06errMsg\x18\x02 \x01(\v2\x13.wxproto.BaseErrMsgR\x06errMsg\"\x1e\n" +
|
|
"\n" +
|
|
"BaseErrMsg\x12\x10\n" +
|
|
"\x03msg\x18\x01 \x01(\tR\x03msgB>Z<github.com/yincongcyincong/weixin-macos/onebot/proto;wxproto"
|
|
|
|
var (
|
|
file_common_resp_proto_rawDescOnce sync.Once
|
|
file_common_resp_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_common_resp_proto_rawDescGZIP() []byte {
|
|
file_common_resp_proto_rawDescOnce.Do(func() {
|
|
file_common_resp_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_common_resp_proto_rawDesc), len(file_common_resp_proto_rawDesc)))
|
|
})
|
|
return file_common_resp_proto_rawDescData
|
|
}
|
|
|
|
var file_common_resp_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
var file_common_resp_proto_goTypes = []any{
|
|
(*SendMsgResponse)(nil), // 0: wxproto.SendMsgResponse
|
|
(*SendVoiceMsgResponse)(nil), // 1: wxproto.SendVoiceMsgResponse
|
|
(*SendFileUploadMsgResponse)(nil), // 2: wxproto.SendFileUploadMsgResponse
|
|
(*BaseResponse)(nil), // 3: wxproto.BaseResponse
|
|
(*BaseErrMsg)(nil), // 4: wxproto.BaseErrMsg
|
|
}
|
|
var file_common_resp_proto_depIdxs = []int32{
|
|
3, // 0: wxproto.SendMsgResponse.baseResponse:type_name -> wxproto.BaseResponse
|
|
3, // 1: wxproto.SendVoiceMsgResponse.baseResponse:type_name -> wxproto.BaseResponse
|
|
3, // 2: wxproto.SendFileUploadMsgResponse.baseResponse:type_name -> wxproto.BaseResponse
|
|
4, // 3: wxproto.BaseResponse.errMsg:type_name -> wxproto.BaseErrMsg
|
|
4, // [4:4] is the sub-list for method output_type
|
|
4, // [4:4] is the sub-list for method input_type
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
0, // [0:4] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_common_resp_proto_init() }
|
|
func file_common_resp_proto_init() {
|
|
if File_common_resp_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_common_resp_proto_rawDesc), len(file_common_resp_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 5,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_common_resp_proto_goTypes,
|
|
DependencyIndexes: file_common_resp_proto_depIdxs,
|
|
MessageInfos: file_common_resp_proto_msgTypes,
|
|
}.Build()
|
|
File_common_resp_proto = out.File
|
|
file_common_resp_proto_goTypes = nil
|
|
file_common_resp_proto_depIdxs = nil
|
|
}
|