123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.6
- // protoc v3.19.4
- // source: wecom/WQunFaTask.proto
- package wecom
- 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 TalkMessage struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ContentType EnumContentType `protobuf:"varint,1,opt,name=ContentType,proto3,enum=Im.Scrm.Ww.Proto.EnumContentType" json:"ContentType,omitempty"` // 消息类型 Text Picture Voice Video Link File NameCard WeApp Location
- Content []byte `protobuf:"bytes,2,opt,name=Content,proto3" json:"Content,omitempty"` // 消息内容 文本,url(图片 视频 语音 文件),名片wxid,json(语音 文件 链接 小程序 位置)
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *TalkMessage) Reset() {
- *x = TalkMessage{}
- mi := &file_wecom_WQunFaTask_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *TalkMessage) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TalkMessage) ProtoMessage() {}
- func (x *TalkMessage) ProtoReflect() protoreflect.Message {
- mi := &file_wecom_WQunFaTask_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 TalkMessage.ProtoReflect.Descriptor instead.
- func (*TalkMessage) Descriptor() ([]byte, []int) {
- return file_wecom_WQunFaTask_proto_rawDescGZIP(), []int{0}
- }
- func (x *TalkMessage) GetContentType() EnumContentType {
- if x != nil {
- return x.ContentType
- }
- return EnumContentType_UnknownContent
- }
- func (x *TalkMessage) GetContent() []byte {
- if x != nil {
- return x.Content
- }
- return nil
- }
- type QunFaTaskMessage struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- WxId int64 `protobuf:"varint,1,opt,name=WxId,proto3" json:"WxId,omitempty"` // 设备企业WX号
- Msgs []*TalkMessage `protobuf:"bytes,2,rep,name=Msgs,proto3" json:"Msgs,omitempty"`
- ConvId []int64 `protobuf:"varint,3,rep,packed,name=ConvId,proto3" json:"ConvId,omitempty"` //会话 RemoteId
- TaskId int64 `protobuf:"varint,4,opt,name=TaskId,proto3" json:"TaskId,omitempty"` //
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *QunFaTaskMessage) Reset() {
- *x = QunFaTaskMessage{}
- mi := &file_wecom_WQunFaTask_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *QunFaTaskMessage) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*QunFaTaskMessage) ProtoMessage() {}
- func (x *QunFaTaskMessage) ProtoReflect() protoreflect.Message {
- mi := &file_wecom_WQunFaTask_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 QunFaTaskMessage.ProtoReflect.Descriptor instead.
- func (*QunFaTaskMessage) Descriptor() ([]byte, []int) {
- return file_wecom_WQunFaTask_proto_rawDescGZIP(), []int{1}
- }
- func (x *QunFaTaskMessage) GetWxId() int64 {
- if x != nil {
- return x.WxId
- }
- return 0
- }
- func (x *QunFaTaskMessage) GetMsgs() []*TalkMessage {
- if x != nil {
- return x.Msgs
- }
- return nil
- }
- func (x *QunFaTaskMessage) GetConvId() []int64 {
- if x != nil {
- return x.ConvId
- }
- return nil
- }
- func (x *QunFaTaskMessage) GetTaskId() int64 {
- if x != nil {
- return x.TaskId
- }
- return 0
- }
- var File_wecom_WQunFaTask_proto protoreflect.FileDescriptor
- const file_wecom_WQunFaTask_proto_rawDesc = "" +
- "\n" +
- "\x16wecom/WQunFaTask.proto\x12\x10Im.Scrm.Ww.Proto\x1a\x16wecom/WTransport.proto\"l\n" +
- "\vTalkMessage\x12C\n" +
- "\vContentType\x18\x01 \x01(\x0e2!.Im.Scrm.Ww.Proto.EnumContentTypeR\vContentType\x12\x18\n" +
- "\aContent\x18\x02 \x01(\fR\aContent\"\x89\x01\n" +
- "\x10QunFaTaskMessage\x12\x12\n" +
- "\x04WxId\x18\x01 \x01(\x03R\x04WxId\x121\n" +
- "\x04Msgs\x18\x02 \x03(\v2\x1d.Im.Scrm.Ww.Proto.TalkMessageR\x04Msgs\x12\x16\n" +
- "\x06ConvId\x18\x03 \x03(\x03R\x06ConvId\x12\x16\n" +
- "\x06TaskId\x18\x04 \x01(\x03R\x06TaskIdB\x13Z\x11./workphone/wecomb\x06proto3"
- var (
- file_wecom_WQunFaTask_proto_rawDescOnce sync.Once
- file_wecom_WQunFaTask_proto_rawDescData []byte
- )
- func file_wecom_WQunFaTask_proto_rawDescGZIP() []byte {
- file_wecom_WQunFaTask_proto_rawDescOnce.Do(func() {
- file_wecom_WQunFaTask_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_wecom_WQunFaTask_proto_rawDesc), len(file_wecom_WQunFaTask_proto_rawDesc)))
- })
- return file_wecom_WQunFaTask_proto_rawDescData
- }
- var file_wecom_WQunFaTask_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
- var file_wecom_WQunFaTask_proto_goTypes = []any{
- (*TalkMessage)(nil), // 0: Im.Scrm.Ww.Proto.TalkMessage
- (*QunFaTaskMessage)(nil), // 1: Im.Scrm.Ww.Proto.QunFaTaskMessage
- (EnumContentType)(0), // 2: Im.Scrm.Ww.Proto.EnumContentType
- }
- var file_wecom_WQunFaTask_proto_depIdxs = []int32{
- 2, // 0: Im.Scrm.Ww.Proto.TalkMessage.ContentType:type_name -> Im.Scrm.Ww.Proto.EnumContentType
- 0, // 1: Im.Scrm.Ww.Proto.QunFaTaskMessage.Msgs:type_name -> Im.Scrm.Ww.Proto.TalkMessage
- 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_wecom_WQunFaTask_proto_init() }
- func file_wecom_WQunFaTask_proto_init() {
- if File_wecom_WQunFaTask_proto != nil {
- return
- }
- file_wecom_WTransport_proto_init()
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_wecom_WQunFaTask_proto_rawDesc), len(file_wecom_WQunFaTask_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 2,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_wecom_WQunFaTask_proto_goTypes,
- DependencyIndexes: file_wecom_WQunFaTask_proto_depIdxs,
- MessageInfos: file_wecom_WQunFaTask_proto_msgTypes,
- }.Build()
- File_wecom_WQunFaTask_proto = out.File
- file_wecom_WQunFaTask_proto_goTypes = nil
- file_wecom_WQunFaTask_proto_depIdxs = nil
- }
|