WAWebProtobufsUserPassword.pb.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  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: waUserPassword/WAWebProtobufsUserPassword.proto
  6. package waUserPassword
  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 UserPassword_Transformer int32
  21. const (
  22. UserPassword_NONE UserPassword_Transformer = 0
  23. UserPassword_PBKDF2_HMAC_SHA512 UserPassword_Transformer = 1
  24. UserPassword_PBKDF2_HMAC_SHA384 UserPassword_Transformer = 2
  25. )
  26. // Enum value maps for UserPassword_Transformer.
  27. var (
  28. UserPassword_Transformer_name = map[int32]string{
  29. 0: "NONE",
  30. 1: "PBKDF2_HMAC_SHA512",
  31. 2: "PBKDF2_HMAC_SHA384",
  32. }
  33. UserPassword_Transformer_value = map[string]int32{
  34. "NONE": 0,
  35. "PBKDF2_HMAC_SHA512": 1,
  36. "PBKDF2_HMAC_SHA384": 2,
  37. }
  38. )
  39. func (x UserPassword_Transformer) Enum() *UserPassword_Transformer {
  40. p := new(UserPassword_Transformer)
  41. *p = x
  42. return p
  43. }
  44. func (x UserPassword_Transformer) String() string {
  45. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  46. }
  47. func (UserPassword_Transformer) Descriptor() protoreflect.EnumDescriptor {
  48. return file_waUserPassword_WAWebProtobufsUserPassword_proto_enumTypes[0].Descriptor()
  49. }
  50. func (UserPassword_Transformer) Type() protoreflect.EnumType {
  51. return &file_waUserPassword_WAWebProtobufsUserPassword_proto_enumTypes[0]
  52. }
  53. func (x UserPassword_Transformer) Number() protoreflect.EnumNumber {
  54. return protoreflect.EnumNumber(x)
  55. }
  56. // Deprecated: Do not use.
  57. func (x *UserPassword_Transformer) UnmarshalJSON(b []byte) error {
  58. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  59. if err != nil {
  60. return err
  61. }
  62. *x = UserPassword_Transformer(num)
  63. return nil
  64. }
  65. // Deprecated: Use UserPassword_Transformer.Descriptor instead.
  66. func (UserPassword_Transformer) EnumDescriptor() ([]byte, []int) {
  67. return file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescGZIP(), []int{0, 0}
  68. }
  69. type UserPassword_Encoding int32
  70. const (
  71. UserPassword_UTF8 UserPassword_Encoding = 0
  72. UserPassword_UTF8_BROKEN UserPassword_Encoding = 1
  73. )
  74. // Enum value maps for UserPassword_Encoding.
  75. var (
  76. UserPassword_Encoding_name = map[int32]string{
  77. 0: "UTF8",
  78. 1: "UTF8_BROKEN",
  79. }
  80. UserPassword_Encoding_value = map[string]int32{
  81. "UTF8": 0,
  82. "UTF8_BROKEN": 1,
  83. }
  84. )
  85. func (x UserPassword_Encoding) Enum() *UserPassword_Encoding {
  86. p := new(UserPassword_Encoding)
  87. *p = x
  88. return p
  89. }
  90. func (x UserPassword_Encoding) String() string {
  91. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  92. }
  93. func (UserPassword_Encoding) Descriptor() protoreflect.EnumDescriptor {
  94. return file_waUserPassword_WAWebProtobufsUserPassword_proto_enumTypes[1].Descriptor()
  95. }
  96. func (UserPassword_Encoding) Type() protoreflect.EnumType {
  97. return &file_waUserPassword_WAWebProtobufsUserPassword_proto_enumTypes[1]
  98. }
  99. func (x UserPassword_Encoding) Number() protoreflect.EnumNumber {
  100. return protoreflect.EnumNumber(x)
  101. }
  102. // Deprecated: Do not use.
  103. func (x *UserPassword_Encoding) UnmarshalJSON(b []byte) error {
  104. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  105. if err != nil {
  106. return err
  107. }
  108. *x = UserPassword_Encoding(num)
  109. return nil
  110. }
  111. // Deprecated: Use UserPassword_Encoding.Descriptor instead.
  112. func (UserPassword_Encoding) EnumDescriptor() ([]byte, []int) {
  113. return file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescGZIP(), []int{0, 1}
  114. }
  115. type UserPassword struct {
  116. state protoimpl.MessageState `protogen:"open.v1"`
  117. Encoding *UserPassword_Encoding `protobuf:"varint,1,opt,name=encoding,enum=WAWebProtobufsUserPassword.UserPassword_Encoding" json:"encoding,omitempty"`
  118. Transformer *UserPassword_Transformer `protobuf:"varint,2,opt,name=transformer,enum=WAWebProtobufsUserPassword.UserPassword_Transformer" json:"transformer,omitempty"`
  119. TransformerArg []*UserPassword_TransformerArg `protobuf:"bytes,3,rep,name=transformerArg" json:"transformerArg,omitempty"`
  120. TransformedData []byte `protobuf:"bytes,4,opt,name=transformedData" json:"transformedData,omitempty"`
  121. unknownFields protoimpl.UnknownFields
  122. sizeCache protoimpl.SizeCache
  123. }
  124. func (x *UserPassword) Reset() {
  125. *x = UserPassword{}
  126. mi := &file_waUserPassword_WAWebProtobufsUserPassword_proto_msgTypes[0]
  127. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  128. ms.StoreMessageInfo(mi)
  129. }
  130. func (x *UserPassword) String() string {
  131. return protoimpl.X.MessageStringOf(x)
  132. }
  133. func (*UserPassword) ProtoMessage() {}
  134. func (x *UserPassword) ProtoReflect() protoreflect.Message {
  135. mi := &file_waUserPassword_WAWebProtobufsUserPassword_proto_msgTypes[0]
  136. if x != nil {
  137. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  138. if ms.LoadMessageInfo() == nil {
  139. ms.StoreMessageInfo(mi)
  140. }
  141. return ms
  142. }
  143. return mi.MessageOf(x)
  144. }
  145. // Deprecated: Use UserPassword.ProtoReflect.Descriptor instead.
  146. func (*UserPassword) Descriptor() ([]byte, []int) {
  147. return file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescGZIP(), []int{0}
  148. }
  149. func (x *UserPassword) GetEncoding() UserPassword_Encoding {
  150. if x != nil && x.Encoding != nil {
  151. return *x.Encoding
  152. }
  153. return UserPassword_UTF8
  154. }
  155. func (x *UserPassword) GetTransformer() UserPassword_Transformer {
  156. if x != nil && x.Transformer != nil {
  157. return *x.Transformer
  158. }
  159. return UserPassword_NONE
  160. }
  161. func (x *UserPassword) GetTransformerArg() []*UserPassword_TransformerArg {
  162. if x != nil {
  163. return x.TransformerArg
  164. }
  165. return nil
  166. }
  167. func (x *UserPassword) GetTransformedData() []byte {
  168. if x != nil {
  169. return x.TransformedData
  170. }
  171. return nil
  172. }
  173. type UserPassword_TransformerArg struct {
  174. state protoimpl.MessageState `protogen:"open.v1"`
  175. Key *string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
  176. Value *UserPassword_TransformerArg_Value `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
  177. unknownFields protoimpl.UnknownFields
  178. sizeCache protoimpl.SizeCache
  179. }
  180. func (x *UserPassword_TransformerArg) Reset() {
  181. *x = UserPassword_TransformerArg{}
  182. mi := &file_waUserPassword_WAWebProtobufsUserPassword_proto_msgTypes[1]
  183. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  184. ms.StoreMessageInfo(mi)
  185. }
  186. func (x *UserPassword_TransformerArg) String() string {
  187. return protoimpl.X.MessageStringOf(x)
  188. }
  189. func (*UserPassword_TransformerArg) ProtoMessage() {}
  190. func (x *UserPassword_TransformerArg) ProtoReflect() protoreflect.Message {
  191. mi := &file_waUserPassword_WAWebProtobufsUserPassword_proto_msgTypes[1]
  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 UserPassword_TransformerArg.ProtoReflect.Descriptor instead.
  202. func (*UserPassword_TransformerArg) Descriptor() ([]byte, []int) {
  203. return file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescGZIP(), []int{0, 0}
  204. }
  205. func (x *UserPassword_TransformerArg) GetKey() string {
  206. if x != nil && x.Key != nil {
  207. return *x.Key
  208. }
  209. return ""
  210. }
  211. func (x *UserPassword_TransformerArg) GetValue() *UserPassword_TransformerArg_Value {
  212. if x != nil {
  213. return x.Value
  214. }
  215. return nil
  216. }
  217. type UserPassword_TransformerArg_Value struct {
  218. state protoimpl.MessageState `protogen:"open.v1"`
  219. // Types that are valid to be assigned to Value:
  220. //
  221. // *UserPassword_TransformerArg_Value_AsBlob
  222. // *UserPassword_TransformerArg_Value_AsUnsignedInteger
  223. Value isUserPassword_TransformerArg_Value_Value `protobuf_oneof:"value"`
  224. unknownFields protoimpl.UnknownFields
  225. sizeCache protoimpl.SizeCache
  226. }
  227. func (x *UserPassword_TransformerArg_Value) Reset() {
  228. *x = UserPassword_TransformerArg_Value{}
  229. mi := &file_waUserPassword_WAWebProtobufsUserPassword_proto_msgTypes[2]
  230. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  231. ms.StoreMessageInfo(mi)
  232. }
  233. func (x *UserPassword_TransformerArg_Value) String() string {
  234. return protoimpl.X.MessageStringOf(x)
  235. }
  236. func (*UserPassword_TransformerArg_Value) ProtoMessage() {}
  237. func (x *UserPassword_TransformerArg_Value) ProtoReflect() protoreflect.Message {
  238. mi := &file_waUserPassword_WAWebProtobufsUserPassword_proto_msgTypes[2]
  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 UserPassword_TransformerArg_Value.ProtoReflect.Descriptor instead.
  249. func (*UserPassword_TransformerArg_Value) Descriptor() ([]byte, []int) {
  250. return file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescGZIP(), []int{0, 0, 0}
  251. }
  252. func (x *UserPassword_TransformerArg_Value) GetValue() isUserPassword_TransformerArg_Value_Value {
  253. if x != nil {
  254. return x.Value
  255. }
  256. return nil
  257. }
  258. func (x *UserPassword_TransformerArg_Value) GetAsBlob() []byte {
  259. if x != nil {
  260. if x, ok := x.Value.(*UserPassword_TransformerArg_Value_AsBlob); ok {
  261. return x.AsBlob
  262. }
  263. }
  264. return nil
  265. }
  266. func (x *UserPassword_TransformerArg_Value) GetAsUnsignedInteger() uint32 {
  267. if x != nil {
  268. if x, ok := x.Value.(*UserPassword_TransformerArg_Value_AsUnsignedInteger); ok {
  269. return x.AsUnsignedInteger
  270. }
  271. }
  272. return 0
  273. }
  274. type isUserPassword_TransformerArg_Value_Value interface {
  275. isUserPassword_TransformerArg_Value_Value()
  276. }
  277. type UserPassword_TransformerArg_Value_AsBlob struct {
  278. AsBlob []byte `protobuf:"bytes,1,opt,name=asBlob,oneof"`
  279. }
  280. type UserPassword_TransformerArg_Value_AsUnsignedInteger struct {
  281. AsUnsignedInteger uint32 `protobuf:"varint,2,opt,name=asUnsignedInteger,oneof"`
  282. }
  283. func (*UserPassword_TransformerArg_Value_AsBlob) isUserPassword_TransformerArg_Value_Value() {}
  284. func (*UserPassword_TransformerArg_Value_AsUnsignedInteger) isUserPassword_TransformerArg_Value_Value() {
  285. }
  286. var File_waUserPassword_WAWebProtobufsUserPassword_proto protoreflect.FileDescriptor
  287. const file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDesc = "" +
  288. "\n" +
  289. "/waUserPassword/WAWebProtobufsUserPassword.proto\x12\x1aWAWebProtobufsUserPassword\"\x86\x05\n" +
  290. "\fUserPassword\x12M\n" +
  291. "\bencoding\x18\x01 \x01(\x0e21.WAWebProtobufsUserPassword.UserPassword.EncodingR\bencoding\x12V\n" +
  292. "\vtransformer\x18\x02 \x01(\x0e24.WAWebProtobufsUserPassword.UserPassword.TransformerR\vtransformer\x12_\n" +
  293. "\x0etransformerArg\x18\x03 \x03(\v27.WAWebProtobufsUserPassword.UserPassword.TransformerArgR\x0etransformerArg\x12(\n" +
  294. "\x0ftransformedData\x18\x04 \x01(\fR\x0ftransformedData\x1a\xd3\x01\n" +
  295. "\x0eTransformerArg\x12\x10\n" +
  296. "\x03key\x18\x01 \x01(\tR\x03key\x12S\n" +
  297. "\x05value\x18\x02 \x01(\v2=.WAWebProtobufsUserPassword.UserPassword.TransformerArg.ValueR\x05value\x1aZ\n" +
  298. "\x05Value\x12\x18\n" +
  299. "\x06asBlob\x18\x01 \x01(\fH\x00R\x06asBlob\x12.\n" +
  300. "\x11asUnsignedInteger\x18\x02 \x01(\rH\x00R\x11asUnsignedIntegerB\a\n" +
  301. "\x05value\"G\n" +
  302. "\vTransformer\x12\b\n" +
  303. "\x04NONE\x10\x00\x12\x16\n" +
  304. "\x12PBKDF2_HMAC_SHA512\x10\x01\x12\x16\n" +
  305. "\x12PBKDF2_HMAC_SHA384\x10\x02\"%\n" +
  306. "\bEncoding\x12\b\n" +
  307. "\x04UTF8\x10\x00\x12\x0f\n" +
  308. "\vUTF8_BROKEN\x10\x01B*Z(git.bobomao.top/joey/testwh/proto/waUserPassword"
  309. var (
  310. file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescOnce sync.Once
  311. file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescData []byte
  312. )
  313. func file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescGZIP() []byte {
  314. file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescOnce.Do(func() {
  315. file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDesc), len(file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDesc)))
  316. })
  317. return file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescData
  318. }
  319. var file_waUserPassword_WAWebProtobufsUserPassword_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  320. var file_waUserPassword_WAWebProtobufsUserPassword_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  321. var file_waUserPassword_WAWebProtobufsUserPassword_proto_goTypes = []any{
  322. (UserPassword_Transformer)(0), // 0: WAWebProtobufsUserPassword.UserPassword.Transformer
  323. (UserPassword_Encoding)(0), // 1: WAWebProtobufsUserPassword.UserPassword.Encoding
  324. (*UserPassword)(nil), // 2: WAWebProtobufsUserPassword.UserPassword
  325. (*UserPassword_TransformerArg)(nil), // 3: WAWebProtobufsUserPassword.UserPassword.TransformerArg
  326. (*UserPassword_TransformerArg_Value)(nil), // 4: WAWebProtobufsUserPassword.UserPassword.TransformerArg.Value
  327. }
  328. var file_waUserPassword_WAWebProtobufsUserPassword_proto_depIdxs = []int32{
  329. 1, // 0: WAWebProtobufsUserPassword.UserPassword.encoding:type_name -> WAWebProtobufsUserPassword.UserPassword.Encoding
  330. 0, // 1: WAWebProtobufsUserPassword.UserPassword.transformer:type_name -> WAWebProtobufsUserPassword.UserPassword.Transformer
  331. 3, // 2: WAWebProtobufsUserPassword.UserPassword.transformerArg:type_name -> WAWebProtobufsUserPassword.UserPassword.TransformerArg
  332. 4, // 3: WAWebProtobufsUserPassword.UserPassword.TransformerArg.value:type_name -> WAWebProtobufsUserPassword.UserPassword.TransformerArg.Value
  333. 4, // [4:4] is the sub-list for method output_type
  334. 4, // [4:4] is the sub-list for method input_type
  335. 4, // [4:4] is the sub-list for extension type_name
  336. 4, // [4:4] is the sub-list for extension extendee
  337. 0, // [0:4] is the sub-list for field type_name
  338. }
  339. func init() { file_waUserPassword_WAWebProtobufsUserPassword_proto_init() }
  340. func file_waUserPassword_WAWebProtobufsUserPassword_proto_init() {
  341. if File_waUserPassword_WAWebProtobufsUserPassword_proto != nil {
  342. return
  343. }
  344. file_waUserPassword_WAWebProtobufsUserPassword_proto_msgTypes[2].OneofWrappers = []any{
  345. (*UserPassword_TransformerArg_Value_AsBlob)(nil),
  346. (*UserPassword_TransformerArg_Value_AsUnsignedInteger)(nil),
  347. }
  348. type x struct{}
  349. out := protoimpl.TypeBuilder{
  350. File: protoimpl.DescBuilder{
  351. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  352. RawDescriptor: unsafe.Slice(unsafe.StringData(file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDesc), len(file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDesc)),
  353. NumEnums: 2,
  354. NumMessages: 3,
  355. NumExtensions: 0,
  356. NumServices: 0,
  357. },
  358. GoTypes: file_waUserPassword_WAWebProtobufsUserPassword_proto_goTypes,
  359. DependencyIndexes: file_waUserPassword_WAWebProtobufsUserPassword_proto_depIdxs,
  360. EnumInfos: file_waUserPassword_WAWebProtobufsUserPassword_proto_enumTypes,
  361. MessageInfos: file_waUserPassword_WAWebProtobufsUserPassword_proto_msgTypes,
  362. }.Build()
  363. File_waUserPassword_WAWebProtobufsUserPassword_proto = out.File
  364. file_waUserPassword_WAWebProtobufsUserPassword_proto_goTypes = nil
  365. file_waUserPassword_WAWebProtobufsUserPassword_proto_depIdxs = nil
  366. }