Files
2026-07-09 09:42:32 +08:00

389 lines
11 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v3.5.1
// source: voice_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 WxSendVoiceMsg struct {
state protoimpl.MessageState `protogen:"open.v1"`
FromUser string `protobuf:"bytes,1,opt,name=from_user,json=fromUser,proto3" json:"from_user,omitempty"`
ToUser string `protobuf:"bytes,2,opt,name=to_user,json=toUser,proto3" json:"to_user,omitempty"`
Unknown3 int32 `protobuf:"varint,3,opt,name=unknown3,proto3" json:"unknown3,omitempty"`
Unknown4 int32 `protobuf:"varint,4,opt,name=unknown4,proto3" json:"unknown4,omitempty"`
ClientMsgId string `protobuf:"bytes,5,opt,name=client_msg_id,json=clientMsgId,proto3" json:"client_msg_id,omitempty"`
// field 6 skipped
Duration int32 `protobuf:"varint,7,opt,name=duration,proto3" json:"duration,omitempty"`
// field 8 skipped
Unknown9 int32 `protobuf:"varint,9,opt,name=unknown9,proto3" json:"unknown9,omitempty"`
Header *VoiceMsgHeader `protobuf:"bytes,10,opt,name=header,proto3" json:"header,omitempty"`
Unknown11 int32 `protobuf:"varint,11,opt,name=unknown11,proto3" json:"unknown11,omitempty"`
// field 12 skipped
Unknown13 int32 `protobuf:"varint,13,opt,name=unknown13,proto3" json:"unknown13,omitempty"`
// field 14 skipped
Unknown15 int32 `protobuf:"varint,15,opt,name=unknown15,proto3" json:"unknown15,omitempty"`
Unknown16 int32 `protobuf:"varint,16,opt,name=unknown16,proto3" json:"unknown16,omitempty"`
Unknown17 int64 `protobuf:"varint,17,opt,name=unknown17,proto3" json:"unknown17,omitempty"`
// fields 18-19 skipped
AesKey []byte `protobuf:"bytes,20,opt,name=aes_key,json=aesKey,proto3" json:"aes_key,omitempty"`
CdnKey []byte `protobuf:"bytes,21,opt,name=cdn_key,json=cdnKey,proto3" json:"cdn_key,omitempty"`
// fields 22-23 skipped
Unknown24 []byte `protobuf:"bytes,24,opt,name=unknown24,proto3" json:"unknown24,omitempty"`
Unknown25 int32 `protobuf:"varint,25,opt,name=unknown25,proto3" json:"unknown25,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WxSendVoiceMsg) Reset() {
*x = WxSendVoiceMsg{}
mi := &file_voice_msg_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WxSendVoiceMsg) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WxSendVoiceMsg) ProtoMessage() {}
func (x *WxSendVoiceMsg) ProtoReflect() protoreflect.Message {
mi := &file_voice_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 WxSendVoiceMsg.ProtoReflect.Descriptor instead.
func (*WxSendVoiceMsg) Descriptor() ([]byte, []int) {
return file_voice_msg_proto_rawDescGZIP(), []int{0}
}
func (x *WxSendVoiceMsg) GetFromUser() string {
if x != nil {
return x.FromUser
}
return ""
}
func (x *WxSendVoiceMsg) GetToUser() string {
if x != nil {
return x.ToUser
}
return ""
}
func (x *WxSendVoiceMsg) GetUnknown3() int32 {
if x != nil {
return x.Unknown3
}
return 0
}
func (x *WxSendVoiceMsg) GetUnknown4() int32 {
if x != nil {
return x.Unknown4
}
return 0
}
func (x *WxSendVoiceMsg) GetClientMsgId() string {
if x != nil {
return x.ClientMsgId
}
return ""
}
func (x *WxSendVoiceMsg) GetDuration() int32 {
if x != nil {
return x.Duration
}
return 0
}
func (x *WxSendVoiceMsg) GetUnknown9() int32 {
if x != nil {
return x.Unknown9
}
return 0
}
func (x *WxSendVoiceMsg) GetHeader() *VoiceMsgHeader {
if x != nil {
return x.Header
}
return nil
}
func (x *WxSendVoiceMsg) GetUnknown11() int32 {
if x != nil {
return x.Unknown11
}
return 0
}
func (x *WxSendVoiceMsg) GetUnknown13() int32 {
if x != nil {
return x.Unknown13
}
return 0
}
func (x *WxSendVoiceMsg) GetUnknown15() int32 {
if x != nil {
return x.Unknown15
}
return 0
}
func (x *WxSendVoiceMsg) GetUnknown16() int32 {
if x != nil {
return x.Unknown16
}
return 0
}
func (x *WxSendVoiceMsg) GetUnknown17() int64 {
if x != nil {
return x.Unknown17
}
return 0
}
func (x *WxSendVoiceMsg) GetAesKey() []byte {
if x != nil {
return x.AesKey
}
return nil
}
func (x *WxSendVoiceMsg) GetCdnKey() []byte {
if x != nil {
return x.CdnKey
}
return nil
}
func (x *WxSendVoiceMsg) GetUnknown24() []byte {
if x != nil {
return x.Unknown24
}
return nil
}
func (x *WxSendVoiceMsg) GetUnknown25() int32 {
if x != nil {
return x.Unknown25
}
return 0
}
type VoiceMsgHeader struct {
state protoimpl.MessageState `protogen:"open.v1"`
Flag []byte `protobuf:"bytes,1,opt,name=flag,proto3" json:"flag,omitempty"`
SessionId int64 `protobuf:"varint,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
ClientProof []byte `protobuf:"bytes,3,opt,name=client_proof,json=clientProof,proto3" json:"client_proof,omitempty"`
DeviceId int64 `protobuf:"varint,4,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
Platform []byte `protobuf:"bytes,5,opt,name=platform,proto3" json:"platform,omitempty"`
Version int32 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"`
// field 7 skipped
Unknown8 int32 `protobuf:"varint,8,opt,name=unknown8,proto3" json:"unknown8,omitempty"`
// fields 9-14 skipped
Unknown15 int32 `protobuf:"varint,15,opt,name=unknown15,proto3" json:"unknown15,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *VoiceMsgHeader) Reset() {
*x = VoiceMsgHeader{}
mi := &file_voice_msg_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *VoiceMsgHeader) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VoiceMsgHeader) ProtoMessage() {}
func (x *VoiceMsgHeader) ProtoReflect() protoreflect.Message {
mi := &file_voice_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 VoiceMsgHeader.ProtoReflect.Descriptor instead.
func (*VoiceMsgHeader) Descriptor() ([]byte, []int) {
return file_voice_msg_proto_rawDescGZIP(), []int{1}
}
func (x *VoiceMsgHeader) GetFlag() []byte {
if x != nil {
return x.Flag
}
return nil
}
func (x *VoiceMsgHeader) GetSessionId() int64 {
if x != nil {
return x.SessionId
}
return 0
}
func (x *VoiceMsgHeader) GetClientProof() []byte {
if x != nil {
return x.ClientProof
}
return nil
}
func (x *VoiceMsgHeader) GetDeviceId() int64 {
if x != nil {
return x.DeviceId
}
return 0
}
func (x *VoiceMsgHeader) GetPlatform() []byte {
if x != nil {
return x.Platform
}
return nil
}
func (x *VoiceMsgHeader) GetVersion() int32 {
if x != nil {
return x.Version
}
return 0
}
func (x *VoiceMsgHeader) GetUnknown8() int32 {
if x != nil {
return x.Unknown8
}
return 0
}
func (x *VoiceMsgHeader) GetUnknown15() int32 {
if x != nil {
return x.Unknown15
}
return 0
}
var File_voice_msg_proto protoreflect.FileDescriptor
const file_voice_msg_proto_rawDesc = "" +
"\n" +
"\x0fvoice_msg.proto\x12\awxproto\"\x8f\x04\n" +
"\x0eWxSendVoiceMsg\x12\x1b\n" +
"\tfrom_user\x18\x01 \x01(\tR\bfromUser\x12\x17\n" +
"\ato_user\x18\x02 \x01(\tR\x06toUser\x12\x1a\n" +
"\bunknown3\x18\x03 \x01(\x05R\bunknown3\x12\x1a\n" +
"\bunknown4\x18\x04 \x01(\x05R\bunknown4\x12\"\n" +
"\rclient_msg_id\x18\x05 \x01(\tR\vclientMsgId\x12\x1a\n" +
"\bduration\x18\a \x01(\x05R\bduration\x12\x1a\n" +
"\bunknown9\x18\t \x01(\x05R\bunknown9\x12/\n" +
"\x06header\x18\n" +
" \x01(\v2\x17.wxproto.VoiceMsgHeaderR\x06header\x12\x1c\n" +
"\tunknown11\x18\v \x01(\x05R\tunknown11\x12\x1c\n" +
"\tunknown13\x18\r \x01(\x05R\tunknown13\x12\x1c\n" +
"\tunknown15\x18\x0f \x01(\x05R\tunknown15\x12\x1c\n" +
"\tunknown16\x18\x10 \x01(\x05R\tunknown16\x12\x1c\n" +
"\tunknown17\x18\x11 \x01(\x03R\tunknown17\x12\x17\n" +
"\aaes_key\x18\x14 \x01(\fR\x06aesKey\x12\x17\n" +
"\acdn_key\x18\x15 \x01(\fR\x06cdnKey\x12\x1c\n" +
"\tunknown24\x18\x18 \x01(\fR\tunknown24\x12\x1c\n" +
"\tunknown25\x18\x19 \x01(\x05R\tunknown25\"\xf3\x01\n" +
"\x0eVoiceMsgHeader\x12\x12\n" +
"\x04flag\x18\x01 \x01(\fR\x04flag\x12\x1d\n" +
"\n" +
"session_id\x18\x02 \x01(\x03R\tsessionId\x12!\n" +
"\fclient_proof\x18\x03 \x01(\fR\vclientProof\x12\x1b\n" +
"\tdevice_id\x18\x04 \x01(\x03R\bdeviceId\x12\x1a\n" +
"\bplatform\x18\x05 \x01(\fR\bplatform\x12\x18\n" +
"\aversion\x18\x06 \x01(\x05R\aversion\x12\x1a\n" +
"\bunknown8\x18\b \x01(\x05R\bunknown8\x12\x1c\n" +
"\tunknown15\x18\x0f \x01(\x05R\tunknown15B>Z<github.com/yincongcyincong/weixin-macos/onebot/proto;wxprotob\x06proto3"
var (
file_voice_msg_proto_rawDescOnce sync.Once
file_voice_msg_proto_rawDescData []byte
)
func file_voice_msg_proto_rawDescGZIP() []byte {
file_voice_msg_proto_rawDescOnce.Do(func() {
file_voice_msg_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_voice_msg_proto_rawDesc), len(file_voice_msg_proto_rawDesc)))
})
return file_voice_msg_proto_rawDescData
}
var file_voice_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_voice_msg_proto_goTypes = []any{
(*WxSendVoiceMsg)(nil), // 0: wxproto.WxSendVoiceMsg
(*VoiceMsgHeader)(nil), // 1: wxproto.VoiceMsgHeader
}
var file_voice_msg_proto_depIdxs = []int32{
1, // 0: wxproto.WxSendVoiceMsg.header:type_name -> wxproto.VoiceMsgHeader
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_voice_msg_proto_init() }
func file_voice_msg_proto_init() {
if File_voice_msg_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_voice_msg_proto_rawDesc), len(file_voice_msg_proto_rawDesc)),
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_voice_msg_proto_goTypes,
DependencyIndexes: file_voice_msg_proto_depIdxs,
MessageInfos: file_voice_msg_proto_msgTypes,
}.Build()
File_voice_msg_proto = out.File
file_voice_msg_proto_goTypes = nil
file_voice_msg_proto_depIdxs = nil
}