WAWebProtobufsReporting.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.10
  4. // protoc v3.21.12
  5. // source: waReporting/WAWebProtobufsReporting.proto
  6. package waReporting
  7. import (
  8. reflect "reflect"
  9. sync "sync"
  10. unsafe "unsafe"
  11. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  12. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  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 Reportable struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. MinVersion uint32 `protobuf:"varint,1,opt,name=minVersion,proto3" json:"minVersion,omitempty"`
  23. MaxVersion uint32 `protobuf:"varint,2,opt,name=maxVersion,proto3" json:"maxVersion,omitempty"`
  24. NotReportableMinVersion uint32 `protobuf:"varint,3,opt,name=notReportableMinVersion,proto3" json:"notReportableMinVersion,omitempty"`
  25. Never bool `protobuf:"varint,4,opt,name=never,proto3" json:"never,omitempty"`
  26. unknownFields protoimpl.UnknownFields
  27. sizeCache protoimpl.SizeCache
  28. }
  29. func (x *Reportable) Reset() {
  30. *x = Reportable{}
  31. mi := &file_waReporting_WAWebProtobufsReporting_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. func (x *Reportable) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*Reportable) ProtoMessage() {}
  39. func (x *Reportable) ProtoReflect() protoreflect.Message {
  40. mi := &file_waReporting_WAWebProtobufsReporting_proto_msgTypes[0]
  41. if x != nil {
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. if ms.LoadMessageInfo() == nil {
  44. ms.StoreMessageInfo(mi)
  45. }
  46. return ms
  47. }
  48. return mi.MessageOf(x)
  49. }
  50. // Deprecated: Use Reportable.ProtoReflect.Descriptor instead.
  51. func (*Reportable) Descriptor() ([]byte, []int) {
  52. return file_waReporting_WAWebProtobufsReporting_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *Reportable) GetMinVersion() uint32 {
  55. if x != nil {
  56. return x.MinVersion
  57. }
  58. return 0
  59. }
  60. func (x *Reportable) GetMaxVersion() uint32 {
  61. if x != nil {
  62. return x.MaxVersion
  63. }
  64. return 0
  65. }
  66. func (x *Reportable) GetNotReportableMinVersion() uint32 {
  67. if x != nil {
  68. return x.NotReportableMinVersion
  69. }
  70. return 0
  71. }
  72. func (x *Reportable) GetNever() bool {
  73. if x != nil {
  74. return x.Never
  75. }
  76. return false
  77. }
  78. type Config struct {
  79. state protoimpl.MessageState `protogen:"open.v1"`
  80. Field map[uint32]*Field `protobuf:"bytes,1,rep,name=field,proto3" json:"field,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  81. Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
  82. unknownFields protoimpl.UnknownFields
  83. sizeCache protoimpl.SizeCache
  84. }
  85. func (x *Config) Reset() {
  86. *x = Config{}
  87. mi := &file_waReporting_WAWebProtobufsReporting_proto_msgTypes[1]
  88. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  89. ms.StoreMessageInfo(mi)
  90. }
  91. func (x *Config) String() string {
  92. return protoimpl.X.MessageStringOf(x)
  93. }
  94. func (*Config) ProtoMessage() {}
  95. func (x *Config) ProtoReflect() protoreflect.Message {
  96. mi := &file_waReporting_WAWebProtobufsReporting_proto_msgTypes[1]
  97. if x != nil {
  98. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  99. if ms.LoadMessageInfo() == nil {
  100. ms.StoreMessageInfo(mi)
  101. }
  102. return ms
  103. }
  104. return mi.MessageOf(x)
  105. }
  106. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  107. func (*Config) Descriptor() ([]byte, []int) {
  108. return file_waReporting_WAWebProtobufsReporting_proto_rawDescGZIP(), []int{1}
  109. }
  110. func (x *Config) GetField() map[uint32]*Field {
  111. if x != nil {
  112. return x.Field
  113. }
  114. return nil
  115. }
  116. func (x *Config) GetVersion() uint32 {
  117. if x != nil {
  118. return x.Version
  119. }
  120. return 0
  121. }
  122. type Field struct {
  123. state protoimpl.MessageState `protogen:"open.v1"`
  124. MinVersion uint32 `protobuf:"varint,1,opt,name=minVersion,proto3" json:"minVersion,omitempty"`
  125. MaxVersion uint32 `protobuf:"varint,2,opt,name=maxVersion,proto3" json:"maxVersion,omitempty"`
  126. NotReportableMinVersion uint32 `protobuf:"varint,3,opt,name=notReportableMinVersion,proto3" json:"notReportableMinVersion,omitempty"`
  127. IsMessage bool `protobuf:"varint,4,opt,name=isMessage,proto3" json:"isMessage,omitempty"`
  128. Subfield map[uint32]*Field `protobuf:"bytes,5,rep,name=subfield,proto3" json:"subfield,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  129. unknownFields protoimpl.UnknownFields
  130. sizeCache protoimpl.SizeCache
  131. }
  132. func (x *Field) Reset() {
  133. *x = Field{}
  134. mi := &file_waReporting_WAWebProtobufsReporting_proto_msgTypes[2]
  135. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  136. ms.StoreMessageInfo(mi)
  137. }
  138. func (x *Field) String() string {
  139. return protoimpl.X.MessageStringOf(x)
  140. }
  141. func (*Field) ProtoMessage() {}
  142. func (x *Field) ProtoReflect() protoreflect.Message {
  143. mi := &file_waReporting_WAWebProtobufsReporting_proto_msgTypes[2]
  144. if x != nil {
  145. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  146. if ms.LoadMessageInfo() == nil {
  147. ms.StoreMessageInfo(mi)
  148. }
  149. return ms
  150. }
  151. return mi.MessageOf(x)
  152. }
  153. // Deprecated: Use Field.ProtoReflect.Descriptor instead.
  154. func (*Field) Descriptor() ([]byte, []int) {
  155. return file_waReporting_WAWebProtobufsReporting_proto_rawDescGZIP(), []int{2}
  156. }
  157. func (x *Field) GetMinVersion() uint32 {
  158. if x != nil {
  159. return x.MinVersion
  160. }
  161. return 0
  162. }
  163. func (x *Field) GetMaxVersion() uint32 {
  164. if x != nil {
  165. return x.MaxVersion
  166. }
  167. return 0
  168. }
  169. func (x *Field) GetNotReportableMinVersion() uint32 {
  170. if x != nil {
  171. return x.NotReportableMinVersion
  172. }
  173. return 0
  174. }
  175. func (x *Field) GetIsMessage() bool {
  176. if x != nil {
  177. return x.IsMessage
  178. }
  179. return false
  180. }
  181. func (x *Field) GetSubfield() map[uint32]*Field {
  182. if x != nil {
  183. return x.Subfield
  184. }
  185. return nil
  186. }
  187. var File_waReporting_WAWebProtobufsReporting_proto protoreflect.FileDescriptor
  188. const file_waReporting_WAWebProtobufsReporting_proto_rawDesc = "" +
  189. "\n" +
  190. ")waReporting/WAWebProtobufsReporting.proto\x12\x17WAWebProtobufsReporting\"\x9c\x01\n" +
  191. "\n" +
  192. "Reportable\x12\x1e\n" +
  193. "\n" +
  194. "minVersion\x18\x01 \x01(\rR\n" +
  195. "minVersion\x12\x1e\n" +
  196. "\n" +
  197. "maxVersion\x18\x02 \x01(\rR\n" +
  198. "maxVersion\x128\n" +
  199. "\x17notReportableMinVersion\x18\x03 \x01(\rR\x17notReportableMinVersion\x12\x14\n" +
  200. "\x05never\x18\x04 \x01(\bR\x05never\"\xbe\x01\n" +
  201. "\x06Config\x12@\n" +
  202. "\x05field\x18\x01 \x03(\v2*.WAWebProtobufsReporting.Config.FieldEntryR\x05field\x12\x18\n" +
  203. "\aversion\x18\x02 \x01(\rR\aversion\x1aX\n" +
  204. "\n" +
  205. "FieldEntry\x12\x10\n" +
  206. "\x03key\x18\x01 \x01(\rR\x03key\x124\n" +
  207. "\x05value\x18\x02 \x01(\v2\x1e.WAWebProtobufsReporting.FieldR\x05value:\x028\x01\"\xc6\x02\n" +
  208. "\x05Field\x12\x1e\n" +
  209. "\n" +
  210. "minVersion\x18\x01 \x01(\rR\n" +
  211. "minVersion\x12\x1e\n" +
  212. "\n" +
  213. "maxVersion\x18\x02 \x01(\rR\n" +
  214. "maxVersion\x128\n" +
  215. "\x17notReportableMinVersion\x18\x03 \x01(\rR\x17notReportableMinVersion\x12\x1c\n" +
  216. "\tisMessage\x18\x04 \x01(\bR\tisMessage\x12H\n" +
  217. "\bsubfield\x18\x05 \x03(\v2,.WAWebProtobufsReporting.Field.SubfieldEntryR\bsubfield\x1a[\n" +
  218. "\rSubfieldEntry\x12\x10\n" +
  219. "\x03key\x18\x01 \x01(\rR\x03key\x124\n" +
  220. "\x05value\x18\x02 \x01(\v2\x1e.WAWebProtobufsReporting.FieldR\x05value:\x028\x01B'Z%go.mau.fi/whatsmeow/proto/waReportingb\x06proto3"
  221. var (
  222. file_waReporting_WAWebProtobufsReporting_proto_rawDescOnce sync.Once
  223. file_waReporting_WAWebProtobufsReporting_proto_rawDescData []byte
  224. )
  225. func file_waReporting_WAWebProtobufsReporting_proto_rawDescGZIP() []byte {
  226. file_waReporting_WAWebProtobufsReporting_proto_rawDescOnce.Do(func() {
  227. file_waReporting_WAWebProtobufsReporting_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waReporting_WAWebProtobufsReporting_proto_rawDesc), len(file_waReporting_WAWebProtobufsReporting_proto_rawDesc)))
  228. })
  229. return file_waReporting_WAWebProtobufsReporting_proto_rawDescData
  230. }
  231. var file_waReporting_WAWebProtobufsReporting_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  232. var file_waReporting_WAWebProtobufsReporting_proto_goTypes = []any{
  233. (*Reportable)(nil), // 0: WAWebProtobufsReporting.Reportable
  234. (*Config)(nil), // 1: WAWebProtobufsReporting.Config
  235. (*Field)(nil), // 2: WAWebProtobufsReporting.Field
  236. nil, // 3: WAWebProtobufsReporting.Config.FieldEntry
  237. nil, // 4: WAWebProtobufsReporting.Field.SubfieldEntry
  238. }
  239. var file_waReporting_WAWebProtobufsReporting_proto_depIdxs = []int32{
  240. 3, // 0: WAWebProtobufsReporting.Config.field:type_name -> WAWebProtobufsReporting.Config.FieldEntry
  241. 4, // 1: WAWebProtobufsReporting.Field.subfield:type_name -> WAWebProtobufsReporting.Field.SubfieldEntry
  242. 2, // 2: WAWebProtobufsReporting.Config.FieldEntry.value:type_name -> WAWebProtobufsReporting.Field
  243. 2, // 3: WAWebProtobufsReporting.Field.SubfieldEntry.value:type_name -> WAWebProtobufsReporting.Field
  244. 4, // [4:4] is the sub-list for method output_type
  245. 4, // [4:4] is the sub-list for method input_type
  246. 4, // [4:4] is the sub-list for extension type_name
  247. 4, // [4:4] is the sub-list for extension extendee
  248. 0, // [0:4] is the sub-list for field type_name
  249. }
  250. func init() { file_waReporting_WAWebProtobufsReporting_proto_init() }
  251. func file_waReporting_WAWebProtobufsReporting_proto_init() {
  252. if File_waReporting_WAWebProtobufsReporting_proto != nil {
  253. return
  254. }
  255. type x struct{}
  256. out := protoimpl.TypeBuilder{
  257. File: protoimpl.DescBuilder{
  258. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  259. RawDescriptor: unsafe.Slice(unsafe.StringData(file_waReporting_WAWebProtobufsReporting_proto_rawDesc), len(file_waReporting_WAWebProtobufsReporting_proto_rawDesc)),
  260. NumEnums: 0,
  261. NumMessages: 5,
  262. NumExtensions: 0,
  263. NumServices: 0,
  264. },
  265. GoTypes: file_waReporting_WAWebProtobufsReporting_proto_goTypes,
  266. DependencyIndexes: file_waReporting_WAWebProtobufsReporting_proto_depIdxs,
  267. MessageInfos: file_waReporting_WAWebProtobufsReporting_proto_msgTypes,
  268. }.Build()
  269. File_waReporting_WAWebProtobufsReporting_proto = out.File
  270. file_waReporting_WAWebProtobufsReporting_proto_goTypes = nil
  271. file_waReporting_WAWebProtobufsReporting_proto_depIdxs = nil
  272. }