WQunFaTask.pb.go 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.6
  4. // protoc v3.19.4
  5. // source: wecom/WQunFaTask.proto
  6. package wecom
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. unsafe "unsafe"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type TalkMessage struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. 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
  23. Content []byte `protobuf:"bytes,2,opt,name=Content,proto3" json:"Content,omitempty"` // 消息内容 文本,url(图片 视频 语音 文件),名片wxid,json(语音 文件 链接 小程序 位置)
  24. unknownFields protoimpl.UnknownFields
  25. sizeCache protoimpl.SizeCache
  26. }
  27. func (x *TalkMessage) Reset() {
  28. *x = TalkMessage{}
  29. mi := &file_wecom_WQunFaTask_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. func (x *TalkMessage) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*TalkMessage) ProtoMessage() {}
  37. func (x *TalkMessage) ProtoReflect() protoreflect.Message {
  38. mi := &file_wecom_WQunFaTask_proto_msgTypes[0]
  39. if x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use TalkMessage.ProtoReflect.Descriptor instead.
  49. func (*TalkMessage) Descriptor() ([]byte, []int) {
  50. return file_wecom_WQunFaTask_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *TalkMessage) GetContentType() EnumContentType {
  53. if x != nil {
  54. return x.ContentType
  55. }
  56. return EnumContentType_UnknownContent
  57. }
  58. func (x *TalkMessage) GetContent() []byte {
  59. if x != nil {
  60. return x.Content
  61. }
  62. return nil
  63. }
  64. type QunFaTaskMessage struct {
  65. state protoimpl.MessageState `protogen:"open.v1"`
  66. WxId int64 `protobuf:"varint,1,opt,name=WxId,proto3" json:"WxId,omitempty"` // 设备企业WX号
  67. Msgs []*TalkMessage `protobuf:"bytes,2,rep,name=Msgs,proto3" json:"Msgs,omitempty"`
  68. ConvId []int64 `protobuf:"varint,3,rep,packed,name=ConvId,proto3" json:"ConvId,omitempty"` //会话 RemoteId
  69. TaskId int64 `protobuf:"varint,4,opt,name=TaskId,proto3" json:"TaskId,omitempty"` //
  70. unknownFields protoimpl.UnknownFields
  71. sizeCache protoimpl.SizeCache
  72. }
  73. func (x *QunFaTaskMessage) Reset() {
  74. *x = QunFaTaskMessage{}
  75. mi := &file_wecom_WQunFaTask_proto_msgTypes[1]
  76. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  77. ms.StoreMessageInfo(mi)
  78. }
  79. func (x *QunFaTaskMessage) String() string {
  80. return protoimpl.X.MessageStringOf(x)
  81. }
  82. func (*QunFaTaskMessage) ProtoMessage() {}
  83. func (x *QunFaTaskMessage) ProtoReflect() protoreflect.Message {
  84. mi := &file_wecom_WQunFaTask_proto_msgTypes[1]
  85. if x != nil {
  86. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  87. if ms.LoadMessageInfo() == nil {
  88. ms.StoreMessageInfo(mi)
  89. }
  90. return ms
  91. }
  92. return mi.MessageOf(x)
  93. }
  94. // Deprecated: Use QunFaTaskMessage.ProtoReflect.Descriptor instead.
  95. func (*QunFaTaskMessage) Descriptor() ([]byte, []int) {
  96. return file_wecom_WQunFaTask_proto_rawDescGZIP(), []int{1}
  97. }
  98. func (x *QunFaTaskMessage) GetWxId() int64 {
  99. if x != nil {
  100. return x.WxId
  101. }
  102. return 0
  103. }
  104. func (x *QunFaTaskMessage) GetMsgs() []*TalkMessage {
  105. if x != nil {
  106. return x.Msgs
  107. }
  108. return nil
  109. }
  110. func (x *QunFaTaskMessage) GetConvId() []int64 {
  111. if x != nil {
  112. return x.ConvId
  113. }
  114. return nil
  115. }
  116. func (x *QunFaTaskMessage) GetTaskId() int64 {
  117. if x != nil {
  118. return x.TaskId
  119. }
  120. return 0
  121. }
  122. var File_wecom_WQunFaTask_proto protoreflect.FileDescriptor
  123. const file_wecom_WQunFaTask_proto_rawDesc = "" +
  124. "\n" +
  125. "\x16wecom/WQunFaTask.proto\x12\x10Im.Scrm.Ww.Proto\x1a\x16wecom/WTransport.proto\"l\n" +
  126. "\vTalkMessage\x12C\n" +
  127. "\vContentType\x18\x01 \x01(\x0e2!.Im.Scrm.Ww.Proto.EnumContentTypeR\vContentType\x12\x18\n" +
  128. "\aContent\x18\x02 \x01(\fR\aContent\"\x89\x01\n" +
  129. "\x10QunFaTaskMessage\x12\x12\n" +
  130. "\x04WxId\x18\x01 \x01(\x03R\x04WxId\x121\n" +
  131. "\x04Msgs\x18\x02 \x03(\v2\x1d.Im.Scrm.Ww.Proto.TalkMessageR\x04Msgs\x12\x16\n" +
  132. "\x06ConvId\x18\x03 \x03(\x03R\x06ConvId\x12\x16\n" +
  133. "\x06TaskId\x18\x04 \x01(\x03R\x06TaskIdB\x13Z\x11./workphone/wecomb\x06proto3"
  134. var (
  135. file_wecom_WQunFaTask_proto_rawDescOnce sync.Once
  136. file_wecom_WQunFaTask_proto_rawDescData []byte
  137. )
  138. func file_wecom_WQunFaTask_proto_rawDescGZIP() []byte {
  139. file_wecom_WQunFaTask_proto_rawDescOnce.Do(func() {
  140. file_wecom_WQunFaTask_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_wecom_WQunFaTask_proto_rawDesc), len(file_wecom_WQunFaTask_proto_rawDesc)))
  141. })
  142. return file_wecom_WQunFaTask_proto_rawDescData
  143. }
  144. var file_wecom_WQunFaTask_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  145. var file_wecom_WQunFaTask_proto_goTypes = []any{
  146. (*TalkMessage)(nil), // 0: Im.Scrm.Ww.Proto.TalkMessage
  147. (*QunFaTaskMessage)(nil), // 1: Im.Scrm.Ww.Proto.QunFaTaskMessage
  148. (EnumContentType)(0), // 2: Im.Scrm.Ww.Proto.EnumContentType
  149. }
  150. var file_wecom_WQunFaTask_proto_depIdxs = []int32{
  151. 2, // 0: Im.Scrm.Ww.Proto.TalkMessage.ContentType:type_name -> Im.Scrm.Ww.Proto.EnumContentType
  152. 0, // 1: Im.Scrm.Ww.Proto.QunFaTaskMessage.Msgs:type_name -> Im.Scrm.Ww.Proto.TalkMessage
  153. 2, // [2:2] is the sub-list for method output_type
  154. 2, // [2:2] is the sub-list for method input_type
  155. 2, // [2:2] is the sub-list for extension type_name
  156. 2, // [2:2] is the sub-list for extension extendee
  157. 0, // [0:2] is the sub-list for field type_name
  158. }
  159. func init() { file_wecom_WQunFaTask_proto_init() }
  160. func file_wecom_WQunFaTask_proto_init() {
  161. if File_wecom_WQunFaTask_proto != nil {
  162. return
  163. }
  164. file_wecom_WTransport_proto_init()
  165. type x struct{}
  166. out := protoimpl.TypeBuilder{
  167. File: protoimpl.DescBuilder{
  168. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  169. RawDescriptor: unsafe.Slice(unsafe.StringData(file_wecom_WQunFaTask_proto_rawDesc), len(file_wecom_WQunFaTask_proto_rawDesc)),
  170. NumEnums: 0,
  171. NumMessages: 2,
  172. NumExtensions: 0,
  173. NumServices: 0,
  174. },
  175. GoTypes: file_wecom_WQunFaTask_proto_goTypes,
  176. DependencyIndexes: file_wecom_WQunFaTask_proto_depIdxs,
  177. MessageInfos: file_wecom_WQunFaTask_proto_msgTypes,
  178. }.Build()
  179. File_wecom_WQunFaTask_proto = out.File
  180. file_wecom_WQunFaTask_proto_goTypes = nil
  181. file_wecom_WQunFaTask_proto_depIdxs = nil
  182. }