WTalkToFriendTask.pb.go 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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/WTalkToFriendTask.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 TalkToFriendTaskMessage struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. WxId int64 `protobuf:"varint,1,opt,name=WxId,proto3" json:"WxId,omitempty"` // 设备企业WX号
  23. ConvId int64 `protobuf:"varint,2,opt,name=ConvId,proto3" json:"ConvId,omitempty"` //会话 RemoteId
  24. LocalId int64 `protobuf:"varint,3,opt,name=LocalId,proto3" json:"LocalId,omitempty"` //会话id
  25. ContentType EnumContentType `protobuf:"varint,4,opt,name=ContentType,proto3,enum=Im.Scrm.Ww.Proto.EnumContentType" json:"ContentType,omitempty"` // 消息类型 Text Picture Voice Video Link File NameCard WeApp Location Quote
  26. Content []byte `protobuf:"bytes,5,opt,name=Content,proto3" json:"Content,omitempty"` // 消息内容 文本,url(图片 视频 语音 文件),名片wxid,json(语音 文件 链接 小程序 位置)
  27. RefId int64 `protobuf:"varint,6,opt,name=RefId,proto3" json:"RefId,omitempty"` // 引用消息id
  28. AtSomeOne []int64 `protobuf:"varint,7,rep,packed,name=AtSomeOne,proto3" json:"AtSomeOne,omitempty"` // 群聊@某人 0表示@所有人
  29. TaskId int64 `protobuf:"varint,9,opt,name=TaskId,proto3" json:"TaskId,omitempty"` // 发送给手机端的时候需要赋值,
  30. unknownFields protoimpl.UnknownFields
  31. sizeCache protoimpl.SizeCache
  32. }
  33. func (x *TalkToFriendTaskMessage) Reset() {
  34. *x = TalkToFriendTaskMessage{}
  35. mi := &file_wecom_WTalkToFriendTask_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  38. }
  39. func (x *TalkToFriendTaskMessage) String() string {
  40. return protoimpl.X.MessageStringOf(x)
  41. }
  42. func (*TalkToFriendTaskMessage) ProtoMessage() {}
  43. func (x *TalkToFriendTaskMessage) ProtoReflect() protoreflect.Message {
  44. mi := &file_wecom_WTalkToFriendTask_proto_msgTypes[0]
  45. if x != nil {
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. if ms.LoadMessageInfo() == nil {
  48. ms.StoreMessageInfo(mi)
  49. }
  50. return ms
  51. }
  52. return mi.MessageOf(x)
  53. }
  54. // Deprecated: Use TalkToFriendTaskMessage.ProtoReflect.Descriptor instead.
  55. func (*TalkToFriendTaskMessage) Descriptor() ([]byte, []int) {
  56. return file_wecom_WTalkToFriendTask_proto_rawDescGZIP(), []int{0}
  57. }
  58. func (x *TalkToFriendTaskMessage) GetWxId() int64 {
  59. if x != nil {
  60. return x.WxId
  61. }
  62. return 0
  63. }
  64. func (x *TalkToFriendTaskMessage) GetConvId() int64 {
  65. if x != nil {
  66. return x.ConvId
  67. }
  68. return 0
  69. }
  70. func (x *TalkToFriendTaskMessage) GetLocalId() int64 {
  71. if x != nil {
  72. return x.LocalId
  73. }
  74. return 0
  75. }
  76. func (x *TalkToFriendTaskMessage) GetContentType() EnumContentType {
  77. if x != nil {
  78. return x.ContentType
  79. }
  80. return EnumContentType_UnknownContent
  81. }
  82. func (x *TalkToFriendTaskMessage) GetContent() []byte {
  83. if x != nil {
  84. return x.Content
  85. }
  86. return nil
  87. }
  88. func (x *TalkToFriendTaskMessage) GetRefId() int64 {
  89. if x != nil {
  90. return x.RefId
  91. }
  92. return 0
  93. }
  94. func (x *TalkToFriendTaskMessage) GetAtSomeOne() []int64 {
  95. if x != nil {
  96. return x.AtSomeOne
  97. }
  98. return nil
  99. }
  100. func (x *TalkToFriendTaskMessage) GetTaskId() int64 {
  101. if x != nil {
  102. return x.TaskId
  103. }
  104. return 0
  105. }
  106. var File_wecom_WTalkToFriendTask_proto protoreflect.FileDescriptor
  107. const file_wecom_WTalkToFriendTask_proto_rawDesc = "" +
  108. "\n" +
  109. "\x1dwecom/WTalkToFriendTask.proto\x12\x10Im.Scrm.Ww.Proto\x1a\x16wecom/WTransport.proto\"\x8a\x02\n" +
  110. "\x17TalkToFriendTaskMessage\x12\x12\n" +
  111. "\x04WxId\x18\x01 \x01(\x03R\x04WxId\x12\x16\n" +
  112. "\x06ConvId\x18\x02 \x01(\x03R\x06ConvId\x12\x18\n" +
  113. "\aLocalId\x18\x03 \x01(\x03R\aLocalId\x12C\n" +
  114. "\vContentType\x18\x04 \x01(\x0e2!.Im.Scrm.Ww.Proto.EnumContentTypeR\vContentType\x12\x18\n" +
  115. "\aContent\x18\x05 \x01(\fR\aContent\x12\x14\n" +
  116. "\x05RefId\x18\x06 \x01(\x03R\x05RefId\x12\x1c\n" +
  117. "\tAtSomeOne\x18\a \x03(\x03R\tAtSomeOne\x12\x16\n" +
  118. "\x06TaskId\x18\t \x01(\x03R\x06TaskIdB\x13Z\x11./workphone/wecomb\x06proto3"
  119. var (
  120. file_wecom_WTalkToFriendTask_proto_rawDescOnce sync.Once
  121. file_wecom_WTalkToFriendTask_proto_rawDescData []byte
  122. )
  123. func file_wecom_WTalkToFriendTask_proto_rawDescGZIP() []byte {
  124. file_wecom_WTalkToFriendTask_proto_rawDescOnce.Do(func() {
  125. file_wecom_WTalkToFriendTask_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_wecom_WTalkToFriendTask_proto_rawDesc), len(file_wecom_WTalkToFriendTask_proto_rawDesc)))
  126. })
  127. return file_wecom_WTalkToFriendTask_proto_rawDescData
  128. }
  129. var file_wecom_WTalkToFriendTask_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  130. var file_wecom_WTalkToFriendTask_proto_goTypes = []any{
  131. (*TalkToFriendTaskMessage)(nil), // 0: Im.Scrm.Ww.Proto.TalkToFriendTaskMessage
  132. (EnumContentType)(0), // 1: Im.Scrm.Ww.Proto.EnumContentType
  133. }
  134. var file_wecom_WTalkToFriendTask_proto_depIdxs = []int32{
  135. 1, // 0: Im.Scrm.Ww.Proto.TalkToFriendTaskMessage.ContentType:type_name -> Im.Scrm.Ww.Proto.EnumContentType
  136. 1, // [1:1] is the sub-list for method output_type
  137. 1, // [1:1] is the sub-list for method input_type
  138. 1, // [1:1] is the sub-list for extension type_name
  139. 1, // [1:1] is the sub-list for extension extendee
  140. 0, // [0:1] is the sub-list for field type_name
  141. }
  142. func init() { file_wecom_WTalkToFriendTask_proto_init() }
  143. func file_wecom_WTalkToFriendTask_proto_init() {
  144. if File_wecom_WTalkToFriendTask_proto != nil {
  145. return
  146. }
  147. file_wecom_WTransport_proto_init()
  148. type x struct{}
  149. out := protoimpl.TypeBuilder{
  150. File: protoimpl.DescBuilder{
  151. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  152. RawDescriptor: unsafe.Slice(unsafe.StringData(file_wecom_WTalkToFriendTask_proto_rawDesc), len(file_wecom_WTalkToFriendTask_proto_rawDesc)),
  153. NumEnums: 0,
  154. NumMessages: 1,
  155. NumExtensions: 0,
  156. NumServices: 0,
  157. },
  158. GoTypes: file_wecom_WTalkToFriendTask_proto_goTypes,
  159. DependencyIndexes: file_wecom_WTalkToFriendTask_proto_depIdxs,
  160. MessageInfos: file_wecom_WTalkToFriendTask_proto_msgTypes,
  161. }.Build()
  162. File_wecom_WTalkToFriendTask_proto = out.File
  163. file_wecom_WTalkToFriendTask_proto_goTypes = nil
  164. file_wecom_WTalkToFriendTask_proto_depIdxs = nil
  165. }