WAFingerprint.pb.go 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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: waFingerprint/WAFingerprint.proto
  6. package waFingerprint
  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 HostedState int32
  21. const (
  22. HostedState_E2EE HostedState = 0
  23. HostedState_HOSTED HostedState = 1
  24. )
  25. // Enum value maps for HostedState.
  26. var (
  27. HostedState_name = map[int32]string{
  28. 0: "E2EE",
  29. 1: "HOSTED",
  30. }
  31. HostedState_value = map[string]int32{
  32. "E2EE": 0,
  33. "HOSTED": 1,
  34. }
  35. )
  36. func (x HostedState) Enum() *HostedState {
  37. p := new(HostedState)
  38. *p = x
  39. return p
  40. }
  41. func (x HostedState) String() string {
  42. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  43. }
  44. func (HostedState) Descriptor() protoreflect.EnumDescriptor {
  45. return file_waFingerprint_WAFingerprint_proto_enumTypes[0].Descriptor()
  46. }
  47. func (HostedState) Type() protoreflect.EnumType {
  48. return &file_waFingerprint_WAFingerprint_proto_enumTypes[0]
  49. }
  50. func (x HostedState) Number() protoreflect.EnumNumber {
  51. return protoreflect.EnumNumber(x)
  52. }
  53. // Deprecated: Do not use.
  54. func (x *HostedState) UnmarshalJSON(b []byte) error {
  55. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  56. if err != nil {
  57. return err
  58. }
  59. *x = HostedState(num)
  60. return nil
  61. }
  62. // Deprecated: Use HostedState.Descriptor instead.
  63. func (HostedState) EnumDescriptor() ([]byte, []int) {
  64. return file_waFingerprint_WAFingerprint_proto_rawDescGZIP(), []int{0}
  65. }
  66. type FingerprintData struct {
  67. state protoimpl.MessageState `protogen:"open.v1"`
  68. PublicKey []byte `protobuf:"bytes,1,opt,name=publicKey" json:"publicKey,omitempty"`
  69. PnIdentifier []byte `protobuf:"bytes,2,opt,name=pnIdentifier" json:"pnIdentifier,omitempty"`
  70. LidIdentifier []byte `protobuf:"bytes,3,opt,name=lidIdentifier" json:"lidIdentifier,omitempty"`
  71. UsernameIdentifier []byte `protobuf:"bytes,4,opt,name=usernameIdentifier" json:"usernameIdentifier,omitempty"`
  72. HostedState *HostedState `protobuf:"varint,5,opt,name=hostedState,enum=WAFingerprint.HostedState" json:"hostedState,omitempty"`
  73. HashedPublicKey []byte `protobuf:"bytes,6,opt,name=hashedPublicKey" json:"hashedPublicKey,omitempty"`
  74. unknownFields protoimpl.UnknownFields
  75. sizeCache protoimpl.SizeCache
  76. }
  77. func (x *FingerprintData) Reset() {
  78. *x = FingerprintData{}
  79. mi := &file_waFingerprint_WAFingerprint_proto_msgTypes[0]
  80. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  81. ms.StoreMessageInfo(mi)
  82. }
  83. func (x *FingerprintData) String() string {
  84. return protoimpl.X.MessageStringOf(x)
  85. }
  86. func (*FingerprintData) ProtoMessage() {}
  87. func (x *FingerprintData) ProtoReflect() protoreflect.Message {
  88. mi := &file_waFingerprint_WAFingerprint_proto_msgTypes[0]
  89. if x != nil {
  90. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  91. if ms.LoadMessageInfo() == nil {
  92. ms.StoreMessageInfo(mi)
  93. }
  94. return ms
  95. }
  96. return mi.MessageOf(x)
  97. }
  98. // Deprecated: Use FingerprintData.ProtoReflect.Descriptor instead.
  99. func (*FingerprintData) Descriptor() ([]byte, []int) {
  100. return file_waFingerprint_WAFingerprint_proto_rawDescGZIP(), []int{0}
  101. }
  102. func (x *FingerprintData) GetPublicKey() []byte {
  103. if x != nil {
  104. return x.PublicKey
  105. }
  106. return nil
  107. }
  108. func (x *FingerprintData) GetPnIdentifier() []byte {
  109. if x != nil {
  110. return x.PnIdentifier
  111. }
  112. return nil
  113. }
  114. func (x *FingerprintData) GetLidIdentifier() []byte {
  115. if x != nil {
  116. return x.LidIdentifier
  117. }
  118. return nil
  119. }
  120. func (x *FingerprintData) GetUsernameIdentifier() []byte {
  121. if x != nil {
  122. return x.UsernameIdentifier
  123. }
  124. return nil
  125. }
  126. func (x *FingerprintData) GetHostedState() HostedState {
  127. if x != nil && x.HostedState != nil {
  128. return *x.HostedState
  129. }
  130. return HostedState_E2EE
  131. }
  132. func (x *FingerprintData) GetHashedPublicKey() []byte {
  133. if x != nil {
  134. return x.HashedPublicKey
  135. }
  136. return nil
  137. }
  138. type CombinedFingerprint struct {
  139. state protoimpl.MessageState `protogen:"open.v1"`
  140. Version *uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
  141. LocalFingerprint *FingerprintData `protobuf:"bytes,2,opt,name=localFingerprint" json:"localFingerprint,omitempty"`
  142. RemoteFingerprint *FingerprintData `protobuf:"bytes,3,opt,name=remoteFingerprint" json:"remoteFingerprint,omitempty"`
  143. unknownFields protoimpl.UnknownFields
  144. sizeCache protoimpl.SizeCache
  145. }
  146. func (x *CombinedFingerprint) Reset() {
  147. *x = CombinedFingerprint{}
  148. mi := &file_waFingerprint_WAFingerprint_proto_msgTypes[1]
  149. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  150. ms.StoreMessageInfo(mi)
  151. }
  152. func (x *CombinedFingerprint) String() string {
  153. return protoimpl.X.MessageStringOf(x)
  154. }
  155. func (*CombinedFingerprint) ProtoMessage() {}
  156. func (x *CombinedFingerprint) ProtoReflect() protoreflect.Message {
  157. mi := &file_waFingerprint_WAFingerprint_proto_msgTypes[1]
  158. if x != nil {
  159. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  160. if ms.LoadMessageInfo() == nil {
  161. ms.StoreMessageInfo(mi)
  162. }
  163. return ms
  164. }
  165. return mi.MessageOf(x)
  166. }
  167. // Deprecated: Use CombinedFingerprint.ProtoReflect.Descriptor instead.
  168. func (*CombinedFingerprint) Descriptor() ([]byte, []int) {
  169. return file_waFingerprint_WAFingerprint_proto_rawDescGZIP(), []int{1}
  170. }
  171. func (x *CombinedFingerprint) GetVersion() uint32 {
  172. if x != nil && x.Version != nil {
  173. return *x.Version
  174. }
  175. return 0
  176. }
  177. func (x *CombinedFingerprint) GetLocalFingerprint() *FingerprintData {
  178. if x != nil {
  179. return x.LocalFingerprint
  180. }
  181. return nil
  182. }
  183. func (x *CombinedFingerprint) GetRemoteFingerprint() *FingerprintData {
  184. if x != nil {
  185. return x.RemoteFingerprint
  186. }
  187. return nil
  188. }
  189. var File_waFingerprint_WAFingerprint_proto protoreflect.FileDescriptor
  190. const file_waFingerprint_WAFingerprint_proto_rawDesc = "" +
  191. "\n" +
  192. "!waFingerprint/WAFingerprint.proto\x12\rWAFingerprint\"\x91\x02\n" +
  193. "\x0fFingerprintData\x12\x1c\n" +
  194. "\tpublicKey\x18\x01 \x01(\fR\tpublicKey\x12\"\n" +
  195. "\fpnIdentifier\x18\x02 \x01(\fR\fpnIdentifier\x12$\n" +
  196. "\rlidIdentifier\x18\x03 \x01(\fR\rlidIdentifier\x12.\n" +
  197. "\x12usernameIdentifier\x18\x04 \x01(\fR\x12usernameIdentifier\x12<\n" +
  198. "\vhostedState\x18\x05 \x01(\x0e2\x1a.WAFingerprint.HostedStateR\vhostedState\x12(\n" +
  199. "\x0fhashedPublicKey\x18\x06 \x01(\fR\x0fhashedPublicKey\"\xc9\x01\n" +
  200. "\x13CombinedFingerprint\x12\x18\n" +
  201. "\aversion\x18\x01 \x01(\rR\aversion\x12J\n" +
  202. "\x10localFingerprint\x18\x02 \x01(\v2\x1e.WAFingerprint.FingerprintDataR\x10localFingerprint\x12L\n" +
  203. "\x11remoteFingerprint\x18\x03 \x01(\v2\x1e.WAFingerprint.FingerprintDataR\x11remoteFingerprint*#\n" +
  204. "\vHostedState\x12\b\n" +
  205. "\x04E2EE\x10\x00\x12\n" +
  206. "\n" +
  207. "\x06HOSTED\x10\x01B)Z'git.bobomao.top/joey/testwh/proto/waFingerprint"
  208. var (
  209. file_waFingerprint_WAFingerprint_proto_rawDescOnce sync.Once
  210. file_waFingerprint_WAFingerprint_proto_rawDescData []byte
  211. )
  212. func file_waFingerprint_WAFingerprint_proto_rawDescGZIP() []byte {
  213. file_waFingerprint_WAFingerprint_proto_rawDescOnce.Do(func() {
  214. file_waFingerprint_WAFingerprint_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waFingerprint_WAFingerprint_proto_rawDesc), len(file_waFingerprint_WAFingerprint_proto_rawDesc)))
  215. })
  216. return file_waFingerprint_WAFingerprint_proto_rawDescData
  217. }
  218. var file_waFingerprint_WAFingerprint_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  219. var file_waFingerprint_WAFingerprint_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  220. var file_waFingerprint_WAFingerprint_proto_goTypes = []any{
  221. (HostedState)(0), // 0: WAFingerprint.HostedState
  222. (*FingerprintData)(nil), // 1: WAFingerprint.FingerprintData
  223. (*CombinedFingerprint)(nil), // 2: WAFingerprint.CombinedFingerprint
  224. }
  225. var file_waFingerprint_WAFingerprint_proto_depIdxs = []int32{
  226. 0, // 0: WAFingerprint.FingerprintData.hostedState:type_name -> WAFingerprint.HostedState
  227. 1, // 1: WAFingerprint.CombinedFingerprint.localFingerprint:type_name -> WAFingerprint.FingerprintData
  228. 1, // 2: WAFingerprint.CombinedFingerprint.remoteFingerprint:type_name -> WAFingerprint.FingerprintData
  229. 3, // [3:3] is the sub-list for method output_type
  230. 3, // [3:3] is the sub-list for method input_type
  231. 3, // [3:3] is the sub-list for extension type_name
  232. 3, // [3:3] is the sub-list for extension extendee
  233. 0, // [0:3] is the sub-list for field type_name
  234. }
  235. func init() { file_waFingerprint_WAFingerprint_proto_init() }
  236. func file_waFingerprint_WAFingerprint_proto_init() {
  237. if File_waFingerprint_WAFingerprint_proto != nil {
  238. return
  239. }
  240. type x struct{}
  241. out := protoimpl.TypeBuilder{
  242. File: protoimpl.DescBuilder{
  243. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  244. RawDescriptor: unsafe.Slice(unsafe.StringData(file_waFingerprint_WAFingerprint_proto_rawDesc), len(file_waFingerprint_WAFingerprint_proto_rawDesc)),
  245. NumEnums: 1,
  246. NumMessages: 2,
  247. NumExtensions: 0,
  248. NumServices: 0,
  249. },
  250. GoTypes: file_waFingerprint_WAFingerprint_proto_goTypes,
  251. DependencyIndexes: file_waFingerprint_WAFingerprint_proto_depIdxs,
  252. EnumInfos: file_waFingerprint_WAFingerprint_proto_enumTypes,
  253. MessageInfos: file_waFingerprint_WAFingerprint_proto_msgTypes,
  254. }.Build()
  255. File_waFingerprint_WAFingerprint_proto = out.File
  256. file_waFingerprint_WAFingerprint_proto_goTypes = nil
  257. file_waFingerprint_WAFingerprint_proto_depIdxs = nil
  258. }