mirror of
https://github.com/yincongcyincong/wechat_chatter.git
synced 2026-07-15 10:26:52 +08:00
405 lines
13 KiB
Go
405 lines
13 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.5.1
|
|
// source: upload_app_attach.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)
|
|
)
|
|
|
|
// 通用二进制缓冲(iPad860 SKBuiltinBufferT 对齐)
|
|
type SKBuiltinBufferT struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ILen *uint32 `protobuf:"varint,1,opt,name=iLen" json:"iLen,omitempty"`
|
|
Buffer []byte `protobuf:"bytes,2,opt,name=buffer" json:"buffer,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SKBuiltinBufferT) Reset() {
|
|
*x = SKBuiltinBufferT{}
|
|
mi := &file_upload_app_attach_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SKBuiltinBufferT) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SKBuiltinBufferT) ProtoMessage() {}
|
|
|
|
func (x *SKBuiltinBufferT) ProtoReflect() protoreflect.Message {
|
|
mi := &file_upload_app_attach_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 SKBuiltinBufferT.ProtoReflect.Descriptor instead.
|
|
func (*SKBuiltinBufferT) Descriptor() ([]byte, []int) {
|
|
return file_upload_app_attach_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *SKBuiltinBufferT) GetILen() uint32 {
|
|
if x != nil && x.ILen != nil {
|
|
return *x.ILen
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SKBuiltinBufferT) GetBuffer() []byte {
|
|
if x != nil {
|
|
return x.Buffer
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// /cgi-bin/micromsg-bin/uploadappattach 请求
|
|
// 参考 we-chat-ipad860 wechat.proto UploadAppAttachRequest,
|
|
// 但 baseRequest 使用本项目 macOS 风格的 ReplyMsgHeader。
|
|
type UploadAppAttachRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BaseRequest *ReplyMsgHeader `protobuf:"bytes,1,opt,name=baseRequest" json:"baseRequest,omitempty"`
|
|
AppId *string `protobuf:"bytes,2,opt,name=appId" json:"appId,omitempty"`
|
|
SdkVersion *uint32 `protobuf:"varint,3,opt,name=sdkVersion" json:"sdkVersion,omitempty"`
|
|
ClientAppDataId *string `protobuf:"bytes,4,opt,name=clientAppDataId" json:"clientAppDataId,omitempty"` // {receiver}_{ts}_UploadFile
|
|
UserName *string `protobuf:"bytes,5,opt,name=userName" json:"userName,omitempty"` // 接收方 wxid
|
|
TotalLen *uint32 `protobuf:"varint,6,opt,name=totalLen" json:"totalLen,omitempty"` // 文件总长度
|
|
StartPos *uint32 `protobuf:"varint,7,opt,name=startPos" json:"startPos,omitempty"` // 本分片偏移
|
|
DataLen *uint32 `protobuf:"varint,8,opt,name=dataLen" json:"dataLen,omitempty"` // 本分片长度
|
|
Data *SKBuiltinBufferT `protobuf:"bytes,9,opt,name=data" json:"data,omitempty"` // 本分片原始字节
|
|
Type *uint32 `protobuf:"varint,10,opt,name=type" json:"type,omitempty"` // 6 = 文件
|
|
Md5 *string `protobuf:"bytes,11,opt,name=md5" json:"md5,omitempty"` // 文件 MD5
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UploadAppAttachRequest) Reset() {
|
|
*x = UploadAppAttachRequest{}
|
|
mi := &file_upload_app_attach_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UploadAppAttachRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UploadAppAttachRequest) ProtoMessage() {}
|
|
|
|
func (x *UploadAppAttachRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_upload_app_attach_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 UploadAppAttachRequest.ProtoReflect.Descriptor instead.
|
|
func (*UploadAppAttachRequest) Descriptor() ([]byte, []int) {
|
|
return file_upload_app_attach_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *UploadAppAttachRequest) GetBaseRequest() *ReplyMsgHeader {
|
|
if x != nil {
|
|
return x.BaseRequest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UploadAppAttachRequest) GetAppId() string {
|
|
if x != nil && x.AppId != nil {
|
|
return *x.AppId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadAppAttachRequest) GetSdkVersion() uint32 {
|
|
if x != nil && x.SdkVersion != nil {
|
|
return *x.SdkVersion
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UploadAppAttachRequest) GetClientAppDataId() string {
|
|
if x != nil && x.ClientAppDataId != nil {
|
|
return *x.ClientAppDataId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadAppAttachRequest) GetUserName() string {
|
|
if x != nil && x.UserName != nil {
|
|
return *x.UserName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadAppAttachRequest) GetTotalLen() uint32 {
|
|
if x != nil && x.TotalLen != nil {
|
|
return *x.TotalLen
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UploadAppAttachRequest) GetStartPos() uint32 {
|
|
if x != nil && x.StartPos != nil {
|
|
return *x.StartPos
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UploadAppAttachRequest) GetDataLen() uint32 {
|
|
if x != nil && x.DataLen != nil {
|
|
return *x.DataLen
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UploadAppAttachRequest) GetData() *SKBuiltinBufferT {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UploadAppAttachRequest) GetType() uint32 {
|
|
if x != nil && x.Type != nil {
|
|
return *x.Type
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UploadAppAttachRequest) GetMd5() string {
|
|
if x != nil && x.Md5 != nil {
|
|
return *x.Md5
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// /cgi-bin/micromsg-bin/uploadappattach 响应
|
|
type UploadAppAttachResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BaseResponse *BaseResponse `protobuf:"bytes,1,opt,name=baseResponse" json:"baseResponse,omitempty"`
|
|
AppId *string `protobuf:"bytes,2,opt,name=appId" json:"appId,omitempty"`
|
|
MediaId *string `protobuf:"bytes,3,opt,name=mediaId" json:"mediaId,omitempty"` // attachid
|
|
ClientAppDataId *string `protobuf:"bytes,4,opt,name=clientAppDataId" json:"clientAppDataId,omitempty"`
|
|
UserName *string `protobuf:"bytes,5,opt,name=userName" json:"userName,omitempty"`
|
|
TotalLen *uint32 `protobuf:"varint,6,opt,name=totalLen" json:"totalLen,omitempty"`
|
|
StartPos *uint32 `protobuf:"varint,7,opt,name=startPos" json:"startPos,omitempty"`
|
|
DataLen *uint32 `protobuf:"varint,8,opt,name=dataLen" json:"dataLen,omitempty"`
|
|
CreateTime *uint64 `protobuf:"varint,9,opt,name=createTime" json:"createTime,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UploadAppAttachResponse) Reset() {
|
|
*x = UploadAppAttachResponse{}
|
|
mi := &file_upload_app_attach_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UploadAppAttachResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UploadAppAttachResponse) ProtoMessage() {}
|
|
|
|
func (x *UploadAppAttachResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_upload_app_attach_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 UploadAppAttachResponse.ProtoReflect.Descriptor instead.
|
|
func (*UploadAppAttachResponse) Descriptor() ([]byte, []int) {
|
|
return file_upload_app_attach_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *UploadAppAttachResponse) GetBaseResponse() *BaseResponse {
|
|
if x != nil {
|
|
return x.BaseResponse
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UploadAppAttachResponse) GetAppId() string {
|
|
if x != nil && x.AppId != nil {
|
|
return *x.AppId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadAppAttachResponse) GetMediaId() string {
|
|
if x != nil && x.MediaId != nil {
|
|
return *x.MediaId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadAppAttachResponse) GetClientAppDataId() string {
|
|
if x != nil && x.ClientAppDataId != nil {
|
|
return *x.ClientAppDataId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadAppAttachResponse) GetUserName() string {
|
|
if x != nil && x.UserName != nil {
|
|
return *x.UserName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadAppAttachResponse) GetTotalLen() uint32 {
|
|
if x != nil && x.TotalLen != nil {
|
|
return *x.TotalLen
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UploadAppAttachResponse) GetStartPos() uint32 {
|
|
if x != nil && x.StartPos != nil {
|
|
return *x.StartPos
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UploadAppAttachResponse) GetDataLen() uint32 {
|
|
if x != nil && x.DataLen != nil {
|
|
return *x.DataLen
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UploadAppAttachResponse) GetCreateTime() uint64 {
|
|
if x != nil && x.CreateTime != nil {
|
|
return *x.CreateTime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_upload_app_attach_proto protoreflect.FileDescriptor
|
|
|
|
const file_upload_app_attach_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x17upload_app_attach.proto\x12\awxproto\x1a\rapp_msg.proto\x1a\x11common_resp.proto\">\n" +
|
|
"\x10SKBuiltinBufferT\x12\x12\n" +
|
|
"\x04iLen\x18\x01 \x01(\rR\x04iLen\x12\x16\n" +
|
|
"\x06buffer\x18\x02 \x01(\fR\x06buffer\"\xf6\x02\n" +
|
|
"\x16UploadAppAttachRequest\x129\n" +
|
|
"\vbaseRequest\x18\x01 \x01(\v2\x17.wxproto.ReplyMsgHeaderR\vbaseRequest\x12\x14\n" +
|
|
"\x05appId\x18\x02 \x01(\tR\x05appId\x12\x1e\n" +
|
|
"\n" +
|
|
"sdkVersion\x18\x03 \x01(\rR\n" +
|
|
"sdkVersion\x12(\n" +
|
|
"\x0fclientAppDataId\x18\x04 \x01(\tR\x0fclientAppDataId\x12\x1a\n" +
|
|
"\buserName\x18\x05 \x01(\tR\buserName\x12\x1a\n" +
|
|
"\btotalLen\x18\x06 \x01(\rR\btotalLen\x12\x1a\n" +
|
|
"\bstartPos\x18\a \x01(\rR\bstartPos\x12\x18\n" +
|
|
"\adataLen\x18\b \x01(\rR\adataLen\x12-\n" +
|
|
"\x04data\x18\t \x01(\v2\x19.wxproto.SKBuiltinBufferTR\x04data\x12\x12\n" +
|
|
"\x04type\x18\n" +
|
|
" \x01(\rR\x04type\x12\x10\n" +
|
|
"\x03md5\x18\v \x01(\tR\x03md5\"\xbc\x02\n" +
|
|
"\x17UploadAppAttachResponse\x129\n" +
|
|
"\fbaseResponse\x18\x01 \x01(\v2\x15.wxproto.BaseResponseR\fbaseResponse\x12\x14\n" +
|
|
"\x05appId\x18\x02 \x01(\tR\x05appId\x12\x18\n" +
|
|
"\amediaId\x18\x03 \x01(\tR\amediaId\x12(\n" +
|
|
"\x0fclientAppDataId\x18\x04 \x01(\tR\x0fclientAppDataId\x12\x1a\n" +
|
|
"\buserName\x18\x05 \x01(\tR\buserName\x12\x1a\n" +
|
|
"\btotalLen\x18\x06 \x01(\rR\btotalLen\x12\x1a\n" +
|
|
"\bstartPos\x18\a \x01(\rR\bstartPos\x12\x18\n" +
|
|
"\adataLen\x18\b \x01(\rR\adataLen\x12\x1e\n" +
|
|
"\n" +
|
|
"createTime\x18\t \x01(\x04R\n" +
|
|
"createTimeB>Z<github.com/yincongcyincong/weixin-macos/onebot/proto;wxproto"
|
|
|
|
var (
|
|
file_upload_app_attach_proto_rawDescOnce sync.Once
|
|
file_upload_app_attach_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_upload_app_attach_proto_rawDescGZIP() []byte {
|
|
file_upload_app_attach_proto_rawDescOnce.Do(func() {
|
|
file_upload_app_attach_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_upload_app_attach_proto_rawDesc), len(file_upload_app_attach_proto_rawDesc)))
|
|
})
|
|
return file_upload_app_attach_proto_rawDescData
|
|
}
|
|
|
|
var file_upload_app_attach_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_upload_app_attach_proto_goTypes = []any{
|
|
(*SKBuiltinBufferT)(nil), // 0: wxproto.SKBuiltinBufferT
|
|
(*UploadAppAttachRequest)(nil), // 1: wxproto.UploadAppAttachRequest
|
|
(*UploadAppAttachResponse)(nil), // 2: wxproto.UploadAppAttachResponse
|
|
(*ReplyMsgHeader)(nil), // 3: wxproto.ReplyMsgHeader
|
|
(*BaseResponse)(nil), // 4: wxproto.BaseResponse
|
|
}
|
|
var file_upload_app_attach_proto_depIdxs = []int32{
|
|
3, // 0: wxproto.UploadAppAttachRequest.baseRequest:type_name -> wxproto.ReplyMsgHeader
|
|
0, // 1: wxproto.UploadAppAttachRequest.data:type_name -> wxproto.SKBuiltinBufferT
|
|
4, // 2: wxproto.UploadAppAttachResponse.baseResponse:type_name -> wxproto.BaseResponse
|
|
3, // [3:3] is the sub-list for method output_type
|
|
3, // [3:3] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_upload_app_attach_proto_init() }
|
|
func file_upload_app_attach_proto_init() {
|
|
if File_upload_app_attach_proto != nil {
|
|
return
|
|
}
|
|
file_app_msg_proto_init()
|
|
file_common_resp_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_upload_app_attach_proto_rawDesc), len(file_upload_app_attach_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_upload_app_attach_proto_goTypes,
|
|
DependencyIndexes: file_upload_app_attach_proto_depIdxs,
|
|
MessageInfos: file_upload_app_attach_proto_msgTypes,
|
|
}.Build()
|
|
File_upload_app_attach_proto = out.File
|
|
file_upload_app_attach_proto_goTypes = nil
|
|
file_upload_app_attach_proto_depIdxs = nil
|
|
}
|