WACert.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  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: waCert/WACert.proto
  6. package waCert
  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 NoiseCertificate struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. Details []byte `protobuf:"bytes,1,opt,name=details" json:"details,omitempty"`
  23. Signature []byte `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
  24. unknownFields protoimpl.UnknownFields
  25. sizeCache protoimpl.SizeCache
  26. }
  27. func (x *NoiseCertificate) Reset() {
  28. *x = NoiseCertificate{}
  29. mi := &file_waCert_WACert_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. func (x *NoiseCertificate) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*NoiseCertificate) ProtoMessage() {}
  37. func (x *NoiseCertificate) ProtoReflect() protoreflect.Message {
  38. mi := &file_waCert_WACert_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 NoiseCertificate.ProtoReflect.Descriptor instead.
  49. func (*NoiseCertificate) Descriptor() ([]byte, []int) {
  50. return file_waCert_WACert_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *NoiseCertificate) GetDetails() []byte {
  53. if x != nil {
  54. return x.Details
  55. }
  56. return nil
  57. }
  58. func (x *NoiseCertificate) GetSignature() []byte {
  59. if x != nil {
  60. return x.Signature
  61. }
  62. return nil
  63. }
  64. type CertChain struct {
  65. state protoimpl.MessageState `protogen:"open.v1"`
  66. Leaf *CertChain_NoiseCertificate `protobuf:"bytes,1,opt,name=leaf" json:"leaf,omitempty"`
  67. Intermediate *CertChain_NoiseCertificate `protobuf:"bytes,2,opt,name=intermediate" json:"intermediate,omitempty"`
  68. unknownFields protoimpl.UnknownFields
  69. sizeCache protoimpl.SizeCache
  70. }
  71. func (x *CertChain) Reset() {
  72. *x = CertChain{}
  73. mi := &file_waCert_WACert_proto_msgTypes[1]
  74. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  75. ms.StoreMessageInfo(mi)
  76. }
  77. func (x *CertChain) String() string {
  78. return protoimpl.X.MessageStringOf(x)
  79. }
  80. func (*CertChain) ProtoMessage() {}
  81. func (x *CertChain) ProtoReflect() protoreflect.Message {
  82. mi := &file_waCert_WACert_proto_msgTypes[1]
  83. if x != nil {
  84. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  85. if ms.LoadMessageInfo() == nil {
  86. ms.StoreMessageInfo(mi)
  87. }
  88. return ms
  89. }
  90. return mi.MessageOf(x)
  91. }
  92. // Deprecated: Use CertChain.ProtoReflect.Descriptor instead.
  93. func (*CertChain) Descriptor() ([]byte, []int) {
  94. return file_waCert_WACert_proto_rawDescGZIP(), []int{1}
  95. }
  96. func (x *CertChain) GetLeaf() *CertChain_NoiseCertificate {
  97. if x != nil {
  98. return x.Leaf
  99. }
  100. return nil
  101. }
  102. func (x *CertChain) GetIntermediate() *CertChain_NoiseCertificate {
  103. if x != nil {
  104. return x.Intermediate
  105. }
  106. return nil
  107. }
  108. type NoiseCertificate_Details struct {
  109. state protoimpl.MessageState `protogen:"open.v1"`
  110. Serial *uint32 `protobuf:"varint,1,opt,name=serial" json:"serial,omitempty"`
  111. Issuer *string `protobuf:"bytes,2,opt,name=issuer" json:"issuer,omitempty"`
  112. Expires *uint64 `protobuf:"varint,3,opt,name=expires" json:"expires,omitempty"`
  113. Subject *string `protobuf:"bytes,4,opt,name=subject" json:"subject,omitempty"`
  114. Key []byte `protobuf:"bytes,5,opt,name=key" json:"key,omitempty"`
  115. unknownFields protoimpl.UnknownFields
  116. sizeCache protoimpl.SizeCache
  117. }
  118. func (x *NoiseCertificate_Details) Reset() {
  119. *x = NoiseCertificate_Details{}
  120. mi := &file_waCert_WACert_proto_msgTypes[2]
  121. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  122. ms.StoreMessageInfo(mi)
  123. }
  124. func (x *NoiseCertificate_Details) String() string {
  125. return protoimpl.X.MessageStringOf(x)
  126. }
  127. func (*NoiseCertificate_Details) ProtoMessage() {}
  128. func (x *NoiseCertificate_Details) ProtoReflect() protoreflect.Message {
  129. mi := &file_waCert_WACert_proto_msgTypes[2]
  130. if x != nil {
  131. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  132. if ms.LoadMessageInfo() == nil {
  133. ms.StoreMessageInfo(mi)
  134. }
  135. return ms
  136. }
  137. return mi.MessageOf(x)
  138. }
  139. // Deprecated: Use NoiseCertificate_Details.ProtoReflect.Descriptor instead.
  140. func (*NoiseCertificate_Details) Descriptor() ([]byte, []int) {
  141. return file_waCert_WACert_proto_rawDescGZIP(), []int{0, 0}
  142. }
  143. func (x *NoiseCertificate_Details) GetSerial() uint32 {
  144. if x != nil && x.Serial != nil {
  145. return *x.Serial
  146. }
  147. return 0
  148. }
  149. func (x *NoiseCertificate_Details) GetIssuer() string {
  150. if x != nil && x.Issuer != nil {
  151. return *x.Issuer
  152. }
  153. return ""
  154. }
  155. func (x *NoiseCertificate_Details) GetExpires() uint64 {
  156. if x != nil && x.Expires != nil {
  157. return *x.Expires
  158. }
  159. return 0
  160. }
  161. func (x *NoiseCertificate_Details) GetSubject() string {
  162. if x != nil && x.Subject != nil {
  163. return *x.Subject
  164. }
  165. return ""
  166. }
  167. func (x *NoiseCertificate_Details) GetKey() []byte {
  168. if x != nil {
  169. return x.Key
  170. }
  171. return nil
  172. }
  173. type CertChain_NoiseCertificate struct {
  174. state protoimpl.MessageState `protogen:"open.v1"`
  175. Details []byte `protobuf:"bytes,1,opt,name=details" json:"details,omitempty"`
  176. Signature []byte `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
  177. unknownFields protoimpl.UnknownFields
  178. sizeCache protoimpl.SizeCache
  179. }
  180. func (x *CertChain_NoiseCertificate) Reset() {
  181. *x = CertChain_NoiseCertificate{}
  182. mi := &file_waCert_WACert_proto_msgTypes[3]
  183. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  184. ms.StoreMessageInfo(mi)
  185. }
  186. func (x *CertChain_NoiseCertificate) String() string {
  187. return protoimpl.X.MessageStringOf(x)
  188. }
  189. func (*CertChain_NoiseCertificate) ProtoMessage() {}
  190. func (x *CertChain_NoiseCertificate) ProtoReflect() protoreflect.Message {
  191. mi := &file_waCert_WACert_proto_msgTypes[3]
  192. if x != nil {
  193. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  194. if ms.LoadMessageInfo() == nil {
  195. ms.StoreMessageInfo(mi)
  196. }
  197. return ms
  198. }
  199. return mi.MessageOf(x)
  200. }
  201. // Deprecated: Use CertChain_NoiseCertificate.ProtoReflect.Descriptor instead.
  202. func (*CertChain_NoiseCertificate) Descriptor() ([]byte, []int) {
  203. return file_waCert_WACert_proto_rawDescGZIP(), []int{1, 0}
  204. }
  205. func (x *CertChain_NoiseCertificate) GetDetails() []byte {
  206. if x != nil {
  207. return x.Details
  208. }
  209. return nil
  210. }
  211. func (x *CertChain_NoiseCertificate) GetSignature() []byte {
  212. if x != nil {
  213. return x.Signature
  214. }
  215. return nil
  216. }
  217. type CertChain_NoiseCertificate_Details struct {
  218. state protoimpl.MessageState `protogen:"open.v1"`
  219. Serial *uint32 `protobuf:"varint,1,opt,name=serial" json:"serial,omitempty"`
  220. IssuerSerial *uint32 `protobuf:"varint,2,opt,name=issuerSerial" json:"issuerSerial,omitempty"`
  221. Key []byte `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"`
  222. NotBefore *uint64 `protobuf:"varint,4,opt,name=notBefore" json:"notBefore,omitempty"`
  223. NotAfter *uint64 `protobuf:"varint,5,opt,name=notAfter" json:"notAfter,omitempty"`
  224. unknownFields protoimpl.UnknownFields
  225. sizeCache protoimpl.SizeCache
  226. }
  227. func (x *CertChain_NoiseCertificate_Details) Reset() {
  228. *x = CertChain_NoiseCertificate_Details{}
  229. mi := &file_waCert_WACert_proto_msgTypes[4]
  230. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  231. ms.StoreMessageInfo(mi)
  232. }
  233. func (x *CertChain_NoiseCertificate_Details) String() string {
  234. return protoimpl.X.MessageStringOf(x)
  235. }
  236. func (*CertChain_NoiseCertificate_Details) ProtoMessage() {}
  237. func (x *CertChain_NoiseCertificate_Details) ProtoReflect() protoreflect.Message {
  238. mi := &file_waCert_WACert_proto_msgTypes[4]
  239. if x != nil {
  240. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  241. if ms.LoadMessageInfo() == nil {
  242. ms.StoreMessageInfo(mi)
  243. }
  244. return ms
  245. }
  246. return mi.MessageOf(x)
  247. }
  248. // Deprecated: Use CertChain_NoiseCertificate_Details.ProtoReflect.Descriptor instead.
  249. func (*CertChain_NoiseCertificate_Details) Descriptor() ([]byte, []int) {
  250. return file_waCert_WACert_proto_rawDescGZIP(), []int{1, 0, 0}
  251. }
  252. func (x *CertChain_NoiseCertificate_Details) GetSerial() uint32 {
  253. if x != nil && x.Serial != nil {
  254. return *x.Serial
  255. }
  256. return 0
  257. }
  258. func (x *CertChain_NoiseCertificate_Details) GetIssuerSerial() uint32 {
  259. if x != nil && x.IssuerSerial != nil {
  260. return *x.IssuerSerial
  261. }
  262. return 0
  263. }
  264. func (x *CertChain_NoiseCertificate_Details) GetKey() []byte {
  265. if x != nil {
  266. return x.Key
  267. }
  268. return nil
  269. }
  270. func (x *CertChain_NoiseCertificate_Details) GetNotBefore() uint64 {
  271. if x != nil && x.NotBefore != nil {
  272. return *x.NotBefore
  273. }
  274. return 0
  275. }
  276. func (x *CertChain_NoiseCertificate_Details) GetNotAfter() uint64 {
  277. if x != nil && x.NotAfter != nil {
  278. return *x.NotAfter
  279. }
  280. return 0
  281. }
  282. var File_waCert_WACert_proto protoreflect.FileDescriptor
  283. const file_waCert_WACert_proto_rawDesc = "" +
  284. "\n" +
  285. "\x13waCert/WACert.proto\x12\x06WACert\"\xcb\x01\n" +
  286. "\x10NoiseCertificate\x12\x18\n" +
  287. "\adetails\x18\x01 \x01(\fR\adetails\x12\x1c\n" +
  288. "\tsignature\x18\x02 \x01(\fR\tsignature\x1a\x7f\n" +
  289. "\aDetails\x12\x16\n" +
  290. "\x06serial\x18\x01 \x01(\rR\x06serial\x12\x16\n" +
  291. "\x06issuer\x18\x02 \x01(\tR\x06issuer\x12\x18\n" +
  292. "\aexpires\x18\x03 \x01(\x04R\aexpires\x12\x18\n" +
  293. "\asubject\x18\x04 \x01(\tR\asubject\x12\x10\n" +
  294. "\x03key\x18\x05 \x01(\fR\x03key\"\xec\x02\n" +
  295. "\tCertChain\x126\n" +
  296. "\x04leaf\x18\x01 \x01(\v2\".WACert.CertChain.NoiseCertificateR\x04leaf\x12F\n" +
  297. "\fintermediate\x18\x02 \x01(\v2\".WACert.CertChain.NoiseCertificateR\fintermediate\x1a\xde\x01\n" +
  298. "\x10NoiseCertificate\x12\x18\n" +
  299. "\adetails\x18\x01 \x01(\fR\adetails\x12\x1c\n" +
  300. "\tsignature\x18\x02 \x01(\fR\tsignature\x1a\x91\x01\n" +
  301. "\aDetails\x12\x16\n" +
  302. "\x06serial\x18\x01 \x01(\rR\x06serial\x12\"\n" +
  303. "\fissuerSerial\x18\x02 \x01(\rR\fissuerSerial\x12\x10\n" +
  304. "\x03key\x18\x03 \x01(\fR\x03key\x12\x1c\n" +
  305. "\tnotBefore\x18\x04 \x01(\x04R\tnotBefore\x12\x1a\n" +
  306. "\bnotAfter\x18\x05 \x01(\x04R\bnotAfterB\"Z go.mau.fi/whatsmeow/proto/waCert"
  307. var (
  308. file_waCert_WACert_proto_rawDescOnce sync.Once
  309. file_waCert_WACert_proto_rawDescData []byte
  310. )
  311. func file_waCert_WACert_proto_rawDescGZIP() []byte {
  312. file_waCert_WACert_proto_rawDescOnce.Do(func() {
  313. file_waCert_WACert_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waCert_WACert_proto_rawDesc), len(file_waCert_WACert_proto_rawDesc)))
  314. })
  315. return file_waCert_WACert_proto_rawDescData
  316. }
  317. var file_waCert_WACert_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  318. var file_waCert_WACert_proto_goTypes = []any{
  319. (*NoiseCertificate)(nil), // 0: WACert.NoiseCertificate
  320. (*CertChain)(nil), // 1: WACert.CertChain
  321. (*NoiseCertificate_Details)(nil), // 2: WACert.NoiseCertificate.Details
  322. (*CertChain_NoiseCertificate)(nil), // 3: WACert.CertChain.NoiseCertificate
  323. (*CertChain_NoiseCertificate_Details)(nil), // 4: WACert.CertChain.NoiseCertificate.Details
  324. }
  325. var file_waCert_WACert_proto_depIdxs = []int32{
  326. 3, // 0: WACert.CertChain.leaf:type_name -> WACert.CertChain.NoiseCertificate
  327. 3, // 1: WACert.CertChain.intermediate:type_name -> WACert.CertChain.NoiseCertificate
  328. 2, // [2:2] is the sub-list for method output_type
  329. 2, // [2:2] is the sub-list for method input_type
  330. 2, // [2:2] is the sub-list for extension type_name
  331. 2, // [2:2] is the sub-list for extension extendee
  332. 0, // [0:2] is the sub-list for field type_name
  333. }
  334. func init() { file_waCert_WACert_proto_init() }
  335. func file_waCert_WACert_proto_init() {
  336. if File_waCert_WACert_proto != nil {
  337. return
  338. }
  339. type x struct{}
  340. out := protoimpl.TypeBuilder{
  341. File: protoimpl.DescBuilder{
  342. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  343. RawDescriptor: unsafe.Slice(unsafe.StringData(file_waCert_WACert_proto_rawDesc), len(file_waCert_WACert_proto_rawDesc)),
  344. NumEnums: 0,
  345. NumMessages: 5,
  346. NumExtensions: 0,
  347. NumServices: 0,
  348. },
  349. GoTypes: file_waCert_WACert_proto_goTypes,
  350. DependencyIndexes: file_waCert_WACert_proto_depIdxs,
  351. MessageInfos: file_waCert_WACert_proto_msgTypes,
  352. }.Build()
  353. File_waCert_WACert_proto = out.File
  354. file_waCert_WACert_proto_goTypes = nil
  355. file_waCert_WACert_proto_depIdxs = nil
  356. }