Compare commits
1695 Commits
main
...
dev_expireitem
| Author | SHA1 | Date |
|---|---|---|
|
|
73b3337888 | |
|
|
a0884972d3 | |
|
|
68f51d0c5d | |
|
|
142b2f0ba5 | |
|
|
696267d954 | |
|
|
bbe6c99209 | |
|
|
71bc527f96 | |
|
|
1235383c87 | |
|
|
8177397b26 | |
|
|
694e8a5992 | |
|
|
b186967189 | |
|
|
d82c5ed055 | |
|
|
e044a590d4 | |
|
|
39890efbfa | |
|
|
09a609b1b3 | |
|
|
e2095d6878 | |
|
|
bb8af52a6b | |
|
|
08023bcdea | |
|
|
893bc4cbbb | |
|
|
a9efaed491 | |
|
|
88b4c08740 | |
|
|
167e1e9c10 | |
|
|
1ed0d5b4d7 | |
|
|
7a7baa9568 | |
|
|
30d3ba1cc0 | |
|
|
9b59039d4b | |
|
|
7d0d5e9509 | |
|
|
93792b3e38 | |
|
|
f4964a57a2 | |
|
|
0c65af22ea | |
|
|
1f24dd29b6 | |
|
|
4b29c43709 | |
|
|
4e59c6600c | |
|
|
442801fc9a | |
|
|
490576b1dc | |
|
|
2c48adeca7 | |
|
|
bcbc162549 | |
|
|
4d65851083 | |
|
|
8b40eb3c49 | |
|
|
d791c4d02c | |
|
|
d6bfa73d70 | |
|
|
a4ebed8fc9 | |
|
|
db24cf0620 | |
|
|
7d6ee4c3bd | |
|
|
5c64d97728 | |
|
|
5ca1048b18 | |
|
|
9c3f3ea191 | |
|
|
cab63a8bf9 | |
|
|
500fed59dd | |
|
|
bf636de73a | |
|
|
95650519e8 | |
|
|
8021f554f2 | |
|
|
acd3f4f676 | |
|
|
13e03f7428 | |
|
|
d672b91174 | |
|
|
1ca0213301 | |
|
|
0c3b7ebed3 | |
|
|
d6989f42ea | |
|
|
684d05642e | |
|
|
72b287ebfa | |
|
|
3104e68bb9 | |
|
|
e9e0aac833 | |
|
|
34062ef47e | |
|
|
53ebe7bbdc | |
|
|
7198f8c99f | |
|
|
ee94c94fb7 | |
|
|
43c3d3571b | |
|
|
779d8a64a4 | |
|
|
3e853c2434 | |
|
|
343d2466ef | |
|
|
3e97f97d38 | |
|
|
b56a874b36 | |
|
|
ccd3481b06 | |
|
|
c8b7647695 | |
|
|
b342e0ad61 | |
|
|
4671d33f67 | |
|
|
886bf444c3 | |
|
|
945bf3c829 | |
|
|
ea41d7f379 | |
|
|
2f8123333c | |
|
|
51b946bc0b | |
|
|
690a5f1a08 | |
|
|
52b4994de3 | |
|
|
766d30d7ca | |
|
|
6adba98ddb | |
|
|
4fc2019770 | |
|
|
6923ed95f1 | |
|
|
027b4caf81 | |
|
|
4675e0ff58 | |
|
|
53f6aae1c6 | |
|
|
0143ebbe12 | |
|
|
2ea5226a14 | |
|
|
a9fdefceb7 | |
|
|
d82b029a06 | |
|
|
f78b1edfb3 | |
|
|
22dc0a767a | |
|
|
85679c8b42 | |
|
|
fc3a539e29 | |
|
|
5a67d8f073 | |
|
|
3f35e67a40 | |
|
|
9354ada850 | |
|
|
fd43d57ca4 | |
|
|
7a9bf671eb | |
|
|
801200f4bd | |
|
|
e13e239897 | |
|
|
2ab2ffafdd | |
|
|
db73856059 | |
|
|
ae42673224 | |
|
|
383716741c | |
|
|
80c191ec98 | |
|
|
8e5f5e4e47 | |
|
|
2b88155177 | |
|
|
bdac067402 | |
|
|
b1d365e030 | |
|
|
c7ca731c33 | |
|
|
744d52226c | |
|
|
2d43a4153a | |
|
|
4d9dd37713 | |
|
|
8a9a4f0c2d | |
|
|
f532cee29b | |
|
|
0fe7ee6d4c | |
|
|
5d90c143c8 | |
|
|
1477611d4a | |
|
|
57def951c1 | |
|
|
73157b41cf | |
|
|
fbc14799c1 | |
|
|
6b83e85469 | |
|
|
fe88981e9d | |
|
|
83db9ddddc | |
|
|
5dcd4175f9 | |
|
|
126f9579c5 | |
|
|
2fb75da43e | |
|
|
86bbeb8c9b | |
|
|
353c1904e9 | |
|
|
37d2c02b98 | |
|
|
2d12390882 | |
|
|
1ade65ba36 | |
|
|
de7712d4e3 | |
|
|
61515fb4e0 | |
|
|
10d494e9a8 | |
|
|
ce5e66b148 | |
|
|
b3798d54b8 | |
|
|
fecb462d49 | |
|
|
3c72d93448 | |
|
|
345e4db7a5 | |
|
|
bcb97edff2 | |
|
|
d96cc23c84 | |
|
|
794880b644 | |
|
|
a8d78d5480 | |
|
|
1d89c089c1 | |
|
|
27f70e1a94 | |
|
|
f71ea6ca19 | |
|
|
d28d1a2cde | |
|
|
5f31432a2c | |
|
|
9629db34e6 | |
|
|
3db93982bf | |
|
|
616ee8369c | |
|
|
1c800d794f | |
|
|
9643c40d35 | |
|
|
f25bef6555 | |
|
|
ff3de2f2a0 | |
|
|
5a9325a2ce | |
|
|
9b3d0aeb6e | |
|
|
dd43f9ea1e | |
|
|
70ddc7e6b2 | |
|
|
8255d754b2 | |
|
|
2ac9bbfee5 | |
|
|
44cf7fb7b2 | |
|
|
68f2a3bb80 | |
|
|
053484de8e | |
|
|
1d1bf56695 | |
|
|
343a7a7abb | |
|
|
196d211fff | |
|
|
3840ec99a2 | |
|
|
72ffbf9da3 | |
|
|
7b76389509 | |
|
|
9f6b5469fa | |
|
|
538a920a4d | |
|
|
1e2eeebfda | |
|
|
c737007e20 | |
|
|
a9ffcb1c4a | |
|
|
eb265f69e8 | |
|
|
aaf417c9fe | |
|
|
f1b86a3913 | |
|
|
9906c0fb80 | |
|
|
46ad7ea75f | |
|
|
949e6f89e3 | |
|
|
fb02fa630e | |
|
|
0f1f8a03c2 | |
|
|
1d89a8c36e | |
|
|
b52f84d182 | |
|
|
e686334c57 | |
|
|
b497bd103a | |
|
|
00d4f328c7 | |
|
|
d0072d40b4 | |
|
|
29a264d789 | |
|
|
009e3bbc70 | |
|
|
0585fe236d | |
|
|
dfe093b03e | |
|
|
3bcc944417 | |
|
|
f989492019 | |
|
|
10ce982a14 | |
|
|
1db15bd6f3 | |
|
|
62f31c2460 | |
|
|
68e84e6233 | |
|
|
d3f276f0bf | |
|
|
28b6cb6a85 | |
|
|
f9605e9f26 | |
|
|
f47cddc7c1 | |
|
|
f0e18b16d0 | |
|
|
1f6bb826c9 | |
|
|
3cc2aa1ac6 | |
|
|
2f3fa1d739 | |
|
|
1acfab2ac7 | |
|
|
3eb997c7c3 | |
|
|
310156dd35 | |
|
|
90e11a0dad | |
|
|
4da947cd56 | |
|
|
d1afed32c2 | |
|
|
64c5617bd8 | |
|
|
c5922dc4fa | |
|
|
8aaf1b40f3 | |
|
|
71f6b0246b | |
|
|
f8e8a34780 | |
|
|
872d46a580 | |
|
|
b7b38d53ae | |
|
|
efb440d6a9 | |
|
|
a9d67662b3 | |
|
|
14f8211ea1 | |
|
|
19b4f0447b | |
|
|
752ef5d6e0 | |
|
|
8866473467 | |
|
|
970db216f4 | |
|
|
81a0e50bca | |
|
|
94ad9f9835 | |
|
|
30714f03a3 | |
|
|
2b800c1e8b | |
|
|
559f48d018 | |
|
|
0932715970 | |
|
|
211cd3dfcc | |
|
|
3b364a545e | |
|
|
bab26915f2 | |
|
|
8fd017f1b0 | |
|
|
c3ff0dc8ef | |
|
|
40257f34a1 | |
|
|
60b69e84d4 | |
|
|
560d4e783e | |
|
|
09ea901321 | |
|
|
45e1fd8a80 | |
|
|
195a8c4b70 | |
|
|
2bbb23e3c7 | |
|
|
e1f8b98cfd | |
|
|
d5566d6181 | |
|
|
fab70856c5 | |
|
|
cf0cba428a | |
|
|
22b5227cca | |
|
|
44f0a7d451 | |
|
|
ebb127fc4b | |
|
|
05bab06da1 | |
|
|
c67fc81182 | |
|
|
869801ff59 | |
|
|
6c7fba3be2 | |
|
|
989354dd4a | |
|
|
af0e29fc1a | |
|
|
6cdc64f5e6 | |
|
|
5ddb0e08d6 | |
|
|
d044890e26 | |
|
|
a6db38c3fc | |
|
|
48a87660ea | |
|
|
f63f3bb5f9 | |
|
|
b21bafe1aa | |
|
|
8444db2e85 | |
|
|
0176f59e76 | |
|
|
904f30ee8c | |
|
|
49a8c41908 | |
|
|
9e85b4a1a7 | |
|
|
be6a9981cb | |
|
|
5fdd7fe91d | |
|
|
61040aaac8 | |
|
|
f10e70317c | |
|
|
ad54e9c7f6 | |
|
|
160a126b29 | |
|
|
23ea951eb0 | |
|
|
31ea4d698a | |
|
|
147e3b2a9e | |
|
|
5e8572632a | |
|
|
7d9477b53c | |
|
|
4de80e3e74 | |
|
|
636082a69b | |
|
|
778de206ca | |
|
|
e77714fded | |
|
|
53c94f47fc | |
|
|
e9583d2886 | |
|
|
bd531df9a3 | |
|
|
0cc4009858 | |
|
|
7066908dfd | |
|
|
fd2e1b3cad | |
|
|
23538c0a35 | |
|
|
848d7485a7 | |
|
|
7ec2df8381 | |
|
|
6f6926dd9f | |
|
|
01bc6bfd63 | |
|
|
cbfb53a8f1 | |
|
|
c724b12182 | |
|
|
0688dc550a | |
|
|
cdc51a2eba | |
|
|
a128325e09 | |
|
|
d30de2a458 | |
|
|
9f35e077f0 | |
|
|
bc6fc55028 | |
|
|
a279eaad4c | |
|
|
aab1e45d5f | |
|
|
85f3dcec6c | |
|
|
4082fc11f2 | |
|
|
5747ad0380 | |
|
|
3e02f7ba03 | |
|
|
6a9c97c77c | |
|
|
a10ff0ecc7 | |
|
|
505b0f01ef | |
|
|
995a9e010a | |
|
|
fc16304b20 | |
|
|
d5fcc0acfd | |
|
|
825c1ca667 | |
|
|
f08fdc1309 | |
|
|
239d88d4ad | |
|
|
eb7d3f00c8 | |
|
|
24ee078fdf | |
|
|
13040896b9 | |
|
|
30cd6ef592 | |
|
|
84a9e39a26 | |
|
|
5944345434 | |
|
|
5486a6abc3 | |
|
|
294e9e6326 | |
|
|
75b178ba3c | |
|
|
c5a651c88d | |
|
|
dfeefbd6f2 | |
|
|
80a22cd0db | |
|
|
11dddfcec5 | |
|
|
f87ab997aa | |
|
|
ca8a8dfb7e | |
|
|
cc8df988bd | |
|
|
27c4fc5bf9 | |
|
|
11ce50e0df | |
|
|
d8a6246f93 | |
|
|
0a67496d50 | |
|
|
0333ef441e | |
|
|
e82177b32a | |
|
|
3bbced02e0 | |
|
|
258fd69a9e | |
|
|
7d73f2036d | |
|
|
af119ebf55 | |
|
|
2429264cfb | |
|
|
342d2fde1f | |
|
|
ba552f830b | |
|
|
17d216e07c | |
|
|
7e80a3d37b | |
|
|
721ff30fb8 | |
|
|
016406407e | |
|
|
fed8a2d0a0 | |
|
|
2d76ef963f | |
|
|
64b6af0313 | |
|
|
e20a82fba6 | |
|
|
1e186dba66 | |
|
|
e7f37542cb | |
|
|
8ab8cbacfe | |
|
|
9f511e35eb | |
|
|
3bfd8f30df | |
|
|
9cc386b25f | |
|
|
6b51e16c77 | |
|
|
b345f7cae4 | |
|
|
0a4217b200 | |
|
|
dd7663b3c9 | |
|
|
20f0ee30bd | |
|
|
6693bf7438 | |
|
|
07e252aa1d | |
|
|
662c0beaa7 | |
|
|
92b17fdee9 | |
|
|
900a54d64d | |
|
|
0d2c090dc8 | |
|
|
1e426d20a1 | |
|
|
7e52629091 | |
|
|
2ab1a20900 | |
|
|
8fff399bd9 | |
|
|
1171f06cfe | |
|
|
8b1ae79c9b | |
|
|
c8a39f2d1f | |
|
|
52d3b46f6e | |
|
|
4ed1048131 | |
|
|
90fa5e63a9 | |
|
|
61fee546df | |
|
|
19a85d0e7e | |
|
|
f47a9dcc9a | |
|
|
2bc052cba2 | |
|
|
d92c2e1a43 | |
|
|
45f96be153 | |
|
|
8ebbb86d3b | |
|
|
0d132fa803 | |
|
|
e13dc580b6 | |
|
|
944dba45d8 | |
|
|
5807aebce0 | |
|
|
521a1e1c58 | |
|
|
7e8164b1d9 | |
|
|
7343ab7ec0 | |
|
|
a20383ff3b | |
|
|
50e9d45693 | |
|
|
dde83e46a6 | |
|
|
147f956857 | |
|
|
69caf19491 | |
|
|
046461d4ac | |
|
|
c387511e68 | |
|
|
c6a6d9b08f | |
|
|
43a04acdff | |
|
|
259519bae5 | |
|
|
e476a7e74b | |
|
|
083dccffb9 | |
|
|
1ad97c27a7 | |
|
|
8d9ef2a928 | |
|
|
7bb11cd169 | |
|
|
7591d58829 | |
|
|
104ed2fbba | |
|
|
53e02f9c1f | |
|
|
9196e235d8 | |
|
|
ce1e3d4474 | |
|
|
c7cdb49a7b | |
|
|
ce931c98b6 | |
|
|
99f899e0c0 | |
|
|
79636e8619 | |
|
|
d2c6d702e8 | |
|
|
eff3cad970 | |
|
|
aa42eb224c | |
|
|
5ee2dd9eac | |
|
|
a61fdc3a7f | |
|
|
0ae60f1f2d | |
|
|
ab2221f7ea | |
|
|
3252b0bbb3 | |
|
|
5d63c3ce5b | |
|
|
b86ce547aa | |
|
|
f4d924b9ad | |
|
|
5022481ed2 | |
|
|
d4430fc78d | |
|
|
7d05aefe37 | |
|
|
bf05bda12a | |
|
|
8689199e01 | |
|
|
aa046ec0e2 | |
|
|
b07e90ee47 | |
|
|
8df77a8f9c | |
|
|
c568a3f9b0 | |
|
|
13e44216be | |
|
|
e672cb58be | |
|
|
b08113a339 | |
|
|
5619d9c95d | |
|
|
c9b17478ed | |
|
|
16c4f270e5 | |
|
|
69c4bbf011 | |
|
|
0f04aa40e2 | |
|
|
5ff7b463c2 | |
|
|
d3e0e4958c | |
|
|
216d84c669 | |
|
|
a4f6aab012 | |
|
|
52a19245b7 | |
|
|
f9996389d4 | |
|
|
aa1fa6d1d7 | |
|
|
1fa6e1bb5f | |
|
|
93a2435983 | |
|
|
37407d45ad | |
|
|
61a37386e4 | |
|
|
2ee789d927 | |
|
|
ae4a44a1b3 | |
|
|
c7a1e607cf | |
|
|
f9d780a8a8 | |
|
|
052c8e96f5 | |
|
|
44404279dd | |
|
|
e6404f6dee | |
|
|
e6299e8626 | |
|
|
cb527866c8 | |
|
|
8f59323549 | |
|
|
5979797c01 | |
|
|
4947685627 | |
|
|
db3f7bee67 | |
|
|
8ee0093ccf | |
|
|
5b7710eaa4 | |
|
|
e9d0578dfb | |
|
|
a896874219 | |
|
|
6334846cdf | |
|
|
05329478ad | |
|
|
72b1faa2ce | |
|
|
fd064ddb00 | |
|
|
5697afed33 | |
|
|
6071106264 | |
|
|
fc05bd3ee5 | |
|
|
85d1456623 | |
|
|
0207cb2f53 | |
|
|
9075f60b3f | |
|
|
e6b7fa1fea | |
|
|
beb0137480 | |
|
|
72b8443372 | |
|
|
83baeae566 | |
|
|
28022634a6 | |
|
|
db8506f8b7 | |
|
|
b6b0377be9 | |
|
|
9de6ddc3d7 | |
|
|
8d51143e18 | |
|
|
17c29b246e | |
|
|
8df42379e2 | |
|
|
8214650eef | |
|
|
ce2ecdc8f6 | |
|
|
368a6e29a5 | |
|
|
d1e380d9bb | |
|
|
2201f656f1 | |
|
|
c65bf7958f | |
|
|
cc3018cb55 | |
|
|
6967481dca | |
|
|
fd1ca07c01 | |
|
|
4bf88226ab | |
|
|
a842987444 | |
|
|
2693793aa9 | |
|
|
368cb70732 | |
|
|
41ddf30336 | |
|
|
548681d435 | |
|
|
16c5dbcab6 | |
|
|
6a5eef06ea | |
|
|
8210803b99 | |
|
|
d9f0c18658 | |
|
|
98289116a3 | |
|
|
8e936336e8 | |
|
|
f918baed78 | |
|
|
5c38610b55 | |
|
|
9a376b06c0 | |
|
|
5165221498 | |
|
|
e5378e46f9 | |
|
|
e32cd1a6bd | |
|
|
f0f2831ba0 | |
|
|
4c4af75a76 | |
|
|
03c6852edd | |
|
|
a125f5f959 | |
|
|
e38523c745 | |
|
|
373dd36b31 | |
|
|
948f90be29 | |
|
|
b0eb952494 | |
|
|
28982e018c | |
|
|
bb978907d0 | |
|
|
e0a40ee830 | |
|
|
d09d4a4284 | |
|
|
94e998f790 | |
|
|
fadd085e36 | |
|
|
d5332ddb34 | |
|
|
e224d2a4bd | |
|
|
055a15b481 | |
|
|
7ac2bf59bd | |
|
|
d108cfd186 | |
|
|
1f8f7b0f22 | |
|
|
ae3e9d8fd6 | |
|
|
9770425fba | |
|
|
f63c327ffa | |
|
|
a38f8fa366 | |
|
|
c628f8876f | |
|
|
622d622194 | |
|
|
e07963720d | |
|
|
e8c4f4489f | |
|
|
025dbd8691 | |
|
|
bcdcc1cc47 | |
|
|
a48a9fede4 | |
|
|
bbae2da8da | |
|
|
f6804c4cd9 | |
|
|
f642c32631 | |
|
|
b5099d9c37 | |
|
|
8fcb9c856d | |
|
|
57d45bd879 | |
|
|
a49b02d3a9 | |
|
|
0e794ac6c3 | |
|
|
c24d622bb9 | |
|
|
e47ee084d3 | |
|
|
6f700f9ef6 | |
|
|
29e9c7bfe8 | |
|
|
8935f29b22 | |
|
|
b18e2393b0 | |
|
|
69a2ecad41 | |
|
|
fd14654c59 | |
|
|
b6a8789fdb | |
|
|
81417088fd | |
|
|
b1298fe25f | |
|
|
93134b7f57 | |
|
|
74c36f4083 | |
|
|
6ac5d365d5 | |
|
|
fcdb12669c | |
|
|
3519bedc03 | |
|
|
2ed8885e18 | |
|
|
53f03c1081 | |
|
|
fbacc4d57b | |
|
|
489eb61805 | |
|
|
b83a6d6d5b | |
|
|
6ac1a91320 | |
|
|
41a7fcfe92 | |
|
|
0519dbf82b | |
|
|
824b161a46 | |
|
|
8e25bb52b4 | |
|
|
027a2c6732 | |
|
|
7d8eaee2c2 | |
|
|
91bb5820f9 | |
|
|
c811047626 | |
|
|
557d4ff8ca | |
|
|
0550310342 | |
|
|
d977286b60 | |
|
|
7861f1b7da | |
|
|
d8398465be | |
|
|
f28377dd05 | |
|
|
12bdcf9ec3 | |
|
|
19be365291 | |
|
|
867df580b5 | |
|
|
ceec89fc6b | |
|
|
fb6fc3920f | |
|
|
8ebad301f2 | |
|
|
ef8cbfaedd | |
|
|
52f8b6ad14 | |
|
|
eb32e72916 | |
|
|
ef7fdec1fb | |
|
|
65e3d614a6 | |
|
|
d155818a4e | |
|
|
04a832a595 | |
|
|
bc5c3c3324 | |
|
|
1d81754702 | |
|
|
d269955408 | |
|
|
532ff64d3b | |
|
|
ad8b3fe1ce | |
|
|
36a7a61178 | |
|
|
6684dbcec6 | |
|
|
b4cebfd687 | |
|
|
5fd2c7c195 | |
|
|
b04d422d8b | |
|
|
1714948491 | |
|
|
b871576fe9 | |
|
|
8125bf01e4 | |
|
|
cd7c3ddebd | |
|
|
9190e5a19b | |
|
|
df3c4d353e | |
|
|
85e173f3f2 | |
|
|
ef6236e3a8 | |
|
|
5ab84bd13e | |
|
|
ecf47d9f55 | |
|
|
3c00a7d873 | |
|
|
4b8f6e6274 | |
|
|
72b8f927b0 | |
|
|
ae085ec661 | |
|
|
e6aa0dd1a9 | |
|
|
020e9b9664 | |
|
|
d5d3c225f2 | |
|
|
68f0ac9f06 | |
|
|
8952d98f7d | |
|
|
bf1efc0139 | |
|
|
4c64b96429 | |
|
|
0fb29e2750 | |
|
|
99d032dffc | |
|
|
2141f00ba9 | |
|
|
2743f6cfb0 | |
|
|
eaff0f1308 | |
|
|
348b5fcb90 | |
|
|
ac8b4ee47d | |
|
|
254af4e5fb | |
|
|
193c7fc3d3 | |
|
|
81b529d13b | |
|
|
9660136ef0 | |
|
|
a18dabeaeb | |
|
|
57c58b2fb2 | |
|
|
3b024058be | |
|
|
2749862be9 | |
|
|
19ebda3832 | |
|
|
4581f41fb8 | |
|
|
2c6ea1c7e2 | |
|
|
7d3613ee39 | |
|
|
bc5df2cd0f | |
|
|
12c38f535b | |
|
|
67a5912db5 | |
|
|
62e2885d05 | |
|
|
fc08fc56be | |
|
|
9a1bdb10c7 | |
|
|
62981de6cf | |
|
|
d0d8008d51 | |
|
|
96f87f8b62 | |
|
|
2b0f7b1e28 | |
|
|
23487532df | |
|
|
522b284dd6 | |
|
|
3dab56c03a | |
|
|
0ff33ee6a4 | |
|
|
365ba5edc8 | |
|
|
05a9c79dc1 | |
|
|
d62a57375e | |
|
|
d9d78d2f13 | |
|
|
ff7452d335 | |
|
|
4d30e087c6 | |
|
|
24dd497af4 | |
|
|
f2497b77d3 | |
|
|
8e156dba18 | |
|
|
7d7f5804f1 | |
|
|
9cc5d30032 | |
|
|
be57df77a1 | |
|
|
02dded9b9a | |
|
|
3c51f2794d | |
|
|
fafc946f75 | |
|
|
0e84e74049 | |
|
|
d82822c990 | |
|
|
d3642c93e4 | |
|
|
ecb9c17920 | |
|
|
7e8ceebbf7 | |
|
|
5c4e4d0f4a | |
|
|
2925465b41 | |
|
|
6161d2da1c | |
|
|
79915a49e1 | |
|
|
999eea0766 | |
|
|
9c10355acf | |
|
|
ba27fa4b3a | |
|
|
8aa5fd7c56 | |
|
|
7dd1a191ea | |
|
|
e636afc4aa | |
|
|
2206eba159 | |
|
|
46081a862a | |
|
|
e479b2e6fd | |
|
|
cca29b64c6 | |
|
|
692cf306f5 | |
|
|
e1f5447da0 | |
|
|
70d051d938 | |
|
|
a3741fd685 | |
|
|
002bf3ec05 | |
|
|
2629c16689 | |
|
|
3da6a1a667 | |
|
|
e36c6608c3 | |
|
|
03e0cdb6d7 | |
|
|
ca5d442874 | |
|
|
90b8b5c113 | |
|
|
aa92a9630c | |
|
|
02365888a1 | |
|
|
fc0321afdc | |
|
|
a98d7ac0b4 | |
|
|
1b2a9c30e7 | |
|
|
e0d414e6af | |
|
|
d2a64cb8ae | |
|
|
0eeaad7caa | |
|
|
97a6d363e7 | |
|
|
8865dc49da | |
|
|
df5de58f46 | |
|
|
60ce6ed085 | |
|
|
9aeb5c3d15 | |
|
|
984a501087 | |
|
|
e0640c7fd5 | |
|
|
6240e08abe | |
|
|
ec0d5b3f94 | |
|
|
e6105b40b0 | |
|
|
a647da01aa | |
|
|
f83b22688c | |
|
|
7668ddcd93 | |
|
|
72edbbdd4b | |
|
|
a314c42d6c | |
|
|
9d164f86da | |
|
|
47f98ad5f8 | |
|
|
c0941e43e7 | |
|
|
f8a55ec7ba | |
|
|
e7e08755a4 | |
|
|
a9de61a96a | |
|
|
1b3b98e359 | |
|
|
f1eccf335f | |
|
|
09c8a1dd40 | |
|
|
cfa2c003c2 | |
|
|
d1276464b5 | |
|
|
48ccfebe34 | |
|
|
31db186564 | |
|
|
3c3fcbb920 | |
|
|
58d15e767d | |
|
|
af99918965 | |
|
|
5ac106365e | |
|
|
d365e9be6a | |
|
|
3492ba1631 | |
|
|
09202f60d3 | |
|
|
6eedc84050 | |
|
|
ef15347caf | |
|
|
0df3e0938c | |
|
|
4bf11eb1d1 | |
|
|
fa1d1648ac | |
|
|
d74c868947 | |
|
|
1063cc8fba | |
|
|
b53c78cfb3 | |
|
|
0855fc58f4 | |
|
|
3811215f80 | |
|
|
cc882657a4 | |
|
|
a5265e5410 | |
|
|
9d584a8647 | |
|
|
be703582f6 | |
|
|
07bea1ac2f | |
|
|
8dac055bd6 | |
|
|
791d82c8aa | |
|
|
afab279f3c | |
|
|
d79718f0f2 | |
|
|
8d63969701 | |
|
|
9012b2a4db | |
|
|
288624a55b | |
|
|
b57c5b2e41 | |
|
|
418b16d2e9 | |
|
|
6869021d08 | |
|
|
6e16eb1d52 | |
|
|
76ba1ff7b7 | |
|
|
3b18460edb | |
|
|
70673450df | |
|
|
3a7d3b9f2e | |
|
|
1961caad12 | |
|
|
96268bf86f | |
|
|
c5610f58dc | |
|
|
4cfd64dbed | |
|
|
18fe6403b7 | |
|
|
6c65a442db | |
|
|
d27a04020e | |
|
|
eb791c364e | |
|
|
4ba65f9e87 | |
|
|
e61cc19bce | |
|
|
ea6ef0be41 | |
|
|
18f67b7d22 | |
|
|
1a14a35da9 | |
|
|
07b985693e | |
|
|
13042959c9 | |
|
|
7991a8044d | |
|
|
b46db9b36b | |
|
|
e690d8da76 | |
|
|
152c60e35f | |
|
|
4eee248f20 | |
|
|
d61a153948 | |
|
|
f26cb4d2ff | |
|
|
7099975e9e | |
|
|
0b91f46fd8 | |
|
|
1d98a31bf4 | |
|
|
d769605d09 | |
|
|
8174e6c406 | |
|
|
83d5ec05fb | |
|
|
de339225d2 | |
|
|
d34473c688 | |
|
|
59eb4ecc22 | |
|
|
053db5b83a | |
|
|
1b67a44d63 | |
|
|
759c989719 | |
|
|
9b5dff5f96 | |
|
|
cb4b51b4aa | |
|
|
da9efde313 | |
|
|
1cc5d4f226 | |
|
|
7a039096ca | |
|
|
94794a4e7c | |
|
|
ad3e8d4b9f | |
|
|
4da55c9588 | |
|
|
f467753242 | |
|
|
8c8ee30ef8 | |
|
|
7889c982ea | |
|
|
895c673e65 | |
|
|
892a61aa47 | |
|
|
67a85f6535 | |
|
|
5bdf3d78df | |
|
|
b4bab0de1e | |
|
|
2f74e5bfab | |
|
|
c20f0fa69c | |
|
|
770b9b084a | |
|
|
8a19cd642f | |
|
|
83f643a789 | |
|
|
98a834b357 | |
|
|
09dc4f4588 | |
|
|
9a34e32841 | |
|
|
4bd2cee327 | |
|
|
63387ba9b4 | |
|
|
4b7c552524 | |
|
|
fc2db94c86 | |
|
|
19dde360d6 | |
|
|
3ac3f2dea1 | |
|
|
0fc4b33aa4 | |
|
|
82486dd427 | |
|
|
3cd2dd06e1 | |
|
|
82aee49eda | |
|
|
32e8b2f22e | |
|
|
979645567e | |
|
|
b74f284654 | |
|
|
40966b52cb | |
|
|
9963ef130a | |
|
|
8f59f4d03a | |
|
|
fccb385f79 | |
|
|
c4bea18f9f | |
|
|
33380d1bf8 | |
|
|
e39a08bb29 | |
|
|
58fe35c90f | |
|
|
3b15a84df3 | |
|
|
2869fb7e3f | |
|
|
a126fb81ae | |
|
|
e1e805f9d8 | |
|
|
e33fe64bca | |
|
|
54c2b0735e | |
|
|
b61b41313d | |
|
|
bcac7f06d3 | |
|
|
1948560a03 | |
|
|
f056014c50 | |
|
|
5418b2bdda | |
|
|
497be310b3 | |
|
|
68a8e010cf | |
|
|
88bbca47f1 | |
|
|
4a32df4ecf | |
|
|
54a13fe8ae | |
|
|
9c1fed84e9 | |
|
|
ac86a5e294 | |
|
|
fb8bfbde87 | |
|
|
f4143ad6d3 | |
|
|
12623d7b94 | |
|
|
5b6a5ad5d3 | |
|
|
4ab95e058e | |
|
|
8514f22fc6 | |
|
|
d8f01f39ea | |
|
|
9cdc0f24c7 | |
|
|
27eb944329 | |
|
|
c4a0a31df8 | |
|
|
e23f33c569 | |
|
|
7c00ec5067 | |
|
|
92bf5fe16e | |
|
|
c4d58262de | |
|
|
bc81ecdfed | |
|
|
a2e34269fd | |
|
|
c226024401 | |
|
|
d16c1a1887 | |
|
|
85a115809c | |
|
|
6c4e49ef44 | |
|
|
89aefd480a | |
|
|
c3f0f0d9fe | |
|
|
36edf8ba7b | |
|
|
fe375fb15f | |
|
|
9ef1f9d896 | |
|
|
429c5e0a31 | |
|
|
df04ede671 | |
|
|
da83b674d2 | |
|
|
59535c2015 | |
|
|
981c3860d1 | |
|
|
e7a6049341 | |
|
|
ddcaa62f13 | |
|
|
034abb64e2 | |
|
|
5c6dce2f4d | |
|
|
d292cbc118 | |
|
|
05a54af2db | |
|
|
d2c5c4f159 | |
|
|
151a739dab | |
|
|
6a9c6a988b | |
|
|
00dcc3199f | |
|
|
26db8f4b21 | |
|
|
04a0772415 | |
|
|
9f490a7aca | |
|
|
03cd5dda2b | |
|
|
1d9bfd5802 | |
|
|
77748f066f | |
|
|
b7d4efb7a6 | |
|
|
fe26aa3d37 | |
|
|
89bdfac420 | |
|
|
0ba53df8ec | |
|
|
74efab000e | |
|
|
9ab3da69a4 | |
|
|
ece16ac947 | |
|
|
18a884da43 | |
|
|
3a6e420e98 | |
|
|
fa57f5e8e6 | |
|
|
958a3b1ba4 | |
|
|
15014b54bb | |
|
|
00f0ecd750 | |
|
|
1b2b3fdc5d | |
|
|
a77cfa41dd | |
|
|
33eab3f5bc | |
|
|
94ca1562e5 | |
|
|
3bff2c17f3 | |
|
|
ccc0e97635 | |
|
|
6bd95be413 | |
|
|
94d7e4f45f | |
|
|
46c68b9785 | |
|
|
c14c15e18b | |
|
|
49c2d8baac | |
|
|
9ea57766a4 | |
|
|
ebe7b1c4c8 | |
|
|
bfdf500eec | |
|
|
94a4737609 | |
|
|
cae5536ed3 | |
|
|
17c0817dab | |
|
|
14b78495f6 | |
|
|
0792e35863 | |
|
|
cbd00bf0f8 | |
|
|
1db69f8df3 | |
|
|
f782b799ab | |
|
|
613ed6da76 | |
|
|
466eafe1bc | |
|
|
904982158a | |
|
|
dcc68130d2 | |
|
|
377482ce6d | |
|
|
4e6b92cd33 | |
|
|
7222426469 | |
|
|
1db62f9d90 | |
|
|
f4434bd945 | |
|
|
ba9dde2005 | |
|
|
4580f69514 | |
|
|
a040d30354 | |
|
|
aed283b37e | |
|
|
87486f1a48 | |
|
|
c6ee48573b | |
|
|
4c0c6f7c2b | |
|
|
b98b2246eb | |
|
|
a13ed034d7 | |
|
|
825f22a3bf | |
|
|
3f95d10437 | |
|
|
ab974063e8 | |
|
|
85ba5689b1 | |
|
|
8736f54fe1 | |
|
|
88db5712d8 | |
|
|
919129d70f | |
|
|
7ebe12c3de | |
|
|
18e3e5cd7d | |
|
|
71655d8126 | |
|
|
00b0e01000 | |
|
|
e419902ac1 | |
|
|
cd321a3f55 | |
|
|
4ce799b314 | |
|
|
8df3978077 | |
|
|
6153903f31 | |
|
|
15d0d2be78 | |
|
|
fc29fcddd8 | |
|
|
fe8ccec885 | |
|
|
50da2721fb | |
|
|
96bbac8533 | |
|
|
0f7da88dab | |
|
|
07150c660d | |
|
|
b5e23404c0 | |
|
|
33e82b0095 | |
|
|
159e69094f | |
|
|
e5b80fda16 | |
|
|
3b2c207627 | |
|
|
eba92ed00b | |
|
|
7a2c11d92e | |
|
|
37f6b4163e | |
|
|
821f3d7274 | |
|
|
b1c936fae8 | |
|
|
e93616dcc9 | |
|
|
6b8e24cba3 | |
|
|
514d6fdf37 | |
|
|
28921649c5 | |
|
|
5e60434b60 | |
|
|
afe8d3f0b1 | |
|
|
154a037e08 | |
|
|
f23cfda629 | |
|
|
4dc78ff468 | |
|
|
a4b4a0b2a0 | |
|
|
8ff978db72 | |
|
|
ae4ab17075 | |
|
|
2c8ce6a467 | |
|
|
db82eabb7c | |
|
|
4a86c552f5 | |
|
|
ac608b4a44 | |
|
|
1fff8b2ebb | |
|
|
b9191e0538 | |
|
|
d2a8b0e618 | |
|
|
6ea5fb3943 | |
|
|
775280e03f | |
|
|
cb907ae642 | |
|
|
da90adb309 | |
|
|
42099b3d59 | |
|
|
49b0c6cc00 | |
|
|
d703046f63 | |
|
|
ed358edfce | |
|
|
2568b66147 | |
|
|
81bf26ffc6 | |
|
|
a2a70a130b | |
|
|
5b399100e1 | |
|
|
ff086c3de3 | |
|
|
dc631f4334 | |
|
|
fd510661b7 | |
|
|
28826622c8 | |
|
|
53022f51d9 | |
|
|
e4a43ee469 | |
|
|
d16e49448f | |
|
|
7f75f9a0a4 | |
|
|
4880d41aa3 | |
|
|
d232592524 | |
|
|
cdc3b3d3da | |
|
|
d46bbd65d0 | |
|
|
b885612d1f | |
|
|
28622d6ffc | |
|
|
951b23f99d | |
|
|
16bcd9a858 | |
|
|
9dd4496b55 | |
|
|
427098ee00 | |
|
|
e49ecbc1a1 | |
|
|
4cf1b00b4d | |
|
|
239c93ea04 | |
|
|
c8ba3b74ee | |
|
|
1c61b86681 | |
|
|
61523b30d5 | |
|
|
6ab8c5506e | |
|
|
33f0d7c8aa | |
|
|
a51037b1e7 | |
|
|
dd0794d0de | |
|
|
7d92e5a94c | |
|
|
6442841899 | |
|
|
731701832f | |
|
|
2e77085fe4 | |
|
|
0bff759477 | |
|
|
95fcaa5977 | |
|
|
3796a77bbb | |
|
|
f0c42316f7 | |
|
|
29c71a6efc | |
|
|
c988804222 | |
|
|
ab481509e5 | |
|
|
7ceef9878c | |
|
|
840e8f5973 | |
|
|
d6111cc733 | |
|
|
e790746f53 | |
|
|
fe1e66fec2 | |
|
|
d3c40dde03 | |
|
|
88e34954ad | |
|
|
3bc1019fd5 | |
|
|
a227b67976 | |
|
|
378b4cc681 | |
|
|
c2a5d9b3b9 | |
|
|
fa28e3233c | |
|
|
8a56eb5776 | |
|
|
0372450f1a | |
|
|
95a258a1a2 | |
|
|
55ed8da8fa | |
|
|
0bb1597aeb | |
|
|
45a5dd6852 | |
|
|
db01ddcb0d | |
|
|
36cce9df01 | |
|
|
4d2a136eca | |
|
|
1136da298c | |
|
|
195ce9ff69 | |
|
|
ac1ee02c4d | |
|
|
a7a25ef028 | |
|
|
7b05295d67 | |
|
|
e318c85c26 | |
|
|
107ac98d81 | |
|
|
805c82bdd5 | |
|
|
a5cd7beeeb | |
|
|
7d5085bf11 | |
|
|
eb3fefb9b8 | |
|
|
fa3e48cd26 | |
|
|
86ba780a40 | |
|
|
e638f43619 | |
|
|
b6796cd8f6 | |
|
|
158aea0bf7 | |
|
|
7e04ceecee | |
|
|
6ef6bbe2cd | |
|
|
a2501eefa4 | |
|
|
33c3e14e8b | |
|
|
61b78ce88a | |
|
|
fff05f7470 | |
|
|
25c7f68dac | |
|
|
857f052728 | |
|
|
9f6e9aa910 | |
|
|
4bd50fa76a | |
|
|
550e5eb690 | |
|
|
60709a140f | |
|
|
b15fadfcc4 | |
|
|
699a08f9bb | |
|
|
ca9827db16 | |
|
|
675a1cb078 | |
|
|
22cc427ea5 | |
|
|
f1a6cd7389 | |
|
|
5eaa1e2016 | |
|
|
d6419d973b | |
|
|
6a3dae36e1 | |
|
|
e60e272a9a | |
|
|
d8825c650d | |
|
|
ad116c9cd4 | |
|
|
8c622c1d63 | |
|
|
77c2e5683c | |
|
|
1322a09297 | |
|
|
b6477c60ef | |
|
|
dcaf24653b | |
|
|
c024df9386 | |
|
|
e4afc80be9 | |
|
|
a293b03b21 | |
|
|
b6b7ff4035 | |
|
|
8e880d65b1 | |
|
|
f637724a61 | |
|
|
5e8c7f2ca0 | |
|
|
25618c0289 | |
|
|
bcc677ed87 | |
|
|
152f41e317 | |
|
|
49b10d0a99 | |
|
|
c5886c22b0 | |
|
|
99b25fa635 | |
|
|
3a881657a2 | |
|
|
1253ba8cc4 | |
|
|
da8a0f1a45 | |
|
|
116d521789 | |
|
|
84ffbd61c9 | |
|
|
7e28a059ae | |
|
|
39e84031ae | |
|
|
bf08bbbfbd | |
|
|
4118164692 | |
|
|
ea7e0a29b5 | |
|
|
8391b159ea | |
|
|
45f1393600 | |
|
|
ae2042bf4d | |
|
|
8f24ca5592 | |
|
|
985c52ce0d | |
|
|
7f2f1eeedf | |
|
|
64577b5f2a | |
|
|
16fc31fbb0 | |
|
|
3fc151e340 | |
|
|
152ad64263 | |
|
|
23c1d1eaab | |
|
|
9ec909dd58 | |
|
|
29a8319849 | |
|
|
1c502d603c | |
|
|
4fc7e30647 | |
|
|
a9b6d1a020 | |
|
|
db8388c7bc | |
|
|
17b2cd0a64 | |
|
|
7e4be48aff | |
|
|
81340b3787 | |
|
|
a8f44cdf47 | |
|
|
e53e94eb4c | |
|
|
e5a6ebfe76 | |
|
|
edf83e6e41 | |
|
|
34af2110e2 | |
|
|
56934264a3 | |
|
|
1123fe94ab | |
|
|
7504a2dcdf | |
|
|
06343ab6fc | |
|
|
e326ccdf81 | |
|
|
240711a0bd | |
|
|
a28d9163d8 | |
|
|
b83be4028e | |
|
|
8f55c7cb3d | |
|
|
f299b5ca13 | |
|
|
351d5979ba | |
|
|
9636dccb99 | |
|
|
d0f388e46b | |
|
|
c21dd8e565 | |
|
|
b5aba457a0 | |
|
|
b3d95e3512 | |
|
|
1c6706d014 | |
|
|
3c910a4ad7 | |
|
|
8c843ecf0b | |
|
|
68ca6af923 | |
|
|
55e6142f60 | |
|
|
9481b8d1ab | |
|
|
f2c63ce427 | |
|
|
bc679f529e | |
|
|
463117de96 | |
|
|
e19d9e29fe | |
|
|
e4f993fb8e | |
|
|
c671da56e6 | |
|
|
0484f1f47b | |
|
|
d29c485c87 | |
|
|
7a0500c5eb | |
|
|
e9b80f805e | |
|
|
0d33bf9fb4 | |
|
|
515de3a987 | |
|
|
3d96c347d1 | |
|
|
b9fbedee9e | |
|
|
432de00d12 | |
|
|
1fcf9aa6d2 | |
|
|
4cf89236a8 | |
|
|
0bf6976352 | |
|
|
cdd855bfb2 | |
|
|
0f2404bf12 | |
|
|
ea80d6e89c | |
|
|
d785e80622 | |
|
|
a9b8b5af02 | |
|
|
fb3d73f61f | |
|
|
bc4c7c11aa | |
|
|
78feeb2595 | |
|
|
ce2c857ff3 | |
|
|
0ccfff81de | |
|
|
42c1f5d79f | |
|
|
7010f6215e | |
|
|
19d8ed6cc5 | |
|
|
090d8ba723 | |
|
|
4f9e3b87ca | |
|
|
c7992f9fc0 | |
|
|
538698be07 | |
|
|
802f67cb7a | |
|
|
1d99e5f794 | |
|
|
b93901f765 | |
|
|
36d77da2fe | |
|
|
4d1e89cf91 | |
|
|
279b5b84cb | |
|
|
aabf20da2c | |
|
|
76d95282ca | |
|
|
a5082f50e5 | |
|
|
49bd65a05c | |
|
|
cc656a5bbc | |
|
|
5eb468c7ff | |
|
|
9379613ae8 | |
|
|
938aa9d1dd | |
|
|
b28218b753 | |
|
|
8de4b80458 | |
|
|
2922689951 | |
|
|
bd3871aa10 | |
|
|
b5ce35eb68 | |
|
|
0b2fb94e69 | |
|
|
ee16983eaf | |
|
|
f25adaf3e9 | |
|
|
a757b4bbf9 | |
|
|
0e372fea74 | |
|
|
e68803b14a | |
|
|
0972b85122 | |
|
|
1c14d96060 | |
|
|
007b0c3a5b | |
|
|
182d4e9612 | |
|
|
87a9186ae3 | |
|
|
e2d18f491b | |
|
|
0c45f9c44a | |
|
|
1f8b7e1d70 | |
|
|
8117f1af54 | |
|
|
2e34c33768 | |
|
|
83cfbe6381 | |
|
|
aaf15d2b3d | |
|
|
78d6a109fe | |
|
|
f68588eaa3 | |
|
|
972861ee83 | |
|
|
c75df5742e | |
|
|
4c7abf167e | |
|
|
20b8fe91a0 | |
|
|
2d7921897a | |
|
|
072c83c34c | |
|
|
b6aaf756e6 | |
|
|
fde4187f5b | |
|
|
299c6502a6 | |
|
|
74b868460b | |
|
|
6495a96f4e | |
|
|
7e80facc24 | |
|
|
8199231ac7 | |
|
|
d11f7f75c2 | |
|
|
2805e4ca6c | |
|
|
655fe2ff96 | |
|
|
087bff7a13 | |
|
|
b4427a1459 | |
|
|
1fcb3031ed | |
|
|
446e696d7e | |
|
|
f1ebe57d04 | |
|
|
a67c747a46 | |
|
|
3d80c1b9bb | |
|
|
57bc29a2d6 | |
|
|
808a2458fe | |
|
|
9a6ced171b | |
|
|
5c9fec6e36 | |
|
|
b067f07b2c | |
|
|
303f0817ca | |
|
|
44ff58675d | |
|
|
7146df070c | |
|
|
2b75df2e38 | |
|
|
d4d8816a8b | |
|
|
70768089da | |
|
|
d6a15311f7 | |
|
|
8d8031759d | |
|
|
7688583735 | |
|
|
291b1cee4f | |
|
|
bdbf908e36 | |
|
|
235082c338 | |
|
|
7786aeac9c | |
|
|
606aff2240 | |
|
|
ead0abf6b6 | |
|
|
fa581628f3 | |
|
|
0c0f270762 | |
|
|
32323aa1e8 | |
|
|
0eb4b826a5 | |
|
|
c763d90325 | |
|
|
b9ef093b18 | |
|
|
ae0ac2dbaf | |
|
|
bc3be9673d | |
|
|
0d11c2a79f | |
|
|
c2a7fa3834 | |
|
|
79e207ebf9 | |
|
|
670726980e | |
|
|
9b50471d61 | |
|
|
c845dcad4e | |
|
|
20ebed0347 | |
|
|
3a60afc0d0 | |
|
|
1edaac6773 | |
|
|
523ed5b296 | |
|
|
09aa018fec | |
|
|
e0f2f76322 | |
|
|
5058d2aba1 | |
|
|
754f94abbd | |
|
|
96599507b8 | |
|
|
f771238b5e | |
|
|
77b8fdf0e9 | |
|
|
ac76712485 | |
|
|
fdd5e3889e | |
|
|
0c846595eb | |
|
|
42efa82c2f | |
|
|
7ae4392784 | |
|
|
9ed4f708bc | |
|
|
9ef37b0bce | |
|
|
7d98b14f5b | |
|
|
8eb9a7c7a1 | |
|
|
f24d6c740b | |
|
|
7e05717d2e | |
|
|
da249ec436 | |
|
|
11d78d2386 | |
|
|
c61c88266b | |
|
|
a6d76b3f94 | |
|
|
6985bc0437 | |
|
|
56fb4612c7 | |
|
|
992ccb280e | |
|
|
4f6222cdc5 | |
|
|
573a59045b | |
|
|
168c2cc8c3 | |
|
|
2520ec2e7d | |
|
|
9d246dcba3 | |
|
|
a2584b22bc | |
|
|
af7572f923 | |
|
|
2a7ada450a | |
|
|
5e212ae658 | |
|
|
d57909b05a | |
|
|
b24d97fe59 | |
|
|
f1dee4a54a | |
|
|
feda7fd5c1 | |
|
|
c429d41900 | |
|
|
a8500da1a7 | |
|
|
3526ef069f | |
|
|
699596d022 | |
|
|
ceac412a25 | |
|
|
4ec8d6bc22 | |
|
|
c72b74824e | |
|
|
41361621ef | |
|
|
d7b72cd6ea | |
|
|
869a2c91d2 | |
|
|
604f7099ec | |
|
|
aee5f99d9d | |
|
|
8eea14794d | |
|
|
14ee52a532 | |
|
|
871c6ed72f | |
|
|
a13390909d | |
|
|
5d113056c8 | |
|
|
3c3b6f7376 | |
|
|
46a4255273 | |
|
|
776ba8a19c | |
|
|
5e0b6139f9 | |
|
|
39b71ea93f | |
|
|
35c0e07004 | |
|
|
e1812b5ecf | |
|
|
ef59d75ac5 | |
|
|
7da2fd393b | |
|
|
9177d20d5e | |
|
|
b9c1b85193 | |
|
|
bfbe02be66 | |
|
|
3feb728527 | |
|
|
60255489d5 | |
|
|
8b478a9f33 | |
|
|
516ab3f811 | |
|
|
d3fb69d198 | |
|
|
29745d23c2 | |
|
|
d529ec2fed | |
|
|
97e03e2c22 | |
|
|
da5bb97469 | |
|
|
481860d9bc | |
|
|
0d252cebc5 | |
|
|
63efa84183 | |
|
|
a0050bd44d | |
|
|
7de9e8f939 | |
|
|
6f0906c7c0 | |
|
|
d27c0270f8 | |
|
|
eddad2e788 | |
|
|
bc77fe8749 | |
|
|
2cbd5d46a0 | |
|
|
5ffd4d849b | |
|
|
27dfedab18 | |
|
|
898f915542 | |
|
|
a6c1b37e0c | |
|
|
2f749646ab | |
|
|
eba76584ce | |
|
|
0fab663f61 | |
|
|
e12bc1b03c | |
|
|
c8be1b9320 | |
|
|
489395ebb1 | |
|
|
c86e28383d | |
|
|
b1c74ab992 | |
|
|
4254d08e38 | |
|
|
e9c29f1442 | |
|
|
64bcbb896e | |
|
|
a9aeb01e99 | |
|
|
cb873bde49 | |
|
|
a7b7d8f22d | |
|
|
c8d380c587 | |
|
|
ed1aa36815 | |
|
|
8fb59d54fc | |
|
|
8bdd4f09dc | |
|
|
1857c82cb8 | |
|
|
393ef19b14 | |
|
|
fa34c9c8b2 | |
|
|
9b3a1b4d7c | |
|
|
c43068db93 | |
|
|
11af348377 | |
|
|
0739d1eb12 | |
|
|
3828311520 | |
|
|
d298ed97e8 | |
|
|
6dfe2301e0 | |
|
|
f1308bbb09 | |
|
|
5eb29259c1 | |
|
|
2ecbc2b1cb | |
|
|
478ab9ea0a | |
|
|
f95eb75eb8 | |
|
|
e58eb4d672 | |
|
|
40263b3621 | |
|
|
b0ba8e31ff | |
|
|
d6ce3816f4 | |
|
|
1f3133be78 | |
|
|
3e229a4bc9 | |
|
|
756ed06016 | |
|
|
e2f1e997a0 | |
|
|
d0637ca1ce | |
|
|
06695defa6 | |
|
|
d534e73613 | |
|
|
0059b6d0c5 | |
|
|
7cabdd4d14 | |
|
|
edd992aecd | |
|
|
bc81c3c204 | |
|
|
e95d55ed10 | |
|
|
8a5752bf38 | |
|
|
c4161a6b39 | |
|
|
1de1383383 | |
|
|
075900766d | |
|
|
fb4a82d26f | |
|
|
469a8279fc | |
|
|
528bccfe0b | |
|
|
45b05b1fe5 | |
|
|
052cfc1fe1 | |
|
|
a017518652 | |
|
|
437ec223f7 | |
|
|
384f8b5b9c | |
|
|
355c6aae93 | |
|
|
0e6487256a | |
|
|
5ac5c633a2 | |
|
|
2eb19c9222 | |
|
|
7c02471d2c | |
|
|
dcb54a2f58 | |
|
|
f2d9d51dd6 | |
|
|
579e27e17f | |
|
|
ff78edf56b | |
|
|
d7316c0ef2 | |
|
|
995cabbea6 | |
|
|
0d81105909 | |
|
|
81f0d0fe43 | |
|
|
267c0492f6 | |
|
|
f45708a8cc | |
|
|
62bacfb0d2 | |
|
|
b232f44a27 | |
|
|
16a41fff24 | |
|
|
32fab5e0ca | |
|
|
5c90f2f0b7 | |
|
|
65258fe07e | |
|
|
085d1ef9b2 | |
|
|
4553558144 | |
|
|
8c432f6f4e | |
|
|
9474b0dc30 | |
|
|
061ee27ab7 | |
|
|
22dbae7f80 | |
|
|
a943492d80 | |
|
|
7dcd78d3ef | |
|
|
5b758cdb80 | |
|
|
672881b9d2 | |
|
|
6bd9d8f6c5 | |
|
|
c09c059b79 | |
|
|
7219ddaed8 | |
|
|
05f1e805b5 | |
|
|
4753b4a71a | |
|
|
666cbf64eb | |
|
|
5eeec8469f | |
|
|
b000a8b05d | |
|
|
64a1df39c5 | |
|
|
a822e21524 | |
|
|
1c80a73741 | |
|
|
c1a15c59c3 | |
|
|
f3b757d0bc | |
|
|
2904be27f4 | |
|
|
464f112038 | |
|
|
48456483c7 | |
|
|
e6240f1796 | |
|
|
54eed8a7fc | |
|
|
28bfd15336 | |
|
|
71b5e2599d | |
|
|
cb1a157813 | |
|
|
04cf926909 | |
|
|
7b79b0defd | |
|
|
6aed244c8c | |
|
|
ad4a424024 | |
|
|
6ffe1d5375 | |
|
|
e6b3084bc5 | |
|
|
161d215ffd | |
|
|
7113465765 | |
|
|
bbf2e11d8b | |
|
|
1430e96752 | |
|
|
9338164838 | |
|
|
7756f3ae19 | |
|
|
23b44237d8 | |
|
|
d6cb1f3266 | |
|
|
404017c33e | |
|
|
83f571b543 | |
|
|
84373d1297 | |
|
|
016ea68379 | |
|
|
7c689dc6ec | |
|
|
1979637197 | |
|
|
eaf8dd734f | |
|
|
72b5f14b62 | |
|
|
909523ec3e | |
|
|
b10cf493b5 | |
|
|
c2d7c1bfb5 | |
|
|
f4205e72ac | |
|
|
bd92567666 | |
|
|
1231f711dc | |
|
|
c6c507ecb0 | |
|
|
a01eba7242 | |
|
|
2fbb9d0d0e | |
|
|
f7ae511332 | |
|
|
c65946aec0 | |
|
|
4b04e554f8 | |
|
|
a2bfdd1d01 | |
|
|
03a67c3778 | |
|
|
cad0f24bd8 | |
|
|
a7ec02b38e | |
|
|
a6a255f04b | |
|
|
95701368a6 | |
|
|
0cc96a5747 | |
|
|
3bfcaaf110 | |
|
|
cfa469a02e | |
|
|
0da4aa2f09 | |
|
|
cc4125fee5 | |
|
|
2e6928f317 | |
|
|
4d9fee9b11 | |
|
|
864074490b | |
|
|
ec0d303cb6 | |
|
|
23621acfbf | |
|
|
05844ea78d | |
|
|
4ac9879f72 | |
|
|
42302a32a5 | |
|
|
948c209a2c | |
|
|
853e7771f9 | |
|
|
ebad03fce1 | |
|
|
40822ad4d0 | |
|
|
0595d999f4 | |
|
|
06d5ac5fad | |
|
|
7fb33896de | |
|
|
2fe90f46a5 | |
|
|
fe0904c4fb | |
|
|
c40b779c39 | |
|
|
7c11fc955b | |
|
|
a6e65f236f | |
|
|
feeb04a7ed | |
|
|
e2e2a446bf | |
|
|
b6aa7bec3c | |
|
|
1efb19dce6 | |
|
|
2e0e6c72d0 | |
|
|
77fbd7dfba | |
|
|
60145c2325 | |
|
|
ec635783c4 | |
|
|
f54082163b | |
|
|
d8e03cf53d | |
|
|
aa79d36e9f | |
|
|
cc56a160af | |
|
|
aa3a713699 | |
|
|
0cba0b0b25 | |
|
|
5be9e98ae0 | |
|
|
4e32e4861e | |
|
|
88f9723217 | |
|
|
65d206eae0 | |
|
|
82b406cbcd | |
|
|
f81781f92d | |
|
|
456744f16a | |
|
|
b5c44ff2bb | |
|
|
3a5039727b | |
|
|
ebd1653b86 | |
|
|
7ecebe62e6 | |
|
|
b15f3a250b | |
|
|
dc8b4a5baa | |
|
|
9f4d1089cb | |
|
|
91ec9259bb | |
|
|
df9ebec2e2 | |
|
|
12383a1e20 | |
|
|
0de01b7eaa | |
|
|
5c37af3fe1 | |
|
|
a3b95947b0 | |
|
|
ac7492c2db | |
|
|
663b93d52d | |
|
|
9a9c62c1da | |
|
|
65aa4efebb | |
|
|
3d653d6413 | |
|
|
33a087d1d7 | |
|
|
aadfc98306 | |
|
|
4fb1ec47b9 | |
|
|
c45f5457ab | |
|
|
c8cf242a09 | |
|
|
b0315b0e70 | |
|
|
8418435068 | |
|
|
8ac802e2a3 | |
|
|
d632386936 | |
|
|
c1d2925933 | |
|
|
71ad21de65 | |
|
|
b4765bf686 | |
|
|
4745a067aa | |
|
|
0e53147f13 | |
|
|
d792e0ceb1 | |
|
|
79ace9a7bf | |
|
|
ad363f7d85 |
|
|
@ -6,6 +6,10 @@
|
|||
# Folders
|
||||
_obj
|
||||
_test
|
||||
**/backup
|
||||
/bin/*
|
||||
!/bin/protoc*
|
||||
/deploy/*
|
||||
|
||||
# Architecture specific extensions/prefixes
|
||||
*.[568vq]
|
||||
|
|
@ -18,8 +22,10 @@ _cgo_gotypes.go
|
|||
_cgo_export.*
|
||||
|
||||
_testmain.go
|
||||
tools/xlsx2binary/agc.go
|
||||
|
||||
*.exe
|
||||
!/bin/protoc-gen-go.exe
|
||||
*.exe~
|
||||
*.test
|
||||
*.log
|
||||
|
|
@ -35,11 +41,11 @@ _testmain.go
|
|||
/dbproxy/dbproxy
|
||||
/mgrsrv/mgrsrv
|
||||
/gatesrv/gatesrv
|
||||
/gamesrv/gamesrv
|
||||
/worldsrv/worldsrv
|
||||
/gamesrv/gamesrv
|
||||
/robot/robot
|
||||
/schedulesrv/schedulesrv
|
||||
/ranksrv/ranksrv
|
||||
|
||||
/bin/*
|
||||
**/backup
|
||||
/schedulesrv/schedulesrv
|
||||
/machine/machine
|
||||
/statistics/statistics
|
||||
/statistics/task/task*
|
||||
|
|
@ -0,0 +1,141 @@
|
|||
stages:
|
||||
- lock
|
||||
- build
|
||||
- save
|
||||
- sync
|
||||
- unlock
|
||||
|
||||
variables:
|
||||
ProjectPath: "mongo.games.com/game" # 项目相对于GOPATH的路径
|
||||
BetaBinPath: "/home/game/" # beta环境部署路径
|
||||
DevelopBinPath: "/home/game/" # develop环境部署路径
|
||||
|
||||
default:
|
||||
tags:
|
||||
- gitlab
|
||||
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
paths:
|
||||
- ${GOPATH}/pkg/mod
|
||||
- ${GOPATH}/bin
|
||||
|
||||
# 锁定作业,防止并发流水线执行
|
||||
lock_job:
|
||||
stage: lock
|
||||
script:
|
||||
- |
|
||||
if [ -f /tmp/ci_lock ]; then
|
||||
echo "流水线已在运行,等待..."
|
||||
exit 1
|
||||
else
|
||||
touch /tmp/ci_lock
|
||||
echo "获得锁定,开始流水线。"
|
||||
fi
|
||||
|
||||
build-job:
|
||||
stage: build
|
||||
only:
|
||||
- develop
|
||||
- release
|
||||
script:
|
||||
- git checkout $CI_COMMIT_REF_NAME
|
||||
- git pull origin $CI_COMMIT_REF_NAME
|
||||
- if [ ! -z "$(git status --porcelain go.mod go.sum)" ]; then
|
||||
GOMODTIDY=1;
|
||||
fi
|
||||
# 拷贝到GOPATH
|
||||
- echo '拷贝到GOPATH'
|
||||
- rsync -rvc --no-perms --delete ./* $GOPATH/src/$ProjectPath
|
||||
# 进入项目目录
|
||||
- cd $GOPATH/src/$ProjectPath
|
||||
# 编译
|
||||
- echo '编译'
|
||||
- if [ "$GOMODTIDY" == 1 ]; then
|
||||
go mod tidy;
|
||||
fi
|
||||
- |
|
||||
while IFS= read -r line || [[ -n $line ]]
|
||||
do
|
||||
cd $line
|
||||
echo "编译 $line"
|
||||
go build -v
|
||||
cd ..
|
||||
done < ./programs.txt
|
||||
|
||||
save-job:
|
||||
stage: save
|
||||
only:
|
||||
- develop
|
||||
- release
|
||||
script:
|
||||
- cd $GOPATH/src/$ProjectPath
|
||||
# 拷贝文件
|
||||
- echo '拷贝文件'
|
||||
- rm -rf ./temp
|
||||
- mkdir ./temp
|
||||
- mkdir ./temp/data
|
||||
- cp -rfp ./data/* ./temp/data
|
||||
# 删除自定义配置
|
||||
- echo '删除自定义配置'
|
||||
- |
|
||||
while IFS= read -r line || [[ -n $line ]]
|
||||
do
|
||||
echo "删除 $line 配置"
|
||||
rm ./temp/data/$line
|
||||
done < ./exclude.txt
|
||||
# 拷贝可执行程序
|
||||
- echo '拷贝可执行程序'
|
||||
- |
|
||||
while IFS= read -r line || [[ -n $line ]]
|
||||
do
|
||||
echo "拷贝 $line"
|
||||
mv ./$line/$line ./temp/$line
|
||||
done < ./programs.txt
|
||||
|
||||
sync_job:
|
||||
stage: sync
|
||||
only:
|
||||
- develop
|
||||
- release
|
||||
script:
|
||||
- cd $GOPATH/src/$ProjectPath
|
||||
- if [ "$CI_COMMIT_BRANCH" == "develop" ]; then
|
||||
SSH_PRIVATE_KEY="$SSH_PRIVATE_KEY_DEVELOP";
|
||||
REMOTE_HOST="$REMOTE_HOST_DEVELOP";
|
||||
REMOTE_USER="$REMOTE_USER_DEVELOP";
|
||||
ServerName="develop";
|
||||
BinPath="$DevelopBinPath";
|
||||
elif [ "$CI_COMMIT_BRANCH" == "release" ]; then
|
||||
SSH_PRIVATE_KEY="$SSH_PRIVATE_KEY_BETA";
|
||||
REMOTE_HOST="$REMOTE_HOST_BETA";
|
||||
REMOTE_USER="$REMOTE_USER_BETA";
|
||||
ServerName="beta";
|
||||
BinPath="$BetaBinPath";
|
||||
else
|
||||
echo "不支持的分支";
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
# 设置 .ssh 目录并写入 SSH 私钥
|
||||
- echo "设置 SSH keys..."
|
||||
- mkdir -p ~/.ssh
|
||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
|
||||
- chmod 600 ~/.ssh/id_rsa
|
||||
- ssh-keyscan -H "$REMOTE_HOST" >> ~/.ssh/known_hosts
|
||||
|
||||
# 使用 rsync 将文件同步到远程服务器
|
||||
- echo "同步到服务器"
|
||||
- echo "Deploying to remote server using rsync... $BinPath"
|
||||
- rsync -rvz --delete ./temp/ $REMOTE_USER@$REMOTE_HOST:$BinPath
|
||||
|
||||
# 触发部署
|
||||
- "curl -X POST --fail -F token=$SERVER_CI_TOKEN -F ref=release -F variables[ServerName]=$ServerName https://git.pogorockgames.com/api/v4/projects/31/trigger/pipeline"
|
||||
|
||||
# 解锁作业,释放锁定
|
||||
unlock_job:
|
||||
stage: unlock
|
||||
script:
|
||||
- rm -f /tmp/ci_lock
|
||||
- echo "释放锁定,流水线结束。"
|
||||
when: always
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
[submodule "public"]
|
||||
path = public
|
||||
url = git@git.pogorockgames.com:mango-games/server/public.git
|
||||
24
README.md
24
README.md
|
|
@ -2,27 +2,6 @@
|
|||
|
||||
游戏业务代码
|
||||
|
||||
### 子仓库
|
||||
public子仓库本项目本身并没有使用,只是用来暴露部分公共代码,供其他项目使用。
|
||||
例如:
|
||||
1.客户端同步通信协议
|
||||
2.客户端同步游戏配置
|
||||
|
||||
#### 初始化子仓库
|
||||
```
|
||||
git submodule update --init --recursive
|
||||
```
|
||||
|
||||
#### 更新子仓库
|
||||
```
|
||||
git submodule update --remote
|
||||
```
|
||||
|
||||
#### 更新并提交子仓库代码
|
||||
```
|
||||
update_public.sh
|
||||
```
|
||||
|
||||
### 脚本
|
||||
#### gen_data.bat
|
||||
xlsx文件转换为json,dat文件,生成pbdata.proto,生成srvdata包
|
||||
|
|
@ -30,9 +9,6 @@ update_public.sh
|
|||
#### gen_go.bat
|
||||
proto文件生成go文件
|
||||
|
||||
#### gen_web.bat
|
||||
proto文件生成go文件
|
||||
|
||||
#### build.bat
|
||||
生成可执行文件
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
@echo off
|
||||
|
||||
xcopy ..\data\* .\data\ /s /e /y /exclude:..\exclude.txt
|
||||
|
||||
for /f %%i in (../programs.txt) do (
|
||||
echo go build %%i
|
||||
go build -o ./%%i/%%i.exe ../%%i/
|
||||
)
|
||||
|
||||
pause
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
@echo off
|
||||
|
||||
for /f "tokens=*" %%a in (../shell/programs.txt) do (
|
||||
if exist "%%a\*.log" del /q "%%a\*.log"
|
||||
if exist "%%a\*.log.*" del /q "%%a\*.log.*"
|
||||
if exist "%%a\backup" rmdir /s /q "%%a\backup"
|
||||
if exist "%%a\log" rmdir /s /q "%%a\log"
|
||||
|
||||
echo "clean logs: %%a"
|
||||
)
|
||||
|
||||
pause
|
||||
Binary file not shown.
|
|
@ -0,0 +1,158 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option go_package = "google.golang.org/protobuf/types/known/anypb";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "AnyProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
|
||||
// `Any` contains an arbitrary serialized protocol buffer message along with a
|
||||
// URL that describes the type of the serialized message.
|
||||
//
|
||||
// Protobuf library provides support to pack/unpack Any values in the form
|
||||
// of utility functions or additional generated methods of the Any type.
|
||||
//
|
||||
// Example 1: Pack and unpack a message in C++.
|
||||
//
|
||||
// Foo foo = ...;
|
||||
// Any any;
|
||||
// any.PackFrom(foo);
|
||||
// ...
|
||||
// if (any.UnpackTo(&foo)) {
|
||||
// ...
|
||||
// }
|
||||
//
|
||||
// Example 2: Pack and unpack a message in Java.
|
||||
//
|
||||
// Foo foo = ...;
|
||||
// Any any = Any.pack(foo);
|
||||
// ...
|
||||
// if (any.is(Foo.class)) {
|
||||
// foo = any.unpack(Foo.class);
|
||||
// }
|
||||
//
|
||||
// Example 3: Pack and unpack a message in Python.
|
||||
//
|
||||
// foo = Foo(...)
|
||||
// any = Any()
|
||||
// any.Pack(foo)
|
||||
// ...
|
||||
// if any.Is(Foo.DESCRIPTOR):
|
||||
// any.Unpack(foo)
|
||||
// ...
|
||||
//
|
||||
// Example 4: Pack and unpack a message in Go
|
||||
//
|
||||
// foo := &pb.Foo{...}
|
||||
// any, err := anypb.New(foo)
|
||||
// if err != nil {
|
||||
// ...
|
||||
// }
|
||||
// ...
|
||||
// foo := &pb.Foo{}
|
||||
// if err := any.UnmarshalTo(foo); err != nil {
|
||||
// ...
|
||||
// }
|
||||
//
|
||||
// The pack methods provided by protobuf library will by default use
|
||||
// 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
||||
// methods only use the fully qualified type name after the last '/'
|
||||
// in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
||||
// name "y.z".
|
||||
//
|
||||
//
|
||||
// JSON
|
||||
// ====
|
||||
// The JSON representation of an `Any` value uses the regular
|
||||
// representation of the deserialized, embedded message, with an
|
||||
// additional field `@type` which contains the type URL. Example:
|
||||
//
|
||||
// package google.profile;
|
||||
// message Person {
|
||||
// string first_name = 1;
|
||||
// string last_name = 2;
|
||||
// }
|
||||
//
|
||||
// {
|
||||
// "@type": "type.googleapis.com/google.profile.Person",
|
||||
// "firstName": <string>,
|
||||
// "lastName": <string>
|
||||
// }
|
||||
//
|
||||
// If the embedded message type is well-known and has a custom JSON
|
||||
// representation, that representation will be embedded adding a field
|
||||
// `value` which holds the custom JSON in addition to the `@type`
|
||||
// field. Example (for message [google.protobuf.Duration][]):
|
||||
//
|
||||
// {
|
||||
// "@type": "type.googleapis.com/google.protobuf.Duration",
|
||||
// "value": "1.212s"
|
||||
// }
|
||||
//
|
||||
message Any {
|
||||
// A URL/resource name that uniquely identifies the type of the serialized
|
||||
// protocol buffer message. This string must contain at least
|
||||
// one "/" character. The last segment of the URL's path must represent
|
||||
// the fully qualified name of the type (as in
|
||||
// `path/google.protobuf.Duration`). The name should be in a canonical form
|
||||
// (e.g., leading "." is not accepted).
|
||||
//
|
||||
// In practice, teams usually precompile into the binary all types that they
|
||||
// expect it to use in the context of Any. However, for URLs which use the
|
||||
// scheme `http`, `https`, or no scheme, one can optionally set up a type
|
||||
// server that maps type URLs to message definitions as follows:
|
||||
//
|
||||
// * If no scheme is provided, `https` is assumed.
|
||||
// * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
||||
// value in binary format, or produce an error.
|
||||
// * Applications are allowed to cache lookup results based on the
|
||||
// URL, or have them precompiled into a binary to avoid any
|
||||
// lookup. Therefore, binary compatibility needs to be preserved
|
||||
// on changes to types. (Use versioned type names to manage
|
||||
// breaking changes.)
|
||||
//
|
||||
// Note: this functionality is not currently available in the official
|
||||
// protobuf release, and it is not used for type URLs beginning with
|
||||
// type.googleapis.com.
|
||||
//
|
||||
// Schemes other than `http`, `https` (or the empty scheme) might be
|
||||
// used with implementation specific semantics.
|
||||
//
|
||||
string type_url = 1;
|
||||
|
||||
// Must be a valid serialized protocol buffer of the above specified type.
|
||||
bytes value = 2;
|
||||
}
|
||||
|
|
@ -0,0 +1,208 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
import "google/protobuf/source_context.proto";
|
||||
import "google/protobuf/type.proto";
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "ApiProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
option go_package = "google.golang.org/protobuf/types/known/apipb";
|
||||
|
||||
// Api is a light-weight descriptor for an API Interface.
|
||||
//
|
||||
// Interfaces are also described as "protocol buffer services" in some contexts,
|
||||
// such as by the "service" keyword in a .proto file, but they are different
|
||||
// from API Services, which represent a concrete implementation of an interface
|
||||
// as opposed to simply a description of methods and bindings. They are also
|
||||
// sometimes simply referred to as "APIs" in other contexts, such as the name of
|
||||
// this message itself. See https://cloud.google.com/apis/design/glossary for
|
||||
// detailed terminology.
|
||||
message Api {
|
||||
// The fully qualified name of this interface, including package name
|
||||
// followed by the interface's simple name.
|
||||
string name = 1;
|
||||
|
||||
// The methods of this interface, in unspecified order.
|
||||
repeated Method methods = 2;
|
||||
|
||||
// Any metadata attached to the interface.
|
||||
repeated Option options = 3;
|
||||
|
||||
// A version string for this interface. If specified, must have the form
|
||||
// `major-version.minor-version`, as in `1.10`. If the minor version is
|
||||
// omitted, it defaults to zero. If the entire version field is empty, the
|
||||
// major version is derived from the package name, as outlined below. If the
|
||||
// field is not empty, the version in the package name will be verified to be
|
||||
// consistent with what is provided here.
|
||||
//
|
||||
// The versioning schema uses [semantic
|
||||
// versioning](http://semver.org) where the major version number
|
||||
// indicates a breaking change and the minor version an additive,
|
||||
// non-breaking change. Both version numbers are signals to users
|
||||
// what to expect from different versions, and should be carefully
|
||||
// chosen based on the product plan.
|
||||
//
|
||||
// The major version is also reflected in the package name of the
|
||||
// interface, which must end in `v<major-version>`, as in
|
||||
// `google.feature.v1`. For major versions 0 and 1, the suffix can
|
||||
// be omitted. Zero major versions must only be used for
|
||||
// experimental, non-GA interfaces.
|
||||
//
|
||||
//
|
||||
string version = 4;
|
||||
|
||||
// Source context for the protocol buffer service represented by this
|
||||
// message.
|
||||
SourceContext source_context = 5;
|
||||
|
||||
// Included interfaces. See [Mixin][].
|
||||
repeated Mixin mixins = 6;
|
||||
|
||||
// The source syntax of the service.
|
||||
Syntax syntax = 7;
|
||||
}
|
||||
|
||||
// Method represents a method of an API interface.
|
||||
message Method {
|
||||
// The simple name of this method.
|
||||
string name = 1;
|
||||
|
||||
// A URL of the input message type.
|
||||
string request_type_url = 2;
|
||||
|
||||
// If true, the request is streamed.
|
||||
bool request_streaming = 3;
|
||||
|
||||
// The URL of the output message type.
|
||||
string response_type_url = 4;
|
||||
|
||||
// If true, the response is streamed.
|
||||
bool response_streaming = 5;
|
||||
|
||||
// Any metadata attached to the method.
|
||||
repeated Option options = 6;
|
||||
|
||||
// The source syntax of this method.
|
||||
Syntax syntax = 7;
|
||||
}
|
||||
|
||||
// Declares an API Interface to be included in this interface. The including
|
||||
// interface must redeclare all the methods from the included interface, but
|
||||
// documentation and options are inherited as follows:
|
||||
//
|
||||
// - If after comment and whitespace stripping, the documentation
|
||||
// string of the redeclared method is empty, it will be inherited
|
||||
// from the original method.
|
||||
//
|
||||
// - Each annotation belonging to the service config (http,
|
||||
// visibility) which is not set in the redeclared method will be
|
||||
// inherited.
|
||||
//
|
||||
// - If an http annotation is inherited, the path pattern will be
|
||||
// modified as follows. Any version prefix will be replaced by the
|
||||
// version of the including interface plus the [root][] path if
|
||||
// specified.
|
||||
//
|
||||
// Example of a simple mixin:
|
||||
//
|
||||
// package google.acl.v1;
|
||||
// service AccessControl {
|
||||
// // Get the underlying ACL object.
|
||||
// rpc GetAcl(GetAclRequest) returns (Acl) {
|
||||
// option (google.api.http).get = "/v1/{resource=**}:getAcl";
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// package google.storage.v2;
|
||||
// service Storage {
|
||||
// rpc GetAcl(GetAclRequest) returns (Acl);
|
||||
//
|
||||
// // Get a data record.
|
||||
// rpc GetData(GetDataRequest) returns (Data) {
|
||||
// option (google.api.http).get = "/v2/{resource=**}";
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// Example of a mixin configuration:
|
||||
//
|
||||
// apis:
|
||||
// - name: google.storage.v2.Storage
|
||||
// mixins:
|
||||
// - name: google.acl.v1.AccessControl
|
||||
//
|
||||
// The mixin construct implies that all methods in `AccessControl` are
|
||||
// also declared with same name and request/response types in
|
||||
// `Storage`. A documentation generator or annotation processor will
|
||||
// see the effective `Storage.GetAcl` method after inheriting
|
||||
// documentation and annotations as follows:
|
||||
//
|
||||
// service Storage {
|
||||
// // Get the underlying ACL object.
|
||||
// rpc GetAcl(GetAclRequest) returns (Acl) {
|
||||
// option (google.api.http).get = "/v2/{resource=**}:getAcl";
|
||||
// }
|
||||
// ...
|
||||
// }
|
||||
//
|
||||
// Note how the version in the path pattern changed from `v1` to `v2`.
|
||||
//
|
||||
// If the `root` field in the mixin is specified, it should be a
|
||||
// relative path under which inherited HTTP paths are placed. Example:
|
||||
//
|
||||
// apis:
|
||||
// - name: google.storage.v2.Storage
|
||||
// mixins:
|
||||
// - name: google.acl.v1.AccessControl
|
||||
// root: acls
|
||||
//
|
||||
// This implies the following inherited HTTP annotation:
|
||||
//
|
||||
// service Storage {
|
||||
// // Get the underlying ACL object.
|
||||
// rpc GetAcl(GetAclRequest) returns (Acl) {
|
||||
// option (google.api.http).get = "/v2/acls/{resource=**}:getAcl";
|
||||
// }
|
||||
// ...
|
||||
// }
|
||||
message Mixin {
|
||||
// The fully qualified name of the interface which is included.
|
||||
string name = 1;
|
||||
|
||||
// If non-empty specifies a path under which inherited HTTP paths
|
||||
// are rooted.
|
||||
string root = 2;
|
||||
}
|
||||
|
|
@ -0,0 +1,183 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
// Author: kenton@google.com (Kenton Varda)
|
||||
//
|
||||
// WARNING: The plugin interface is currently EXPERIMENTAL and is subject to
|
||||
// change.
|
||||
//
|
||||
// protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is
|
||||
// just a program that reads a CodeGeneratorRequest from stdin and writes a
|
||||
// CodeGeneratorResponse to stdout.
|
||||
//
|
||||
// Plugins written using C++ can use google/protobuf/compiler/plugin.h instead
|
||||
// of dealing with the raw protocol defined here.
|
||||
//
|
||||
// A plugin executable needs only to be placed somewhere in the path. The
|
||||
// plugin should be named "protoc-gen-$NAME", and will then be used when the
|
||||
// flag "--${NAME}_out" is passed to protoc.
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package google.protobuf.compiler;
|
||||
option java_package = "com.google.protobuf.compiler";
|
||||
option java_outer_classname = "PluginProtos";
|
||||
|
||||
option go_package = "google.golang.org/protobuf/types/pluginpb";
|
||||
|
||||
import "google/protobuf/descriptor.proto";
|
||||
|
||||
// The version number of protocol compiler.
|
||||
message Version {
|
||||
optional int32 major = 1;
|
||||
optional int32 minor = 2;
|
||||
optional int32 patch = 3;
|
||||
// A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
|
||||
// be empty for mainline stable releases.
|
||||
optional string suffix = 4;
|
||||
}
|
||||
|
||||
// An encoded CodeGeneratorRequest is written to the plugin's stdin.
|
||||
message CodeGeneratorRequest {
|
||||
// The .proto files that were explicitly listed on the command-line. The
|
||||
// code generator should generate code only for these files. Each file's
|
||||
// descriptor will be included in proto_file, below.
|
||||
repeated string file_to_generate = 1;
|
||||
|
||||
// The generator parameter passed on the command-line.
|
||||
optional string parameter = 2;
|
||||
|
||||
// FileDescriptorProtos for all files in files_to_generate and everything
|
||||
// they import. The files will appear in topological order, so each file
|
||||
// appears before any file that imports it.
|
||||
//
|
||||
// protoc guarantees that all proto_files will be written after
|
||||
// the fields above, even though this is not technically guaranteed by the
|
||||
// protobuf wire format. This theoretically could allow a plugin to stream
|
||||
// in the FileDescriptorProtos and handle them one by one rather than read
|
||||
// the entire set into memory at once. However, as of this writing, this
|
||||
// is not similarly optimized on protoc's end -- it will store all fields in
|
||||
// memory at once before sending them to the plugin.
|
||||
//
|
||||
// Type names of fields and extensions in the FileDescriptorProto are always
|
||||
// fully qualified.
|
||||
repeated FileDescriptorProto proto_file = 15;
|
||||
|
||||
// The version number of protocol compiler.
|
||||
optional Version compiler_version = 3;
|
||||
|
||||
}
|
||||
|
||||
// The plugin writes an encoded CodeGeneratorResponse to stdout.
|
||||
message CodeGeneratorResponse {
|
||||
// Error message. If non-empty, code generation failed. The plugin process
|
||||
// should exit with status code zero even if it reports an error in this way.
|
||||
//
|
||||
// This should be used to indicate errors in .proto files which prevent the
|
||||
// code generator from generating correct code. Errors which indicate a
|
||||
// problem in protoc itself -- such as the input CodeGeneratorRequest being
|
||||
// unparseable -- should be reported by writing a message to stderr and
|
||||
// exiting with a non-zero status code.
|
||||
optional string error = 1;
|
||||
|
||||
// A bitmask of supported features that the code generator supports.
|
||||
// This is a bitwise "or" of values from the Feature enum.
|
||||
optional uint64 supported_features = 2;
|
||||
|
||||
// Sync with code_generator.h.
|
||||
enum Feature {
|
||||
FEATURE_NONE = 0;
|
||||
FEATURE_PROTO3_OPTIONAL = 1;
|
||||
}
|
||||
|
||||
// Represents a single generated file.
|
||||
message File {
|
||||
// The file name, relative to the output directory. The name must not
|
||||
// contain "." or ".." components and must be relative, not be absolute (so,
|
||||
// the file cannot lie outside the output directory). "/" must be used as
|
||||
// the path separator, not "\".
|
||||
//
|
||||
// If the name is omitted, the content will be appended to the previous
|
||||
// file. This allows the generator to break large files into small chunks,
|
||||
// and allows the generated text to be streamed back to protoc so that large
|
||||
// files need not reside completely in memory at one time. Note that as of
|
||||
// this writing protoc does not optimize for this -- it will read the entire
|
||||
// CodeGeneratorResponse before writing files to disk.
|
||||
optional string name = 1;
|
||||
|
||||
// If non-empty, indicates that the named file should already exist, and the
|
||||
// content here is to be inserted into that file at a defined insertion
|
||||
// point. This feature allows a code generator to extend the output
|
||||
// produced by another code generator. The original generator may provide
|
||||
// insertion points by placing special annotations in the file that look
|
||||
// like:
|
||||
// @@protoc_insertion_point(NAME)
|
||||
// The annotation can have arbitrary text before and after it on the line,
|
||||
// which allows it to be placed in a comment. NAME should be replaced with
|
||||
// an identifier naming the point -- this is what other generators will use
|
||||
// as the insertion_point. Code inserted at this point will be placed
|
||||
// immediately above the line containing the insertion point (thus multiple
|
||||
// insertions to the same point will come out in the order they were added).
|
||||
// The double-@ is intended to make it unlikely that the generated code
|
||||
// could contain things that look like insertion points by accident.
|
||||
//
|
||||
// For example, the C++ code generator places the following line in the
|
||||
// .pb.h files that it generates:
|
||||
// // @@protoc_insertion_point(namespace_scope)
|
||||
// This line appears within the scope of the file's package namespace, but
|
||||
// outside of any particular class. Another plugin can then specify the
|
||||
// insertion_point "namespace_scope" to generate additional classes or
|
||||
// other declarations that should be placed in this scope.
|
||||
//
|
||||
// Note that if the line containing the insertion point begins with
|
||||
// whitespace, the same whitespace will be added to every line of the
|
||||
// inserted text. This is useful for languages like Python, where
|
||||
// indentation matters. In these languages, the insertion point comment
|
||||
// should be indented the same amount as any inserted code will need to be
|
||||
// in order to work correctly in that context.
|
||||
//
|
||||
// The code generator that generates the initial file and the one which
|
||||
// inserts into it must both run as part of a single invocation of protoc.
|
||||
// Code generators are executed in the order in which they appear on the
|
||||
// command line.
|
||||
//
|
||||
// If |insertion_point| is present, |name| must also be present.
|
||||
optional string insertion_point = 2;
|
||||
|
||||
// The file contents.
|
||||
optional string content = 15;
|
||||
|
||||
// Information describing the file content being inserted. If an insertion
|
||||
// point is used, this information will be appropriately offset and inserted
|
||||
// into the code generation metadata for the generated files.
|
||||
optional GeneratedCodeInfo generated_code_info = 16;
|
||||
}
|
||||
repeated File file = 15;
|
||||
}
|
||||
|
|
@ -0,0 +1,911 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
// Author: kenton@google.com (Kenton Varda)
|
||||
// Based on original Protocol Buffers design by
|
||||
// Sanjay Ghemawat, Jeff Dean, and others.
|
||||
//
|
||||
// The messages in this file describe the definitions found in .proto files.
|
||||
// A valid .proto file can be translated directly to a FileDescriptorProto
|
||||
// without any other information (e.g. without reading its imports).
|
||||
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
option go_package = "google.golang.org/protobuf/types/descriptorpb";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "DescriptorProtos";
|
||||
option csharp_namespace = "Google.Protobuf.Reflection";
|
||||
option objc_class_prefix = "GPB";
|
||||
option cc_enable_arenas = true;
|
||||
|
||||
// descriptor.proto must be optimized for speed because reflection-based
|
||||
// algorithms don't work during bootstrapping.
|
||||
option optimize_for = SPEED;
|
||||
|
||||
// The protocol compiler can output a FileDescriptorSet containing the .proto
|
||||
// files it parses.
|
||||
message FileDescriptorSet {
|
||||
repeated FileDescriptorProto file = 1;
|
||||
}
|
||||
|
||||
// Describes a complete .proto file.
|
||||
message FileDescriptorProto {
|
||||
optional string name = 1; // file name, relative to root of source tree
|
||||
optional string package = 2; // e.g. "foo", "foo.bar", etc.
|
||||
|
||||
// Names of files imported by this file.
|
||||
repeated string dependency = 3;
|
||||
// Indexes of the public imported files in the dependency list above.
|
||||
repeated int32 public_dependency = 10;
|
||||
// Indexes of the weak imported files in the dependency list.
|
||||
// For Google-internal migration only. Do not use.
|
||||
repeated int32 weak_dependency = 11;
|
||||
|
||||
// All top-level definitions in this file.
|
||||
repeated DescriptorProto message_type = 4;
|
||||
repeated EnumDescriptorProto enum_type = 5;
|
||||
repeated ServiceDescriptorProto service = 6;
|
||||
repeated FieldDescriptorProto extension = 7;
|
||||
|
||||
optional FileOptions options = 8;
|
||||
|
||||
// This field contains optional information about the original source code.
|
||||
// You may safely remove this entire field without harming runtime
|
||||
// functionality of the descriptors -- the information is needed only by
|
||||
// development tools.
|
||||
optional SourceCodeInfo source_code_info = 9;
|
||||
|
||||
// The syntax of the proto file.
|
||||
// The supported values are "proto2" and "proto3".
|
||||
optional string syntax = 12;
|
||||
}
|
||||
|
||||
// Describes a message type.
|
||||
message DescriptorProto {
|
||||
optional string name = 1;
|
||||
|
||||
repeated FieldDescriptorProto field = 2;
|
||||
repeated FieldDescriptorProto extension = 6;
|
||||
|
||||
repeated DescriptorProto nested_type = 3;
|
||||
repeated EnumDescriptorProto enum_type = 4;
|
||||
|
||||
message ExtensionRange {
|
||||
optional int32 start = 1; // Inclusive.
|
||||
optional int32 end = 2; // Exclusive.
|
||||
|
||||
optional ExtensionRangeOptions options = 3;
|
||||
}
|
||||
repeated ExtensionRange extension_range = 5;
|
||||
|
||||
repeated OneofDescriptorProto oneof_decl = 8;
|
||||
|
||||
optional MessageOptions options = 7;
|
||||
|
||||
// Range of reserved tag numbers. Reserved tag numbers may not be used by
|
||||
// fields or extension ranges in the same message. Reserved ranges may
|
||||
// not overlap.
|
||||
message ReservedRange {
|
||||
optional int32 start = 1; // Inclusive.
|
||||
optional int32 end = 2; // Exclusive.
|
||||
}
|
||||
repeated ReservedRange reserved_range = 9;
|
||||
// Reserved field names, which may not be used by fields in the same message.
|
||||
// A given name may only be reserved once.
|
||||
repeated string reserved_name = 10;
|
||||
}
|
||||
|
||||
message ExtensionRangeOptions {
|
||||
// The parser stores options it doesn't recognize here. See above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
|
||||
// Clients can define custom options in extensions of this message. See above.
|
||||
extensions 1000 to max;
|
||||
}
|
||||
|
||||
// Describes a field within a message.
|
||||
message FieldDescriptorProto {
|
||||
enum Type {
|
||||
// 0 is reserved for errors.
|
||||
// Order is weird for historical reasons.
|
||||
TYPE_DOUBLE = 1;
|
||||
TYPE_FLOAT = 2;
|
||||
// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
|
||||
// negative values are likely.
|
||||
TYPE_INT64 = 3;
|
||||
TYPE_UINT64 = 4;
|
||||
// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
|
||||
// negative values are likely.
|
||||
TYPE_INT32 = 5;
|
||||
TYPE_FIXED64 = 6;
|
||||
TYPE_FIXED32 = 7;
|
||||
TYPE_BOOL = 8;
|
||||
TYPE_STRING = 9;
|
||||
// Tag-delimited aggregate.
|
||||
// Group type is deprecated and not supported in proto3. However, Proto3
|
||||
// implementations should still be able to parse the group wire format and
|
||||
// treat group fields as unknown fields.
|
||||
TYPE_GROUP = 10;
|
||||
TYPE_MESSAGE = 11; // Length-delimited aggregate.
|
||||
|
||||
// New in version 2.
|
||||
TYPE_BYTES = 12;
|
||||
TYPE_UINT32 = 13;
|
||||
TYPE_ENUM = 14;
|
||||
TYPE_SFIXED32 = 15;
|
||||
TYPE_SFIXED64 = 16;
|
||||
TYPE_SINT32 = 17; // Uses ZigZag encoding.
|
||||
TYPE_SINT64 = 18; // Uses ZigZag encoding.
|
||||
}
|
||||
|
||||
enum Label {
|
||||
// 0 is reserved for errors
|
||||
LABEL_OPTIONAL = 1;
|
||||
LABEL_REQUIRED = 2;
|
||||
LABEL_REPEATED = 3;
|
||||
}
|
||||
|
||||
optional string name = 1;
|
||||
optional int32 number = 3;
|
||||
optional Label label = 4;
|
||||
|
||||
// If type_name is set, this need not be set. If both this and type_name
|
||||
// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
|
||||
optional Type type = 5;
|
||||
|
||||
// For message and enum types, this is the name of the type. If the name
|
||||
// starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
|
||||
// rules are used to find the type (i.e. first the nested types within this
|
||||
// message are searched, then within the parent, on up to the root
|
||||
// namespace).
|
||||
optional string type_name = 6;
|
||||
|
||||
// For extensions, this is the name of the type being extended. It is
|
||||
// resolved in the same manner as type_name.
|
||||
optional string extendee = 2;
|
||||
|
||||
// For numeric types, contains the original text representation of the value.
|
||||
// For booleans, "true" or "false".
|
||||
// For strings, contains the default text contents (not escaped in any way).
|
||||
// For bytes, contains the C escaped value. All bytes >= 128 are escaped.
|
||||
// TODO(kenton): Base-64 encode?
|
||||
optional string default_value = 7;
|
||||
|
||||
// If set, gives the index of a oneof in the containing type's oneof_decl
|
||||
// list. This field is a member of that oneof.
|
||||
optional int32 oneof_index = 9;
|
||||
|
||||
// JSON name of this field. The value is set by protocol compiler. If the
|
||||
// user has set a "json_name" option on this field, that option's value
|
||||
// will be used. Otherwise, it's deduced from the field's name by converting
|
||||
// it to camelCase.
|
||||
optional string json_name = 10;
|
||||
|
||||
optional FieldOptions options = 8;
|
||||
|
||||
// If true, this is a proto3 "optional". When a proto3 field is optional, it
|
||||
// tracks presence regardless of field type.
|
||||
//
|
||||
// When proto3_optional is true, this field must be belong to a oneof to
|
||||
// signal to old proto3 clients that presence is tracked for this field. This
|
||||
// oneof is known as a "synthetic" oneof, and this field must be its sole
|
||||
// member (each proto3 optional field gets its own synthetic oneof). Synthetic
|
||||
// oneofs exist in the descriptor only, and do not generate any API. Synthetic
|
||||
// oneofs must be ordered after all "real" oneofs.
|
||||
//
|
||||
// For message fields, proto3_optional doesn't create any semantic change,
|
||||
// since non-repeated message fields always track presence. However it still
|
||||
// indicates the semantic detail of whether the user wrote "optional" or not.
|
||||
// This can be useful for round-tripping the .proto file. For consistency we
|
||||
// give message fields a synthetic oneof also, even though it is not required
|
||||
// to track presence. This is especially important because the parser can't
|
||||
// tell if a field is a message or an enum, so it must always create a
|
||||
// synthetic oneof.
|
||||
//
|
||||
// Proto2 optional fields do not set this flag, because they already indicate
|
||||
// optional with `LABEL_OPTIONAL`.
|
||||
optional bool proto3_optional = 17;
|
||||
}
|
||||
|
||||
// Describes a oneof.
|
||||
message OneofDescriptorProto {
|
||||
optional string name = 1;
|
||||
optional OneofOptions options = 2;
|
||||
}
|
||||
|
||||
// Describes an enum type.
|
||||
message EnumDescriptorProto {
|
||||
optional string name = 1;
|
||||
|
||||
repeated EnumValueDescriptorProto value = 2;
|
||||
|
||||
optional EnumOptions options = 3;
|
||||
|
||||
// Range of reserved numeric values. Reserved values may not be used by
|
||||
// entries in the same enum. Reserved ranges may not overlap.
|
||||
//
|
||||
// Note that this is distinct from DescriptorProto.ReservedRange in that it
|
||||
// is inclusive such that it can appropriately represent the entire int32
|
||||
// domain.
|
||||
message EnumReservedRange {
|
||||
optional int32 start = 1; // Inclusive.
|
||||
optional int32 end = 2; // Inclusive.
|
||||
}
|
||||
|
||||
// Range of reserved numeric values. Reserved numeric values may not be used
|
||||
// by enum values in the same enum declaration. Reserved ranges may not
|
||||
// overlap.
|
||||
repeated EnumReservedRange reserved_range = 4;
|
||||
|
||||
// Reserved enum value names, which may not be reused. A given name may only
|
||||
// be reserved once.
|
||||
repeated string reserved_name = 5;
|
||||
}
|
||||
|
||||
// Describes a value within an enum.
|
||||
message EnumValueDescriptorProto {
|
||||
optional string name = 1;
|
||||
optional int32 number = 2;
|
||||
|
||||
optional EnumValueOptions options = 3;
|
||||
}
|
||||
|
||||
// Describes a service.
|
||||
message ServiceDescriptorProto {
|
||||
optional string name = 1;
|
||||
repeated MethodDescriptorProto method = 2;
|
||||
|
||||
optional ServiceOptions options = 3;
|
||||
}
|
||||
|
||||
// Describes a method of a service.
|
||||
message MethodDescriptorProto {
|
||||
optional string name = 1;
|
||||
|
||||
// Input and output type names. These are resolved in the same way as
|
||||
// FieldDescriptorProto.type_name, but must refer to a message type.
|
||||
optional string input_type = 2;
|
||||
optional string output_type = 3;
|
||||
|
||||
optional MethodOptions options = 4;
|
||||
|
||||
// Identifies if client streams multiple client messages
|
||||
optional bool client_streaming = 5 [default = false];
|
||||
// Identifies if server streams multiple server messages
|
||||
optional bool server_streaming = 6 [default = false];
|
||||
}
|
||||
|
||||
|
||||
// ===================================================================
|
||||
// Options
|
||||
|
||||
// Each of the definitions above may have "options" attached. These are
|
||||
// just annotations which may cause code to be generated slightly differently
|
||||
// or may contain hints for code that manipulates protocol messages.
|
||||
//
|
||||
// Clients may define custom options as extensions of the *Options messages.
|
||||
// These extensions may not yet be known at parsing time, so the parser cannot
|
||||
// store the values in them. Instead it stores them in a field in the *Options
|
||||
// message called uninterpreted_option. This field must have the same name
|
||||
// across all *Options messages. We then use this field to populate the
|
||||
// extensions when we build a descriptor, at which point all protos have been
|
||||
// parsed and so all extensions are known.
|
||||
//
|
||||
// Extension numbers for custom options may be chosen as follows:
|
||||
// * For options which will only be used within a single application or
|
||||
// organization, or for experimental options, use field numbers 50000
|
||||
// through 99999. It is up to you to ensure that you do not use the
|
||||
// same number for multiple options.
|
||||
// * For options which will be published and used publicly by multiple
|
||||
// independent entities, e-mail protobuf-global-extension-registry@google.com
|
||||
// to reserve extension numbers. Simply provide your project name (e.g.
|
||||
// Objective-C plugin) and your project website (if available) -- there's no
|
||||
// need to explain how you intend to use them. Usually you only need one
|
||||
// extension number. You can declare multiple options with only one extension
|
||||
// number by putting them in a sub-message. See the Custom Options section of
|
||||
// the docs for examples:
|
||||
// https://developers.google.com/protocol-buffers/docs/proto#options
|
||||
// If this turns out to be popular, a web service will be set up
|
||||
// to automatically assign option numbers.
|
||||
|
||||
message FileOptions {
|
||||
|
||||
// Sets the Java package where classes generated from this .proto will be
|
||||
// placed. By default, the proto package is used, but this is often
|
||||
// inappropriate because proto packages do not normally start with backwards
|
||||
// domain names.
|
||||
optional string java_package = 1;
|
||||
|
||||
|
||||
// Controls the name of the wrapper Java class generated for the .proto file.
|
||||
// That class will always contain the .proto file's getDescriptor() method as
|
||||
// well as any top-level extensions defined in the .proto file.
|
||||
// If java_multiple_files is disabled, then all the other classes from the
|
||||
// .proto file will be nested inside the single wrapper outer class.
|
||||
optional string java_outer_classname = 8;
|
||||
|
||||
// If enabled, then the Java code generator will generate a separate .java
|
||||
// file for each top-level message, enum, and service defined in the .proto
|
||||
// file. Thus, these types will *not* be nested inside the wrapper class
|
||||
// named by java_outer_classname. However, the wrapper class will still be
|
||||
// generated to contain the file's getDescriptor() method as well as any
|
||||
// top-level extensions defined in the file.
|
||||
optional bool java_multiple_files = 10 [default = false];
|
||||
|
||||
// This option does nothing.
|
||||
optional bool java_generate_equals_and_hash = 20 [deprecated=true];
|
||||
|
||||
// If set true, then the Java2 code generator will generate code that
|
||||
// throws an exception whenever an attempt is made to assign a non-UTF-8
|
||||
// byte sequence to a string field.
|
||||
// Message reflection will do the same.
|
||||
// However, an extension field still accepts non-UTF-8 byte sequences.
|
||||
// This option has no effect on when used with the lite runtime.
|
||||
optional bool java_string_check_utf8 = 27 [default = false];
|
||||
|
||||
|
||||
// Generated classes can be optimized for speed or code size.
|
||||
enum OptimizeMode {
|
||||
SPEED = 1; // Generate complete code for parsing, serialization,
|
||||
// etc.
|
||||
CODE_SIZE = 2; // Use ReflectionOps to implement these methods.
|
||||
LITE_RUNTIME = 3; // Generate code using MessageLite and the lite runtime.
|
||||
}
|
||||
optional OptimizeMode optimize_for = 9 [default = SPEED];
|
||||
|
||||
// Sets the Go package where structs generated from this .proto will be
|
||||
// placed. If omitted, the Go package will be derived from the following:
|
||||
// - The basename of the package import path, if provided.
|
||||
// - Otherwise, the package statement in the .proto file, if present.
|
||||
// - Otherwise, the basename of the .proto file, without extension.
|
||||
optional string go_package = 11;
|
||||
|
||||
|
||||
|
||||
|
||||
// Should generic services be generated in each language? "Generic" services
|
||||
// are not specific to any particular RPC system. They are generated by the
|
||||
// main code generators in each language (without additional plugins).
|
||||
// Generic services were the only kind of service generation supported by
|
||||
// early versions of google.protobuf.
|
||||
//
|
||||
// Generic services are now considered deprecated in favor of using plugins
|
||||
// that generate code specific to your particular RPC system. Therefore,
|
||||
// these default to false. Old code which depends on generic services should
|
||||
// explicitly set them to true.
|
||||
optional bool cc_generic_services = 16 [default = false];
|
||||
optional bool java_generic_services = 17 [default = false];
|
||||
optional bool py_generic_services = 18 [default = false];
|
||||
optional bool php_generic_services = 42 [default = false];
|
||||
|
||||
// Is this file deprecated?
|
||||
// Depending on the target platform, this can emit Deprecated annotations
|
||||
// for everything in the file, or it will be completely ignored; in the very
|
||||
// least, this is a formalization for deprecating files.
|
||||
optional bool deprecated = 23 [default = false];
|
||||
|
||||
// Enables the use of arenas for the proto messages in this file. This applies
|
||||
// only to generated classes for C++.
|
||||
optional bool cc_enable_arenas = 31 [default = true];
|
||||
|
||||
|
||||
// Sets the objective c class prefix which is prepended to all objective c
|
||||
// generated classes from this .proto. There is no default.
|
||||
optional string objc_class_prefix = 36;
|
||||
|
||||
// Namespace for generated classes; defaults to the package.
|
||||
optional string csharp_namespace = 37;
|
||||
|
||||
// By default Swift generators will take the proto package and CamelCase it
|
||||
// replacing '.' with underscore and use that to prefix the types/symbols
|
||||
// defined. When this options is provided, they will use this value instead
|
||||
// to prefix the types/symbols defined.
|
||||
optional string swift_prefix = 39;
|
||||
|
||||
// Sets the php class prefix which is prepended to all php generated classes
|
||||
// from this .proto. Default is empty.
|
||||
optional string php_class_prefix = 40;
|
||||
|
||||
// Use this option to change the namespace of php generated classes. Default
|
||||
// is empty. When this option is empty, the package name will be used for
|
||||
// determining the namespace.
|
||||
optional string php_namespace = 41;
|
||||
|
||||
// Use this option to change the namespace of php generated metadata classes.
|
||||
// Default is empty. When this option is empty, the proto file name will be
|
||||
// used for determining the namespace.
|
||||
optional string php_metadata_namespace = 44;
|
||||
|
||||
// Use this option to change the package of ruby generated classes. Default
|
||||
// is empty. When this option is not set, the package name will be used for
|
||||
// determining the ruby package.
|
||||
optional string ruby_package = 45;
|
||||
|
||||
|
||||
// The parser stores options it doesn't recognize here.
|
||||
// See the documentation for the "Options" section above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
// Clients can define custom options in extensions of this message.
|
||||
// See the documentation for the "Options" section above.
|
||||
extensions 1000 to max;
|
||||
|
||||
reserved 38;
|
||||
}
|
||||
|
||||
message MessageOptions {
|
||||
// Set true to use the old proto1 MessageSet wire format for extensions.
|
||||
// This is provided for backwards-compatibility with the MessageSet wire
|
||||
// format. You should not use this for any other reason: It's less
|
||||
// efficient, has fewer features, and is more complicated.
|
||||
//
|
||||
// The message must be defined exactly as follows:
|
||||
// message Foo {
|
||||
// option message_set_wire_format = true;
|
||||
// extensions 4 to max;
|
||||
// }
|
||||
// Note that the message cannot have any defined fields; MessageSets only
|
||||
// have extensions.
|
||||
//
|
||||
// All extensions of your type must be singular messages; e.g. they cannot
|
||||
// be int32s, enums, or repeated messages.
|
||||
//
|
||||
// Because this is an option, the above two restrictions are not enforced by
|
||||
// the protocol compiler.
|
||||
optional bool message_set_wire_format = 1 [default = false];
|
||||
|
||||
// Disables the generation of the standard "descriptor()" accessor, which can
|
||||
// conflict with a field of the same name. This is meant to make migration
|
||||
// from proto1 easier; new code should avoid fields named "descriptor".
|
||||
optional bool no_standard_descriptor_accessor = 2 [default = false];
|
||||
|
||||
// Is this message deprecated?
|
||||
// Depending on the target platform, this can emit Deprecated annotations
|
||||
// for the message, or it will be completely ignored; in the very least,
|
||||
// this is a formalization for deprecating messages.
|
||||
optional bool deprecated = 3 [default = false];
|
||||
|
||||
reserved 4, 5, 6;
|
||||
|
||||
// Whether the message is an automatically generated map entry type for the
|
||||
// maps field.
|
||||
//
|
||||
// For maps fields:
|
||||
// map<KeyType, ValueType> map_field = 1;
|
||||
// The parsed descriptor looks like:
|
||||
// message MapFieldEntry {
|
||||
// option map_entry = true;
|
||||
// optional KeyType key = 1;
|
||||
// optional ValueType value = 2;
|
||||
// }
|
||||
// repeated MapFieldEntry map_field = 1;
|
||||
//
|
||||
// Implementations may choose not to generate the map_entry=true message, but
|
||||
// use a native map in the target language to hold the keys and values.
|
||||
// The reflection APIs in such implementations still need to work as
|
||||
// if the field is a repeated message field.
|
||||
//
|
||||
// NOTE: Do not set the option in .proto files. Always use the maps syntax
|
||||
// instead. The option should only be implicitly set by the proto compiler
|
||||
// parser.
|
||||
optional bool map_entry = 7;
|
||||
|
||||
reserved 8; // javalite_serializable
|
||||
reserved 9; // javanano_as_lite
|
||||
|
||||
|
||||
// The parser stores options it doesn't recognize here. See above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
// Clients can define custom options in extensions of this message. See above.
|
||||
extensions 1000 to max;
|
||||
}
|
||||
|
||||
message FieldOptions {
|
||||
// The ctype option instructs the C++ code generator to use a different
|
||||
// representation of the field than it normally would. See the specific
|
||||
// options below. This option is not yet implemented in the open source
|
||||
// release -- sorry, we'll try to include it in a future version!
|
||||
optional CType ctype = 1 [default = STRING];
|
||||
enum CType {
|
||||
// Default mode.
|
||||
STRING = 0;
|
||||
|
||||
CORD = 1;
|
||||
|
||||
STRING_PIECE = 2;
|
||||
}
|
||||
// The packed option can be enabled for repeated primitive fields to enable
|
||||
// a more efficient representation on the wire. Rather than repeatedly
|
||||
// writing the tag and type for each element, the entire array is encoded as
|
||||
// a single length-delimited blob. In proto3, only explicit setting it to
|
||||
// false will avoid using packed encoding.
|
||||
optional bool packed = 2;
|
||||
|
||||
// The jstype option determines the JavaScript type used for values of the
|
||||
// field. The option is permitted only for 64 bit integral and fixed types
|
||||
// (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
|
||||
// is represented as JavaScript string, which avoids loss of precision that
|
||||
// can happen when a large value is converted to a floating point JavaScript.
|
||||
// Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
|
||||
// use the JavaScript "number" type. The behavior of the default option
|
||||
// JS_NORMAL is implementation dependent.
|
||||
//
|
||||
// This option is an enum to permit additional types to be added, e.g.
|
||||
// goog.math.Integer.
|
||||
optional JSType jstype = 6 [default = JS_NORMAL];
|
||||
enum JSType {
|
||||
// Use the default type.
|
||||
JS_NORMAL = 0;
|
||||
|
||||
// Use JavaScript strings.
|
||||
JS_STRING = 1;
|
||||
|
||||
// Use JavaScript numbers.
|
||||
JS_NUMBER = 2;
|
||||
}
|
||||
|
||||
// Should this field be parsed lazily? Lazy applies only to message-type
|
||||
// fields. It means that when the outer message is initially parsed, the
|
||||
// inner message's contents will not be parsed but instead stored in encoded
|
||||
// form. The inner message will actually be parsed when it is first accessed.
|
||||
//
|
||||
// This is only a hint. Implementations are free to choose whether to use
|
||||
// eager or lazy parsing regardless of the value of this option. However,
|
||||
// setting this option true suggests that the protocol author believes that
|
||||
// using lazy parsing on this field is worth the additional bookkeeping
|
||||
// overhead typically needed to implement it.
|
||||
//
|
||||
// This option does not affect the public interface of any generated code;
|
||||
// all method signatures remain the same. Furthermore, thread-safety of the
|
||||
// interface is not affected by this option; const methods remain safe to
|
||||
// call from multiple threads concurrently, while non-const methods continue
|
||||
// to require exclusive access.
|
||||
//
|
||||
//
|
||||
// Note that implementations may choose not to check required fields within
|
||||
// a lazy sub-message. That is, calling IsInitialized() on the outer message
|
||||
// may return true even if the inner message has missing required fields.
|
||||
// This is necessary because otherwise the inner message would have to be
|
||||
// parsed in order to perform the check, defeating the purpose of lazy
|
||||
// parsing. An implementation which chooses not to check required fields
|
||||
// must be consistent about it. That is, for any particular sub-message, the
|
||||
// implementation must either *always* check its required fields, or *never*
|
||||
// check its required fields, regardless of whether or not the message has
|
||||
// been parsed.
|
||||
optional bool lazy = 5 [default = false];
|
||||
|
||||
// Is this field deprecated?
|
||||
// Depending on the target platform, this can emit Deprecated annotations
|
||||
// for accessors, or it will be completely ignored; in the very least, this
|
||||
// is a formalization for deprecating fields.
|
||||
optional bool deprecated = 3 [default = false];
|
||||
|
||||
// For Google-internal migration only. Do not use.
|
||||
optional bool weak = 10 [default = false];
|
||||
|
||||
|
||||
// The parser stores options it doesn't recognize here. See above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
// Clients can define custom options in extensions of this message. See above.
|
||||
extensions 1000 to max;
|
||||
|
||||
reserved 4; // removed jtype
|
||||
}
|
||||
|
||||
message OneofOptions {
|
||||
// The parser stores options it doesn't recognize here. See above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
// Clients can define custom options in extensions of this message. See above.
|
||||
extensions 1000 to max;
|
||||
}
|
||||
|
||||
message EnumOptions {
|
||||
|
||||
// Set this option to true to allow mapping different tag names to the same
|
||||
// value.
|
||||
optional bool allow_alias = 2;
|
||||
|
||||
// Is this enum deprecated?
|
||||
// Depending on the target platform, this can emit Deprecated annotations
|
||||
// for the enum, or it will be completely ignored; in the very least, this
|
||||
// is a formalization for deprecating enums.
|
||||
optional bool deprecated = 3 [default = false];
|
||||
|
||||
reserved 5; // javanano_as_lite
|
||||
|
||||
// The parser stores options it doesn't recognize here. See above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
// Clients can define custom options in extensions of this message. See above.
|
||||
extensions 1000 to max;
|
||||
}
|
||||
|
||||
message EnumValueOptions {
|
||||
// Is this enum value deprecated?
|
||||
// Depending on the target platform, this can emit Deprecated annotations
|
||||
// for the enum value, or it will be completely ignored; in the very least,
|
||||
// this is a formalization for deprecating enum values.
|
||||
optional bool deprecated = 1 [default = false];
|
||||
|
||||
// The parser stores options it doesn't recognize here. See above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
// Clients can define custom options in extensions of this message. See above.
|
||||
extensions 1000 to max;
|
||||
}
|
||||
|
||||
message ServiceOptions {
|
||||
|
||||
// Note: Field numbers 1 through 32 are reserved for Google's internal RPC
|
||||
// framework. We apologize for hoarding these numbers to ourselves, but
|
||||
// we were already using them long before we decided to release Protocol
|
||||
// Buffers.
|
||||
|
||||
// Is this service deprecated?
|
||||
// Depending on the target platform, this can emit Deprecated annotations
|
||||
// for the service, or it will be completely ignored; in the very least,
|
||||
// this is a formalization for deprecating services.
|
||||
optional bool deprecated = 33 [default = false];
|
||||
|
||||
// The parser stores options it doesn't recognize here. See above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
// Clients can define custom options in extensions of this message. See above.
|
||||
extensions 1000 to max;
|
||||
}
|
||||
|
||||
message MethodOptions {
|
||||
|
||||
// Note: Field numbers 1 through 32 are reserved for Google's internal RPC
|
||||
// framework. We apologize for hoarding these numbers to ourselves, but
|
||||
// we were already using them long before we decided to release Protocol
|
||||
// Buffers.
|
||||
|
||||
// Is this method deprecated?
|
||||
// Depending on the target platform, this can emit Deprecated annotations
|
||||
// for the method, or it will be completely ignored; in the very least,
|
||||
// this is a formalization for deprecating methods.
|
||||
optional bool deprecated = 33 [default = false];
|
||||
|
||||
// Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
|
||||
// or neither? HTTP based RPC implementation may choose GET verb for safe
|
||||
// methods, and PUT verb for idempotent methods instead of the default POST.
|
||||
enum IdempotencyLevel {
|
||||
IDEMPOTENCY_UNKNOWN = 0;
|
||||
NO_SIDE_EFFECTS = 1; // implies idempotent
|
||||
IDEMPOTENT = 2; // idempotent, but may have side effects
|
||||
}
|
||||
optional IdempotencyLevel idempotency_level = 34
|
||||
[default = IDEMPOTENCY_UNKNOWN];
|
||||
|
||||
// The parser stores options it doesn't recognize here. See above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
// Clients can define custom options in extensions of this message. See above.
|
||||
extensions 1000 to max;
|
||||
}
|
||||
|
||||
|
||||
// A message representing a option the parser does not recognize. This only
|
||||
// appears in options protos created by the compiler::Parser class.
|
||||
// DescriptorPool resolves these when building Descriptor objects. Therefore,
|
||||
// options protos in descriptor objects (e.g. returned by Descriptor::options(),
|
||||
// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
|
||||
// in them.
|
||||
message UninterpretedOption {
|
||||
// The name of the uninterpreted option. Each string represents a segment in
|
||||
// a dot-separated name. is_extension is true iff a segment represents an
|
||||
// extension (denoted with parentheses in options specs in .proto files).
|
||||
// E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
|
||||
// "foo.(bar.baz).qux".
|
||||
message NamePart {
|
||||
required string name_part = 1;
|
||||
required bool is_extension = 2;
|
||||
}
|
||||
repeated NamePart name = 2;
|
||||
|
||||
// The value of the uninterpreted option, in whatever type the tokenizer
|
||||
// identified it as during parsing. Exactly one of these should be set.
|
||||
optional string identifier_value = 3;
|
||||
optional uint64 positive_int_value = 4;
|
||||
optional int64 negative_int_value = 5;
|
||||
optional double double_value = 6;
|
||||
optional bytes string_value = 7;
|
||||
optional string aggregate_value = 8;
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
// Optional source code info
|
||||
|
||||
// Encapsulates information about the original source file from which a
|
||||
// FileDescriptorProto was generated.
|
||||
message SourceCodeInfo {
|
||||
// A Location identifies a piece of source code in a .proto file which
|
||||
// corresponds to a particular definition. This information is intended
|
||||
// to be useful to IDEs, code indexers, documentation generators, and similar
|
||||
// tools.
|
||||
//
|
||||
// For example, say we have a file like:
|
||||
// message Foo {
|
||||
// optional string foo = 1;
|
||||
// }
|
||||
// Let's look at just the field definition:
|
||||
// optional string foo = 1;
|
||||
// ^ ^^ ^^ ^ ^^^
|
||||
// a bc de f ghi
|
||||
// We have the following locations:
|
||||
// span path represents
|
||||
// [a,i) [ 4, 0, 2, 0 ] The whole field definition.
|
||||
// [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
|
||||
// [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
|
||||
// [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
|
||||
// [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
|
||||
//
|
||||
// Notes:
|
||||
// - A location may refer to a repeated field itself (i.e. not to any
|
||||
// particular index within it). This is used whenever a set of elements are
|
||||
// logically enclosed in a single code segment. For example, an entire
|
||||
// extend block (possibly containing multiple extension definitions) will
|
||||
// have an outer location whose path refers to the "extensions" repeated
|
||||
// field without an index.
|
||||
// - Multiple locations may have the same path. This happens when a single
|
||||
// logical declaration is spread out across multiple places. The most
|
||||
// obvious example is the "extend" block again -- there may be multiple
|
||||
// extend blocks in the same scope, each of which will have the same path.
|
||||
// - A location's span is not always a subset of its parent's span. For
|
||||
// example, the "extendee" of an extension declaration appears at the
|
||||
// beginning of the "extend" block and is shared by all extensions within
|
||||
// the block.
|
||||
// - Just because a location's span is a subset of some other location's span
|
||||
// does not mean that it is a descendant. For example, a "group" defines
|
||||
// both a type and a field in a single declaration. Thus, the locations
|
||||
// corresponding to the type and field and their components will overlap.
|
||||
// - Code which tries to interpret locations should probably be designed to
|
||||
// ignore those that it doesn't understand, as more types of locations could
|
||||
// be recorded in the future.
|
||||
repeated Location location = 1;
|
||||
message Location {
|
||||
// Identifies which part of the FileDescriptorProto was defined at this
|
||||
// location.
|
||||
//
|
||||
// Each element is a field number or an index. They form a path from
|
||||
// the root FileDescriptorProto to the place where the definition. For
|
||||
// example, this path:
|
||||
// [ 4, 3, 2, 7, 1 ]
|
||||
// refers to:
|
||||
// file.message_type(3) // 4, 3
|
||||
// .field(7) // 2, 7
|
||||
// .name() // 1
|
||||
// This is because FileDescriptorProto.message_type has field number 4:
|
||||
// repeated DescriptorProto message_type = 4;
|
||||
// and DescriptorProto.field has field number 2:
|
||||
// repeated FieldDescriptorProto field = 2;
|
||||
// and FieldDescriptorProto.name has field number 1:
|
||||
// optional string name = 1;
|
||||
//
|
||||
// Thus, the above path gives the location of a field name. If we removed
|
||||
// the last element:
|
||||
// [ 4, 3, 2, 7 ]
|
||||
// this path refers to the whole field declaration (from the beginning
|
||||
// of the label to the terminating semicolon).
|
||||
repeated int32 path = 1 [packed = true];
|
||||
|
||||
// Always has exactly three or four elements: start line, start column,
|
||||
// end line (optional, otherwise assumed same as start line), end column.
|
||||
// These are packed into a single field for efficiency. Note that line
|
||||
// and column numbers are zero-based -- typically you will want to add
|
||||
// 1 to each before displaying to a user.
|
||||
repeated int32 span = 2 [packed = true];
|
||||
|
||||
// If this SourceCodeInfo represents a complete declaration, these are any
|
||||
// comments appearing before and after the declaration which appear to be
|
||||
// attached to the declaration.
|
||||
//
|
||||
// A series of line comments appearing on consecutive lines, with no other
|
||||
// tokens appearing on those lines, will be treated as a single comment.
|
||||
//
|
||||
// leading_detached_comments will keep paragraphs of comments that appear
|
||||
// before (but not connected to) the current element. Each paragraph,
|
||||
// separated by empty lines, will be one comment element in the repeated
|
||||
// field.
|
||||
//
|
||||
// Only the comment content is provided; comment markers (e.g. //) are
|
||||
// stripped out. For block comments, leading whitespace and an asterisk
|
||||
// will be stripped from the beginning of each line other than the first.
|
||||
// Newlines are included in the output.
|
||||
//
|
||||
// Examples:
|
||||
//
|
||||
// optional int32 foo = 1; // Comment attached to foo.
|
||||
// // Comment attached to bar.
|
||||
// optional int32 bar = 2;
|
||||
//
|
||||
// optional string baz = 3;
|
||||
// // Comment attached to baz.
|
||||
// // Another line attached to baz.
|
||||
//
|
||||
// // Comment attached to qux.
|
||||
// //
|
||||
// // Another line attached to qux.
|
||||
// optional double qux = 4;
|
||||
//
|
||||
// // Detached comment for corge. This is not leading or trailing comments
|
||||
// // to qux or corge because there are blank lines separating it from
|
||||
// // both.
|
||||
//
|
||||
// // Detached comment for corge paragraph 2.
|
||||
//
|
||||
// optional string corge = 5;
|
||||
// /* Block comment attached
|
||||
// * to corge. Leading asterisks
|
||||
// * will be removed. */
|
||||
// /* Block comment attached to
|
||||
// * grault. */
|
||||
// optional int32 grault = 6;
|
||||
//
|
||||
// // ignored detached comments.
|
||||
optional string leading_comments = 3;
|
||||
optional string trailing_comments = 4;
|
||||
repeated string leading_detached_comments = 6;
|
||||
}
|
||||
}
|
||||
|
||||
// Describes the relationship between generated code and its original source
|
||||
// file. A GeneratedCodeInfo message is associated with only one generated
|
||||
// source file, but may contain references to different source .proto files.
|
||||
message GeneratedCodeInfo {
|
||||
// An Annotation connects some span of text in generated code to an element
|
||||
// of its generating .proto file.
|
||||
repeated Annotation annotation = 1;
|
||||
message Annotation {
|
||||
// Identifies the element in the original source .proto file. This field
|
||||
// is formatted the same as SourceCodeInfo.Location.path.
|
||||
repeated int32 path = 1 [packed = true];
|
||||
|
||||
// Identifies the filesystem path to the original source .proto.
|
||||
optional string source_file = 2;
|
||||
|
||||
// Identifies the starting offset in bytes in the generated code
|
||||
// that relates to the identified object.
|
||||
optional int32 begin = 3;
|
||||
|
||||
// Identifies the ending offset in bytes in the generated code that
|
||||
// relates to the identified offset. The end offset should be one past
|
||||
// the last relevant byte (so the length of the text = end - begin).
|
||||
optional int32 end = 4;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,116 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option cc_enable_arenas = true;
|
||||
option go_package = "google.golang.org/protobuf/types/known/durationpb";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "DurationProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
|
||||
// A Duration represents a signed, fixed-length span of time represented
|
||||
// as a count of seconds and fractions of seconds at nanosecond
|
||||
// resolution. It is independent of any calendar and concepts like "day"
|
||||
// or "month". It is related to Timestamp in that the difference between
|
||||
// two Timestamp values is a Duration and it can be added or subtracted
|
||||
// from a Timestamp. Range is approximately +-10,000 years.
|
||||
//
|
||||
// # Examples
|
||||
//
|
||||
// Example 1: Compute Duration from two Timestamps in pseudo code.
|
||||
//
|
||||
// Timestamp start = ...;
|
||||
// Timestamp end = ...;
|
||||
// Duration duration = ...;
|
||||
//
|
||||
// duration.seconds = end.seconds - start.seconds;
|
||||
// duration.nanos = end.nanos - start.nanos;
|
||||
//
|
||||
// if (duration.seconds < 0 && duration.nanos > 0) {
|
||||
// duration.seconds += 1;
|
||||
// duration.nanos -= 1000000000;
|
||||
// } else if (duration.seconds > 0 && duration.nanos < 0) {
|
||||
// duration.seconds -= 1;
|
||||
// duration.nanos += 1000000000;
|
||||
// }
|
||||
//
|
||||
// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
|
||||
//
|
||||
// Timestamp start = ...;
|
||||
// Duration duration = ...;
|
||||
// Timestamp end = ...;
|
||||
//
|
||||
// end.seconds = start.seconds + duration.seconds;
|
||||
// end.nanos = start.nanos + duration.nanos;
|
||||
//
|
||||
// if (end.nanos < 0) {
|
||||
// end.seconds -= 1;
|
||||
// end.nanos += 1000000000;
|
||||
// } else if (end.nanos >= 1000000000) {
|
||||
// end.seconds += 1;
|
||||
// end.nanos -= 1000000000;
|
||||
// }
|
||||
//
|
||||
// Example 3: Compute Duration from datetime.timedelta in Python.
|
||||
//
|
||||
// td = datetime.timedelta(days=3, minutes=10)
|
||||
// duration = Duration()
|
||||
// duration.FromTimedelta(td)
|
||||
//
|
||||
// # JSON Mapping
|
||||
//
|
||||
// In JSON format, the Duration type is encoded as a string rather than an
|
||||
// object, where the string ends in the suffix "s" (indicating seconds) and
|
||||
// is preceded by the number of seconds, with nanoseconds expressed as
|
||||
// fractional seconds. For example, 3 seconds with 0 nanoseconds should be
|
||||
// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
|
||||
// be expressed in JSON format as "3.000000001s", and 3 seconds and 1
|
||||
// microsecond should be expressed in JSON format as "3.000001s".
|
||||
//
|
||||
//
|
||||
message Duration {
|
||||
// Signed seconds of the span of time. Must be from -315,576,000,000
|
||||
// to +315,576,000,000 inclusive. Note: these bounds are computed from:
|
||||
// 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
||||
int64 seconds = 1;
|
||||
|
||||
// Signed fractions of a second at nanosecond resolution of the span
|
||||
// of time. Durations less than one second are represented with a 0
|
||||
// `seconds` field and a positive or negative `nanos` field. For durations
|
||||
// of one second or more, a non-zero value for the `nanos` field must be
|
||||
// of the same sign as the `seconds` field. Must be from -999,999,999
|
||||
// to +999,999,999 inclusive.
|
||||
int32 nanos = 2;
|
||||
}
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option go_package = "google.golang.org/protobuf/types/known/emptypb";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "EmptyProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
option cc_enable_arenas = true;
|
||||
|
||||
// A generic empty message that you can re-use to avoid defining duplicated
|
||||
// empty messages in your APIs. A typical example is to use it as the request
|
||||
// or the response type of an API method. For instance:
|
||||
//
|
||||
// service Foo {
|
||||
// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||
// }
|
||||
//
|
||||
// The JSON representation for `Empty` is empty JSON object `{}`.
|
||||
message Empty {}
|
||||
|
|
@ -0,0 +1,245 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "FieldMaskProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
option go_package = "google.golang.org/protobuf/types/known/fieldmaskpb";
|
||||
option cc_enable_arenas = true;
|
||||
|
||||
// `FieldMask` represents a set of symbolic field paths, for example:
|
||||
//
|
||||
// paths: "f.a"
|
||||
// paths: "f.b.d"
|
||||
//
|
||||
// Here `f` represents a field in some root message, `a` and `b`
|
||||
// fields in the message found in `f`, and `d` a field found in the
|
||||
// message in `f.b`.
|
||||
//
|
||||
// Field masks are used to specify a subset of fields that should be
|
||||
// returned by a get operation or modified by an update operation.
|
||||
// Field masks also have a custom JSON encoding (see below).
|
||||
//
|
||||
// # Field Masks in Projections
|
||||
//
|
||||
// When used in the context of a projection, a response message or
|
||||
// sub-message is filtered by the API to only contain those fields as
|
||||
// specified in the mask. For example, if the mask in the previous
|
||||
// example is applied to a response message as follows:
|
||||
//
|
||||
// f {
|
||||
// a : 22
|
||||
// b {
|
||||
// d : 1
|
||||
// x : 2
|
||||
// }
|
||||
// y : 13
|
||||
// }
|
||||
// z: 8
|
||||
//
|
||||
// The result will not contain specific values for fields x,y and z
|
||||
// (their value will be set to the default, and omitted in proto text
|
||||
// output):
|
||||
//
|
||||
//
|
||||
// f {
|
||||
// a : 22
|
||||
// b {
|
||||
// d : 1
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// A repeated field is not allowed except at the last position of a
|
||||
// paths string.
|
||||
//
|
||||
// If a FieldMask object is not present in a get operation, the
|
||||
// operation applies to all fields (as if a FieldMask of all fields
|
||||
// had been specified).
|
||||
//
|
||||
// Note that a field mask does not necessarily apply to the
|
||||
// top-level response message. In case of a REST get operation, the
|
||||
// field mask applies directly to the response, but in case of a REST
|
||||
// list operation, the mask instead applies to each individual message
|
||||
// in the returned resource list. In case of a REST custom method,
|
||||
// other definitions may be used. Where the mask applies will be
|
||||
// clearly documented together with its declaration in the API. In
|
||||
// any case, the effect on the returned resource/resources is required
|
||||
// behavior for APIs.
|
||||
//
|
||||
// # Field Masks in Update Operations
|
||||
//
|
||||
// A field mask in update operations specifies which fields of the
|
||||
// targeted resource are going to be updated. The API is required
|
||||
// to only change the values of the fields as specified in the mask
|
||||
// and leave the others untouched. If a resource is passed in to
|
||||
// describe the updated values, the API ignores the values of all
|
||||
// fields not covered by the mask.
|
||||
//
|
||||
// If a repeated field is specified for an update operation, new values will
|
||||
// be appended to the existing repeated field in the target resource. Note that
|
||||
// a repeated field is only allowed in the last position of a `paths` string.
|
||||
//
|
||||
// If a sub-message is specified in the last position of the field mask for an
|
||||
// update operation, then new value will be merged into the existing sub-message
|
||||
// in the target resource.
|
||||
//
|
||||
// For example, given the target message:
|
||||
//
|
||||
// f {
|
||||
// b {
|
||||
// d: 1
|
||||
// x: 2
|
||||
// }
|
||||
// c: [1]
|
||||
// }
|
||||
//
|
||||
// And an update message:
|
||||
//
|
||||
// f {
|
||||
// b {
|
||||
// d: 10
|
||||
// }
|
||||
// c: [2]
|
||||
// }
|
||||
//
|
||||
// then if the field mask is:
|
||||
//
|
||||
// paths: ["f.b", "f.c"]
|
||||
//
|
||||
// then the result will be:
|
||||
//
|
||||
// f {
|
||||
// b {
|
||||
// d: 10
|
||||
// x: 2
|
||||
// }
|
||||
// c: [1, 2]
|
||||
// }
|
||||
//
|
||||
// An implementation may provide options to override this default behavior for
|
||||
// repeated and message fields.
|
||||
//
|
||||
// In order to reset a field's value to the default, the field must
|
||||
// be in the mask and set to the default value in the provided resource.
|
||||
// Hence, in order to reset all fields of a resource, provide a default
|
||||
// instance of the resource and set all fields in the mask, or do
|
||||
// not provide a mask as described below.
|
||||
//
|
||||
// If a field mask is not present on update, the operation applies to
|
||||
// all fields (as if a field mask of all fields has been specified).
|
||||
// Note that in the presence of schema evolution, this may mean that
|
||||
// fields the client does not know and has therefore not filled into
|
||||
// the request will be reset to their default. If this is unwanted
|
||||
// behavior, a specific service may require a client to always specify
|
||||
// a field mask, producing an error if not.
|
||||
//
|
||||
// As with get operations, the location of the resource which
|
||||
// describes the updated values in the request message depends on the
|
||||
// operation kind. In any case, the effect of the field mask is
|
||||
// required to be honored by the API.
|
||||
//
|
||||
// ## Considerations for HTTP REST
|
||||
//
|
||||
// The HTTP kind of an update operation which uses a field mask must
|
||||
// be set to PATCH instead of PUT in order to satisfy HTTP semantics
|
||||
// (PUT must only be used for full updates).
|
||||
//
|
||||
// # JSON Encoding of Field Masks
|
||||
//
|
||||
// In JSON, a field mask is encoded as a single string where paths are
|
||||
// separated by a comma. Fields name in each path are converted
|
||||
// to/from lower-camel naming conventions.
|
||||
//
|
||||
// As an example, consider the following message declarations:
|
||||
//
|
||||
// message Profile {
|
||||
// User user = 1;
|
||||
// Photo photo = 2;
|
||||
// }
|
||||
// message User {
|
||||
// string display_name = 1;
|
||||
// string address = 2;
|
||||
// }
|
||||
//
|
||||
// In proto a field mask for `Profile` may look as such:
|
||||
//
|
||||
// mask {
|
||||
// paths: "user.display_name"
|
||||
// paths: "photo"
|
||||
// }
|
||||
//
|
||||
// In JSON, the same mask is represented as below:
|
||||
//
|
||||
// {
|
||||
// mask: "user.displayName,photo"
|
||||
// }
|
||||
//
|
||||
// # Field Masks and Oneof Fields
|
||||
//
|
||||
// Field masks treat fields in oneofs just as regular fields. Consider the
|
||||
// following message:
|
||||
//
|
||||
// message SampleMessage {
|
||||
// oneof test_oneof {
|
||||
// string name = 4;
|
||||
// SubMessage sub_message = 9;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// The field mask can be:
|
||||
//
|
||||
// mask {
|
||||
// paths: "name"
|
||||
// }
|
||||
//
|
||||
// Or:
|
||||
//
|
||||
// mask {
|
||||
// paths: "sub_message"
|
||||
// }
|
||||
//
|
||||
// Note that oneof type names ("test_oneof" in this case) cannot be used in
|
||||
// paths.
|
||||
//
|
||||
// ## Field Mask Verification
|
||||
//
|
||||
// The implementation of any API method which has a FieldMask type field in the
|
||||
// request should verify the included field paths, and return an
|
||||
// `INVALID_ARGUMENT` error if any path is unmappable.
|
||||
message FieldMask {
|
||||
// The set of field mask paths.
|
||||
repeated string paths = 1;
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "SourceContextProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
option go_package = "google.golang.org/protobuf/types/known/sourcecontextpb";
|
||||
|
||||
// `SourceContext` represents information about the source of a
|
||||
// protobuf element, like the file in which it is defined.
|
||||
message SourceContext {
|
||||
// The path-qualified name of the .proto file that contained the associated
|
||||
// protobuf element. For example: `"google/protobuf/source_context.proto"`.
|
||||
string file_name = 1;
|
||||
}
|
||||
|
|
@ -0,0 +1,95 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option cc_enable_arenas = true;
|
||||
option go_package = "google.golang.org/protobuf/types/known/structpb";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "StructProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
|
||||
// `Struct` represents a structured data value, consisting of fields
|
||||
// which map to dynamically typed values. In some languages, `Struct`
|
||||
// might be supported by a native representation. For example, in
|
||||
// scripting languages like JS a struct is represented as an
|
||||
// object. The details of that representation are described together
|
||||
// with the proto support for the language.
|
||||
//
|
||||
// The JSON representation for `Struct` is JSON object.
|
||||
message Struct {
|
||||
// Unordered map of dynamically typed values.
|
||||
map<string, Value> fields = 1;
|
||||
}
|
||||
|
||||
// `Value` represents a dynamically typed value which can be either
|
||||
// null, a number, a string, a boolean, a recursive struct value, or a
|
||||
// list of values. A producer of value is expected to set one of these
|
||||
// variants. Absence of any variant indicates an error.
|
||||
//
|
||||
// The JSON representation for `Value` is JSON value.
|
||||
message Value {
|
||||
// The kind of value.
|
||||
oneof kind {
|
||||
// Represents a null value.
|
||||
NullValue null_value = 1;
|
||||
// Represents a double value.
|
||||
double number_value = 2;
|
||||
// Represents a string value.
|
||||
string string_value = 3;
|
||||
// Represents a boolean value.
|
||||
bool bool_value = 4;
|
||||
// Represents a structured value.
|
||||
Struct struct_value = 5;
|
||||
// Represents a repeated `Value`.
|
||||
ListValue list_value = 6;
|
||||
}
|
||||
}
|
||||
|
||||
// `NullValue` is a singleton enumeration to represent the null value for the
|
||||
// `Value` type union.
|
||||
//
|
||||
// The JSON representation for `NullValue` is JSON `null`.
|
||||
enum NullValue {
|
||||
// Null value.
|
||||
NULL_VALUE = 0;
|
||||
}
|
||||
|
||||
// `ListValue` is a wrapper around a repeated field of values.
|
||||
//
|
||||
// The JSON representation for `ListValue` is JSON array.
|
||||
message ListValue {
|
||||
// Repeated field of dynamically typed values.
|
||||
repeated Value values = 1;
|
||||
}
|
||||
|
|
@ -0,0 +1,147 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option cc_enable_arenas = true;
|
||||
option go_package = "google.golang.org/protobuf/types/known/timestamppb";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "TimestampProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
|
||||
// A Timestamp represents a point in time independent of any time zone or local
|
||||
// calendar, encoded as a count of seconds and fractions of seconds at
|
||||
// nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
||||
// January 1, 1970, in the proleptic Gregorian calendar which extends the
|
||||
// Gregorian calendar backwards to year one.
|
||||
//
|
||||
// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
||||
// second table is needed for interpretation, using a [24-hour linear
|
||||
// smear](https://developers.google.com/time/smear).
|
||||
//
|
||||
// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
||||
// restricting to that range, we ensure that we can convert to and from [RFC
|
||||
// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
||||
//
|
||||
// # Examples
|
||||
//
|
||||
// Example 1: Compute Timestamp from POSIX `time()`.
|
||||
//
|
||||
// Timestamp timestamp;
|
||||
// timestamp.set_seconds(time(NULL));
|
||||
// timestamp.set_nanos(0);
|
||||
//
|
||||
// Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
||||
//
|
||||
// struct timeval tv;
|
||||
// gettimeofday(&tv, NULL);
|
||||
//
|
||||
// Timestamp timestamp;
|
||||
// timestamp.set_seconds(tv.tv_sec);
|
||||
// timestamp.set_nanos(tv.tv_usec * 1000);
|
||||
//
|
||||
// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
||||
//
|
||||
// FILETIME ft;
|
||||
// GetSystemTimeAsFileTime(&ft);
|
||||
// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
||||
//
|
||||
// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
||||
// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
||||
// Timestamp timestamp;
|
||||
// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
||||
// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
||||
//
|
||||
// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
||||
//
|
||||
// long millis = System.currentTimeMillis();
|
||||
//
|
||||
// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
||||
// .setNanos((int) ((millis % 1000) * 1000000)).build();
|
||||
//
|
||||
//
|
||||
// Example 5: Compute Timestamp from Java `Instant.now()`.
|
||||
//
|
||||
// Instant now = Instant.now();
|
||||
//
|
||||
// Timestamp timestamp =
|
||||
// Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
||||
// .setNanos(now.getNano()).build();
|
||||
//
|
||||
//
|
||||
// Example 6: Compute Timestamp from current time in Python.
|
||||
//
|
||||
// timestamp = Timestamp()
|
||||
// timestamp.GetCurrentTime()
|
||||
//
|
||||
// # JSON Mapping
|
||||
//
|
||||
// In JSON format, the Timestamp type is encoded as a string in the
|
||||
// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
||||
// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
|
||||
// where {year} is always expressed using four digits while {month}, {day},
|
||||
// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
||||
// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
||||
// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
||||
// is required. A proto3 JSON serializer should always use UTC (as indicated by
|
||||
// "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
||||
// able to accept both UTC and other timezones (as indicated by an offset).
|
||||
//
|
||||
// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
||||
// 01:30 UTC on January 15, 2017.
|
||||
//
|
||||
// In JavaScript, one can convert a Date object to this format using the
|
||||
// standard
|
||||
// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
||||
// method. In Python, a standard `datetime.datetime` object can be converted
|
||||
// to this format using
|
||||
// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
||||
// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
||||
// the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
||||
// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
||||
// ) to obtain a formatter capable of generating timestamps in this format.
|
||||
//
|
||||
//
|
||||
message Timestamp {
|
||||
// Represents seconds of UTC time since Unix epoch
|
||||
// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
||||
// 9999-12-31T23:59:59Z inclusive.
|
||||
int64 seconds = 1;
|
||||
|
||||
// Non-negative fractions of a second at nanosecond resolution. Negative
|
||||
// second values with fractions must still have non-negative nanos values
|
||||
// that count forward in time. Must be from 0 to 999,999,999
|
||||
// inclusive.
|
||||
int32 nanos = 2;
|
||||
}
|
||||
|
|
@ -0,0 +1,187 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
import "google/protobuf/any.proto";
|
||||
import "google/protobuf/source_context.proto";
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option cc_enable_arenas = true;
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "TypeProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
option go_package = "google.golang.org/protobuf/types/known/typepb";
|
||||
|
||||
// A protocol buffer message type.
|
||||
message Type {
|
||||
// The fully qualified message name.
|
||||
string name = 1;
|
||||
// The list of fields.
|
||||
repeated Field fields = 2;
|
||||
// The list of types appearing in `oneof` definitions in this type.
|
||||
repeated string oneofs = 3;
|
||||
// The protocol buffer options.
|
||||
repeated Option options = 4;
|
||||
// The source context.
|
||||
SourceContext source_context = 5;
|
||||
// The source syntax.
|
||||
Syntax syntax = 6;
|
||||
}
|
||||
|
||||
// A single field of a message type.
|
||||
message Field {
|
||||
// Basic field types.
|
||||
enum Kind {
|
||||
// Field type unknown.
|
||||
TYPE_UNKNOWN = 0;
|
||||
// Field type double.
|
||||
TYPE_DOUBLE = 1;
|
||||
// Field type float.
|
||||
TYPE_FLOAT = 2;
|
||||
// Field type int64.
|
||||
TYPE_INT64 = 3;
|
||||
// Field type uint64.
|
||||
TYPE_UINT64 = 4;
|
||||
// Field type int32.
|
||||
TYPE_INT32 = 5;
|
||||
// Field type fixed64.
|
||||
TYPE_FIXED64 = 6;
|
||||
// Field type fixed32.
|
||||
TYPE_FIXED32 = 7;
|
||||
// Field type bool.
|
||||
TYPE_BOOL = 8;
|
||||
// Field type string.
|
||||
TYPE_STRING = 9;
|
||||
// Field type group. Proto2 syntax only, and deprecated.
|
||||
TYPE_GROUP = 10;
|
||||
// Field type message.
|
||||
TYPE_MESSAGE = 11;
|
||||
// Field type bytes.
|
||||
TYPE_BYTES = 12;
|
||||
// Field type uint32.
|
||||
TYPE_UINT32 = 13;
|
||||
// Field type enum.
|
||||
TYPE_ENUM = 14;
|
||||
// Field type sfixed32.
|
||||
TYPE_SFIXED32 = 15;
|
||||
// Field type sfixed64.
|
||||
TYPE_SFIXED64 = 16;
|
||||
// Field type sint32.
|
||||
TYPE_SINT32 = 17;
|
||||
// Field type sint64.
|
||||
TYPE_SINT64 = 18;
|
||||
}
|
||||
|
||||
// Whether a field is optional, required, or repeated.
|
||||
enum Cardinality {
|
||||
// For fields with unknown cardinality.
|
||||
CARDINALITY_UNKNOWN = 0;
|
||||
// For optional fields.
|
||||
CARDINALITY_OPTIONAL = 1;
|
||||
// For required fields. Proto2 syntax only.
|
||||
CARDINALITY_REQUIRED = 2;
|
||||
// For repeated fields.
|
||||
CARDINALITY_REPEATED = 3;
|
||||
}
|
||||
|
||||
// The field type.
|
||||
Kind kind = 1;
|
||||
// The field cardinality.
|
||||
Cardinality cardinality = 2;
|
||||
// The field number.
|
||||
int32 number = 3;
|
||||
// The field name.
|
||||
string name = 4;
|
||||
// The field type URL, without the scheme, for message or enumeration
|
||||
// types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
|
||||
string type_url = 6;
|
||||
// The index of the field type in `Type.oneofs`, for message or enumeration
|
||||
// types. The first type has index 1; zero means the type is not in the list.
|
||||
int32 oneof_index = 7;
|
||||
// Whether to use alternative packed wire representation.
|
||||
bool packed = 8;
|
||||
// The protocol buffer options.
|
||||
repeated Option options = 9;
|
||||
// The field JSON name.
|
||||
string json_name = 10;
|
||||
// The string value of the default value of this field. Proto2 syntax only.
|
||||
string default_value = 11;
|
||||
}
|
||||
|
||||
// Enum type definition.
|
||||
message Enum {
|
||||
// Enum type name.
|
||||
string name = 1;
|
||||
// Enum value definitions.
|
||||
repeated EnumValue enumvalue = 2;
|
||||
// Protocol buffer options.
|
||||
repeated Option options = 3;
|
||||
// The source context.
|
||||
SourceContext source_context = 4;
|
||||
// The source syntax.
|
||||
Syntax syntax = 5;
|
||||
}
|
||||
|
||||
// Enum value definition.
|
||||
message EnumValue {
|
||||
// Enum value name.
|
||||
string name = 1;
|
||||
// Enum value number.
|
||||
int32 number = 2;
|
||||
// Protocol buffer options.
|
||||
repeated Option options = 3;
|
||||
}
|
||||
|
||||
// A protocol buffer option, which can be attached to a message, field,
|
||||
// enumeration, etc.
|
||||
message Option {
|
||||
// The option's name. For protobuf built-in options (options defined in
|
||||
// descriptor.proto), this is the short name. For example, `"map_entry"`.
|
||||
// For custom options, it should be the fully-qualified name. For example,
|
||||
// `"google.api.http"`.
|
||||
string name = 1;
|
||||
// The option's value packed in an Any message. If the value is a primitive,
|
||||
// the corresponding wrapper type defined in google/protobuf/wrappers.proto
|
||||
// should be used. If the value is an enum, it should be stored as an int32
|
||||
// value using the google.protobuf.Int32Value type.
|
||||
Any value = 2;
|
||||
}
|
||||
|
||||
// The syntax in which a protocol buffer element is defined.
|
||||
enum Syntax {
|
||||
// Syntax `proto2`.
|
||||
SYNTAX_PROTO2 = 0;
|
||||
// Syntax `proto3`.
|
||||
SYNTAX_PROTO3 = 1;
|
||||
}
|
||||
|
|
@ -0,0 +1,123 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
// Wrappers for primitive (non-message) types. These types are useful
|
||||
// for embedding primitives in the `google.protobuf.Any` type and for places
|
||||
// where we need to distinguish between the absence of a primitive
|
||||
// typed field and its default value.
|
||||
//
|
||||
// These wrappers have no meaningful use within repeated fields as they lack
|
||||
// the ability to detect presence on individual elements.
|
||||
// These wrappers have no meaningful use within a map or a oneof since
|
||||
// individual entries of a map or fields of a oneof can already detect presence.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option cc_enable_arenas = true;
|
||||
option go_package = "google.golang.org/protobuf/types/known/wrapperspb";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "WrappersProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
|
||||
// Wrapper message for `double`.
|
||||
//
|
||||
// The JSON representation for `DoubleValue` is JSON number.
|
||||
message DoubleValue {
|
||||
// The double value.
|
||||
double value = 1;
|
||||
}
|
||||
|
||||
// Wrapper message for `float`.
|
||||
//
|
||||
// The JSON representation for `FloatValue` is JSON number.
|
||||
message FloatValue {
|
||||
// The float value.
|
||||
float value = 1;
|
||||
}
|
||||
|
||||
// Wrapper message for `int64`.
|
||||
//
|
||||
// The JSON representation for `Int64Value` is JSON string.
|
||||
message Int64Value {
|
||||
// The int64 value.
|
||||
int64 value = 1;
|
||||
}
|
||||
|
||||
// Wrapper message for `uint64`.
|
||||
//
|
||||
// The JSON representation for `UInt64Value` is JSON string.
|
||||
message UInt64Value {
|
||||
// The uint64 value.
|
||||
uint64 value = 1;
|
||||
}
|
||||
|
||||
// Wrapper message for `int32`.
|
||||
//
|
||||
// The JSON representation for `Int32Value` is JSON number.
|
||||
message Int32Value {
|
||||
// The int32 value.
|
||||
int32 value = 1;
|
||||
}
|
||||
|
||||
// Wrapper message for `uint32`.
|
||||
//
|
||||
// The JSON representation for `UInt32Value` is JSON number.
|
||||
message UInt32Value {
|
||||
// The uint32 value.
|
||||
uint32 value = 1;
|
||||
}
|
||||
|
||||
// Wrapper message for `bool`.
|
||||
//
|
||||
// The JSON representation for `BoolValue` is JSON `true` and `false`.
|
||||
message BoolValue {
|
||||
// The bool value.
|
||||
bool value = 1;
|
||||
}
|
||||
|
||||
// Wrapper message for `string`.
|
||||
//
|
||||
// The JSON representation for `StringValue` is JSON string.
|
||||
message StringValue {
|
||||
// The string value.
|
||||
string value = 1;
|
||||
}
|
||||
|
||||
// Wrapper message for `bytes`.
|
||||
//
|
||||
// The JSON representation for `BytesValue` is JSON string.
|
||||
message BytesValue {
|
||||
// The bytes value.
|
||||
bytes value = 1;
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
Protocol Buffers - Google's data interchange format
|
||||
Copyright 2008 Google Inc.
|
||||
https://developers.google.com/protocol-buffers/
|
||||
|
||||
This package contains a precompiled binary version of the protocol buffer
|
||||
compiler (protoc). This binary is intended for users who want to use Protocol
|
||||
Buffers in languages other than C++ but do not want to compile protoc
|
||||
themselves. To install, simply place this binary somewhere in your PATH.
|
||||
|
||||
If you intend to use the included well known types then don't forget to
|
||||
copy the contents of the 'include' directory somewhere as well, for example
|
||||
into '/usr/local/include/'.
|
||||
|
||||
Please refer to our official github site for more installation instructions:
|
||||
https://github.com/protocolbuffers/protobuf
|
||||
|
|
@ -0,0 +1,158 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option go_package = "google.golang.org/protobuf/types/known/anypb";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "AnyProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
|
||||
// `Any` contains an arbitrary serialized protocol buffer message along with a
|
||||
// URL that describes the type of the serialized message.
|
||||
//
|
||||
// Protobuf library provides support to pack/unpack Any values in the form
|
||||
// of utility functions or additional generated methods of the Any type.
|
||||
//
|
||||
// Example 1: Pack and unpack a message in C++.
|
||||
//
|
||||
// Foo foo = ...;
|
||||
// Any any;
|
||||
// any.PackFrom(foo);
|
||||
// ...
|
||||
// if (any.UnpackTo(&foo)) {
|
||||
// ...
|
||||
// }
|
||||
//
|
||||
// Example 2: Pack and unpack a message in Java.
|
||||
//
|
||||
// Foo foo = ...;
|
||||
// Any any = Any.pack(foo);
|
||||
// ...
|
||||
// if (any.is(Foo.class)) {
|
||||
// foo = any.unpack(Foo.class);
|
||||
// }
|
||||
//
|
||||
// Example 3: Pack and unpack a message in Python.
|
||||
//
|
||||
// foo = Foo(...)
|
||||
// any = Any()
|
||||
// any.Pack(foo)
|
||||
// ...
|
||||
// if any.Is(Foo.DESCRIPTOR):
|
||||
// any.Unpack(foo)
|
||||
// ...
|
||||
//
|
||||
// Example 4: Pack and unpack a message in Go
|
||||
//
|
||||
// foo := &pb.Foo{...}
|
||||
// any, err := anypb.New(foo)
|
||||
// if err != nil {
|
||||
// ...
|
||||
// }
|
||||
// ...
|
||||
// foo := &pb.Foo{}
|
||||
// if err := any.UnmarshalTo(foo); err != nil {
|
||||
// ...
|
||||
// }
|
||||
//
|
||||
// The pack methods provided by protobuf library will by default use
|
||||
// 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
||||
// methods only use the fully qualified type name after the last '/'
|
||||
// in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
||||
// name "y.z".
|
||||
//
|
||||
//
|
||||
// JSON
|
||||
// ====
|
||||
// The JSON representation of an `Any` value uses the regular
|
||||
// representation of the deserialized, embedded message, with an
|
||||
// additional field `@type` which contains the type URL. Example:
|
||||
//
|
||||
// package google.profile;
|
||||
// message Person {
|
||||
// string first_name = 1;
|
||||
// string last_name = 2;
|
||||
// }
|
||||
//
|
||||
// {
|
||||
// "@type": "type.googleapis.com/google.profile.Person",
|
||||
// "firstName": <string>,
|
||||
// "lastName": <string>
|
||||
// }
|
||||
//
|
||||
// If the embedded message type is well-known and has a custom JSON
|
||||
// representation, that representation will be embedded adding a field
|
||||
// `value` which holds the custom JSON in addition to the `@type`
|
||||
// field. Example (for message [google.protobuf.Duration][]):
|
||||
//
|
||||
// {
|
||||
// "@type": "type.googleapis.com/google.protobuf.Duration",
|
||||
// "value": "1.212s"
|
||||
// }
|
||||
//
|
||||
message Any {
|
||||
// A URL/resource name that uniquely identifies the type of the serialized
|
||||
// protocol buffer message. This string must contain at least
|
||||
// one "/" character. The last segment of the URL's path must represent
|
||||
// the fully qualified name of the type (as in
|
||||
// `path/google.protobuf.Duration`). The name should be in a canonical form
|
||||
// (e.g., leading "." is not accepted).
|
||||
//
|
||||
// In practice, teams usually precompile into the binary all types that they
|
||||
// expect it to use in the context of Any. However, for URLs which use the
|
||||
// scheme `http`, `https`, or no scheme, one can optionally set up a type
|
||||
// server that maps type URLs to message definitions as follows:
|
||||
//
|
||||
// * If no scheme is provided, `https` is assumed.
|
||||
// * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
||||
// value in binary format, or produce an error.
|
||||
// * Applications are allowed to cache lookup results based on the
|
||||
// URL, or have them precompiled into a binary to avoid any
|
||||
// lookup. Therefore, binary compatibility needs to be preserved
|
||||
// on changes to types. (Use versioned type names to manage
|
||||
// breaking changes.)
|
||||
//
|
||||
// Note: this functionality is not currently available in the official
|
||||
// protobuf release, and it is not used for type URLs beginning with
|
||||
// type.googleapis.com.
|
||||
//
|
||||
// Schemes other than `http`, `https` (or the empty scheme) might be
|
||||
// used with implementation specific semantics.
|
||||
//
|
||||
string type_url = 1;
|
||||
|
||||
// Must be a valid serialized protocol buffer of the above specified type.
|
||||
bytes value = 2;
|
||||
}
|
||||
|
|
@ -0,0 +1,208 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
import "google/protobuf/source_context.proto";
|
||||
import "google/protobuf/type.proto";
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "ApiProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
option go_package = "google.golang.org/protobuf/types/known/apipb";
|
||||
|
||||
// Api is a light-weight descriptor for an API Interface.
|
||||
//
|
||||
// Interfaces are also described as "protocol buffer services" in some contexts,
|
||||
// such as by the "service" keyword in a .proto file, but they are different
|
||||
// from API Services, which represent a concrete implementation of an interface
|
||||
// as opposed to simply a description of methods and bindings. They are also
|
||||
// sometimes simply referred to as "APIs" in other contexts, such as the name of
|
||||
// this message itself. See https://cloud.google.com/apis/design/glossary for
|
||||
// detailed terminology.
|
||||
message Api {
|
||||
// The fully qualified name of this interface, including package name
|
||||
// followed by the interface's simple name.
|
||||
string name = 1;
|
||||
|
||||
// The methods of this interface, in unspecified order.
|
||||
repeated Method methods = 2;
|
||||
|
||||
// Any metadata attached to the interface.
|
||||
repeated Option options = 3;
|
||||
|
||||
// A version string for this interface. If specified, must have the form
|
||||
// `major-version.minor-version`, as in `1.10`. If the minor version is
|
||||
// omitted, it defaults to zero. If the entire version field is empty, the
|
||||
// major version is derived from the package name, as outlined below. If the
|
||||
// field is not empty, the version in the package name will be verified to be
|
||||
// consistent with what is provided here.
|
||||
//
|
||||
// The versioning schema uses [semantic
|
||||
// versioning](http://semver.org) where the major version number
|
||||
// indicates a breaking change and the minor version an additive,
|
||||
// non-breaking change. Both version numbers are signals to users
|
||||
// what to expect from different versions, and should be carefully
|
||||
// chosen based on the product plan.
|
||||
//
|
||||
// The major version is also reflected in the package name of the
|
||||
// interface, which must end in `v<major-version>`, as in
|
||||
// `google.feature.v1`. For major versions 0 and 1, the suffix can
|
||||
// be omitted. Zero major versions must only be used for
|
||||
// experimental, non-GA interfaces.
|
||||
//
|
||||
//
|
||||
string version = 4;
|
||||
|
||||
// Source context for the protocol buffer service represented by this
|
||||
// message.
|
||||
SourceContext source_context = 5;
|
||||
|
||||
// Included interfaces. See [Mixin][].
|
||||
repeated Mixin mixins = 6;
|
||||
|
||||
// The source syntax of the service.
|
||||
Syntax syntax = 7;
|
||||
}
|
||||
|
||||
// Method represents a method of an API interface.
|
||||
message Method {
|
||||
// The simple name of this method.
|
||||
string name = 1;
|
||||
|
||||
// A URL of the input message type.
|
||||
string request_type_url = 2;
|
||||
|
||||
// If true, the request is streamed.
|
||||
bool request_streaming = 3;
|
||||
|
||||
// The URL of the output message type.
|
||||
string response_type_url = 4;
|
||||
|
||||
// If true, the response is streamed.
|
||||
bool response_streaming = 5;
|
||||
|
||||
// Any metadata attached to the method.
|
||||
repeated Option options = 6;
|
||||
|
||||
// The source syntax of this method.
|
||||
Syntax syntax = 7;
|
||||
}
|
||||
|
||||
// Declares an API Interface to be included in this interface. The including
|
||||
// interface must redeclare all the methods from the included interface, but
|
||||
// documentation and options are inherited as follows:
|
||||
//
|
||||
// - If after comment and whitespace stripping, the documentation
|
||||
// string of the redeclared method is empty, it will be inherited
|
||||
// from the original method.
|
||||
//
|
||||
// - Each annotation belonging to the service config (http,
|
||||
// visibility) which is not set in the redeclared method will be
|
||||
// inherited.
|
||||
//
|
||||
// - If an http annotation is inherited, the path pattern will be
|
||||
// modified as follows. Any version prefix will be replaced by the
|
||||
// version of the including interface plus the [root][] path if
|
||||
// specified.
|
||||
//
|
||||
// Example of a simple mixin:
|
||||
//
|
||||
// package google.acl.v1;
|
||||
// service AccessControl {
|
||||
// // Get the underlying ACL object.
|
||||
// rpc GetAcl(GetAclRequest) returns (Acl) {
|
||||
// option (google.api.http).get = "/v1/{resource=**}:getAcl";
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// package google.storage.v2;
|
||||
// service Storage {
|
||||
// rpc GetAcl(GetAclRequest) returns (Acl);
|
||||
//
|
||||
// // Get a data record.
|
||||
// rpc GetData(GetDataRequest) returns (Data) {
|
||||
// option (google.api.http).get = "/v2/{resource=**}";
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// Example of a mixin configuration:
|
||||
//
|
||||
// apis:
|
||||
// - name: google.storage.v2.Storage
|
||||
// mixins:
|
||||
// - name: google.acl.v1.AccessControl
|
||||
//
|
||||
// The mixin construct implies that all methods in `AccessControl` are
|
||||
// also declared with same name and request/response types in
|
||||
// `Storage`. A documentation generator or annotation processor will
|
||||
// see the effective `Storage.GetAcl` method after inheriting
|
||||
// documentation and annotations as follows:
|
||||
//
|
||||
// service Storage {
|
||||
// // Get the underlying ACL object.
|
||||
// rpc GetAcl(GetAclRequest) returns (Acl) {
|
||||
// option (google.api.http).get = "/v2/{resource=**}:getAcl";
|
||||
// }
|
||||
// ...
|
||||
// }
|
||||
//
|
||||
// Note how the version in the path pattern changed from `v1` to `v2`.
|
||||
//
|
||||
// If the `root` field in the mixin is specified, it should be a
|
||||
// relative path under which inherited HTTP paths are placed. Example:
|
||||
//
|
||||
// apis:
|
||||
// - name: google.storage.v2.Storage
|
||||
// mixins:
|
||||
// - name: google.acl.v1.AccessControl
|
||||
// root: acls
|
||||
//
|
||||
// This implies the following inherited HTTP annotation:
|
||||
//
|
||||
// service Storage {
|
||||
// // Get the underlying ACL object.
|
||||
// rpc GetAcl(GetAclRequest) returns (Acl) {
|
||||
// option (google.api.http).get = "/v2/acls/{resource=**}:getAcl";
|
||||
// }
|
||||
// ...
|
||||
// }
|
||||
message Mixin {
|
||||
// The fully qualified name of the interface which is included.
|
||||
string name = 1;
|
||||
|
||||
// If non-empty specifies a path under which inherited HTTP paths
|
||||
// are rooted.
|
||||
string root = 2;
|
||||
}
|
||||
|
|
@ -0,0 +1,183 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
// Author: kenton@google.com (Kenton Varda)
|
||||
//
|
||||
// WARNING: The plugin interface is currently EXPERIMENTAL and is subject to
|
||||
// change.
|
||||
//
|
||||
// protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is
|
||||
// just a program that reads a CodeGeneratorRequest from stdin and writes a
|
||||
// CodeGeneratorResponse to stdout.
|
||||
//
|
||||
// Plugins written using C++ can use google/protobuf/compiler/plugin.h instead
|
||||
// of dealing with the raw protocol defined here.
|
||||
//
|
||||
// A plugin executable needs only to be placed somewhere in the path. The
|
||||
// plugin should be named "protoc-gen-$NAME", and will then be used when the
|
||||
// flag "--${NAME}_out" is passed to protoc.
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package google.protobuf.compiler;
|
||||
option java_package = "com.google.protobuf.compiler";
|
||||
option java_outer_classname = "PluginProtos";
|
||||
|
||||
option go_package = "google.golang.org/protobuf/types/pluginpb";
|
||||
|
||||
import "google/protobuf/descriptor.proto";
|
||||
|
||||
// The version number of protocol compiler.
|
||||
message Version {
|
||||
optional int32 major = 1;
|
||||
optional int32 minor = 2;
|
||||
optional int32 patch = 3;
|
||||
// A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
|
||||
// be empty for mainline stable releases.
|
||||
optional string suffix = 4;
|
||||
}
|
||||
|
||||
// An encoded CodeGeneratorRequest is written to the plugin's stdin.
|
||||
message CodeGeneratorRequest {
|
||||
// The .proto files that were explicitly listed on the command-line. The
|
||||
// code generator should generate code only for these files. Each file's
|
||||
// descriptor will be included in proto_file, below.
|
||||
repeated string file_to_generate = 1;
|
||||
|
||||
// The generator parameter passed on the command-line.
|
||||
optional string parameter = 2;
|
||||
|
||||
// FileDescriptorProtos for all files in files_to_generate and everything
|
||||
// they import. The files will appear in topological order, so each file
|
||||
// appears before any file that imports it.
|
||||
//
|
||||
// protoc guarantees that all proto_files will be written after
|
||||
// the fields above, even though this is not technically guaranteed by the
|
||||
// protobuf wire format. This theoretically could allow a plugin to stream
|
||||
// in the FileDescriptorProtos and handle them one by one rather than read
|
||||
// the entire set into memory at once. However, as of this writing, this
|
||||
// is not similarly optimized on protoc's end -- it will store all fields in
|
||||
// memory at once before sending them to the plugin.
|
||||
//
|
||||
// Type names of fields and extensions in the FileDescriptorProto are always
|
||||
// fully qualified.
|
||||
repeated FileDescriptorProto proto_file = 15;
|
||||
|
||||
// The version number of protocol compiler.
|
||||
optional Version compiler_version = 3;
|
||||
|
||||
}
|
||||
|
||||
// The plugin writes an encoded CodeGeneratorResponse to stdout.
|
||||
message CodeGeneratorResponse {
|
||||
// Error message. If non-empty, code generation failed. The plugin process
|
||||
// should exit with status code zero even if it reports an error in this way.
|
||||
//
|
||||
// This should be used to indicate errors in .proto files which prevent the
|
||||
// code generator from generating correct code. Errors which indicate a
|
||||
// problem in protoc itself -- such as the input CodeGeneratorRequest being
|
||||
// unparseable -- should be reported by writing a message to stderr and
|
||||
// exiting with a non-zero status code.
|
||||
optional string error = 1;
|
||||
|
||||
// A bitmask of supported features that the code generator supports.
|
||||
// This is a bitwise "or" of values from the Feature enum.
|
||||
optional uint64 supported_features = 2;
|
||||
|
||||
// Sync with code_generator.h.
|
||||
enum Feature {
|
||||
FEATURE_NONE = 0;
|
||||
FEATURE_PROTO3_OPTIONAL = 1;
|
||||
}
|
||||
|
||||
// Represents a single generated file.
|
||||
message File {
|
||||
// The file name, relative to the output directory. The name must not
|
||||
// contain "." or ".." components and must be relative, not be absolute (so,
|
||||
// the file cannot lie outside the output directory). "/" must be used as
|
||||
// the path separator, not "\".
|
||||
//
|
||||
// If the name is omitted, the content will be appended to the previous
|
||||
// file. This allows the generator to break large files into small chunks,
|
||||
// and allows the generated text to be streamed back to protoc so that large
|
||||
// files need not reside completely in memory at one time. Note that as of
|
||||
// this writing protoc does not optimize for this -- it will read the entire
|
||||
// CodeGeneratorResponse before writing files to disk.
|
||||
optional string name = 1;
|
||||
|
||||
// If non-empty, indicates that the named file should already exist, and the
|
||||
// content here is to be inserted into that file at a defined insertion
|
||||
// point. This feature allows a code generator to extend the output
|
||||
// produced by another code generator. The original generator may provide
|
||||
// insertion points by placing special annotations in the file that look
|
||||
// like:
|
||||
// @@protoc_insertion_point(NAME)
|
||||
// The annotation can have arbitrary text before and after it on the line,
|
||||
// which allows it to be placed in a comment. NAME should be replaced with
|
||||
// an identifier naming the point -- this is what other generators will use
|
||||
// as the insertion_point. Code inserted at this point will be placed
|
||||
// immediately above the line containing the insertion point (thus multiple
|
||||
// insertions to the same point will come out in the order they were added).
|
||||
// The double-@ is intended to make it unlikely that the generated code
|
||||
// could contain things that look like insertion points by accident.
|
||||
//
|
||||
// For example, the C++ code generator places the following line in the
|
||||
// .pb.h files that it generates:
|
||||
// // @@protoc_insertion_point(namespace_scope)
|
||||
// This line appears within the scope of the file's package namespace, but
|
||||
// outside of any particular class. Another plugin can then specify the
|
||||
// insertion_point "namespace_scope" to generate additional classes or
|
||||
// other declarations that should be placed in this scope.
|
||||
//
|
||||
// Note that if the line containing the insertion point begins with
|
||||
// whitespace, the same whitespace will be added to every line of the
|
||||
// inserted text. This is useful for languages like Python, where
|
||||
// indentation matters. In these languages, the insertion point comment
|
||||
// should be indented the same amount as any inserted code will need to be
|
||||
// in order to work correctly in that context.
|
||||
//
|
||||
// The code generator that generates the initial file and the one which
|
||||
// inserts into it must both run as part of a single invocation of protoc.
|
||||
// Code generators are executed in the order in which they appear on the
|
||||
// command line.
|
||||
//
|
||||
// If |insertion_point| is present, |name| must also be present.
|
||||
optional string insertion_point = 2;
|
||||
|
||||
// The file contents.
|
||||
optional string content = 15;
|
||||
|
||||
// Information describing the file content being inserted. If an insertion
|
||||
// point is used, this information will be appropriately offset and inserted
|
||||
// into the code generation metadata for the generated files.
|
||||
optional GeneratedCodeInfo generated_code_info = 16;
|
||||
}
|
||||
repeated File file = 15;
|
||||
}
|
||||
|
|
@ -0,0 +1,911 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
// Author: kenton@google.com (Kenton Varda)
|
||||
// Based on original Protocol Buffers design by
|
||||
// Sanjay Ghemawat, Jeff Dean, and others.
|
||||
//
|
||||
// The messages in this file describe the definitions found in .proto files.
|
||||
// A valid .proto file can be translated directly to a FileDescriptorProto
|
||||
// without any other information (e.g. without reading its imports).
|
||||
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
option go_package = "google.golang.org/protobuf/types/descriptorpb";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "DescriptorProtos";
|
||||
option csharp_namespace = "Google.Protobuf.Reflection";
|
||||
option objc_class_prefix = "GPB";
|
||||
option cc_enable_arenas = true;
|
||||
|
||||
// descriptor.proto must be optimized for speed because reflection-based
|
||||
// algorithms don't work during bootstrapping.
|
||||
option optimize_for = SPEED;
|
||||
|
||||
// The protocol compiler can output a FileDescriptorSet containing the .proto
|
||||
// files it parses.
|
||||
message FileDescriptorSet {
|
||||
repeated FileDescriptorProto file = 1;
|
||||
}
|
||||
|
||||
// Describes a complete .proto file.
|
||||
message FileDescriptorProto {
|
||||
optional string name = 1; // file name, relative to root of source tree
|
||||
optional string package = 2; // e.g. "foo", "foo.bar", etc.
|
||||
|
||||
// Names of files imported by this file.
|
||||
repeated string dependency = 3;
|
||||
// Indexes of the public imported files in the dependency list above.
|
||||
repeated int32 public_dependency = 10;
|
||||
// Indexes of the weak imported files in the dependency list.
|
||||
// For Google-internal migration only. Do not use.
|
||||
repeated int32 weak_dependency = 11;
|
||||
|
||||
// All top-level definitions in this file.
|
||||
repeated DescriptorProto message_type = 4;
|
||||
repeated EnumDescriptorProto enum_type = 5;
|
||||
repeated ServiceDescriptorProto service = 6;
|
||||
repeated FieldDescriptorProto extension = 7;
|
||||
|
||||
optional FileOptions options = 8;
|
||||
|
||||
// This field contains optional information about the original source code.
|
||||
// You may safely remove this entire field without harming runtime
|
||||
// functionality of the descriptors -- the information is needed only by
|
||||
// development tools.
|
||||
optional SourceCodeInfo source_code_info = 9;
|
||||
|
||||
// The syntax of the proto file.
|
||||
// The supported values are "proto2" and "proto3".
|
||||
optional string syntax = 12;
|
||||
}
|
||||
|
||||
// Describes a message type.
|
||||
message DescriptorProto {
|
||||
optional string name = 1;
|
||||
|
||||
repeated FieldDescriptorProto field = 2;
|
||||
repeated FieldDescriptorProto extension = 6;
|
||||
|
||||
repeated DescriptorProto nested_type = 3;
|
||||
repeated EnumDescriptorProto enum_type = 4;
|
||||
|
||||
message ExtensionRange {
|
||||
optional int32 start = 1; // Inclusive.
|
||||
optional int32 end = 2; // Exclusive.
|
||||
|
||||
optional ExtensionRangeOptions options = 3;
|
||||
}
|
||||
repeated ExtensionRange extension_range = 5;
|
||||
|
||||
repeated OneofDescriptorProto oneof_decl = 8;
|
||||
|
||||
optional MessageOptions options = 7;
|
||||
|
||||
// Range of reserved tag numbers. Reserved tag numbers may not be used by
|
||||
// fields or extension ranges in the same message. Reserved ranges may
|
||||
// not overlap.
|
||||
message ReservedRange {
|
||||
optional int32 start = 1; // Inclusive.
|
||||
optional int32 end = 2; // Exclusive.
|
||||
}
|
||||
repeated ReservedRange reserved_range = 9;
|
||||
// Reserved field names, which may not be used by fields in the same message.
|
||||
// A given name may only be reserved once.
|
||||
repeated string reserved_name = 10;
|
||||
}
|
||||
|
||||
message ExtensionRangeOptions {
|
||||
// The parser stores options it doesn't recognize here. See above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
|
||||
// Clients can define custom options in extensions of this message. See above.
|
||||
extensions 1000 to max;
|
||||
}
|
||||
|
||||
// Describes a field within a message.
|
||||
message FieldDescriptorProto {
|
||||
enum Type {
|
||||
// 0 is reserved for errors.
|
||||
// Order is weird for historical reasons.
|
||||
TYPE_DOUBLE = 1;
|
||||
TYPE_FLOAT = 2;
|
||||
// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
|
||||
// negative values are likely.
|
||||
TYPE_INT64 = 3;
|
||||
TYPE_UINT64 = 4;
|
||||
// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
|
||||
// negative values are likely.
|
||||
TYPE_INT32 = 5;
|
||||
TYPE_FIXED64 = 6;
|
||||
TYPE_FIXED32 = 7;
|
||||
TYPE_BOOL = 8;
|
||||
TYPE_STRING = 9;
|
||||
// Tag-delimited aggregate.
|
||||
// Group type is deprecated and not supported in proto3. However, Proto3
|
||||
// implementations should still be able to parse the group wire format and
|
||||
// treat group fields as unknown fields.
|
||||
TYPE_GROUP = 10;
|
||||
TYPE_MESSAGE = 11; // Length-delimited aggregate.
|
||||
|
||||
// New in version 2.
|
||||
TYPE_BYTES = 12;
|
||||
TYPE_UINT32 = 13;
|
||||
TYPE_ENUM = 14;
|
||||
TYPE_SFIXED32 = 15;
|
||||
TYPE_SFIXED64 = 16;
|
||||
TYPE_SINT32 = 17; // Uses ZigZag encoding.
|
||||
TYPE_SINT64 = 18; // Uses ZigZag encoding.
|
||||
}
|
||||
|
||||
enum Label {
|
||||
// 0 is reserved for errors
|
||||
LABEL_OPTIONAL = 1;
|
||||
LABEL_REQUIRED = 2;
|
||||
LABEL_REPEATED = 3;
|
||||
}
|
||||
|
||||
optional string name = 1;
|
||||
optional int32 number = 3;
|
||||
optional Label label = 4;
|
||||
|
||||
// If type_name is set, this need not be set. If both this and type_name
|
||||
// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
|
||||
optional Type type = 5;
|
||||
|
||||
// For message and enum types, this is the name of the type. If the name
|
||||
// starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
|
||||
// rules are used to find the type (i.e. first the nested types within this
|
||||
// message are searched, then within the parent, on up to the root
|
||||
// namespace).
|
||||
optional string type_name = 6;
|
||||
|
||||
// For extensions, this is the name of the type being extended. It is
|
||||
// resolved in the same manner as type_name.
|
||||
optional string extendee = 2;
|
||||
|
||||
// For numeric types, contains the original text representation of the value.
|
||||
// For booleans, "true" or "false".
|
||||
// For strings, contains the default text contents (not escaped in any way).
|
||||
// For bytes, contains the C escaped value. All bytes >= 128 are escaped.
|
||||
// TODO(kenton): Base-64 encode?
|
||||
optional string default_value = 7;
|
||||
|
||||
// If set, gives the index of a oneof in the containing type's oneof_decl
|
||||
// list. This field is a member of that oneof.
|
||||
optional int32 oneof_index = 9;
|
||||
|
||||
// JSON name of this field. The value is set by protocol compiler. If the
|
||||
// user has set a "json_name" option on this field, that option's value
|
||||
// will be used. Otherwise, it's deduced from the field's name by converting
|
||||
// it to camelCase.
|
||||
optional string json_name = 10;
|
||||
|
||||
optional FieldOptions options = 8;
|
||||
|
||||
// If true, this is a proto3 "optional". When a proto3 field is optional, it
|
||||
// tracks presence regardless of field type.
|
||||
//
|
||||
// When proto3_optional is true, this field must be belong to a oneof to
|
||||
// signal to old proto3 clients that presence is tracked for this field. This
|
||||
// oneof is known as a "synthetic" oneof, and this field must be its sole
|
||||
// member (each proto3 optional field gets its own synthetic oneof). Synthetic
|
||||
// oneofs exist in the descriptor only, and do not generate any API. Synthetic
|
||||
// oneofs must be ordered after all "real" oneofs.
|
||||
//
|
||||
// For message fields, proto3_optional doesn't create any semantic change,
|
||||
// since non-repeated message fields always track presence. However it still
|
||||
// indicates the semantic detail of whether the user wrote "optional" or not.
|
||||
// This can be useful for round-tripping the .proto file. For consistency we
|
||||
// give message fields a synthetic oneof also, even though it is not required
|
||||
// to track presence. This is especially important because the parser can't
|
||||
// tell if a field is a message or an enum, so it must always create a
|
||||
// synthetic oneof.
|
||||
//
|
||||
// Proto2 optional fields do not set this flag, because they already indicate
|
||||
// optional with `LABEL_OPTIONAL`.
|
||||
optional bool proto3_optional = 17;
|
||||
}
|
||||
|
||||
// Describes a oneof.
|
||||
message OneofDescriptorProto {
|
||||
optional string name = 1;
|
||||
optional OneofOptions options = 2;
|
||||
}
|
||||
|
||||
// Describes an enum type.
|
||||
message EnumDescriptorProto {
|
||||
optional string name = 1;
|
||||
|
||||
repeated EnumValueDescriptorProto value = 2;
|
||||
|
||||
optional EnumOptions options = 3;
|
||||
|
||||
// Range of reserved numeric values. Reserved values may not be used by
|
||||
// entries in the same enum. Reserved ranges may not overlap.
|
||||
//
|
||||
// Note that this is distinct from DescriptorProto.ReservedRange in that it
|
||||
// is inclusive such that it can appropriately represent the entire int32
|
||||
// domain.
|
||||
message EnumReservedRange {
|
||||
optional int32 start = 1; // Inclusive.
|
||||
optional int32 end = 2; // Inclusive.
|
||||
}
|
||||
|
||||
// Range of reserved numeric values. Reserved numeric values may not be used
|
||||
// by enum values in the same enum declaration. Reserved ranges may not
|
||||
// overlap.
|
||||
repeated EnumReservedRange reserved_range = 4;
|
||||
|
||||
// Reserved enum value names, which may not be reused. A given name may only
|
||||
// be reserved once.
|
||||
repeated string reserved_name = 5;
|
||||
}
|
||||
|
||||
// Describes a value within an enum.
|
||||
message EnumValueDescriptorProto {
|
||||
optional string name = 1;
|
||||
optional int32 number = 2;
|
||||
|
||||
optional EnumValueOptions options = 3;
|
||||
}
|
||||
|
||||
// Describes a service.
|
||||
message ServiceDescriptorProto {
|
||||
optional string name = 1;
|
||||
repeated MethodDescriptorProto method = 2;
|
||||
|
||||
optional ServiceOptions options = 3;
|
||||
}
|
||||
|
||||
// Describes a method of a service.
|
||||
message MethodDescriptorProto {
|
||||
optional string name = 1;
|
||||
|
||||
// Input and output type names. These are resolved in the same way as
|
||||
// FieldDescriptorProto.type_name, but must refer to a message type.
|
||||
optional string input_type = 2;
|
||||
optional string output_type = 3;
|
||||
|
||||
optional MethodOptions options = 4;
|
||||
|
||||
// Identifies if client streams multiple client messages
|
||||
optional bool client_streaming = 5 [default = false];
|
||||
// Identifies if server streams multiple server messages
|
||||
optional bool server_streaming = 6 [default = false];
|
||||
}
|
||||
|
||||
|
||||
// ===================================================================
|
||||
// Options
|
||||
|
||||
// Each of the definitions above may have "options" attached. These are
|
||||
// just annotations which may cause code to be generated slightly differently
|
||||
// or may contain hints for code that manipulates protocol messages.
|
||||
//
|
||||
// Clients may define custom options as extensions of the *Options messages.
|
||||
// These extensions may not yet be known at parsing time, so the parser cannot
|
||||
// store the values in them. Instead it stores them in a field in the *Options
|
||||
// message called uninterpreted_option. This field must have the same name
|
||||
// across all *Options messages. We then use this field to populate the
|
||||
// extensions when we build a descriptor, at which point all protos have been
|
||||
// parsed and so all extensions are known.
|
||||
//
|
||||
// Extension numbers for custom options may be chosen as follows:
|
||||
// * For options which will only be used within a single application or
|
||||
// organization, or for experimental options, use field numbers 50000
|
||||
// through 99999. It is up to you to ensure that you do not use the
|
||||
// same number for multiple options.
|
||||
// * For options which will be published and used publicly by multiple
|
||||
// independent entities, e-mail protobuf-global-extension-registry@google.com
|
||||
// to reserve extension numbers. Simply provide your project name (e.g.
|
||||
// Objective-C plugin) and your project website (if available) -- there's no
|
||||
// need to explain how you intend to use them. Usually you only need one
|
||||
// extension number. You can declare multiple options with only one extension
|
||||
// number by putting them in a sub-message. See the Custom Options section of
|
||||
// the docs for examples:
|
||||
// https://developers.google.com/protocol-buffers/docs/proto#options
|
||||
// If this turns out to be popular, a web service will be set up
|
||||
// to automatically assign option numbers.
|
||||
|
||||
message FileOptions {
|
||||
|
||||
// Sets the Java package where classes generated from this .proto will be
|
||||
// placed. By default, the proto package is used, but this is often
|
||||
// inappropriate because proto packages do not normally start with backwards
|
||||
// domain names.
|
||||
optional string java_package = 1;
|
||||
|
||||
|
||||
// Controls the name of the wrapper Java class generated for the .proto file.
|
||||
// That class will always contain the .proto file's getDescriptor() method as
|
||||
// well as any top-level extensions defined in the .proto file.
|
||||
// If java_multiple_files is disabled, then all the other classes from the
|
||||
// .proto file will be nested inside the single wrapper outer class.
|
||||
optional string java_outer_classname = 8;
|
||||
|
||||
// If enabled, then the Java code generator will generate a separate .java
|
||||
// file for each top-level message, enum, and service defined in the .proto
|
||||
// file. Thus, these types will *not* be nested inside the wrapper class
|
||||
// named by java_outer_classname. However, the wrapper class will still be
|
||||
// generated to contain the file's getDescriptor() method as well as any
|
||||
// top-level extensions defined in the file.
|
||||
optional bool java_multiple_files = 10 [default = false];
|
||||
|
||||
// This option does nothing.
|
||||
optional bool java_generate_equals_and_hash = 20 [deprecated=true];
|
||||
|
||||
// If set true, then the Java2 code generator will generate code that
|
||||
// throws an exception whenever an attempt is made to assign a non-UTF-8
|
||||
// byte sequence to a string field.
|
||||
// Message reflection will do the same.
|
||||
// However, an extension field still accepts non-UTF-8 byte sequences.
|
||||
// This option has no effect on when used with the lite runtime.
|
||||
optional bool java_string_check_utf8 = 27 [default = false];
|
||||
|
||||
|
||||
// Generated classes can be optimized for speed or code size.
|
||||
enum OptimizeMode {
|
||||
SPEED = 1; // Generate complete code for parsing, serialization,
|
||||
// etc.
|
||||
CODE_SIZE = 2; // Use ReflectionOps to implement these methods.
|
||||
LITE_RUNTIME = 3; // Generate code using MessageLite and the lite runtime.
|
||||
}
|
||||
optional OptimizeMode optimize_for = 9 [default = SPEED];
|
||||
|
||||
// Sets the Go package where structs generated from this .proto will be
|
||||
// placed. If omitted, the Go package will be derived from the following:
|
||||
// - The basename of the package import path, if provided.
|
||||
// - Otherwise, the package statement in the .proto file, if present.
|
||||
// - Otherwise, the basename of the .proto file, without extension.
|
||||
optional string go_package = 11;
|
||||
|
||||
|
||||
|
||||
|
||||
// Should generic services be generated in each language? "Generic" services
|
||||
// are not specific to any particular RPC system. They are generated by the
|
||||
// main code generators in each language (without additional plugins).
|
||||
// Generic services were the only kind of service generation supported by
|
||||
// early versions of google.protobuf.
|
||||
//
|
||||
// Generic services are now considered deprecated in favor of using plugins
|
||||
// that generate code specific to your particular RPC system. Therefore,
|
||||
// these default to false. Old code which depends on generic services should
|
||||
// explicitly set them to true.
|
||||
optional bool cc_generic_services = 16 [default = false];
|
||||
optional bool java_generic_services = 17 [default = false];
|
||||
optional bool py_generic_services = 18 [default = false];
|
||||
optional bool php_generic_services = 42 [default = false];
|
||||
|
||||
// Is this file deprecated?
|
||||
// Depending on the target platform, this can emit Deprecated annotations
|
||||
// for everything in the file, or it will be completely ignored; in the very
|
||||
// least, this is a formalization for deprecating files.
|
||||
optional bool deprecated = 23 [default = false];
|
||||
|
||||
// Enables the use of arenas for the proto messages in this file. This applies
|
||||
// only to generated classes for C++.
|
||||
optional bool cc_enable_arenas = 31 [default = true];
|
||||
|
||||
|
||||
// Sets the objective c class prefix which is prepended to all objective c
|
||||
// generated classes from this .proto. There is no default.
|
||||
optional string objc_class_prefix = 36;
|
||||
|
||||
// Namespace for generated classes; defaults to the package.
|
||||
optional string csharp_namespace = 37;
|
||||
|
||||
// By default Swift generators will take the proto package and CamelCase it
|
||||
// replacing '.' with underscore and use that to prefix the types/symbols
|
||||
// defined. When this options is provided, they will use this value instead
|
||||
// to prefix the types/symbols defined.
|
||||
optional string swift_prefix = 39;
|
||||
|
||||
// Sets the php class prefix which is prepended to all php generated classes
|
||||
// from this .proto. Default is empty.
|
||||
optional string php_class_prefix = 40;
|
||||
|
||||
// Use this option to change the namespace of php generated classes. Default
|
||||
// is empty. When this option is empty, the package name will be used for
|
||||
// determining the namespace.
|
||||
optional string php_namespace = 41;
|
||||
|
||||
// Use this option to change the namespace of php generated metadata classes.
|
||||
// Default is empty. When this option is empty, the proto file name will be
|
||||
// used for determining the namespace.
|
||||
optional string php_metadata_namespace = 44;
|
||||
|
||||
// Use this option to change the package of ruby generated classes. Default
|
||||
// is empty. When this option is not set, the package name will be used for
|
||||
// determining the ruby package.
|
||||
optional string ruby_package = 45;
|
||||
|
||||
|
||||
// The parser stores options it doesn't recognize here.
|
||||
// See the documentation for the "Options" section above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
// Clients can define custom options in extensions of this message.
|
||||
// See the documentation for the "Options" section above.
|
||||
extensions 1000 to max;
|
||||
|
||||
reserved 38;
|
||||
}
|
||||
|
||||
message MessageOptions {
|
||||
// Set true to use the old proto1 MessageSet wire format for extensions.
|
||||
// This is provided for backwards-compatibility with the MessageSet wire
|
||||
// format. You should not use this for any other reason: It's less
|
||||
// efficient, has fewer features, and is more complicated.
|
||||
//
|
||||
// The message must be defined exactly as follows:
|
||||
// message Foo {
|
||||
// option message_set_wire_format = true;
|
||||
// extensions 4 to max;
|
||||
// }
|
||||
// Note that the message cannot have any defined fields; MessageSets only
|
||||
// have extensions.
|
||||
//
|
||||
// All extensions of your type must be singular messages; e.g. they cannot
|
||||
// be int32s, enums, or repeated messages.
|
||||
//
|
||||
// Because this is an option, the above two restrictions are not enforced by
|
||||
// the protocol compiler.
|
||||
optional bool message_set_wire_format = 1 [default = false];
|
||||
|
||||
// Disables the generation of the standard "descriptor()" accessor, which can
|
||||
// conflict with a field of the same name. This is meant to make migration
|
||||
// from proto1 easier; new code should avoid fields named "descriptor".
|
||||
optional bool no_standard_descriptor_accessor = 2 [default = false];
|
||||
|
||||
// Is this message deprecated?
|
||||
// Depending on the target platform, this can emit Deprecated annotations
|
||||
// for the message, or it will be completely ignored; in the very least,
|
||||
// this is a formalization for deprecating messages.
|
||||
optional bool deprecated = 3 [default = false];
|
||||
|
||||
reserved 4, 5, 6;
|
||||
|
||||
// Whether the message is an automatically generated map entry type for the
|
||||
// maps field.
|
||||
//
|
||||
// For maps fields:
|
||||
// map<KeyType, ValueType> map_field = 1;
|
||||
// The parsed descriptor looks like:
|
||||
// message MapFieldEntry {
|
||||
// option map_entry = true;
|
||||
// optional KeyType key = 1;
|
||||
// optional ValueType value = 2;
|
||||
// }
|
||||
// repeated MapFieldEntry map_field = 1;
|
||||
//
|
||||
// Implementations may choose not to generate the map_entry=true message, but
|
||||
// use a native map in the target language to hold the keys and values.
|
||||
// The reflection APIs in such implementations still need to work as
|
||||
// if the field is a repeated message field.
|
||||
//
|
||||
// NOTE: Do not set the option in .proto files. Always use the maps syntax
|
||||
// instead. The option should only be implicitly set by the proto compiler
|
||||
// parser.
|
||||
optional bool map_entry = 7;
|
||||
|
||||
reserved 8; // javalite_serializable
|
||||
reserved 9; // javanano_as_lite
|
||||
|
||||
|
||||
// The parser stores options it doesn't recognize here. See above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
// Clients can define custom options in extensions of this message. See above.
|
||||
extensions 1000 to max;
|
||||
}
|
||||
|
||||
message FieldOptions {
|
||||
// The ctype option instructs the C++ code generator to use a different
|
||||
// representation of the field than it normally would. See the specific
|
||||
// options below. This option is not yet implemented in the open source
|
||||
// release -- sorry, we'll try to include it in a future version!
|
||||
optional CType ctype = 1 [default = STRING];
|
||||
enum CType {
|
||||
// Default mode.
|
||||
STRING = 0;
|
||||
|
||||
CORD = 1;
|
||||
|
||||
STRING_PIECE = 2;
|
||||
}
|
||||
// The packed option can be enabled for repeated primitive fields to enable
|
||||
// a more efficient representation on the wire. Rather than repeatedly
|
||||
// writing the tag and type for each element, the entire array is encoded as
|
||||
// a single length-delimited blob. In proto3, only explicit setting it to
|
||||
// false will avoid using packed encoding.
|
||||
optional bool packed = 2;
|
||||
|
||||
// The jstype option determines the JavaScript type used for values of the
|
||||
// field. The option is permitted only for 64 bit integral and fixed types
|
||||
// (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
|
||||
// is represented as JavaScript string, which avoids loss of precision that
|
||||
// can happen when a large value is converted to a floating point JavaScript.
|
||||
// Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
|
||||
// use the JavaScript "number" type. The behavior of the default option
|
||||
// JS_NORMAL is implementation dependent.
|
||||
//
|
||||
// This option is an enum to permit additional types to be added, e.g.
|
||||
// goog.math.Integer.
|
||||
optional JSType jstype = 6 [default = JS_NORMAL];
|
||||
enum JSType {
|
||||
// Use the default type.
|
||||
JS_NORMAL = 0;
|
||||
|
||||
// Use JavaScript strings.
|
||||
JS_STRING = 1;
|
||||
|
||||
// Use JavaScript numbers.
|
||||
JS_NUMBER = 2;
|
||||
}
|
||||
|
||||
// Should this field be parsed lazily? Lazy applies only to message-type
|
||||
// fields. It means that when the outer message is initially parsed, the
|
||||
// inner message's contents will not be parsed but instead stored in encoded
|
||||
// form. The inner message will actually be parsed when it is first accessed.
|
||||
//
|
||||
// This is only a hint. Implementations are free to choose whether to use
|
||||
// eager or lazy parsing regardless of the value of this option. However,
|
||||
// setting this option true suggests that the protocol author believes that
|
||||
// using lazy parsing on this field is worth the additional bookkeeping
|
||||
// overhead typically needed to implement it.
|
||||
//
|
||||
// This option does not affect the public interface of any generated code;
|
||||
// all method signatures remain the same. Furthermore, thread-safety of the
|
||||
// interface is not affected by this option; const methods remain safe to
|
||||
// call from multiple threads concurrently, while non-const methods continue
|
||||
// to require exclusive access.
|
||||
//
|
||||
//
|
||||
// Note that implementations may choose not to check required fields within
|
||||
// a lazy sub-message. That is, calling IsInitialized() on the outer message
|
||||
// may return true even if the inner message has missing required fields.
|
||||
// This is necessary because otherwise the inner message would have to be
|
||||
// parsed in order to perform the check, defeating the purpose of lazy
|
||||
// parsing. An implementation which chooses not to check required fields
|
||||
// must be consistent about it. That is, for any particular sub-message, the
|
||||
// implementation must either *always* check its required fields, or *never*
|
||||
// check its required fields, regardless of whether or not the message has
|
||||
// been parsed.
|
||||
optional bool lazy = 5 [default = false];
|
||||
|
||||
// Is this field deprecated?
|
||||
// Depending on the target platform, this can emit Deprecated annotations
|
||||
// for accessors, or it will be completely ignored; in the very least, this
|
||||
// is a formalization for deprecating fields.
|
||||
optional bool deprecated = 3 [default = false];
|
||||
|
||||
// For Google-internal migration only. Do not use.
|
||||
optional bool weak = 10 [default = false];
|
||||
|
||||
|
||||
// The parser stores options it doesn't recognize here. See above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
// Clients can define custom options in extensions of this message. See above.
|
||||
extensions 1000 to max;
|
||||
|
||||
reserved 4; // removed jtype
|
||||
}
|
||||
|
||||
message OneofOptions {
|
||||
// The parser stores options it doesn't recognize here. See above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
// Clients can define custom options in extensions of this message. See above.
|
||||
extensions 1000 to max;
|
||||
}
|
||||
|
||||
message EnumOptions {
|
||||
|
||||
// Set this option to true to allow mapping different tag names to the same
|
||||
// value.
|
||||
optional bool allow_alias = 2;
|
||||
|
||||
// Is this enum deprecated?
|
||||
// Depending on the target platform, this can emit Deprecated annotations
|
||||
// for the enum, or it will be completely ignored; in the very least, this
|
||||
// is a formalization for deprecating enums.
|
||||
optional bool deprecated = 3 [default = false];
|
||||
|
||||
reserved 5; // javanano_as_lite
|
||||
|
||||
// The parser stores options it doesn't recognize here. See above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
// Clients can define custom options in extensions of this message. See above.
|
||||
extensions 1000 to max;
|
||||
}
|
||||
|
||||
message EnumValueOptions {
|
||||
// Is this enum value deprecated?
|
||||
// Depending on the target platform, this can emit Deprecated annotations
|
||||
// for the enum value, or it will be completely ignored; in the very least,
|
||||
// this is a formalization for deprecating enum values.
|
||||
optional bool deprecated = 1 [default = false];
|
||||
|
||||
// The parser stores options it doesn't recognize here. See above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
// Clients can define custom options in extensions of this message. See above.
|
||||
extensions 1000 to max;
|
||||
}
|
||||
|
||||
message ServiceOptions {
|
||||
|
||||
// Note: Field numbers 1 through 32 are reserved for Google's internal RPC
|
||||
// framework. We apologize for hoarding these numbers to ourselves, but
|
||||
// we were already using them long before we decided to release Protocol
|
||||
// Buffers.
|
||||
|
||||
// Is this service deprecated?
|
||||
// Depending on the target platform, this can emit Deprecated annotations
|
||||
// for the service, or it will be completely ignored; in the very least,
|
||||
// this is a formalization for deprecating services.
|
||||
optional bool deprecated = 33 [default = false];
|
||||
|
||||
// The parser stores options it doesn't recognize here. See above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
// Clients can define custom options in extensions of this message. See above.
|
||||
extensions 1000 to max;
|
||||
}
|
||||
|
||||
message MethodOptions {
|
||||
|
||||
// Note: Field numbers 1 through 32 are reserved for Google's internal RPC
|
||||
// framework. We apologize for hoarding these numbers to ourselves, but
|
||||
// we were already using them long before we decided to release Protocol
|
||||
// Buffers.
|
||||
|
||||
// Is this method deprecated?
|
||||
// Depending on the target platform, this can emit Deprecated annotations
|
||||
// for the method, or it will be completely ignored; in the very least,
|
||||
// this is a formalization for deprecating methods.
|
||||
optional bool deprecated = 33 [default = false];
|
||||
|
||||
// Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
|
||||
// or neither? HTTP based RPC implementation may choose GET verb for safe
|
||||
// methods, and PUT verb for idempotent methods instead of the default POST.
|
||||
enum IdempotencyLevel {
|
||||
IDEMPOTENCY_UNKNOWN = 0;
|
||||
NO_SIDE_EFFECTS = 1; // implies idempotent
|
||||
IDEMPOTENT = 2; // idempotent, but may have side effects
|
||||
}
|
||||
optional IdempotencyLevel idempotency_level = 34
|
||||
[default = IDEMPOTENCY_UNKNOWN];
|
||||
|
||||
// The parser stores options it doesn't recognize here. See above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
// Clients can define custom options in extensions of this message. See above.
|
||||
extensions 1000 to max;
|
||||
}
|
||||
|
||||
|
||||
// A message representing a option the parser does not recognize. This only
|
||||
// appears in options protos created by the compiler::Parser class.
|
||||
// DescriptorPool resolves these when building Descriptor objects. Therefore,
|
||||
// options protos in descriptor objects (e.g. returned by Descriptor::options(),
|
||||
// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
|
||||
// in them.
|
||||
message UninterpretedOption {
|
||||
// The name of the uninterpreted option. Each string represents a segment in
|
||||
// a dot-separated name. is_extension is true iff a segment represents an
|
||||
// extension (denoted with parentheses in options specs in .proto files).
|
||||
// E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
|
||||
// "foo.(bar.baz).qux".
|
||||
message NamePart {
|
||||
required string name_part = 1;
|
||||
required bool is_extension = 2;
|
||||
}
|
||||
repeated NamePart name = 2;
|
||||
|
||||
// The value of the uninterpreted option, in whatever type the tokenizer
|
||||
// identified it as during parsing. Exactly one of these should be set.
|
||||
optional string identifier_value = 3;
|
||||
optional uint64 positive_int_value = 4;
|
||||
optional int64 negative_int_value = 5;
|
||||
optional double double_value = 6;
|
||||
optional bytes string_value = 7;
|
||||
optional string aggregate_value = 8;
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
// Optional source code info
|
||||
|
||||
// Encapsulates information about the original source file from which a
|
||||
// FileDescriptorProto was generated.
|
||||
message SourceCodeInfo {
|
||||
// A Location identifies a piece of source code in a .proto file which
|
||||
// corresponds to a particular definition. This information is intended
|
||||
// to be useful to IDEs, code indexers, documentation generators, and similar
|
||||
// tools.
|
||||
//
|
||||
// For example, say we have a file like:
|
||||
// message Foo {
|
||||
// optional string foo = 1;
|
||||
// }
|
||||
// Let's look at just the field definition:
|
||||
// optional string foo = 1;
|
||||
// ^ ^^ ^^ ^ ^^^
|
||||
// a bc de f ghi
|
||||
// We have the following locations:
|
||||
// span path represents
|
||||
// [a,i) [ 4, 0, 2, 0 ] The whole field definition.
|
||||
// [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
|
||||
// [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
|
||||
// [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
|
||||
// [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
|
||||
//
|
||||
// Notes:
|
||||
// - A location may refer to a repeated field itself (i.e. not to any
|
||||
// particular index within it). This is used whenever a set of elements are
|
||||
// logically enclosed in a single code segment. For example, an entire
|
||||
// extend block (possibly containing multiple extension definitions) will
|
||||
// have an outer location whose path refers to the "extensions" repeated
|
||||
// field without an index.
|
||||
// - Multiple locations may have the same path. This happens when a single
|
||||
// logical declaration is spread out across multiple places. The most
|
||||
// obvious example is the "extend" block again -- there may be multiple
|
||||
// extend blocks in the same scope, each of which will have the same path.
|
||||
// - A location's span is not always a subset of its parent's span. For
|
||||
// example, the "extendee" of an extension declaration appears at the
|
||||
// beginning of the "extend" block and is shared by all extensions within
|
||||
// the block.
|
||||
// - Just because a location's span is a subset of some other location's span
|
||||
// does not mean that it is a descendant. For example, a "group" defines
|
||||
// both a type and a field in a single declaration. Thus, the locations
|
||||
// corresponding to the type and field and their components will overlap.
|
||||
// - Code which tries to interpret locations should probably be designed to
|
||||
// ignore those that it doesn't understand, as more types of locations could
|
||||
// be recorded in the future.
|
||||
repeated Location location = 1;
|
||||
message Location {
|
||||
// Identifies which part of the FileDescriptorProto was defined at this
|
||||
// location.
|
||||
//
|
||||
// Each element is a field number or an index. They form a path from
|
||||
// the root FileDescriptorProto to the place where the definition. For
|
||||
// example, this path:
|
||||
// [ 4, 3, 2, 7, 1 ]
|
||||
// refers to:
|
||||
// file.message_type(3) // 4, 3
|
||||
// .field(7) // 2, 7
|
||||
// .name() // 1
|
||||
// This is because FileDescriptorProto.message_type has field number 4:
|
||||
// repeated DescriptorProto message_type = 4;
|
||||
// and DescriptorProto.field has field number 2:
|
||||
// repeated FieldDescriptorProto field = 2;
|
||||
// and FieldDescriptorProto.name has field number 1:
|
||||
// optional string name = 1;
|
||||
//
|
||||
// Thus, the above path gives the location of a field name. If we removed
|
||||
// the last element:
|
||||
// [ 4, 3, 2, 7 ]
|
||||
// this path refers to the whole field declaration (from the beginning
|
||||
// of the label to the terminating semicolon).
|
||||
repeated int32 path = 1 [packed = true];
|
||||
|
||||
// Always has exactly three or four elements: start line, start column,
|
||||
// end line (optional, otherwise assumed same as start line), end column.
|
||||
// These are packed into a single field for efficiency. Note that line
|
||||
// and column numbers are zero-based -- typically you will want to add
|
||||
// 1 to each before displaying to a user.
|
||||
repeated int32 span = 2 [packed = true];
|
||||
|
||||
// If this SourceCodeInfo represents a complete declaration, these are any
|
||||
// comments appearing before and after the declaration which appear to be
|
||||
// attached to the declaration.
|
||||
//
|
||||
// A series of line comments appearing on consecutive lines, with no other
|
||||
// tokens appearing on those lines, will be treated as a single comment.
|
||||
//
|
||||
// leading_detached_comments will keep paragraphs of comments that appear
|
||||
// before (but not connected to) the current element. Each paragraph,
|
||||
// separated by empty lines, will be one comment element in the repeated
|
||||
// field.
|
||||
//
|
||||
// Only the comment content is provided; comment markers (e.g. //) are
|
||||
// stripped out. For block comments, leading whitespace and an asterisk
|
||||
// will be stripped from the beginning of each line other than the first.
|
||||
// Newlines are included in the output.
|
||||
//
|
||||
// Examples:
|
||||
//
|
||||
// optional int32 foo = 1; // Comment attached to foo.
|
||||
// // Comment attached to bar.
|
||||
// optional int32 bar = 2;
|
||||
//
|
||||
// optional string baz = 3;
|
||||
// // Comment attached to baz.
|
||||
// // Another line attached to baz.
|
||||
//
|
||||
// // Comment attached to qux.
|
||||
// //
|
||||
// // Another line attached to qux.
|
||||
// optional double qux = 4;
|
||||
//
|
||||
// // Detached comment for corge. This is not leading or trailing comments
|
||||
// // to qux or corge because there are blank lines separating it from
|
||||
// // both.
|
||||
//
|
||||
// // Detached comment for corge paragraph 2.
|
||||
//
|
||||
// optional string corge = 5;
|
||||
// /* Block comment attached
|
||||
// * to corge. Leading asterisks
|
||||
// * will be removed. */
|
||||
// /* Block comment attached to
|
||||
// * grault. */
|
||||
// optional int32 grault = 6;
|
||||
//
|
||||
// // ignored detached comments.
|
||||
optional string leading_comments = 3;
|
||||
optional string trailing_comments = 4;
|
||||
repeated string leading_detached_comments = 6;
|
||||
}
|
||||
}
|
||||
|
||||
// Describes the relationship between generated code and its original source
|
||||
// file. A GeneratedCodeInfo message is associated with only one generated
|
||||
// source file, but may contain references to different source .proto files.
|
||||
message GeneratedCodeInfo {
|
||||
// An Annotation connects some span of text in generated code to an element
|
||||
// of its generating .proto file.
|
||||
repeated Annotation annotation = 1;
|
||||
message Annotation {
|
||||
// Identifies the element in the original source .proto file. This field
|
||||
// is formatted the same as SourceCodeInfo.Location.path.
|
||||
repeated int32 path = 1 [packed = true];
|
||||
|
||||
// Identifies the filesystem path to the original source .proto.
|
||||
optional string source_file = 2;
|
||||
|
||||
// Identifies the starting offset in bytes in the generated code
|
||||
// that relates to the identified object.
|
||||
optional int32 begin = 3;
|
||||
|
||||
// Identifies the ending offset in bytes in the generated code that
|
||||
// relates to the identified offset. The end offset should be one past
|
||||
// the last relevant byte (so the length of the text = end - begin).
|
||||
optional int32 end = 4;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,116 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option cc_enable_arenas = true;
|
||||
option go_package = "google.golang.org/protobuf/types/known/durationpb";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "DurationProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
|
||||
// A Duration represents a signed, fixed-length span of time represented
|
||||
// as a count of seconds and fractions of seconds at nanosecond
|
||||
// resolution. It is independent of any calendar and concepts like "day"
|
||||
// or "month". It is related to Timestamp in that the difference between
|
||||
// two Timestamp values is a Duration and it can be added or subtracted
|
||||
// from a Timestamp. Range is approximately +-10,000 years.
|
||||
//
|
||||
// # Examples
|
||||
//
|
||||
// Example 1: Compute Duration from two Timestamps in pseudo code.
|
||||
//
|
||||
// Timestamp start = ...;
|
||||
// Timestamp end = ...;
|
||||
// Duration duration = ...;
|
||||
//
|
||||
// duration.seconds = end.seconds - start.seconds;
|
||||
// duration.nanos = end.nanos - start.nanos;
|
||||
//
|
||||
// if (duration.seconds < 0 && duration.nanos > 0) {
|
||||
// duration.seconds += 1;
|
||||
// duration.nanos -= 1000000000;
|
||||
// } else if (duration.seconds > 0 && duration.nanos < 0) {
|
||||
// duration.seconds -= 1;
|
||||
// duration.nanos += 1000000000;
|
||||
// }
|
||||
//
|
||||
// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
|
||||
//
|
||||
// Timestamp start = ...;
|
||||
// Duration duration = ...;
|
||||
// Timestamp end = ...;
|
||||
//
|
||||
// end.seconds = start.seconds + duration.seconds;
|
||||
// end.nanos = start.nanos + duration.nanos;
|
||||
//
|
||||
// if (end.nanos < 0) {
|
||||
// end.seconds -= 1;
|
||||
// end.nanos += 1000000000;
|
||||
// } else if (end.nanos >= 1000000000) {
|
||||
// end.seconds += 1;
|
||||
// end.nanos -= 1000000000;
|
||||
// }
|
||||
//
|
||||
// Example 3: Compute Duration from datetime.timedelta in Python.
|
||||
//
|
||||
// td = datetime.timedelta(days=3, minutes=10)
|
||||
// duration = Duration()
|
||||
// duration.FromTimedelta(td)
|
||||
//
|
||||
// # JSON Mapping
|
||||
//
|
||||
// In JSON format, the Duration type is encoded as a string rather than an
|
||||
// object, where the string ends in the suffix "s" (indicating seconds) and
|
||||
// is preceded by the number of seconds, with nanoseconds expressed as
|
||||
// fractional seconds. For example, 3 seconds with 0 nanoseconds should be
|
||||
// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
|
||||
// be expressed in JSON format as "3.000000001s", and 3 seconds and 1
|
||||
// microsecond should be expressed in JSON format as "3.000001s".
|
||||
//
|
||||
//
|
||||
message Duration {
|
||||
// Signed seconds of the span of time. Must be from -315,576,000,000
|
||||
// to +315,576,000,000 inclusive. Note: these bounds are computed from:
|
||||
// 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
||||
int64 seconds = 1;
|
||||
|
||||
// Signed fractions of a second at nanosecond resolution of the span
|
||||
// of time. Durations less than one second are represented with a 0
|
||||
// `seconds` field and a positive or negative `nanos` field. For durations
|
||||
// of one second or more, a non-zero value for the `nanos` field must be
|
||||
// of the same sign as the `seconds` field. Must be from -999,999,999
|
||||
// to +999,999,999 inclusive.
|
||||
int32 nanos = 2;
|
||||
}
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option go_package = "google.golang.org/protobuf/types/known/emptypb";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "EmptyProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
option cc_enable_arenas = true;
|
||||
|
||||
// A generic empty message that you can re-use to avoid defining duplicated
|
||||
// empty messages in your APIs. A typical example is to use it as the request
|
||||
// or the response type of an API method. For instance:
|
||||
//
|
||||
// service Foo {
|
||||
// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||
// }
|
||||
//
|
||||
// The JSON representation for `Empty` is empty JSON object `{}`.
|
||||
message Empty {}
|
||||
|
|
@ -0,0 +1,245 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "FieldMaskProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
option go_package = "google.golang.org/protobuf/types/known/fieldmaskpb";
|
||||
option cc_enable_arenas = true;
|
||||
|
||||
// `FieldMask` represents a set of symbolic field paths, for example:
|
||||
//
|
||||
// paths: "f.a"
|
||||
// paths: "f.b.d"
|
||||
//
|
||||
// Here `f` represents a field in some root message, `a` and `b`
|
||||
// fields in the message found in `f`, and `d` a field found in the
|
||||
// message in `f.b`.
|
||||
//
|
||||
// Field masks are used to specify a subset of fields that should be
|
||||
// returned by a get operation or modified by an update operation.
|
||||
// Field masks also have a custom JSON encoding (see below).
|
||||
//
|
||||
// # Field Masks in Projections
|
||||
//
|
||||
// When used in the context of a projection, a response message or
|
||||
// sub-message is filtered by the API to only contain those fields as
|
||||
// specified in the mask. For example, if the mask in the previous
|
||||
// example is applied to a response message as follows:
|
||||
//
|
||||
// f {
|
||||
// a : 22
|
||||
// b {
|
||||
// d : 1
|
||||
// x : 2
|
||||
// }
|
||||
// y : 13
|
||||
// }
|
||||
// z: 8
|
||||
//
|
||||
// The result will not contain specific values for fields x,y and z
|
||||
// (their value will be set to the default, and omitted in proto text
|
||||
// output):
|
||||
//
|
||||
//
|
||||
// f {
|
||||
// a : 22
|
||||
// b {
|
||||
// d : 1
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// A repeated field is not allowed except at the last position of a
|
||||
// paths string.
|
||||
//
|
||||
// If a FieldMask object is not present in a get operation, the
|
||||
// operation applies to all fields (as if a FieldMask of all fields
|
||||
// had been specified).
|
||||
//
|
||||
// Note that a field mask does not necessarily apply to the
|
||||
// top-level response message. In case of a REST get operation, the
|
||||
// field mask applies directly to the response, but in case of a REST
|
||||
// list operation, the mask instead applies to each individual message
|
||||
// in the returned resource list. In case of a REST custom method,
|
||||
// other definitions may be used. Where the mask applies will be
|
||||
// clearly documented together with its declaration in the API. In
|
||||
// any case, the effect on the returned resource/resources is required
|
||||
// behavior for APIs.
|
||||
//
|
||||
// # Field Masks in Update Operations
|
||||
//
|
||||
// A field mask in update operations specifies which fields of the
|
||||
// targeted resource are going to be updated. The API is required
|
||||
// to only change the values of the fields as specified in the mask
|
||||
// and leave the others untouched. If a resource is passed in to
|
||||
// describe the updated values, the API ignores the values of all
|
||||
// fields not covered by the mask.
|
||||
//
|
||||
// If a repeated field is specified for an update operation, new values will
|
||||
// be appended to the existing repeated field in the target resource. Note that
|
||||
// a repeated field is only allowed in the last position of a `paths` string.
|
||||
//
|
||||
// If a sub-message is specified in the last position of the field mask for an
|
||||
// update operation, then new value will be merged into the existing sub-message
|
||||
// in the target resource.
|
||||
//
|
||||
// For example, given the target message:
|
||||
//
|
||||
// f {
|
||||
// b {
|
||||
// d: 1
|
||||
// x: 2
|
||||
// }
|
||||
// c: [1]
|
||||
// }
|
||||
//
|
||||
// And an update message:
|
||||
//
|
||||
// f {
|
||||
// b {
|
||||
// d: 10
|
||||
// }
|
||||
// c: [2]
|
||||
// }
|
||||
//
|
||||
// then if the field mask is:
|
||||
//
|
||||
// paths: ["f.b", "f.c"]
|
||||
//
|
||||
// then the result will be:
|
||||
//
|
||||
// f {
|
||||
// b {
|
||||
// d: 10
|
||||
// x: 2
|
||||
// }
|
||||
// c: [1, 2]
|
||||
// }
|
||||
//
|
||||
// An implementation may provide options to override this default behavior for
|
||||
// repeated and message fields.
|
||||
//
|
||||
// In order to reset a field's value to the default, the field must
|
||||
// be in the mask and set to the default value in the provided resource.
|
||||
// Hence, in order to reset all fields of a resource, provide a default
|
||||
// instance of the resource and set all fields in the mask, or do
|
||||
// not provide a mask as described below.
|
||||
//
|
||||
// If a field mask is not present on update, the operation applies to
|
||||
// all fields (as if a field mask of all fields has been specified).
|
||||
// Note that in the presence of schema evolution, this may mean that
|
||||
// fields the client does not know and has therefore not filled into
|
||||
// the request will be reset to their default. If this is unwanted
|
||||
// behavior, a specific service may require a client to always specify
|
||||
// a field mask, producing an error if not.
|
||||
//
|
||||
// As with get operations, the location of the resource which
|
||||
// describes the updated values in the request message depends on the
|
||||
// operation kind. In any case, the effect of the field mask is
|
||||
// required to be honored by the API.
|
||||
//
|
||||
// ## Considerations for HTTP REST
|
||||
//
|
||||
// The HTTP kind of an update operation which uses a field mask must
|
||||
// be set to PATCH instead of PUT in order to satisfy HTTP semantics
|
||||
// (PUT must only be used for full updates).
|
||||
//
|
||||
// # JSON Encoding of Field Masks
|
||||
//
|
||||
// In JSON, a field mask is encoded as a single string where paths are
|
||||
// separated by a comma. Fields name in each path are converted
|
||||
// to/from lower-camel naming conventions.
|
||||
//
|
||||
// As an example, consider the following message declarations:
|
||||
//
|
||||
// message Profile {
|
||||
// User user = 1;
|
||||
// Photo photo = 2;
|
||||
// }
|
||||
// message User {
|
||||
// string display_name = 1;
|
||||
// string address = 2;
|
||||
// }
|
||||
//
|
||||
// In proto a field mask for `Profile` may look as such:
|
||||
//
|
||||
// mask {
|
||||
// paths: "user.display_name"
|
||||
// paths: "photo"
|
||||
// }
|
||||
//
|
||||
// In JSON, the same mask is represented as below:
|
||||
//
|
||||
// {
|
||||
// mask: "user.displayName,photo"
|
||||
// }
|
||||
//
|
||||
// # Field Masks and Oneof Fields
|
||||
//
|
||||
// Field masks treat fields in oneofs just as regular fields. Consider the
|
||||
// following message:
|
||||
//
|
||||
// message SampleMessage {
|
||||
// oneof test_oneof {
|
||||
// string name = 4;
|
||||
// SubMessage sub_message = 9;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// The field mask can be:
|
||||
//
|
||||
// mask {
|
||||
// paths: "name"
|
||||
// }
|
||||
//
|
||||
// Or:
|
||||
//
|
||||
// mask {
|
||||
// paths: "sub_message"
|
||||
// }
|
||||
//
|
||||
// Note that oneof type names ("test_oneof" in this case) cannot be used in
|
||||
// paths.
|
||||
//
|
||||
// ## Field Mask Verification
|
||||
//
|
||||
// The implementation of any API method which has a FieldMask type field in the
|
||||
// request should verify the included field paths, and return an
|
||||
// `INVALID_ARGUMENT` error if any path is unmappable.
|
||||
message FieldMask {
|
||||
// The set of field mask paths.
|
||||
repeated string paths = 1;
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "SourceContextProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
option go_package = "google.golang.org/protobuf/types/known/sourcecontextpb";
|
||||
|
||||
// `SourceContext` represents information about the source of a
|
||||
// protobuf element, like the file in which it is defined.
|
||||
message SourceContext {
|
||||
// The path-qualified name of the .proto file that contained the associated
|
||||
// protobuf element. For example: `"google/protobuf/source_context.proto"`.
|
||||
string file_name = 1;
|
||||
}
|
||||
|
|
@ -0,0 +1,95 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option cc_enable_arenas = true;
|
||||
option go_package = "google.golang.org/protobuf/types/known/structpb";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "StructProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
|
||||
// `Struct` represents a structured data value, consisting of fields
|
||||
// which map to dynamically typed values. In some languages, `Struct`
|
||||
// might be supported by a native representation. For example, in
|
||||
// scripting languages like JS a struct is represented as an
|
||||
// object. The details of that representation are described together
|
||||
// with the proto support for the language.
|
||||
//
|
||||
// The JSON representation for `Struct` is JSON object.
|
||||
message Struct {
|
||||
// Unordered map of dynamically typed values.
|
||||
map<string, Value> fields = 1;
|
||||
}
|
||||
|
||||
// `Value` represents a dynamically typed value which can be either
|
||||
// null, a number, a string, a boolean, a recursive struct value, or a
|
||||
// list of values. A producer of value is expected to set one of these
|
||||
// variants. Absence of any variant indicates an error.
|
||||
//
|
||||
// The JSON representation for `Value` is JSON value.
|
||||
message Value {
|
||||
// The kind of value.
|
||||
oneof kind {
|
||||
// Represents a null value.
|
||||
NullValue null_value = 1;
|
||||
// Represents a double value.
|
||||
double number_value = 2;
|
||||
// Represents a string value.
|
||||
string string_value = 3;
|
||||
// Represents a boolean value.
|
||||
bool bool_value = 4;
|
||||
// Represents a structured value.
|
||||
Struct struct_value = 5;
|
||||
// Represents a repeated `Value`.
|
||||
ListValue list_value = 6;
|
||||
}
|
||||
}
|
||||
|
||||
// `NullValue` is a singleton enumeration to represent the null value for the
|
||||
// `Value` type union.
|
||||
//
|
||||
// The JSON representation for `NullValue` is JSON `null`.
|
||||
enum NullValue {
|
||||
// Null value.
|
||||
NULL_VALUE = 0;
|
||||
}
|
||||
|
||||
// `ListValue` is a wrapper around a repeated field of values.
|
||||
//
|
||||
// The JSON representation for `ListValue` is JSON array.
|
||||
message ListValue {
|
||||
// Repeated field of dynamically typed values.
|
||||
repeated Value values = 1;
|
||||
}
|
||||
|
|
@ -0,0 +1,147 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option cc_enable_arenas = true;
|
||||
option go_package = "google.golang.org/protobuf/types/known/timestamppb";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "TimestampProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
|
||||
// A Timestamp represents a point in time independent of any time zone or local
|
||||
// calendar, encoded as a count of seconds and fractions of seconds at
|
||||
// nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
||||
// January 1, 1970, in the proleptic Gregorian calendar which extends the
|
||||
// Gregorian calendar backwards to year one.
|
||||
//
|
||||
// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
||||
// second table is needed for interpretation, using a [24-hour linear
|
||||
// smear](https://developers.google.com/time/smear).
|
||||
//
|
||||
// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
||||
// restricting to that range, we ensure that we can convert to and from [RFC
|
||||
// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
||||
//
|
||||
// # Examples
|
||||
//
|
||||
// Example 1: Compute Timestamp from POSIX `time()`.
|
||||
//
|
||||
// Timestamp timestamp;
|
||||
// timestamp.set_seconds(time(NULL));
|
||||
// timestamp.set_nanos(0);
|
||||
//
|
||||
// Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
||||
//
|
||||
// struct timeval tv;
|
||||
// gettimeofday(&tv, NULL);
|
||||
//
|
||||
// Timestamp timestamp;
|
||||
// timestamp.set_seconds(tv.tv_sec);
|
||||
// timestamp.set_nanos(tv.tv_usec * 1000);
|
||||
//
|
||||
// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
||||
//
|
||||
// FILETIME ft;
|
||||
// GetSystemTimeAsFileTime(&ft);
|
||||
// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
||||
//
|
||||
// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
||||
// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
||||
// Timestamp timestamp;
|
||||
// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
||||
// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
||||
//
|
||||
// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
||||
//
|
||||
// long millis = System.currentTimeMillis();
|
||||
//
|
||||
// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
||||
// .setNanos((int) ((millis % 1000) * 1000000)).build();
|
||||
//
|
||||
//
|
||||
// Example 5: Compute Timestamp from Java `Instant.now()`.
|
||||
//
|
||||
// Instant now = Instant.now();
|
||||
//
|
||||
// Timestamp timestamp =
|
||||
// Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
||||
// .setNanos(now.getNano()).build();
|
||||
//
|
||||
//
|
||||
// Example 6: Compute Timestamp from current time in Python.
|
||||
//
|
||||
// timestamp = Timestamp()
|
||||
// timestamp.GetCurrentTime()
|
||||
//
|
||||
// # JSON Mapping
|
||||
//
|
||||
// In JSON format, the Timestamp type is encoded as a string in the
|
||||
// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
||||
// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
|
||||
// where {year} is always expressed using four digits while {month}, {day},
|
||||
// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
||||
// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
||||
// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
||||
// is required. A proto3 JSON serializer should always use UTC (as indicated by
|
||||
// "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
||||
// able to accept both UTC and other timezones (as indicated by an offset).
|
||||
//
|
||||
// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
||||
// 01:30 UTC on January 15, 2017.
|
||||
//
|
||||
// In JavaScript, one can convert a Date object to this format using the
|
||||
// standard
|
||||
// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
||||
// method. In Python, a standard `datetime.datetime` object can be converted
|
||||
// to this format using
|
||||
// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
||||
// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
||||
// the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
||||
// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
||||
// ) to obtain a formatter capable of generating timestamps in this format.
|
||||
//
|
||||
//
|
||||
message Timestamp {
|
||||
// Represents seconds of UTC time since Unix epoch
|
||||
// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
||||
// 9999-12-31T23:59:59Z inclusive.
|
||||
int64 seconds = 1;
|
||||
|
||||
// Non-negative fractions of a second at nanosecond resolution. Negative
|
||||
// second values with fractions must still have non-negative nanos values
|
||||
// that count forward in time. Must be from 0 to 999,999,999
|
||||
// inclusive.
|
||||
int32 nanos = 2;
|
||||
}
|
||||
|
|
@ -0,0 +1,187 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
import "google/protobuf/any.proto";
|
||||
import "google/protobuf/source_context.proto";
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option cc_enable_arenas = true;
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "TypeProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
option go_package = "google.golang.org/protobuf/types/known/typepb";
|
||||
|
||||
// A protocol buffer message type.
|
||||
message Type {
|
||||
// The fully qualified message name.
|
||||
string name = 1;
|
||||
// The list of fields.
|
||||
repeated Field fields = 2;
|
||||
// The list of types appearing in `oneof` definitions in this type.
|
||||
repeated string oneofs = 3;
|
||||
// The protocol buffer options.
|
||||
repeated Option options = 4;
|
||||
// The source context.
|
||||
SourceContext source_context = 5;
|
||||
// The source syntax.
|
||||
Syntax syntax = 6;
|
||||
}
|
||||
|
||||
// A single field of a message type.
|
||||
message Field {
|
||||
// Basic field types.
|
||||
enum Kind {
|
||||
// Field type unknown.
|
||||
TYPE_UNKNOWN = 0;
|
||||
// Field type double.
|
||||
TYPE_DOUBLE = 1;
|
||||
// Field type float.
|
||||
TYPE_FLOAT = 2;
|
||||
// Field type int64.
|
||||
TYPE_INT64 = 3;
|
||||
// Field type uint64.
|
||||
TYPE_UINT64 = 4;
|
||||
// Field type int32.
|
||||
TYPE_INT32 = 5;
|
||||
// Field type fixed64.
|
||||
TYPE_FIXED64 = 6;
|
||||
// Field type fixed32.
|
||||
TYPE_FIXED32 = 7;
|
||||
// Field type bool.
|
||||
TYPE_BOOL = 8;
|
||||
// Field type string.
|
||||
TYPE_STRING = 9;
|
||||
// Field type group. Proto2 syntax only, and deprecated.
|
||||
TYPE_GROUP = 10;
|
||||
// Field type message.
|
||||
TYPE_MESSAGE = 11;
|
||||
// Field type bytes.
|
||||
TYPE_BYTES = 12;
|
||||
// Field type uint32.
|
||||
TYPE_UINT32 = 13;
|
||||
// Field type enum.
|
||||
TYPE_ENUM = 14;
|
||||
// Field type sfixed32.
|
||||
TYPE_SFIXED32 = 15;
|
||||
// Field type sfixed64.
|
||||
TYPE_SFIXED64 = 16;
|
||||
// Field type sint32.
|
||||
TYPE_SINT32 = 17;
|
||||
// Field type sint64.
|
||||
TYPE_SINT64 = 18;
|
||||
}
|
||||
|
||||
// Whether a field is optional, required, or repeated.
|
||||
enum Cardinality {
|
||||
// For fields with unknown cardinality.
|
||||
CARDINALITY_UNKNOWN = 0;
|
||||
// For optional fields.
|
||||
CARDINALITY_OPTIONAL = 1;
|
||||
// For required fields. Proto2 syntax only.
|
||||
CARDINALITY_REQUIRED = 2;
|
||||
// For repeated fields.
|
||||
CARDINALITY_REPEATED = 3;
|
||||
}
|
||||
|
||||
// The field type.
|
||||
Kind kind = 1;
|
||||
// The field cardinality.
|
||||
Cardinality cardinality = 2;
|
||||
// The field number.
|
||||
int32 number = 3;
|
||||
// The field name.
|
||||
string name = 4;
|
||||
// The field type URL, without the scheme, for message or enumeration
|
||||
// types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
|
||||
string type_url = 6;
|
||||
// The index of the field type in `Type.oneofs`, for message or enumeration
|
||||
// types. The first type has index 1; zero means the type is not in the list.
|
||||
int32 oneof_index = 7;
|
||||
// Whether to use alternative packed wire representation.
|
||||
bool packed = 8;
|
||||
// The protocol buffer options.
|
||||
repeated Option options = 9;
|
||||
// The field JSON name.
|
||||
string json_name = 10;
|
||||
// The string value of the default value of this field. Proto2 syntax only.
|
||||
string default_value = 11;
|
||||
}
|
||||
|
||||
// Enum type definition.
|
||||
message Enum {
|
||||
// Enum type name.
|
||||
string name = 1;
|
||||
// Enum value definitions.
|
||||
repeated EnumValue enumvalue = 2;
|
||||
// Protocol buffer options.
|
||||
repeated Option options = 3;
|
||||
// The source context.
|
||||
SourceContext source_context = 4;
|
||||
// The source syntax.
|
||||
Syntax syntax = 5;
|
||||
}
|
||||
|
||||
// Enum value definition.
|
||||
message EnumValue {
|
||||
// Enum value name.
|
||||
string name = 1;
|
||||
// Enum value number.
|
||||
int32 number = 2;
|
||||
// Protocol buffer options.
|
||||
repeated Option options = 3;
|
||||
}
|
||||
|
||||
// A protocol buffer option, which can be attached to a message, field,
|
||||
// enumeration, etc.
|
||||
message Option {
|
||||
// The option's name. For protobuf built-in options (options defined in
|
||||
// descriptor.proto), this is the short name. For example, `"map_entry"`.
|
||||
// For custom options, it should be the fully-qualified name. For example,
|
||||
// `"google.api.http"`.
|
||||
string name = 1;
|
||||
// The option's value packed in an Any message. If the value is a primitive,
|
||||
// the corresponding wrapper type defined in google/protobuf/wrappers.proto
|
||||
// should be used. If the value is an enum, it should be stored as an int32
|
||||
// value using the google.protobuf.Int32Value type.
|
||||
Any value = 2;
|
||||
}
|
||||
|
||||
// The syntax in which a protocol buffer element is defined.
|
||||
enum Syntax {
|
||||
// Syntax `proto2`.
|
||||
SYNTAX_PROTO2 = 0;
|
||||
// Syntax `proto3`.
|
||||
SYNTAX_PROTO3 = 1;
|
||||
}
|
||||
|
|
@ -0,0 +1,123 @@
|
|||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
// https://developers.google.com/protocol-buffers/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
// Wrappers for primitive (non-message) types. These types are useful
|
||||
// for embedding primitives in the `google.protobuf.Any` type and for places
|
||||
// where we need to distinguish between the absence of a primitive
|
||||
// typed field and its default value.
|
||||
//
|
||||
// These wrappers have no meaningful use within repeated fields as they lack
|
||||
// the ability to detect presence on individual elements.
|
||||
// These wrappers have no meaningful use within a map or a oneof since
|
||||
// individual entries of a map or fields of a oneof can already detect presence.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.protobuf;
|
||||
|
||||
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
||||
option cc_enable_arenas = true;
|
||||
option go_package = "google.golang.org/protobuf/types/known/wrapperspb";
|
||||
option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "WrappersProto";
|
||||
option java_multiple_files = true;
|
||||
option objc_class_prefix = "GPB";
|
||||
|
||||
// Wrapper message for `double`.
|
||||
//
|
||||
// The JSON representation for `DoubleValue` is JSON number.
|
||||
message DoubleValue {
|
||||
// The double value.
|
||||
double value = 1;
|
||||
}
|
||||
|
||||
// Wrapper message for `float`.
|
||||
//
|
||||
// The JSON representation for `FloatValue` is JSON number.
|
||||
message FloatValue {
|
||||
// The float value.
|
||||
float value = 1;
|
||||
}
|
||||
|
||||
// Wrapper message for `int64`.
|
||||
//
|
||||
// The JSON representation for `Int64Value` is JSON string.
|
||||
message Int64Value {
|
||||
// The int64 value.
|
||||
int64 value = 1;
|
||||
}
|
||||
|
||||
// Wrapper message for `uint64`.
|
||||
//
|
||||
// The JSON representation for `UInt64Value` is JSON string.
|
||||
message UInt64Value {
|
||||
// The uint64 value.
|
||||
uint64 value = 1;
|
||||
}
|
||||
|
||||
// Wrapper message for `int32`.
|
||||
//
|
||||
// The JSON representation for `Int32Value` is JSON number.
|
||||
message Int32Value {
|
||||
// The int32 value.
|
||||
int32 value = 1;
|
||||
}
|
||||
|
||||
// Wrapper message for `uint32`.
|
||||
//
|
||||
// The JSON representation for `UInt32Value` is JSON number.
|
||||
message UInt32Value {
|
||||
// The uint32 value.
|
||||
uint32 value = 1;
|
||||
}
|
||||
|
||||
// Wrapper message for `bool`.
|
||||
//
|
||||
// The JSON representation for `BoolValue` is JSON `true` and `false`.
|
||||
message BoolValue {
|
||||
// The bool value.
|
||||
bool value = 1;
|
||||
}
|
||||
|
||||
// Wrapper message for `string`.
|
||||
//
|
||||
// The JSON representation for `StringValue` is JSON string.
|
||||
message StringValue {
|
||||
// The string value.
|
||||
string value = 1;
|
||||
}
|
||||
|
||||
// Wrapper message for `bytes`.
|
||||
//
|
||||
// The JSON representation for `BytesValue` is JSON string.
|
||||
message BytesValue {
|
||||
// The bytes value.
|
||||
bytes value = 1;
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
Protocol Buffers - Google's data interchange format
|
||||
Copyright 2008 Google Inc.
|
||||
https://developers.google.com/protocol-buffers/
|
||||
|
||||
This package contains a precompiled binary version of the protocol buffer
|
||||
compiler (protoc). This binary is intended for users who want to use Protocol
|
||||
Buffers in languages other than C++ but do not want to compile protoc
|
||||
themselves. To install, simply place this binary somewhere in your PATH.
|
||||
|
||||
If you intend to use the included well known types then don't forget to
|
||||
copy the contents of the 'include' directory somewhere as well, for example
|
||||
into '/usr/local/include/'.
|
||||
|
||||
Please refer to our official github site for more installation instructions:
|
||||
https://github.com/protocolbuffers/protobuf
|
||||
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,21 @@
|
|||
set GODEBUG=gctrace=1
|
||||
cd dbproxy
|
||||
start dbproxy.exe
|
||||
|
||||
cd ../mgrsrv
|
||||
start mgrsrv.exe
|
||||
|
||||
cd ../gatesrv
|
||||
start gatesrv.exe
|
||||
|
||||
cd ../worldsrv
|
||||
start worldsrv.exe
|
||||
|
||||
cd ../gamesrv
|
||||
start gamesrv.exe
|
||||
|
||||
cd ../ranksrv
|
||||
start ranksrv.exe
|
||||
|
||||
cd ../robot
|
||||
start robot.exe
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
@echo off
|
||||
|
||||
echo Build %1 task!
|
||||
|
||||
cd %1
|
||||
go fmt
|
||||
go vet
|
||||
go build -v
|
||||
echo errorlevel:%errorlevel%
|
||||
if "%errorlevel%"=="0" exit
|
||||
if not "%errorlevel%"=="0" echo %1 build failed!
|
||||
pause
|
||||
exit
|
||||
33
build.bat
33
build.bat
|
|
@ -1,30 +1,5 @@
|
|||
go env -w GO111MODULE=off
|
||||
@echo "go fmt common..."
|
||||
cd common
|
||||
go fmt
|
||||
@echo off
|
||||
|
||||
@echo "go fmt api3th..."
|
||||
cd ../api3th
|
||||
go fmt
|
||||
|
||||
@echo "go fmt model..."
|
||||
cd ../model
|
||||
go fmt
|
||||
|
||||
@echo "go fmt webapi..."
|
||||
cd ../webapi
|
||||
go fmt
|
||||
|
||||
@echo "go fmt lib complete!"
|
||||
|
||||
cd ..
|
||||
start build-sub.bat dbproxy
|
||||
start build-sub.bat mgrsrv
|
||||
start build-sub.bat gatesrv
|
||||
start build-sub.bat worldsrv
|
||||
start build-sub.bat gamesrv
|
||||
start build-sub.bat robot
|
||||
start build-sub.bat ranksrv
|
||||
|
||||
@echo "Wait all build task complete!"
|
||||
pause
|
||||
for /f %%i in (programs.txt) do (
|
||||
start "%%i" cmd /c "build_sub.bat %%i"
|
||||
)
|
||||
|
|
@ -2,9 +2,4 @@ set CGO_ENABLED=0
|
|||
set GOOS=linux
|
||||
set GOARCH=amd64
|
||||
|
||||
go env -w GO111MODULE=off
|
||||
|
||||
build.bat
|
||||
|
||||
@echo "complete"
|
||||
pause
|
||||
call build.bat
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
set CGO_ENABLED=0
|
||||
set GOOS=darwin
|
||||
set GOARCH=amd64
|
||||
|
||||
go env -w GO111MODULE=off
|
||||
|
||||
build.bat
|
||||
|
||||
@echo "complete"
|
||||
pause
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
@echo off
|
||||
|
||||
cd %1
|
||||
go fmt
|
||||
go vet
|
||||
go build -v
|
||||
|
||||
if %errorlevel% neq 0 (
|
||||
echo Build failed %1.
|
||||
pause
|
||||
)
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
@echo off
|
||||
|
||||
for /f "tokens=*" %%a in (programs.txt) do (
|
||||
if exist "%%a\*.log" del /q "%%a\*.log"
|
||||
if exist "%%a\*.log.*" del /q "%%a\*.log.*"
|
||||
|
||||
echo "clean logs: %%a"
|
||||
)
|
||||
|
||||
echo "clean logs complete!"
|
||||
14
close.bat
14
close.bat
|
|
@ -1,9 +1,7 @@
|
|||
TASKKILL /F /IM dbproxy.exe
|
||||
TASKKILL /F /IM mgrsrv.exe
|
||||
TASKKILL /F /IM gatesrv.exe
|
||||
TASKKILL /F /IM worldsrv.exe
|
||||
TASKKILL /F /IM gamesrv.exe
|
||||
TASKKILL /F /IM robot.exe
|
||||
TASKKILL /F /IM ranksrv.exe
|
||||
@echo off
|
||||
|
||||
clrlogs.bat
|
||||
for /f %%i in (programs.txt) do (
|
||||
taskkill /F /IM %%i.exe
|
||||
)
|
||||
|
||||
echo "close complete!"
|
||||
14
clrlogs.bat
14
clrlogs.bat
|
|
@ -1,14 +0,0 @@
|
|||
del /F/S dbproxy\*.log
|
||||
del /F/S dbproxy\*.log.*
|
||||
del /F/S mgrsrv\*.log
|
||||
del /F/S mgrsrv\*.log.*
|
||||
del /F/S gatesrv\*.log
|
||||
del /F/S gatesrv\*.log.*
|
||||
del /F/S worldsrv\*.log
|
||||
del /F/S worldsrv\*.log.*
|
||||
del /F/S gamesrv\*.log
|
||||
del /F/S gamesrv\*.log.*
|
||||
del /F/S robot\*.log
|
||||
del /F/S robot\*.log.*
|
||||
del /F/S ranksrv\*.log
|
||||
del /F/S ranksrv\*.log.*
|
||||
|
|
@ -1,54 +0,0 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"mongo.games.com/goserver/core/logger"
|
||||
)
|
||||
|
||||
const (
|
||||
A_USER_BLACK = 1 //增加黑名单
|
||||
)
|
||||
|
||||
type Action struct {
|
||||
ActionID int //执行id
|
||||
ActionParamInt64 []int //整形参数
|
||||
ActionParamFloat []float64 //浮点参数
|
||||
ActionParamString []string //字符串参数
|
||||
}
|
||||
|
||||
var ActionMgrSington = &ActionMgr{
|
||||
pool: make(map[int]ActionBase),
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
}
|
||||
|
||||
type ActionMgr struct {
|
||||
pool map[int]ActionBase
|
||||
}
|
||||
|
||||
func (this *ActionMgr) ActionGroup(need interface{}, action []*Action) bool {
|
||||
for i := 0; i < len(action); i++ {
|
||||
this.action(need, action[i])
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
func (this *ActionMgr) action(need interface{}, action *Action) bool {
|
||||
a, ok := this.pool[action.ActionID]
|
||||
if !ok {
|
||||
logger.Logger.Warnf("no this action %v", action.ActionID)
|
||||
return false
|
||||
}
|
||||
|
||||
return a.Action(need, action)
|
||||
}
|
||||
|
||||
func (this *ActionMgr) Register(cid int, c ActionBase) {
|
||||
this.pool[cid] = c
|
||||
}
|
||||
|
||||
type ActionBase interface {
|
||||
Action(need interface{}, action *Action) bool
|
||||
}
|
||||
|
|
@ -1,54 +1,55 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"mongo.games.com/game/protocol/server"
|
||||
"mongo.games.com/goserver/core/logger"
|
||||
"mongo.games.com/goserver/core/module"
|
||||
"mongo.games.com/goserver/core/mongo"
|
||||
"mongo.games.com/goserver/core/netlib"
|
||||
|
||||
"mongo.games.com/game/protocol/server"
|
||||
)
|
||||
|
||||
// GameSessState 服务状态
|
||||
type GameSessState int
|
||||
|
||||
const (
|
||||
GAME_SESS_STATE_OFF GameSessState = iota //关闭状态
|
||||
GAME_SESS_STATE_ON //开启状态
|
||||
GameSessStateOff GameSessState = iota //关闭状态
|
||||
GameSessStateOn //开启状态
|
||||
)
|
||||
|
||||
var ServerCtrlCallback func(int32)
|
||||
var SrvIsMaintaining = true
|
||||
|
||||
func RegisteServerCtrlCallback(cb func(int32)) {
|
||||
var ServerCtrlCallback func(msg *server.ServerCtrl)
|
||||
|
||||
func RegisterServerCtrlCallback(cb func(msg *server.ServerCtrl)) {
|
||||
ServerCtrlCallback = cb
|
||||
}
|
||||
|
||||
type ServerCtrlPacketFactory struct {
|
||||
func init() {
|
||||
netlib.Register(int(server.SSPacketID_PACKET_MS_SRVCTRL), &server.ServerCtrl{}, ServerCtrlHandler)
|
||||
}
|
||||
|
||||
type ServerCtrlHandler struct {
|
||||
// ServerCtrlHandler 服务器控制,通用事件
|
||||
func ServerCtrlHandler(s *netlib.Session, packetid int, data interface{}) error {
|
||||
logger.Logger.Infof("ServerCtrlHandler %v", data)
|
||||
msg, ok := data.(*server.ServerCtrl)
|
||||
if !ok {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (this *ServerCtrlPacketFactory) CreatePacket() interface{} {
|
||||
pack := &server.ServerCtrl{}
|
||||
return pack
|
||||
}
|
||||
|
||||
func (this *ServerCtrlHandler) Process(s *netlib.Session, packetid int, data interface{}) error {
|
||||
|
||||
if sc, ok := data.(*server.ServerCtrl); ok {
|
||||
logger.Logger.Trace("ServerCtrlHandler.Process== ", *sc)
|
||||
switch sc.GetCtrlCode() {
|
||||
switch msg.GetCtrlCode() {
|
||||
case SrvCtrlCloseCode:
|
||||
module.Stop()
|
||||
|
||||
case SrvCtrlResetMgoSession:
|
||||
mongo.ResetAllSession()
|
||||
|
||||
default:
|
||||
logger.Logger.Errorf("unknow server ctrl %v", msg)
|
||||
}
|
||||
|
||||
//回调
|
||||
// 服务自己处理的特殊事件
|
||||
if ServerCtrlCallback != nil {
|
||||
ServerCtrlCallback(sc.GetCtrlCode())
|
||||
}
|
||||
ServerCtrlCallback(msg)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
netlib.RegisterHandler(int(server.SSPacketID_PACKET_MS_SRVCTRL), &ServerCtrlHandler{})
|
||||
netlib.RegisterFactory(int(server.SSPacketID_PACKET_MS_SRVCTRL), &ServerCtrlPacketFactory{})
|
||||
}
|
||||
|
|
|
|||
172
common/aes.go
172
common/aes.go
|
|
@ -1,172 +0,0 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"crypto/aes"
|
||||
"crypto/cipher"
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"mongo.games.com/goserver/core/logger"
|
||||
"regexp"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
var key = []byte("kjh-vgjhhionoommmkokmokoo$%JH")
|
||||
|
||||
// 加密
|
||||
func EnCrypt(orig []byte) (str string) {
|
||||
defer func() {
|
||||
err := recover()
|
||||
if err != nil {
|
||||
logger.Logger.Errorf("EnCrypt %v Error %v", string(orig), err)
|
||||
str = string(orig)
|
||||
}
|
||||
}()
|
||||
//将秘钥中的每个字节累加,通过sum实现orig的加密工作
|
||||
sum := 0
|
||||
for i := 0; i < len(key); i++ {
|
||||
sum += int(key[0])
|
||||
}
|
||||
|
||||
//给明文补码
|
||||
var pkcs_code = PKCS5Padding(orig, 8)
|
||||
|
||||
//通过秘钥,对补码后的明文进行加密
|
||||
for j := 0; j < len(pkcs_code); j++ {
|
||||
pkcs_code[j] += byte(sum)
|
||||
}
|
||||
//base64.URLEncoding.EncodeToString()
|
||||
return base64.URLEncoding.EncodeToString(pkcs_code)
|
||||
}
|
||||
|
||||
// 补码
|
||||
func PKCS5Padding(orig []byte, size int) []byte {
|
||||
//计算明文的长度
|
||||
length := len(orig)
|
||||
padding := size - length%size
|
||||
//向byte类型的数组中重复添加padding
|
||||
repeats := bytes.Repeat([]byte{byte(padding)}, padding)
|
||||
return append(orig, repeats...)
|
||||
}
|
||||
|
||||
// 解密
|
||||
func DeCrypt(text string) (str string) {
|
||||
defer func() {
|
||||
err := recover()
|
||||
if err != nil {
|
||||
logger.Logger.Errorf("DeCrypt %v Error %v", text, err)
|
||||
str = text
|
||||
}
|
||||
}()
|
||||
//orig, err := base64.StdEncoding.DecodeString(text)
|
||||
orig, err := base64.URLEncoding.DecodeString(text)
|
||||
if err != nil {
|
||||
return "密文类型错误"
|
||||
}
|
||||
sum := 0
|
||||
for i := 0; i < len(key); i++ {
|
||||
sum += int(key[0])
|
||||
}
|
||||
|
||||
//解密
|
||||
for j := 0; j < len(orig); j++ {
|
||||
orig[j] -= byte(sum)
|
||||
}
|
||||
|
||||
//去码
|
||||
var pkcs_unCode = PKCS5UnPadding(orig)
|
||||
return string(pkcs_unCode)
|
||||
}
|
||||
|
||||
// 去码
|
||||
func PKCS5UnPadding(orig []byte) []byte {
|
||||
//获取最后一位补码的数字
|
||||
var tail = int(orig[len(orig)-1])
|
||||
return orig[:(len(orig) - tail)]
|
||||
}
|
||||
|
||||
var aesRule, _ = regexp.Compile(`^[0-9]+$`)
|
||||
|
||||
const (
|
||||
aeskey = "DoNotEditThisKeyDoNotEditThisKey" // 加密的密钥,绝不可以更改
|
||||
)
|
||||
|
||||
// 下面的字符串,也绝不可以更改
|
||||
var defaultLetters = []rune("idjGfiRogsFnkdKgokdfgdow07u6978uxcvvLiPiDfjafOd2fuFJYYGBJuykbvfk")
|
||||
|
||||
func AesEncrypt(origDataStr string) (str string) {
|
||||
defer func() {
|
||||
err := recover()
|
||||
if err != nil {
|
||||
logger.Logger.Errorf("AesEncrypt %v Error %v", origDataStr, err)
|
||||
str = origDataStr
|
||||
}
|
||||
}()
|
||||
strlen := len(origDataStr)
|
||||
b := aesRule.MatchString(origDataStr)
|
||||
//不全是数字,或长度为零,不加密
|
||||
if !b || strlen == 0 {
|
||||
return origDataStr
|
||||
}
|
||||
phonenum, errint := strconv.Atoi(origDataStr)
|
||||
if errint != nil {
|
||||
return origDataStr
|
||||
}
|
||||
|
||||
text := []byte(origDataStr)
|
||||
//指定加密、解密算法为AES,返回一个AES的Block接口对象
|
||||
block, err := aes.NewCipher([]byte(aeskey))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
//指定计数器,长度必须等于block的块尺寸
|
||||
iv := string(defaultLetters[phonenum%(len(defaultLetters))])
|
||||
count := []byte(fmt.Sprintf("%016v", iv))
|
||||
//指定分组模式
|
||||
blockMode := cipher.NewCTR(block, count)
|
||||
//执行加密、解密操作
|
||||
message := make([]byte, len(text))
|
||||
blockMode.XORKeyStream(message, text)
|
||||
//返回明文或密文
|
||||
return fmt.Sprintf("%v%v", iv, base64.StdEncoding.EncodeToString(message))
|
||||
//return base64.StdEncoding.EncodeToString(message)
|
||||
}
|
||||
|
||||
func AesDecrypt(cryptedstr string) (str string) {
|
||||
defer func() {
|
||||
err := recover()
|
||||
if err != nil {
|
||||
logger.Logger.Errorf("AesDecrypt %v Error %v", cryptedstr, err)
|
||||
str = cryptedstr
|
||||
}
|
||||
}()
|
||||
strlen := len(cryptedstr)
|
||||
b := aesRule.MatchString(cryptedstr)
|
||||
//全是数字,或长度为零,不解密
|
||||
if b || strlen == 0 {
|
||||
return cryptedstr
|
||||
}
|
||||
|
||||
iv := cryptedstr[:1]
|
||||
str = cryptedstr[1:]
|
||||
text, err := base64.StdEncoding.DecodeString(str)
|
||||
if err != nil {
|
||||
logger.Logger.Errorf("AesDecrypt %v Err:%v", cryptedstr, err)
|
||||
return cryptedstr
|
||||
}
|
||||
|
||||
//指定加密、解密算法为AES,返回一个AES的Block接口对象
|
||||
block, err := aes.NewCipher([]byte(aeskey))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
//指定计数器,长度必须等于block的块尺寸
|
||||
count := []byte(fmt.Sprintf("%016v", iv))
|
||||
//指定分组模式
|
||||
blockMode := cipher.NewCTR(block, count)
|
||||
//执行加密、解密操作
|
||||
message := make([]byte, len(text))
|
||||
blockMode.XORKeyStream(message, text)
|
||||
//返回明文或密文
|
||||
return string(message)
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package main
|
||||
package common
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
|
@ -6,21 +6,29 @@ import (
|
|||
"mongo.games.com/goserver/core/module"
|
||||
)
|
||||
|
||||
var ClockMgrSington = &ClockMgr{
|
||||
/*
|
||||
时钟
|
||||
*/
|
||||
|
||||
func init() {
|
||||
module.RegisteModule(ClockMgrSingleton, time.Millisecond*500, 0)
|
||||
}
|
||||
|
||||
var ClockMgrSingleton = &ClockMgr{
|
||||
LastHour: -1,
|
||||
LastDay: -1,
|
||||
Notifying: false,
|
||||
}
|
||||
|
||||
const (
|
||||
CLOCK_EVENT_SECOND int = iota
|
||||
CLOCK_EVENT_MINUTE
|
||||
CLOCK_EVENT_HOUR
|
||||
CLOCK_EVENT_DAY
|
||||
CLOCK_EVENT_WEEK
|
||||
CLOCK_EVENT_MONTH
|
||||
CLOCK_EVENT_SHUTDOWN
|
||||
CLOCK_EVENT_MAX
|
||||
ClockEventSecond int = iota
|
||||
ClockEventMinute
|
||||
ClockEventHour
|
||||
ClockEventDay
|
||||
ClockEventWeek
|
||||
ClockEventMonth
|
||||
ClockEventShutdown
|
||||
ClockEventMax
|
||||
)
|
||||
|
||||
type ClockSinker interface {
|
||||
|
|
@ -37,7 +45,7 @@ type ClockSinker interface {
|
|||
type BaseClockSinker struct {
|
||||
}
|
||||
|
||||
func (s *BaseClockSinker) InterestClockEvent() int { return (1 << CLOCK_EVENT_MAX) - 1 }
|
||||
func (s *BaseClockSinker) InterestClockEvent() int { return (1 << ClockEventMax) - 1 }
|
||||
func (s *BaseClockSinker) OnSecTimer() {}
|
||||
func (s *BaseClockSinker) OnMiniTimer() {}
|
||||
func (s *BaseClockSinker) OnHourTimer() {}
|
||||
|
|
@ -47,7 +55,7 @@ func (s *BaseClockSinker) OnMonthTimer() {}
|
|||
func (s *BaseClockSinker) OnShutdown() {}
|
||||
|
||||
type ClockMgr struct {
|
||||
sinkers [CLOCK_EVENT_MAX][]ClockSinker
|
||||
sinkers [ClockEventMax][]ClockSinker
|
||||
LastTickTime time.Time
|
||||
LastMonth time.Month
|
||||
LastWeek int
|
||||
|
|
@ -59,9 +67,9 @@ type ClockMgr struct {
|
|||
LastFiveMin int
|
||||
}
|
||||
|
||||
func (this *ClockMgr) RegisteSinker(sinker ClockSinker) {
|
||||
func (this *ClockMgr) RegisterSinker(sinker ClockSinker) {
|
||||
interest := sinker.InterestClockEvent()
|
||||
for i := 0; i < CLOCK_EVENT_MAX; i++ {
|
||||
for i := 0; i < ClockEventMax; i++ {
|
||||
if (1<<i)&interest != 0 {
|
||||
found := false
|
||||
ss := this.sinkers[i]
|
||||
|
|
@ -99,9 +107,9 @@ func (this *ClockMgr) Update() {
|
|||
this.LastSec = sec
|
||||
this.fireSecondEvent()
|
||||
|
||||
min := tNow.Minute()
|
||||
if min != this.LastMini {
|
||||
this.LastMini = min
|
||||
minute := tNow.Minute()
|
||||
if minute != this.LastMini {
|
||||
this.LastMini = minute
|
||||
this.fireMinuteEvent()
|
||||
|
||||
hour := tNow.Hour()
|
||||
|
|
@ -114,9 +122,9 @@ func (this *ClockMgr) Update() {
|
|||
this.LastDay = day
|
||||
this.fireDayEvent()
|
||||
|
||||
_, week := tNow.ISOWeek()
|
||||
if week != this.LastWeek {
|
||||
this.LastWeek = week
|
||||
week := GetWeekStartTs(tNow.Unix())
|
||||
if week != int64(this.LastWeek) {
|
||||
this.LastWeek = int(week)
|
||||
this.fireWeekEvent()
|
||||
}
|
||||
|
||||
|
|
@ -137,43 +145,43 @@ func (this *ClockMgr) Shutdown() {
|
|||
}
|
||||
|
||||
func (this *ClockMgr) fireSecondEvent() {
|
||||
for _, s := range this.sinkers[CLOCK_EVENT_SECOND] {
|
||||
for _, s := range this.sinkers[ClockEventSecond] {
|
||||
s.OnSecTimer()
|
||||
}
|
||||
}
|
||||
|
||||
func (this *ClockMgr) fireMinuteEvent() {
|
||||
for _, s := range this.sinkers[CLOCK_EVENT_MINUTE] {
|
||||
for _, s := range this.sinkers[ClockEventMinute] {
|
||||
s.OnMiniTimer()
|
||||
}
|
||||
}
|
||||
|
||||
func (this *ClockMgr) fireHourEvent() {
|
||||
for _, s := range this.sinkers[CLOCK_EVENT_HOUR] {
|
||||
for _, s := range this.sinkers[ClockEventHour] {
|
||||
s.OnHourTimer()
|
||||
}
|
||||
}
|
||||
|
||||
func (this *ClockMgr) fireDayEvent() {
|
||||
for _, s := range this.sinkers[CLOCK_EVENT_DAY] {
|
||||
for _, s := range this.sinkers[ClockEventDay] {
|
||||
s.OnDayTimer()
|
||||
}
|
||||
}
|
||||
|
||||
func (this *ClockMgr) fireWeekEvent() {
|
||||
for _, s := range this.sinkers[CLOCK_EVENT_WEEK] {
|
||||
for _, s := range this.sinkers[ClockEventWeek] {
|
||||
s.OnWeekTimer()
|
||||
}
|
||||
}
|
||||
|
||||
func (this *ClockMgr) fireMonthEvent() {
|
||||
for _, s := range this.sinkers[CLOCK_EVENT_MONTH] {
|
||||
for _, s := range this.sinkers[ClockEventMonth] {
|
||||
s.OnMonthTimer()
|
||||
}
|
||||
}
|
||||
|
||||
func (this *ClockMgr) fireShutdownEvent() {
|
||||
for _, s := range this.sinkers[CLOCK_EVENT_SHUTDOWN] {
|
||||
for _, s := range this.sinkers[ClockEventShutdown] {
|
||||
s.OnShutdown()
|
||||
}
|
||||
}
|
||||
|
|
@ -182,6 +190,92 @@ func (this *ClockMgr) GetLast() (int, int, int, int, int, int) {
|
|||
return this.LastSec, this.LastMini, this.LastHour, this.LastDay, this.LastWeek, int(this.LastMonth)
|
||||
}
|
||||
|
||||
func init() {
|
||||
module.RegisteModule(ClockMgrSington, time.Millisecond*500, 0)
|
||||
type ClockFunc struct {
|
||||
event int
|
||||
OnSecTimerFunc func()
|
||||
OnMiniTimerFunc func()
|
||||
OnHourTimerFunc func()
|
||||
OnDayTimerFunc func()
|
||||
OnWeekTimerFunc func()
|
||||
OnMonthTimerFunc func()
|
||||
OnShutdownFunc func()
|
||||
}
|
||||
|
||||
func (s *ClockFunc) InterestClockEvent() int { return s.event }
|
||||
|
||||
func (s *ClockFunc) OnSecTimer() {
|
||||
if s.OnSecTimerFunc != nil {
|
||||
s.OnSecTimerFunc()
|
||||
}
|
||||
}
|
||||
|
||||
func (s *ClockFunc) OnMiniTimer() {
|
||||
if s.OnMiniTimerFunc != nil {
|
||||
s.OnMiniTimerFunc()
|
||||
}
|
||||
}
|
||||
|
||||
func (s *ClockFunc) OnHourTimer() {
|
||||
if s.OnHourTimerFunc != nil {
|
||||
s.OnHourTimerFunc()
|
||||
}
|
||||
}
|
||||
|
||||
func (s *ClockFunc) OnDayTimer() {
|
||||
if s.OnDayTimerFunc != nil {
|
||||
s.OnDayTimerFunc()
|
||||
}
|
||||
}
|
||||
|
||||
func (s *ClockFunc) OnWeekTimer() {
|
||||
if s.OnWeekTimerFunc != nil {
|
||||
s.OnWeekTimerFunc()
|
||||
}
|
||||
}
|
||||
|
||||
func (s *ClockFunc) OnMonthTimer() {
|
||||
if s.OnMonthTimerFunc != nil {
|
||||
s.OnMonthTimerFunc()
|
||||
}
|
||||
}
|
||||
|
||||
func (s *ClockFunc) OnShutdown() {
|
||||
if s.OnShutdownFunc != nil {
|
||||
s.OnShutdownFunc()
|
||||
}
|
||||
}
|
||||
|
||||
// RegisterClockFunc 注册时钟事件
|
||||
func RegisterClockFunc(fs *ClockFunc) {
|
||||
if fs == nil {
|
||||
return
|
||||
}
|
||||
|
||||
if fs.OnSecTimerFunc != nil {
|
||||
fs.event = fs.event | 1<<ClockEventSecond
|
||||
}
|
||||
if fs.OnMiniTimerFunc != nil {
|
||||
fs.event = fs.event | 1<<ClockEventMinute
|
||||
}
|
||||
if fs.OnHourTimerFunc != nil {
|
||||
fs.event = fs.event | 1<<ClockEventHour
|
||||
}
|
||||
if fs.OnDayTimerFunc != nil {
|
||||
fs.event = fs.event | 1<<ClockEventDay
|
||||
}
|
||||
if fs.OnWeekTimerFunc != nil {
|
||||
fs.event = fs.event | 1<<ClockEventWeek
|
||||
}
|
||||
if fs.OnMonthTimerFunc != nil {
|
||||
fs.event = fs.event | 1<<ClockEventMonth
|
||||
}
|
||||
if fs.OnShutdownFunc != nil {
|
||||
fs.event = fs.event | 1<<ClockEventShutdown
|
||||
}
|
||||
|
||||
if fs.event == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
ClockMgrSingleton.RegisterSinker(fs)
|
||||
}
|
||||
|
|
@ -6,7 +6,6 @@ import (
|
|||
protocol_game "mongo.games.com/game/protocol/server"
|
||||
"mongo.games.com/goserver/core/logger"
|
||||
"mongo.games.com/goserver/core/netlib"
|
||||
"mongo.games.com/goserver/srvlib"
|
||||
"mongo.games.com/goserver/srvlib/protocol"
|
||||
)
|
||||
|
||||
|
|
@ -45,11 +44,11 @@ func createMulticastPacket(packetid int, data interface{}, sis ...*protocol.MCSe
|
|||
return pack, nil
|
||||
}
|
||||
|
||||
func SendToGate(sid int64, packetid int, rawpack interface{}, s *netlib.Session) bool {
|
||||
if s == nil || rawpack == nil || sid == 0 {
|
||||
func SendToGate(sid int64, packetId int, pack interface{}, s *netlib.Session) bool {
|
||||
if s == nil || pack == nil || sid == 0 {
|
||||
return false
|
||||
}
|
||||
pack, err := createMulticastPacket(packetid, rawpack,
|
||||
pack, err := createMulticastPacket(packetId, pack,
|
||||
&protocol.MCSessionUnion{
|
||||
Mccs: &protocol.MCClientSession{
|
||||
SId: proto.Int64(sid)}})
|
||||
|
|
@ -63,25 +62,17 @@ func SendToGate(sid int64, packetid int, rawpack interface{}, s *netlib.Session)
|
|||
return false
|
||||
}
|
||||
|
||||
func SendToActThrSrv(packetid int, rawpack interface{}) bool {
|
||||
if rawpack == nil {
|
||||
return false
|
||||
}
|
||||
|
||||
replaySess := srvlib.ServerSessionMgrSington.GetSession(GetSelfAreaId(), ActThrServerType, ActThrServerID)
|
||||
if replaySess != nil {
|
||||
return replaySess.Send(int(packetid), rawpack)
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func TransmitToServer(sid int64, packetid int, rawpack interface{}, s *netlib.Session) bool {
|
||||
if d, err := netlib.MarshalPacket(packetid, rawpack); err == nil {
|
||||
// TransmitToServer 转发消息到指定服务器
|
||||
// sid: 客户端连接标识
|
||||
// packetId: 消息id
|
||||
// pack: 消息内容
|
||||
// s: 接收消息的服务器连接
|
||||
func TransmitToServer(sid int64, packetId int, pack interface{}, s *netlib.Session) bool {
|
||||
if d, err := netlib.MarshalPacket(packetId, pack); err == nil {
|
||||
pack := &protocol_game.SSTransmit{
|
||||
PacketData: d,
|
||||
SessionId: sid,
|
||||
}
|
||||
proto.SetDefaults(pack)
|
||||
return s.Send(int(protocol_game.TransmitPacketID_PACKET_SS_PACKET_TRANSMIT), pack, true)
|
||||
} else {
|
||||
logger.Logger.Warn("TransmitToServer err:", err)
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package common
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"strings"
|
||||
|
||||
"mongo.games.com/goserver/core"
|
||||
)
|
||||
|
|
@ -53,6 +54,13 @@ func (this *CustomConfiguration) GetString(key string) string {
|
|||
return str
|
||||
}
|
||||
}
|
||||
|
||||
if v, exist := (*this)[strings.ToLower(key)]; exist {
|
||||
if str, ok := v.(string); ok {
|
||||
return str
|
||||
}
|
||||
}
|
||||
|
||||
return ""
|
||||
}
|
||||
|
||||
|
|
@ -67,6 +75,18 @@ func (this *CustomConfiguration) GetStrings(key string) (strs []string) {
|
|||
return
|
||||
}
|
||||
}
|
||||
|
||||
if v, exist := (*this)[strings.ToLower(key)]; exist {
|
||||
if vals, ok := v.([]interface{}); ok {
|
||||
for _, s := range vals {
|
||||
if str, ok := s.(string); ok {
|
||||
strs = append(strs, str)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -86,6 +106,23 @@ func (this *CustomConfiguration) GetCustomCfgs(key string) (strs []*CustomConfig
|
|||
return
|
||||
}
|
||||
}
|
||||
|
||||
if v, exist := (*this)[strings.ToLower(key)]; exist {
|
||||
if vals, ok := v.([]interface{}); ok {
|
||||
for _, s := range vals {
|
||||
if data, ok := s.(map[string]interface{}); ok {
|
||||
var pkg *CustomConfiguration
|
||||
modelBuff, _ := json.Marshal(data)
|
||||
err := json.Unmarshal(modelBuff, &pkg)
|
||||
if err == nil {
|
||||
strs = append(strs, pkg)
|
||||
}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -100,6 +137,18 @@ func (this *CustomConfiguration) GetInts(key string) (strs []int) {
|
|||
return
|
||||
}
|
||||
}
|
||||
|
||||
if v, exist := (*this)[strings.ToLower(key)]; exist {
|
||||
if vals, ok := v.([]interface{}); ok {
|
||||
for _, s := range vals {
|
||||
if str, ok := s.(float64); ok {
|
||||
strs = append(strs, int(str))
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
func (this *CustomConfiguration) GetInt(key string) int {
|
||||
|
|
@ -108,6 +157,12 @@ func (this *CustomConfiguration) GetInt(key string) int {
|
|||
return int(val)
|
||||
}
|
||||
}
|
||||
|
||||
if v, exist := (*this)[strings.ToLower(key)]; exist {
|
||||
if val, ok := v.(float64); ok {
|
||||
return int(val)
|
||||
}
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
@ -117,5 +172,10 @@ func (this *CustomConfiguration) GetBool(key string) bool {
|
|||
return val
|
||||
}
|
||||
}
|
||||
if v, exist := (*this)[strings.ToLower(key)]; exist {
|
||||
if val, ok := v.(bool); ok {
|
||||
return val
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ package common
|
|||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
// todo
|
||||
|
|
@ -66,6 +67,10 @@ const (
|
|||
GameID_Thirteen8 = 212 // 十三张(八人场)
|
||||
GameID_ThirteenFree = 213 // 十三张(自由场经典场)
|
||||
GameID_ThirteenFreeLaiZi = 214 // 十三张(自由场癞子场)
|
||||
GameId_TienLenCustom = 215 // tienlen房卡经典版
|
||||
GameId_TienLenCustom_yl = 216 // tienlen房卡娱乐版
|
||||
GameId_TienLenCustom_toend = 217 // tienlen房卡典版(打到底)
|
||||
GameId_TienLenCustom_yl_toend = 218 // tienlen房卡娱乐版(打到底)
|
||||
__GameId_Slot_Min__ = 300 //################拉霸类################
|
||||
GameId_CaiShen = 301 // 财神
|
||||
GameId_Avengers = 302 // 复仇者联盟
|
||||
|
|
@ -73,7 +78,14 @@ const (
|
|||
GameId_IceAge = 304 // 冰河世纪
|
||||
GameId_TamQuoc = 305 // 百战成神
|
||||
GameId_Fruits = 306 // 水果拉霸
|
||||
GameId_Richblessed = 307 //多福多财
|
||||
GameId_Richblessed = 307 // 多福
|
||||
GameId_FortuneTiger = 308 // FortuneTiger
|
||||
GameId_FortuneDragon = 309 // FortuneDragon
|
||||
GameId_FortuneRabbit = 310 // FortuneRabbit
|
||||
GameId_FortuneOx = 311 // FortuneOx
|
||||
GameId_FortuneMouse = 312 // FortuneMouse
|
||||
GameId_CashMania = 313 // CashMania
|
||||
GameId_GatesOfOlympus = 314 // GatesOfOlympus
|
||||
__GameId_Fishing_Min__ = 400 //################捕鱼类################
|
||||
GameId_HFishing = 401 //欢乐捕鱼
|
||||
GameId_TFishing = 402 //天天捕鱼
|
||||
|
|
@ -86,28 +98,27 @@ const (
|
|||
GameId_CaoThap = 605 //CaoThap
|
||||
GameId_AngerUncle = 606 // 愤怒大叔
|
||||
GameId_SmallRoket = 607 // 小火箭
|
||||
GameId_Clawdoll = 608 // 娃娃机
|
||||
__GameId_ThrGame_Min__ = 700 //################三方类################
|
||||
GameId_Thr_Dg = 701 //DG Game
|
||||
GameId_Thr_XHJ = 901 //DG Game
|
||||
GameId_Thr_XHJ = 901 ///DG Game
|
||||
)
|
||||
|
||||
// IsTienLen TienLen游戏
|
||||
func IsTienLen(gameId int) bool {
|
||||
return InSliceInt32(GetTienlenGameID(), int32(gameId))
|
||||
}
|
||||
|
||||
func GetTienlenGameID() []int32 {
|
||||
//todo 还要维护游戏id,好麻烦,还容易忘
|
||||
return []int32{
|
||||
GameId_TienLen, GameId_TienLen_yl,
|
||||
GameId_TienLen_toend, GameId_TienLen_yl_toend,
|
||||
GameId_TienLen_m, GameId_TienLen_m_toend,
|
||||
GameId_TienLenSelect, GameId_TienLenSelect_toend,
|
||||
GameId_TienLenSelect_yl, GameId_TienLenSelect_yl_toend,
|
||||
GameId_TienLenRank, GameId_TienLenRank_toend,
|
||||
GameId_TienLenRank_yl, GameId_TienLenRank_yl_toend,
|
||||
}
|
||||
}
|
||||
const (
|
||||
GameDifTienlen = "207" // tienlen
|
||||
GameDifThirteen = "211" // 十三张
|
||||
GameDifChess = "521" // 象棋
|
||||
GameDifFish = "401" // 捕鱼
|
||||
GameDifRocket = "607" // 小火箭
|
||||
GameDifCaiShen = "301" // 财神
|
||||
GameDifAvengers = "302" // 复仇者联盟
|
||||
GameDifEaster = "303" // 复活节岛
|
||||
GameDifIceAge = "304" // 冰河世纪
|
||||
GameDifTamQuoc = "305" // 百战成神
|
||||
GameDifFruits = "306" // 水果机
|
||||
GameDifRichblessed = "307" // 多彩多福
|
||||
GameDifClawdoll = "608" // 娃娃机
|
||||
)
|
||||
|
||||
// IsTienLenYuLe TienLen娱乐
|
||||
func IsTienLenYuLe(gameId int) bool {
|
||||
|
|
@ -117,7 +128,9 @@ func IsTienLenYuLe(gameId int) bool {
|
|||
GameId_TienLenSelect_yl,
|
||||
GameId_TienLenRank_yl,
|
||||
GameId_TienLenSelect_yl_toend,
|
||||
GameId_TienLenRank_yl_toend:
|
||||
GameId_TienLenRank_yl_toend,
|
||||
GameId_TienLenCustom_yl,
|
||||
GameId_TienLenCustom_yl_toend:
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
|
@ -132,40 +145,9 @@ func IsTienLenToEnd(gameId int) bool {
|
|||
GameId_TienLenSelect_toend,
|
||||
GameId_TienLenSelect_yl_toend,
|
||||
GameId_TienLenRank_toend,
|
||||
GameId_TienLenRank_yl_toend:
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// IsChess 象棋游戏
|
||||
func IsChess(gameId int) bool {
|
||||
switch gameId {
|
||||
case GameId_Chesstitians,
|
||||
GameId_ChesstitiansMakruk,
|
||||
GameId_ChesstitiansCambodian,
|
||||
GameId_ChesstitiansCambodianRobot:
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// IsThirteen 十三张游戏
|
||||
func IsThirteen(gameId int) bool {
|
||||
switch gameId {
|
||||
case GameID_Thirteen4,
|
||||
GameID_Thirteen8,
|
||||
GameID_ThirteenFree,
|
||||
GameID_ThirteenFreeLaiZi:
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// IsThirteen 十三张游戏
|
||||
func IsSmallRocket(gameId int) bool {
|
||||
switch gameId {
|
||||
case GameId_SmallRoket:
|
||||
GameId_TienLenRank_yl_toend,
|
||||
GameId_TienLenCustom_toend,
|
||||
GameId_TienLenCustom_yl_toend:
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
|
@ -185,9 +167,11 @@ func IsLocalGame(gameId int) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
// IsPlayerPool 需要统计在个人水池的游戏
|
||||
func IsPlayerPool(gameId int) bool {
|
||||
if IsTienLen(gameId) || IsThirteen(gameId) {
|
||||
func IsDaZhong(gameId int) bool {
|
||||
switch gameId {
|
||||
case GameId_TienLenSelect,
|
||||
GameId_TienLenSelect_yl, GameId_TienLenSelect_toend,
|
||||
GameId_TienLenSelect_yl_toend:
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
|
@ -195,47 +179,26 @@ func IsPlayerPool(gameId int) bool {
|
|||
|
||||
// 房间编号区间
|
||||
const (
|
||||
PrivateSceneStartId = 10000000
|
||||
PrivateSceneMaxId = 99999999
|
||||
PrivateSceneStartId = 100000
|
||||
PrivateSceneMaxId = 999999
|
||||
MatchSceneStartId = 100000000
|
||||
MatchSceneMaxId = 199999999
|
||||
HundredSceneStartId = 200000000
|
||||
HundredSceneMaxId = 299999999
|
||||
HallSceneStartId = 300000000
|
||||
HallSceneMaxId = 399999999
|
||||
MiniGameSceneStartId = 400000000
|
||||
MiniGameSceneMaxId = 409999999
|
||||
CoinSceneStartId = 1000000000 //区间预留大点,因为队列匹配比较耗id,假定一天100w牌局,那么这个id区间够用1000天
|
||||
CoinSceneStartId = 1000000000
|
||||
CoinSceneMaxId = 1999999999
|
||||
DgSceneId = 99
|
||||
)
|
||||
|
||||
// 房间模式
|
||||
const (
|
||||
SceneMode_Public = iota //公共房间
|
||||
SceneMode_Club //俱乐部房间
|
||||
SceneMode_Private //私人房间
|
||||
SceneMode_Match //赛事房间
|
||||
SceneMode_Thr //三方房间
|
||||
SceneModePublic = 0 // 公共房间
|
||||
SceneModePrivate = 2 // 私人房间
|
||||
SceneModeMatch = 3 // 赛事房间
|
||||
SceneModeThr = 4 // 三方房间
|
||||
SceneModePrivateMatch = 5 // 竞技馆房间
|
||||
)
|
||||
|
||||
// 场景级别
|
||||
//const (
|
||||
// SceneLvl_Test = -1 // 试玩场(不要钱)
|
||||
// SceneLvl_Experience = 0 // 体验场(花小钱)
|
||||
// SceneLvl_Primary = 1 // 初级场
|
||||
// SceneLvl_Middle = 2 // 中级场
|
||||
// SceneLvl_Senior = 3 // 高级场
|
||||
// SceneLvl_Professor = 4 // 专家场
|
||||
//)
|
||||
|
||||
// 房费选项
|
||||
//const (
|
||||
// RoomFee_Owner int32 = iota //房主
|
||||
// RoomFee_AA //AA
|
||||
// RoomFee_Max
|
||||
//)
|
||||
|
||||
const (
|
||||
Platform_Rob = "__$G_P$__"
|
||||
Platform_Sys = "0"
|
||||
|
|
@ -248,71 +211,123 @@ const (
|
|||
)
|
||||
|
||||
const (
|
||||
GainWay_NewPlayer int32 = 0 //0.新建角色
|
||||
GainWay_Pay = 1 //1.后台增加(主要是充值)
|
||||
GainWay_ByPMCmd = 2 //2.pm命令
|
||||
GainWay_MatchBreakBack = 3 //3.退赛退还
|
||||
GainWay_MatchSystemSupply = 4 //4.比赛奖励
|
||||
GainWay_Exchange = 5 //5.兑换
|
||||
GainWay_ServiceFee = 6 //6.桌费
|
||||
GainWay_CoinSceneWin = 7 //7.金豆场赢取
|
||||
GainWay_CoinSceneLost = 8 //8.金豆场输
|
||||
GainWay_CoinSceneEnter = 9 //9.进入金币场预扣
|
||||
GainWay_ShopBuy = 10 //10.商城购买或者兑换
|
||||
GainWay_CoinSceneLeave = 11 //11.金豆场回兑
|
||||
GainWay_HundredSceneWin = 12 //12.万人场赢取
|
||||
GainWay_HundredSceneLost = 13 //13.万人场输
|
||||
GainWay_MessageAttach = 14 //14.邮件
|
||||
GainWay_SafeBoxSave = 15 //15.保险箱存入
|
||||
GainWay_SafeBoxTakeOut = 16 //16.保险箱取出
|
||||
GainWay_Fishing = 17 //17.捕鱼
|
||||
GainWay_CoinSceneExchange = 18 //18.金豆场兑换
|
||||
GainWay_UpgradeAccount = 19 //19.升级账号
|
||||
GainWay_API_AddCoin = 20 //20.API操作钱包
|
||||
GainWay_GoldCome = 21 //21.财神降临
|
||||
GainWay_Transfer_System2Thrid = 22 //22.系统平台转入到第三方平台的金币
|
||||
GainWay_Transfer_Thrid2System = 23 //23.第三方平台转入到系统平台的金币
|
||||
GainWay_RebateTask = 24 //24.返利获取
|
||||
GainWay_IOSINSTALLSTABLE = 25 //25.ios安装奖励
|
||||
GainWay_VirtualChange = 26 //26.德州虚拟账变
|
||||
GainWay_CreatePrivateScene = 27 //27.创建私有房间
|
||||
GainWay_PrivateSceneReturn = 28 //28.解散私有房间返还
|
||||
GainWay_OnlineRandCoin = 29 //29.红包雨
|
||||
GainWay_Expire = 30 //30.到期清理
|
||||
GainWay_PromoterBind = 31 //31.手动绑定推广员
|
||||
GainWay_GradeShopReturn = 32 //32.积分商城撤单退还积分
|
||||
GainWay_Api_In = 33 //33.转移金币
|
||||
GainWay_Api_Out = 34 //34.转移金币
|
||||
GainWay_Shop_Buy = 35 //35.购买记录
|
||||
GainWay_MAIL_MTEM = 36 //36.邮件领取道具
|
||||
GainWay_Item_Sale = 37 //37.道具出售
|
||||
GainWay_ReliefFund = 38 //38.领取救济金
|
||||
GainWay_Shop_Revoke = 39 //39.撤单
|
||||
GainWay_ActSign = 40 //40.签到
|
||||
GainWay_NewPlayer int32 = 0 //新建角色
|
||||
GainWay_Pay = 1 //后台增加(主要是充值)
|
||||
GainWay_ByPMCmd = 2 //pm命令
|
||||
GainWay_MatchBreakBack = 3 //退赛退还
|
||||
GainWay_MatchSystemSupply = 4 //比赛奖励
|
||||
GainWay_Exchange = 5 //兑换
|
||||
GainWay_ServiceFee = 6 //桌费
|
||||
GainWay_CoinSceneWin = 7 //金豆场赢取
|
||||
GainWay_CoinSceneLost = 8 //金豆场输
|
||||
GainWay_CoinSceneEnter = 9 //进入金币场预扣
|
||||
GainWay_ShopBuy = 10 //商城购买或者兑换
|
||||
GainWay_CoinSceneLeave = 11 //金豆场回兑
|
||||
GainWay_HundredSceneWin = 12 //万人场赢取
|
||||
GainWay_HundredSceneLost = 13 //万人场输
|
||||
GainWay_MessageAttach = 14 //邮件
|
||||
GainWay_SafeBoxSave = 15 //保险箱存入
|
||||
GainWay_SafeBoxTakeOut = 16 //保险箱取出
|
||||
GainWay_Fishing = 17 //捕鱼
|
||||
GainWay_CoinSceneExchange = 18 //金豆场兑换
|
||||
GainWay_UpgradeAccount = 19 //升级账号
|
||||
GainWay_API_AddCoin = 20 //API操作钱包
|
||||
GainWay_GoldCome = 21 //财神降临
|
||||
GainWay_Transfer_System2Thrid = 22 //系统平台转入到第三方平台的金币
|
||||
GainWay_Transfer_Thrid2System = 23 //第三方平台转入到系统平台的金币
|
||||
GainWay_RebateTask = 24 //返利获取
|
||||
GainWay_IOSINSTALLSTABLE = 25 //ios安装奖励
|
||||
GainWay_VirtualChange = 26 //德州虚拟账变
|
||||
GainWay_CreatePrivateScene = 27 //创建私有房间
|
||||
GainWay_PrivateSceneReturn = 28 //解散私有房间返还
|
||||
GainWay_OnlineRandCoin = 29 //红包雨
|
||||
GainWay_Expire = 30 //到期清理
|
||||
GainWay_PromoterBind = 31 //手动绑定推广员
|
||||
GainWay_GradeShopReturn = 32 //积分商城撤单退还积分
|
||||
GainWay_Api_In = 33 //转移金币
|
||||
GainWay_Api_Out = 34 //转移金币
|
||||
GainWay_Shop_Buy = 35 //购买记录
|
||||
GainWay_MAIL_MTEM = 36 //邮件领取道具
|
||||
GainWay_Item_Sale = 37 //道具出售
|
||||
GainWay_ReliefFund = 38 //领取救济金
|
||||
GainWay_Shop_Revoke = 39 //撤单
|
||||
GainWay_ActSign = 40 //
|
||||
GainWay_MatchSignup = 41 //比赛报名费用
|
||||
GainWay_MatchSeason = 42 //比赛赛季奖励
|
||||
GainWay_ActSignNew = 43 //43.新签到
|
||||
GainWay_ActTurnplate = 44 //44.轮盘
|
||||
GainWay_ActBlindBox = 45 //45.盲盒
|
||||
GainWay_ActFirstPay = 46 //46.首充
|
||||
GainWay_VIPGift = 47 //47.vip礼包
|
||||
GainWay_ActContinuousPay = 48 //48.连续充值
|
||||
GainWay_ActJybAward = 49 //49.礼包码兑换
|
||||
GainWay_LeaveDeduct = 50 //50.离开扣分
|
||||
GainWay_LeaveCombat = 51 //51.离开补偿
|
||||
GainWay_RankMatch = 52 //52.排位赛段位奖励
|
||||
GainWay_AddBag = 53 //53 增加背包接口调用
|
||||
GainWay_SmallRocket = 54 //54.小火箭收入
|
||||
GainWay_BindTel = 55 //55.绑定手机号
|
||||
GainWay_ReliefFund2 = 56 //56.救济金看视频双倍领取
|
||||
GainWay_ActTurnplate2 = 57 //57.轮盘看视频双倍领取
|
||||
GainWay_ActSignNew2 = 58 //58.签到看视频双倍领取
|
||||
GainWay_ItemUse = 59 //59.道具使用
|
||||
GainWay_PhoneScore = 60 //60.积分抽奖活动
|
||||
GainWay_RankReward = 61 //61.段位奖励
|
||||
GainWay_TaskReward = 62 //62.任务奖励
|
||||
GainWay_Interact = 63 //63.房间内互动效果
|
||||
GainWay_Collect = 64 //64.集卡活动
|
||||
GainWay_ActSignNew = 43 //新签到
|
||||
GainWay_ActTurnplate = 44 //轮盘
|
||||
GainWay_ActBlindBox = 45 //盲盒
|
||||
GainWay_ActFirstPay = 46 //首充
|
||||
GainWay_VIPGift = 47 //vip礼包
|
||||
GainWay_ActContinuousPay = 48 //连续充值
|
||||
GainWay_ActJybAward = 49 //礼包码兑换
|
||||
GainWay_LeaveDeduct = 50 //离开扣分
|
||||
GainWay_LeaveCombat = 51 //离开补偿
|
||||
GainWay_RankMatch = 52 //排位赛段位奖励
|
||||
GainWay_AddBag = 53 //增加背包接口调用
|
||||
GainWay_SmallRocket = 54 //小火箭收入
|
||||
GainWay_BindTel = 55 //绑定手机号
|
||||
GainWay_ReliefFund2 = 56 //救济金看视频双倍领取
|
||||
GainWay_ActTurnplate2 = 57 //轮盘看视频双倍领取
|
||||
GainWay_ActSignNew2 = 58 //签到看视频双倍领取
|
||||
GainWay_ItemUse = 59 //道具使用
|
||||
GainWay_PhoneScore = 60 //手机积分活动
|
||||
GainWay_RankReward = 61 //排位奖励
|
||||
GainWay_TaskReward = 62 //任务奖励
|
||||
GainWay_Interact = 63 //房间内互动效果
|
||||
GainWayItemCollectExchange = 64 //集卡活动兑换
|
||||
GainWay_WeekCardAward = 65 //周卡奖励
|
||||
GainWay_PigrankTakeCoin = 66 //存钱罐领取耗费钻石
|
||||
GainWay_PigrankGainCoin = 67 //存钱罐打开获取金币
|
||||
GainWay_ItemMove = 68 //道具赠送
|
||||
GainWay_RoleUpgrade = 69 //角色升级
|
||||
GainWay_PetUpgrade = 70 //宠物升级
|
||||
GainWay_Game = 71 //游戏掉落
|
||||
GainWayItemCollectLogin = 73 //集卡活动登录
|
||||
GainWay_Collect = 74 //集卡活动
|
||||
GainWayItemPhoneScoreExchange = 75 //抽手机活动兑换
|
||||
GainWayItemTaskInvite = 78 //邀请任务
|
||||
GainWayItemTaskNewPlayer = 79 //新手任务
|
||||
GainWayItemTaskAchievement = 80 //成就任务
|
||||
GainWayItemTaskEveryDay = 81 //每日任务
|
||||
GainWayItemWeekActive = 82 //周活跃奖励
|
||||
GainWayContinueSign = 83 //累计签到
|
||||
GainWayBackend = 84 // 后台操作
|
||||
GainWayBuyCoin = 85 // 商城购买金币
|
||||
GainWayBuyItem = 86 // 商城购买道具
|
||||
GainWayBuyWeekCard = 87 // 商城购买周卡
|
||||
GainWayVipBuyCoin = 88 // vip商城购买金币
|
||||
GainWaySign7Con = 89 // 累计签到进阶奖励消耗
|
||||
GainWay_PigrankGainDiamond = 90 //存钱罐打开获取钻石
|
||||
GainWaySign7Add = 91 // 累计签到进阶奖励获得
|
||||
GainWayItemChange = 92 //背包内使用道具兑换话费
|
||||
GainWayPetSkillLevelUp = 93 //宠物技能升级
|
||||
GainWayPermitAward = 94 // 赛季通行证等级奖励
|
||||
GainWayItemPermitRank = 95 // 赛季通行证排行奖励
|
||||
GainWayPermitExchangeCost = 96 // 赛季通行证兑换消耗
|
||||
GainWayPermitExchangeGain = 97 // 赛季通行证兑换获得
|
||||
GainWayItemTaskPermit = 98 // 赛季通行证任务
|
||||
GainWayDiamondLottery = 99 //钻石抽奖
|
||||
GainWaySkinUnLock = 100 // 皮肤解锁消耗
|
||||
GainWaySkinUpGrade = 101 // 皮肤升级消耗
|
||||
GainWayItemFen = 102 // 道具分解消耗
|
||||
GainWayItemFenGain = 103 // 道具分解获得
|
||||
GainWayGuide = 104 //新手引导奖励
|
||||
GainWayVipGift9 = 105 //vip等级礼包
|
||||
GainWayRoomCost = 106 //房费消耗
|
||||
GainWayRoomGain = 107 //房卡场获得
|
||||
GainWayItemShop = 108 // 交易市场道具交易
|
||||
GainWayClawdollCostItem = 109 // 娃娃机上分扣道具
|
||||
GainWayItemShopChangeDoll = 110 // 商城兑换娃娃
|
||||
GainWayItemBagChangeDoll = 111 // 背包内兑换娃娃
|
||||
GainWayClawdollCatch = 112 // 娃娃机抓取到娃娃获取卡
|
||||
GainWayItemBagChangeDollRevocation = 113 //娃娃兑换后台撤销
|
||||
GainWayPermitReset = 114 //赛季通行证积分重置
|
||||
GainWayClientUpgrade = 115 //客户端升级奖励
|
||||
GainWayLottery = 116 //开奖码抽奖
|
||||
GainWayGuide2 = 117 // 竞技馆引导奖励
|
||||
GainWayCompound = 118 // 道具合成消耗
|
||||
GainWayCompoundGain = 119 // 道具合成获得
|
||||
)
|
||||
|
||||
// 后台选择 金币变化类型 的充值 类型id号起始
|
||||
|
|
@ -355,30 +370,6 @@ const (
|
|||
PlayerLeaveReason_AutoState //托管状态踢出房间
|
||||
)
|
||||
|
||||
// 万分比
|
||||
const RATE_BASE_VALUE int32 = 10000
|
||||
|
||||
const (
|
||||
SceneState_Normal int = iota
|
||||
SceneState_Fishing //鱼潮
|
||||
)
|
||||
|
||||
const (
|
||||
PlayerType_Rob int32 = 0
|
||||
PlayerType_Undefine = 1
|
||||
PlayerType_Black = -1
|
||||
PlayerType_White = -2
|
||||
)
|
||||
|
||||
const (
|
||||
CoinPoolAIModel_Default int32 = iota //默认
|
||||
CoinPoolAIModel_Normal //正常模式
|
||||
CoinPoolAIModel_ShouFen //收分模式
|
||||
CoinPoolAIModel_ZheZhong //折中模式
|
||||
CoinPoolAIModel_TuFen //吐分
|
||||
CoinPoolAIModel_Max //
|
||||
)
|
||||
|
||||
const (
|
||||
RobotServerType int = 9
|
||||
RobotServerId = 901
|
||||
|
|
@ -461,12 +452,6 @@ const (
|
|||
MatchTrueMan_Priority = 1 //优先匹配真人
|
||||
)
|
||||
|
||||
const (
|
||||
SingleAdjustModeNormal = 0
|
||||
SingleAdjustModeWin = 1
|
||||
SingleAdjustModeLose = 2
|
||||
)
|
||||
|
||||
// 自动化标签(程序里产生的全部<0)
|
||||
const (
|
||||
AutomaticTag_QZNN_Smart int32 = -1
|
||||
|
|
@ -511,35 +496,6 @@ const (
|
|||
CodeTypeNo = 3 // 不使用验证码
|
||||
)
|
||||
|
||||
const (
|
||||
ActId_Share int = iota //0.微信分享
|
||||
ActId_OnlineReward //1.在线奖励
|
||||
ActId_UpgradeAccount //2.升级账号
|
||||
ActId_GoldTask //3.财神任务
|
||||
ActId_GoldCome //4.财神降临
|
||||
ActId_LuckyTurntable //5.转盘活动
|
||||
ActId_Yeb //6.余额宝
|
||||
ActId_Card //7.周卡月卡
|
||||
ActId_RebateTask //8.返利获取
|
||||
ActId_IOSINSTALLSTABLE //9.ios安装奖励
|
||||
ActId_VipLevelBonus //10.vip日周月等级奖励
|
||||
ActId_LoginRandCoin //11.登录红包
|
||||
ActId_OnlineRandCoin //12.红包雨
|
||||
ActId_MatchSwitch //13.比赛开关
|
||||
ActId_PromoterBind //14.手动绑定推广员
|
||||
ActId_Lottery //15.彩金池
|
||||
ActId_Task //16.活跃任务
|
||||
ActId_PROMOTER //17.全民推广
|
||||
ActId_Activity //18.活动界面
|
||||
ActId_NewYear //19.新年暗号红包活动
|
||||
ActId_Guess //20.猜灯谜活动
|
||||
ActId_Sign //21.七日签到
|
||||
ExchangeId_Alipay //22.兑换到支付宝
|
||||
ExchangeId_Bank //23.兑换到银行卡
|
||||
ExchangeId_Wechat //24.兑换到微信
|
||||
ActId_Max
|
||||
)
|
||||
|
||||
// 匹配模式
|
||||
const (
|
||||
MatchMode_Normal int32 = iota //普通匹配
|
||||
|
|
@ -612,6 +568,19 @@ const (
|
|||
ItemIDWeekScore = 100004 // 周活跃积分
|
||||
ItemIDGiftBox = 50001 // 碎片礼盒
|
||||
ItemIDCollectBox = 50002 // 集卡礼盒
|
||||
ItemIDLike = 100007 // 点赞
|
||||
ItemIDCoffee = 100008 // 咖啡
|
||||
ItemIDBucket = 100009 // 水桶
|
||||
ItemIDSlippers = 100010 // 拖鞋
|
||||
ItemIDPermit = 100011 // 赛季通行证积分
|
||||
ItemIDLong = 50013 // 龙币
|
||||
ItemIDPetSkill = 11001 //宠物技能升级道具
|
||||
ItemIDVCard = 30001 // v卡
|
||||
ItemIDJCard = 30002 // 金券
|
||||
ItemDiamondScore = 100012 //钻石积分
|
||||
ItemIDClawdoll = 40003 // 娃娃卡
|
||||
ItemDollCard = 40004 // 娃娃卡积分
|
||||
ItemIDRoomCard = 40002 // 房卡
|
||||
)
|
||||
|
||||
func ToItemId(id int32) int32 {
|
||||
|
|
@ -638,6 +607,12 @@ const (
|
|||
ItemTypeVipExp = 10 //VIP经验
|
||||
ItemTypeShopScore = 11 //积分
|
||||
ItemTypeInteract = 12 // 互动表情
|
||||
ItemTypeExpireTime = 15 // 时效类道具
|
||||
ItemTypeObjective = 16 // 目标类道具
|
||||
ItemTypeChange = 17 // 兑换话费
|
||||
ItemTypeSkinChip = 22 // 皮肤碎片
|
||||
ItemTypeDoll = 26 //娃娃兑换
|
||||
ItemTypeSeasonPicket = 28 //赛季凭证
|
||||
)
|
||||
|
||||
func GetKeyNoviceGameId(gameId int) string {
|
||||
|
|
@ -680,9 +655,9 @@ func GetImageCodeKey(key string) string {
|
|||
}
|
||||
|
||||
const (
|
||||
SMSCodeValidTime = 60 // 访问频率限制
|
||||
SMSCodeValidTimeTelBind = 60 // 绑定手机号验证码有效期,单位秒
|
||||
SMSCodeValidTimeTelLogin = 600 // 手机号登录验证码有效期,单位秒
|
||||
SMSCodeValidTime = 60 * time.Second // 访问频率限制
|
||||
SMSCodeValidTimeTelBind = 60 * time.Second // 绑定手机号验证码有效期,单位秒
|
||||
SMSCodeValidTimeTelLogin = 600 * time.Second // 手机号登录验证码有效期,单位秒
|
||||
)
|
||||
|
||||
// 活动,任务类型
|
||||
|
|
@ -696,14 +671,28 @@ const (
|
|||
TaskTypePay = 7 // 充值金额
|
||||
TaskTypeWinOrLose = 8 // 游戏输赢金币数量
|
||||
TaskTypeTienlenCount = 9 // tienlen游戏场次
|
||||
TaskTypeBindInviter = 10 // 绑定邀请人数量
|
||||
TaskTypeBindInviter = 10 // 绑定邀请人数量*
|
||||
TaskTypeWinCoin = 11 // 赢取金币数量
|
||||
TaskTypeTienlenWinTimes = 12 // tienlen游戏赢取次数
|
||||
TaskTypeInviteScore = 13 // 邀请积分
|
||||
TaskTypeInviteScore = 13 // 邀请积分*
|
||||
TaskTypeActivityScore = 14 // 周活跃积分数量
|
||||
TaskTypeFirstLogin = 15 // 每日首次登录
|
||||
TaskTypeInviteNum = 16 // 邀请绑定数量
|
||||
TaskTypeInviteNum = 16 // 邀请绑定数量*
|
||||
TaskTypeTurnplate = 17 // 转盘抽奖次数
|
||||
TaskTypeInviteRecharge = 18 // 被邀请人充值金额*
|
||||
TaskTypeLoseCoin = 19 // 输的金币数量
|
||||
TaskType20 = 20 // 未使用
|
||||
TaskTypeOnlineTs = 21 // 在线时长,秒
|
||||
TaskTypeBuyPig = 22 // 购买任意存钱罐
|
||||
TaskTypeDaZhong = 23 // 大众场胜利
|
||||
TaskTypeInvitePlay = 24 // 邀请好友私人桌对局
|
||||
TaskTypeJoinMatch = 25 // 参与比赛场
|
||||
TaskTypeMatchRank10 = 26 // 比赛场前10名
|
||||
TaskTypeCostDiamond = 27 // 消耗钻石数量
|
||||
TaskTypeTienlenLoseCoin = 28 // Tienlen输的金币数量
|
||||
TaskTypeTienlenWinCoin = 29 // Tienlen赢取金币数量
|
||||
TaskTypeRankMatchWinTimes = 30 // 排位胜利次数
|
||||
TaskTypeBuyPermit = 31 // 购买典藏通行证
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
@ -718,22 +707,22 @@ const (
|
|||
TaskActivityTypeWeek = 2 // 每周任务
|
||||
TaskActivityTypeNovice = 3 // 新手任务
|
||||
TaskActivityTypeInvite = 4 // 邀请任务
|
||||
TaskActivityTypeAchieve = 5 // 成就任务
|
||||
TaskActivityTypePermitEveryDay = 6 // 赛季通行证每日任务
|
||||
TaskActivityTypePermit = 7 // 赛季通行证任务
|
||||
)
|
||||
|
||||
const HeadRange = 3 // 机器人头像id范围
|
||||
|
||||
const (
|
||||
InviteScoreCheckWeek = -1 // 跨周
|
||||
InviteScoreTypeBind = 1 // 绑定邀请码
|
||||
InviteScoreTypeLogin = 2 // 每日登录
|
||||
InviteScoreTypePlayTimes = 3 // 每日参与任意游戏
|
||||
InviteScoreTypeRecharge = 4 // 充值
|
||||
InviteScoreTypeGameTimes = 5 // 每局游戏
|
||||
InviteScoreTypePay = 2 // 充值
|
||||
InviteScoreTypeRecharge = 3 // 充值完成
|
||||
InviteScoreTypePayMe = 4 // 充值(给自己)
|
||||
InviteScoreTypeBindTel = 5 // 绑定手机号
|
||||
)
|
||||
|
||||
const TaskIDInvitePlayGame = 1000001
|
||||
const TaskIDInviteRecharge = 1000002
|
||||
const TaskIDInviteFirstLogin = 1000003
|
||||
|
||||
func InMatchChannel(ls []string, n string) bool {
|
||||
if n == "" || len(ls) == 0 {
|
||||
return false
|
||||
|
|
@ -782,3 +771,139 @@ const (
|
|||
)
|
||||
|
||||
var PetIDs = []int32{PetIDChicken}
|
||||
|
||||
const (
|
||||
ChannelSwitchExchange = 1 // 兑换商城开关
|
||||
ChannelSwitchDropItem = 2 // v卡掉落开关
|
||||
ChannelSwitchInvite = 3 // 邀请开关
|
||||
ChannelSwitchPermit = 4 // 典藏通行证开关
|
||||
ChannelSwitchDiamondLottery = 5 // 钻石抽奖开关
|
||||
)
|
||||
|
||||
// 特殊商品id
|
||||
const (
|
||||
ShopIdWeekCard = 970001 // 周卡
|
||||
ShopIdPermit = 990001 // 典藏通行证
|
||||
)
|
||||
|
||||
const PermitStartTsKey = "permit_start_ts"
|
||||
|
||||
const PermitAdd = 0.2 // 典藏通行证赛季积分多加,百分比
|
||||
|
||||
const (
|
||||
SkinGetAuto = 1
|
||||
SkinGetItem = 2
|
||||
SkinGetVip = 3
|
||||
)
|
||||
|
||||
const (
|
||||
SkillIdRankScore = 30002 // 排位积分加成百分比
|
||||
SkillIdVipTimes = 30003 // VIP赛每日免费报名次数
|
||||
SkillIdVipGift = 30004 // VIP每日礼包金币奖励提升百分比
|
||||
SkillIdTask = 30005 // 每日任务金币奖励提升百分比
|
||||
SkillIdDiamondLottery = 30007 // 每次钻石抽奖幸运值提升百分比
|
||||
)
|
||||
|
||||
var (
|
||||
SkinRandom = []int32{300001, 300002, 300007, 300006, 300005, 300004, 300003}
|
||||
SkinWeightMap = map[int32]int{
|
||||
300001: 20,
|
||||
300002: 40,
|
||||
300007: 40,
|
||||
300006: 50,
|
||||
300005: 40,
|
||||
300004: 60,
|
||||
300003: 70,
|
||||
}
|
||||
)
|
||||
|
||||
const (
|
||||
AttributeGuideStep = 1 // 引导步骤
|
||||
AttributeGuideSkip = 2 // 跳过引导
|
||||
AttributeGuideTest = 3 // 测试引导
|
||||
AttributeGuideCustom = 4 // 竞技馆引导页
|
||||
)
|
||||
|
||||
const (
|
||||
On = 1 // 开启
|
||||
Off = 2 // 关闭
|
||||
)
|
||||
|
||||
const (
|
||||
DataConfigAll = 0 // 全部配置
|
||||
DataConfigSprite = 1 // 精灵配置
|
||||
DataConfigMatchAudience = 2 // 赛事观战开关
|
||||
)
|
||||
|
||||
// 房间状态
|
||||
const (
|
||||
SceneStateWaite = 0 // 等待
|
||||
SceneStateStart = 1 // 开始
|
||||
SceneStateEnd = 2 // 结束
|
||||
)
|
||||
|
||||
const (
|
||||
// PlayerHistoryModel .
|
||||
PlayerHistoryModel = iota + 1
|
||||
|
||||
// BIGWIN_HISTORY_MODEL .
|
||||
BIGWIN_HISTORY_MODEL
|
||||
|
||||
// GameHistoryModel .
|
||||
GameHistoryModel
|
||||
)
|
||||
|
||||
type ListOpType int // 列表操作类型
|
||||
|
||||
const (
|
||||
ListModify ListOpType = 1 // 修改
|
||||
ListAdd ListOpType = 2 // 增加
|
||||
ListDel ListOpType = 3 // 减少
|
||||
ListFind ListOpType = 4 // 查询
|
||||
)
|
||||
|
||||
type NotifyType int // 通知类型
|
||||
|
||||
const (
|
||||
NotifyPrivateRoomList NotifyType = 1 // 私人房间列表
|
||||
)
|
||||
|
||||
// SCPlayerCoinChange 中数值类型
|
||||
const (
|
||||
PlayerChangeTypeCoin = 0 // 金币
|
||||
PlayerChangeTypeNum = 1 // 积分
|
||||
)
|
||||
|
||||
// 玩家状态标记
|
||||
const (
|
||||
PlayerFlagsGuideCustom = 1 << iota // 竞技馆引导页关闭状态
|
||||
)
|
||||
|
||||
const (
|
||||
LotteryStateOver = 1 // 抽奖结束
|
||||
LotteryStateRun = 2 // 抽奖进行中
|
||||
LotteryStateNoStart = 3 // 抽奖未开始
|
||||
)
|
||||
|
||||
const (
|
||||
NoticeTypeCustomAward = 1 + iota // 房卡场获奖通知
|
||||
)
|
||||
|
||||
const (
|
||||
GuideIdNewPlayer = 1 // 新手引导
|
||||
GuideIdCustom = 2 // 竞技馆引导
|
||||
)
|
||||
|
||||
// 引导奖励账变类型
|
||||
var GuideIdToGainWay = map[int]int{
|
||||
GuideIdNewPlayer: GainWayGuide,
|
||||
GuideIdCustom: GainWayGuide2,
|
||||
}
|
||||
|
||||
func GetKeyGameDif(gamedif string) string {
|
||||
return fmt.Sprintf("gamedif-%v", gamedif)
|
||||
}
|
||||
|
||||
func GetItemUniqueId(itemId int32, snid int32) string {
|
||||
return fmt.Sprintf("%v.%v.%v.%v", itemId, snid, time.Now().Unix(), RandInt(1, 10000))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,17 +95,9 @@ func GetIntegerBit(num int32, index int32) bool {
|
|||
}
|
||||
|
||||
// 校验身份证是否合法
|
||||
var IDReg, _ = regexp.Compile(`(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$)`)
|
||||
var REGEXP_IPRule, _ = regexp.Compile(`^(1\d{2}|2[0-4]\d|25[0-5]|[1-9]\d|[1-9])\.(1\d{2}|2[0-4]\d|25[0-5]|[1-9]\d|\d)\.(1\d{2}|2[0-4]\d|25[0-5]|[1-9]\d|\d)\.(1\d{2}|2[0-4]\d|25[0-5]|[1-9]\d|\d)$`)
|
||||
var REGEXP_IPRule, _ = regexp.Compile(`^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^([\da-fA-F]{1,4}:){6}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^::([\da-fA-F]{1,4}:){0,4}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^([\da-fA-F]{1,4}:):([\da-fA-F]{1,4}:){0,3}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^([\da-fA-F]{1,4}:){2}:([\da-fA-F]{1,4}:){0,2}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^([\da-fA-F]{1,4}:){3}:([\da-fA-F]{1,4}:){0,1}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^([\da-fA-F]{1,4}:){4}:((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^([\da-fA-F]{1,4}:){7}[\da-fA-F]{1,4}$|^:((:[\da-fA-F]{1,4}){1,6}|:)$|^[\da-fA-F]{1,4}:((:[\da-fA-F]{1,4}){1,5}|:)$|^([\da-fA-F]{1,4}:){2}((:[\da-fA-F]{1,4}){1,4}|:)$|^([\da-fA-F]{1,4}:){3}((:[\da-fA-F]{1,4}){1,3}|:)$|^([\da-fA-F]{1,4}:){4}((:[\da-fA-F]{1,4}){1,2}|:)$|^([\da-fA-F]{1,4}:){5}:([\da-fA-F]{1,4})?$|^([\da-fA-F]{1,4}:){6}:$`)
|
||||
var ClubNameRule, _ = regexp.Compile("^[\u4e00-\u9fa5a-zA-Z-z0-9]+$")
|
||||
|
||||
func IsValidID(id string) bool {
|
||||
if IDReg != nil {
|
||||
return IDReg.Match([]byte(id))
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func IsValidIP(Ip string) bool {
|
||||
const UNKNOWIP = "0.0.0.0"
|
||||
if Ip == "" || Ip == UNKNOWIP {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,29 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
var paths = []string{
|
||||
".",
|
||||
"./etc",
|
||||
"./config",
|
||||
}
|
||||
|
||||
func GetViper(name, filetype string) *viper.Viper {
|
||||
vp := viper.New()
|
||||
// 配置文件
|
||||
vp.SetConfigName(name)
|
||||
vp.SetConfigType(filetype)
|
||||
for _, v := range paths {
|
||||
vp.AddConfigPath(v)
|
||||
}
|
||||
|
||||
err := vp.ReadInConfig()
|
||||
if err != nil {
|
||||
panic(fmt.Errorf("fatal error config file: %w", err))
|
||||
}
|
||||
return vp
|
||||
}
|
||||
|
|
@ -19,6 +19,8 @@ func (hw HandlerWrapper) Process(s *netlib.Session, packetid int, data interface
|
|||
return hw(s, packetid, data, sid)
|
||||
}
|
||||
|
||||
// RegisterHandler 消息注册
|
||||
// Deprecated: use [common.Register] instead
|
||||
func RegisterHandler(packetId int, h Handler) {
|
||||
if _, ok := handlers[packetId]; ok {
|
||||
panic(fmt.Sprintf("repeate register handler: %v Handler type=%v", packetId, reflect.TypeOf(h)))
|
||||
|
|
@ -36,7 +38,11 @@ func GetHandler(packetId int) Handler {
|
|||
}
|
||||
|
||||
func Register(mainId int, msgType interface{}, h func(s *netlib.Session, packetId int, data interface{}, sid int64) error) {
|
||||
RegisterHandler(mainId, HandlerWrapper(h))
|
||||
if _, ok := handlers[mainId]; ok {
|
||||
panic(fmt.Sprintf("repeate register handler: %v Handler type=%v", mainId, reflect.TypeOf(h)))
|
||||
}
|
||||
handlers[mainId] = HandlerWrapper(h)
|
||||
|
||||
f := func() interface{} {
|
||||
tp := reflect.TypeOf(msgType)
|
||||
if tp.Kind() == reflect.Ptr {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
package common
|
||||
|
||||
import "github.com/bwmarrin/snowflake"
|
||||
|
||||
var IdNode, _ = snowflake.NewNode(int64(GetSelfSrvId()))
|
||||
|
||||
func GetId() int64 {
|
||||
return IdNode.Generate().Int64()
|
||||
}
|
||||
|
|
@ -5,13 +5,12 @@ import (
|
|||
"path/filepath"
|
||||
|
||||
"github.com/howeyc/fsnotify"
|
||||
|
||||
"mongo.games.com/goserver/core"
|
||||
"mongo.games.com/goserver/core/basic"
|
||||
"mongo.games.com/goserver/core/logger"
|
||||
)
|
||||
|
||||
var LastModifyConfig int64
|
||||
|
||||
func init() {
|
||||
core.RegisteHook(core.HOOK_BEFORE_START, func() error {
|
||||
var err error
|
||||
|
|
@ -62,7 +61,7 @@ type loggerParamModifiedCommand struct {
|
|||
}
|
||||
|
||||
func (lmc *loggerParamModifiedCommand) Done(o *basic.Object) error {
|
||||
logger.Logger.Info("===reload ", lmc.fileName)
|
||||
logger.Logger.Info("reload logger.xml:", lmc.fileName)
|
||||
data, err := os.ReadFile(lmc.fileName)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
@ -70,7 +69,7 @@ func (lmc *loggerParamModifiedCommand) Done(o *basic.Object) error {
|
|||
if len(data) != 0 {
|
||||
err = logger.Reload(lmc.fileName)
|
||||
if err != nil {
|
||||
logger.Logger.Warn("===reload ", lmc.fileName, err)
|
||||
logger.Logger.Warnf("reload logger.xml %v err: %v", lmc.fileName, err)
|
||||
}
|
||||
}
|
||||
return err
|
||||
|
|
|
|||
|
|
@ -0,0 +1,20 @@
|
|||
package common
|
||||
|
||||
import (
|
||||
"crypto/md5"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"io"
|
||||
)
|
||||
|
||||
func GetRawPassword(pwd string, ts ...int64) string {
|
||||
var raw string
|
||||
if len(ts) > 0 {
|
||||
raw = fmt.Sprintf("%v%v%v", pwd, GetAppId(), ts[0])
|
||||
} else {
|
||||
raw = fmt.Sprintf("%v%v", pwd, GetAppId())
|
||||
}
|
||||
ht := md5.New()
|
||||
io.WriteString(ht, raw)
|
||||
return hex.EncodeToString(ht.Sum(nil))
|
||||
}
|
||||
|
|
@ -348,3 +348,7 @@ func GetBElementFromA(A []interface{}, B int) []interface{} {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
func RandFloat(min, max float64) float64 {
|
||||
return min + rand.Float64()*(max-min)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,6 +40,18 @@ func CopySliceIntToInt32(s []int) []int32 {
|
|||
return nil
|
||||
}
|
||||
|
||||
func CopySliceInt64ToInt32(s []int64) []int32 {
|
||||
n := len(s)
|
||||
if n != 0 {
|
||||
temp := make([]int32, n)
|
||||
for i := 0; i < n; i++ {
|
||||
temp[i] = int32(s[i])
|
||||
}
|
||||
return temp
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func CopySliceInt32ToInt(s []int32) []int {
|
||||
n := len(s)
|
||||
if n != 0 {
|
||||
|
|
@ -440,6 +452,22 @@ func SliceValueWeight(sl []int, index int) float64 {
|
|||
return float64(value) / float64(totle)
|
||||
}
|
||||
|
||||
func GetMapKeys[K comparable, V any](data map[K]V) []K {
|
||||
var ret []K
|
||||
for k := range data {
|
||||
ret = append(ret, k)
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
||||
func GetMapValues[K comparable, V any](data map[K]V) []V {
|
||||
var ret []V
|
||||
for _, v := range data {
|
||||
ret = append(ret, v)
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
||||
type Int32Slice []int32
|
||||
|
||||
func (p Int32Slice) Len() int { return len(p) }
|
||||
|
|
|
|||
|
|
@ -56,22 +56,22 @@ func (this *SSTransmitHandler) Process(s *netlib.Session, packetid int, data int
|
|||
if transmitPack, ok := data.(*server.SSTransmit); ok {
|
||||
pd := transmitPack.GetPacketData()
|
||||
sid := transmitPack.GetSessionId()
|
||||
packetid, packet, err := netlib.UnmarshalPacket(pd)
|
||||
packetId, packet, err := netlib.UnmarshalPacket(pd)
|
||||
if err == nil {
|
||||
h := GetHandler(packetid)
|
||||
h := GetHandler(packetId)
|
||||
if h != nil {
|
||||
utils.DumpStackIfPanic(fmt.Sprintf("SSTransmitHandler.Process error, packetid:%v", packetid))
|
||||
watch := profile.TimeStatisticMgr.WatchStart(fmt.Sprintf("/action/packet:%v", packetid), profile.TIME_ELEMENT_ACTION)
|
||||
err := h.Process(s, packetid, packet, sid)
|
||||
utils.DumpStackIfPanic(fmt.Sprintf("SSTransmitHandler.Process error, packetId:%v", packetId))
|
||||
watch := profile.TimeStatisticMgr.WatchStart(fmt.Sprintf("/action/packet:%v", packetId), profile.TIME_ELEMENT_ACTION)
|
||||
err := h.Process(s, packetId, packet, sid)
|
||||
if watch != nil {
|
||||
watch.Stop()
|
||||
}
|
||||
if err != nil {
|
||||
logger.Logger.Tracef("Packet [%d] error:", packetid, err)
|
||||
logger.Logger.Tracef("Packet [%d] error: %v", packetId, err)
|
||||
}
|
||||
return err
|
||||
} else {
|
||||
logger.Logger.Tracef("Packet %v not find handler.", packetid)
|
||||
logger.Logger.Tracef("Packet %v not find handler.", packetId)
|
||||
}
|
||||
} else {
|
||||
logger.Logger.Trace("SSTransmitHandler process err:", err)
|
||||
|
|
|
|||
|
|
@ -76,17 +76,15 @@ func InSameWeek(tNow, tPre time.Time) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
preYear, preWeek := tPre.ISOWeek()
|
||||
nowYear, nowWeek := tNow.ISOWeek()
|
||||
if preYear == nowYear && preWeek == nowWeek {
|
||||
if GetWeekStartTs(tNow.Unix()) == GetWeekStartTs(tPre.Unix()) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func TsInSameWeek(tsNow, tsPre int64) bool {
|
||||
tNow := time.Unix(tsNow, 0)
|
||||
tPre := time.Unix(tsPre, 0)
|
||||
tNow := time.Unix(tsNow, 0).Local()
|
||||
tPre := time.Unix(tsPre, 0).Local()
|
||||
return InSameWeek(tNow, tPre)
|
||||
}
|
||||
|
||||
|
|
@ -132,6 +130,7 @@ func TsToStrTime(tc int64) string {
|
|||
//return time.Now().Format("2018-07-02 19:14:00")
|
||||
return time.Unix(tc, 0).Format("2006-01-02 15:04:05")
|
||||
}
|
||||
|
||||
func TsToStrDateTime(tc int64) string {
|
||||
//return time.Now().Format("2018-07-02 19:14:00")
|
||||
return time.Unix(tc, 0).Format("2006-01-02")
|
||||
|
|
@ -143,3 +142,70 @@ func InTimeRange(beginHour, beginMinute, endHour, endMinute, checkHour, checkMin
|
|||
checkTime := checkHour*100 + checkMinute
|
||||
return beginTime <= checkTime && checkTime <= endTime
|
||||
}
|
||||
|
||||
// GetWeekStartTs 获取本周开始的时间戳,周一为周的开始
|
||||
func GetWeekStartTs(ts int64) int64 {
|
||||
now := time.Unix(ts, 0).Local()
|
||||
year, month, day := now.Date()
|
||||
today := time.Date(year, month, day, 0, 0, 0, 0, time.Local)
|
||||
n := today.Weekday()
|
||||
if today.Weekday() == 0 {
|
||||
n = 7
|
||||
}
|
||||
st := today.AddDate(0, 0, -int(n-1)).Unix()
|
||||
return st
|
||||
}
|
||||
|
||||
func GetDayStartTs(ts int64) int64 {
|
||||
now := time.Unix(ts, 0).Local()
|
||||
year, month, day := now.Date()
|
||||
today := time.Date(year, month, day, 0, 0, 0, 0, time.Local)
|
||||
return today.Unix()
|
||||
}
|
||||
|
||||
func GetDayNextStartTs(ts int64) int64 {
|
||||
return GetDayStartTs(ts) + 86400
|
||||
}
|
||||
|
||||
func GetMonthTimestamp() []int64 {
|
||||
now := time.Now().Local()
|
||||
year, month, _ := now.Date()
|
||||
// 本月起始日期
|
||||
st := time.Date(year, month, 1, 0, 0, 0, 0, time.Local).Unix()
|
||||
// 计算下个月的年和月
|
||||
if month == time.December {
|
||||
year = year + 1
|
||||
month = time.January
|
||||
} else {
|
||||
month = month + 1
|
||||
}
|
||||
// 构建下个月的第一天的时间
|
||||
et := time.Date(year, month, 1, 0, 0, 0, 0, now.Location()).Unix()
|
||||
return []int64{st, et}
|
||||
}
|
||||
|
||||
// HMSToTime 将时分秒转换为今天的time
|
||||
// h: 时
|
||||
// m: 分
|
||||
// s: 秒
|
||||
func HMSToTime(h, m, s int) time.Time {
|
||||
now := time.Now().Local()
|
||||
year, month, day := now.Date()
|
||||
return time.Date(year, month, day, h, m, s, 0, now.Location())
|
||||
}
|
||||
|
||||
// IntToTime 将int转换为time
|
||||
// n: 时*10000 + 分*100 + 秒
|
||||
func IntToTime(n int) time.Time {
|
||||
return HMSToTime(n/10000, n%10000/100, n%100)
|
||||
}
|
||||
|
||||
func StrTimeToTime(s string) time.Time {
|
||||
t, _ := time.ParseInLocation("2006-01-02 15:04:05", s, time.Local)
|
||||
return t
|
||||
}
|
||||
|
||||
func StrRFC3339TimeToTime(s string) time.Time {
|
||||
t, _ := time.Parse(time.RFC3339, s)
|
||||
return t
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,23 +5,24 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
TransType_Login transact.TransType = 1000
|
||||
TransType_Logout = 1001
|
||||
TransType_WebTrascate = 1002
|
||||
TransType_AddCoin = 1003
|
||||
TransType_ViewData = 1004
|
||||
TransType_DayTimeChange = 1005
|
||||
TransType_CoinSceneChange = 1006
|
||||
TransType_WebApi = 1007
|
||||
TransType_WebApi_ForRank = 1101
|
||||
TransType_GameSrvWebApi = 1008
|
||||
TransType_QueryCoinPool = 1009
|
||||
TransType_StopServer = 1010
|
||||
TransType_QueryAllCoinPool = 1011
|
||||
TransType_ActThrSrvWebApi = 1012
|
||||
TransType_MatchSceneChange = 1013
|
||||
TransType_MiniGameAddCoin = 1014
|
||||
TransType_ServerCtrl = 1015
|
||||
TransTypeLogin transact.TransType = 1000
|
||||
TransTypeLogout = 1001
|
||||
TransTypeWebTransact = 1002
|
||||
TransTypeAddCoin = 1003
|
||||
TransTypeViewData = 1004
|
||||
TransTypeDayTimeChange = 1005
|
||||
TransTypeCoinSceneChange = 1006
|
||||
TransTypeWebApi = 1007
|
||||
TransTypeWebApiForRank = 1101
|
||||
TransTypeGameSrvWebApi = 1008
|
||||
TransTypeQueryCoinPool = 1009
|
||||
TransTypeStopServer = 1010
|
||||
TransTypeQueryAllCoinPool = 1011
|
||||
TransTypeActThrSrvWebApi = 1012
|
||||
TransTypeMatchSceneChange = 1013
|
||||
TransTypeMiniGameAddCoin = 1014
|
||||
TransTypeServerCtrl = 1015
|
||||
TranTypeAddItem = 1016 // 道具修改
|
||||
)
|
||||
|
||||
type M2GWebTrascate struct {
|
||||
|
|
|
|||
|
|
@ -1,16 +1,15 @@
|
|||
|
||||
ъУ†
|
||||
ъФ†
|
||||
ъХ†
|
||||
ъЦ†
|
||||
ъЧ†
|
||||
ИШ†
|
||||
ИЩ†
|
||||
ИЪ†
|
||||
ИЫ†
|
||||
иУ†
|
||||
иФ†
|
||||
иХ†
|
||||
иЦ†
|
||||
ЮЧ†
|
||||
2Ш†
|
||||
2Щ†
|
||||
2Ъ†
|
||||
2Ы†
|
||||
|
||||
|
||||
Ь†
|
||||
2ЎЌђN
|
||||
¬ЎЌР†
|
||||
2ЎЌ Ќ
|
||||
Ь†
|
||||
фЎЌђN
|
||||
dЎЌР†
|
||||
ЎЌ Ќ
|
||||
|
|
@ -2,91 +2,91 @@
|
|||
"Arr": [
|
||||
{
|
||||
"Id": 1,
|
||||
"Rate": 250,
|
||||
"Rate": 1000,
|
||||
"ItemID": {
|
||||
"50003": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 2,
|
||||
"Rate": 250,
|
||||
"Rate": 1000,
|
||||
"ItemID": {
|
||||
"50004": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 3,
|
||||
"Rate": 250,
|
||||
"Rate": 1000,
|
||||
"ItemID": {
|
||||
"50005": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 4,
|
||||
"Rate": 250,
|
||||
"Rate": 1000,
|
||||
"ItemID": {
|
||||
"50006": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 5,
|
||||
"Rate": 250,
|
||||
"Rate": 350,
|
||||
"ItemID": {
|
||||
"50007": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 6,
|
||||
"Rate": 200,
|
||||
"Rate": 50,
|
||||
"ItemID": {
|
||||
"50008": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 7,
|
||||
"Rate": 200,
|
||||
"Rate": 50,
|
||||
"ItemID": {
|
||||
"50009": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 8,
|
||||
"Rate": 200,
|
||||
"Rate": 50,
|
||||
"ItemID": {
|
||||
"50010": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 9,
|
||||
"Rate": 200,
|
||||
"Rate": 50,
|
||||
"ItemID": {
|
||||
"50011": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 10,
|
||||
"Rate": 10,
|
||||
"Rate": 1,
|
||||
"ItemID": {
|
||||
"50012": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 11,
|
||||
"Rate": 50,
|
||||
"Rate": 500,
|
||||
"ItemID": {
|
||||
"100001": 10000
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 12,
|
||||
"Rate": 300,
|
||||
"Rate": 100,
|
||||
"ItemID": {
|
||||
"100001": 50000
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 13,
|
||||
"Rate": 50,
|
||||
"Rate": 20,
|
||||
"ItemID": {
|
||||
"100001": 100000
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
红米手机 æÑ(
|
||||
金å¸<C3A5> ¡<>( Â0Þ
|
||||
酷帕碎片 ¡œ(0ï
|
||||
积分 ¬<>(20Þ
|
||||
!2å…ƒè¯<C3A8>费直兑券 ¹ê(0,
|
||||
金å¸<C3A5> ¡<>(€â0X
|
||||
锿³•师碎片 £œ(0°
|
||||
哈奴曼啤酒 ©º(0
|
||||
积分 ¬<>(d0ï
|
||||
|
||||
è<>¶å¥³ç¢Žç‰‡ ¢œ(0Þ
|
||||
钻石 ¢<>(0Þ
|
||||
!5å…ƒè¯<C3A8>费直兑券 ºê(0
|
||||
钻石 ¢<>(0¸
|
||||
积分 ¬<>(È0¸
|
||||
1å…ƒè¯<C3A8>费直兑券 ¸ê(
|
||||
|
|
@ -0,0 +1,122 @@
|
|||
{
|
||||
"Arr": [
|
||||
{
|
||||
"Id": 1,
|
||||
"Type": 1,
|
||||
"Name": "红米手机",
|
||||
"Item_Id": 76006,
|
||||
"Grade": 1
|
||||
},
|
||||
{
|
||||
"Id": 2,
|
||||
"Type": 1,
|
||||
"Name": "金币",
|
||||
"Item_Id": 100001,
|
||||
"Grade": 500000,
|
||||
"Oddrate": 1758
|
||||
},
|
||||
{
|
||||
"Id": 3,
|
||||
"Type": 1,
|
||||
"Name": "酷帕碎片",
|
||||
"Item_Id": 20001,
|
||||
"Grade": 1,
|
||||
"Oddrate": 879
|
||||
},
|
||||
{
|
||||
"Id": 4,
|
||||
"Type": 1,
|
||||
"Name": "积分",
|
||||
"Item_Id": 100012,
|
||||
"Grade": 50,
|
||||
"Oddrate": 1758
|
||||
},
|
||||
{
|
||||
"Id": 5,
|
||||
"Type": 1,
|
||||
"Name": "2元话费直兑券",
|
||||
"Item_Id": 30009,
|
||||
"Grade": 1,
|
||||
"Oddrate": 44
|
||||
},
|
||||
{
|
||||
"Id": 6,
|
||||
"Type": 1,
|
||||
"Name": "金币",
|
||||
"Item_Id": 100001,
|
||||
"Grade": 10000000,
|
||||
"Oddrate": 88
|
||||
},
|
||||
{
|
||||
"Id": 7,
|
||||
"Type": 1,
|
||||
"Name": "魔法师碎片",
|
||||
"Item_Id": 20003,
|
||||
"Grade": 1,
|
||||
"Oddrate": 176
|
||||
},
|
||||
{
|
||||
"Id": 8,
|
||||
"Type": 1,
|
||||
"Name": "哈奴曼啤酒",
|
||||
"Item_Id": 73001,
|
||||
"Grade": 1,
|
||||
"Oddrate": 5
|
||||
},
|
||||
{
|
||||
"Id": 9,
|
||||
"Type": 1,
|
||||
"Name": "积分",
|
||||
"Item_Id": 100012,
|
||||
"Grade": 100,
|
||||
"Oddrate": 879
|
||||
},
|
||||
{
|
||||
"Id": 10,
|
||||
"Type": 1,
|
||||
"Name": "蝶女碎片",
|
||||
"Item_Id": 20002,
|
||||
"Grade": 1,
|
||||
"Oddrate": 1758
|
||||
},
|
||||
{
|
||||
"Id": 11,
|
||||
"Type": 1,
|
||||
"Name": "钻石",
|
||||
"Item_Id": 100002,
|
||||
"Grade": 5,
|
||||
"Oddrate": 1758
|
||||
},
|
||||
{
|
||||
"Id": 12,
|
||||
"Type": 1,
|
||||
"Name": "5元话费直兑券",
|
||||
"Item_Id": 30010,
|
||||
"Grade": 1,
|
||||
"Oddrate": 17
|
||||
},
|
||||
{
|
||||
"Id": 13,
|
||||
"Type": 1,
|
||||
"Name": "钻石",
|
||||
"Item_Id": 100002,
|
||||
"Grade": 20,
|
||||
"Oddrate": 440
|
||||
},
|
||||
{
|
||||
"Id": 14,
|
||||
"Type": 1,
|
||||
"Name": "积分",
|
||||
"Item_Id": 100012,
|
||||
"Grade": 200,
|
||||
"Oddrate": 440
|
||||
},
|
||||
{
|
||||
"Id": 15,
|
||||
"Type": 2,
|
||||
"Name": "1元话费直兑券",
|
||||
"Item_Id": 30008,
|
||||
"Grade": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -77,3 +77,34 @@
|
|||
:<08><><18>阿<EFBFBD><E998BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>俛樗(<28>発<EFBFBD>%0d8<64>@<40><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>H璞<48><E7929E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>P
|
||||
;<08><><18>雉Ⅴ<E99B89><E285A4><EFBFBD><EFBFBD> <20><>片<EFBFBD>(<28>蓁〆0d8<64>@<40><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>H璞<48><E7929E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>P
|
||||
;<08><><18>跡球<E8B7A1><E79083><EFBFBD><EFBFBD> <20>凄<EFBFBD><E58784>:(<28><><EFBFBD><EFBFBD><EFBFBD>0d8<64>@<40><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>H璞<48><E7929E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>P
|
||||
ÑÛ·€ŽÎ€áë €„¯_XÈ`À¤ÿ
|
||||
ÒÛ·€Œ<E282AC>ž€Êµî €¨Ö¹XÈ`€íøµ
|
||||
ÓÛ·€¼Á–€ò‹¨ €È¯ %XÈ`€¡Ü<C2A1>
|
||||
ÔÛ·€ø‚€ä—Ð €<>ßÀJXÈ`€Â¸›
|
||||
᩸€ŽÎ€áë €„¯_XÈ`À¤ÿ
|
||||
⩸€Œ<E282AC>ž€Êµî €¨Ö¹XÈ`€íøµ
|
||||
㩸€¼Á–€ò‹¨ €È¯ %XÈ`€¡Ü<C2A1>
|
||||
䩸€ø‚€ä—Ð €<>ßÀJXÈ`€Â¸›
|
||||
ñ÷¸€ŽÎ€áë €„¯_XÈ`À¤ÿ
|
||||
ò÷¸€Œ<E282AC>ž€Êµî €¨Ö¹XÈ`€íøµ
|
||||
ó÷¸€¼Á–€ò‹¨ €È¯ %XÈ`€¡Ü<C2A1>
|
||||
ô÷¸€ø‚€ä—Ð €<>ßÀJXÈ`€Â¸›
|
||||
<08>ƹ€ŽÎ€áë €¨Ö¹XÈ`À¤ÿ
|
||||
‚ƹ€¼Á–€ò‹¨ €È¯ %XÈ`€¡Ü<C2A1>
|
||||
ƒÆ¹€ø‚€ä—Ð €<>ßÀJXÈ`€Â¸›
|
||||
‘”º€ŽÎ€áë €¨Ö¹XÈ`À¤ÿ
|
||||
’”º€¼Á–€ò‹¨ €È¯ %XÈ`€¡Ü<C2A1>
|
||||
“”º€ø‚€ä—Ð €<>ßÀJXÈ`€Â¸›
|
||||
¡âº€›îÀ–± €ÚÄ XÈ` ÝŒ
|
||||
¢âº€ŽÎ€áë €„¯_XÈ`À¤ÿ
|
||||
£âº€Æ†<C386>€åšw €”ëÜXÈ`À¶üš
|
||||
¤âº€Œ<E282AC>ž€Êµî €¨Ö¹XÈ`€íøµ
|
||||
±°»€›îÀ–± €ÚÄ XÈ` ÝŒ
|
||||
²°»€ŽÎ€áë €„¯_XÈ`À¤ÿ
|
||||
³°»€Æ†<C386>€åšw €”ëÜXÈ`À¶üš
|
||||
´°»€Œ<E282AC>ž€Êµî €¨Ö¹XÈ`€íøµ
|
||||
Áþ»€›îÀ–± €ÚÄ XÈ` ÝŒ
|
||||
Ñ̼€ŽÎ€áë €„¯_XÈ`À¤ÿ
|
||||
áš½€Æ†<C386>€åšw €”ëÜXÈ`À¶üš
|
||||
ñè½€Œ<E282AC>ž€Êµî €¨Ö¹XÈ`€íøµ
|
||||
<08>·¾€Œ<E282AC>ž€Êµî €¨Ö¹XÈ`€íøµ
|
||||
|
|
@ -857,6 +857,254 @@
|
|||
"LowerOdds": -100,
|
||||
"LowerOddsMax": -800,
|
||||
"ProfitRate": 20
|
||||
},
|
||||
{
|
||||
"Id": 3010001,
|
||||
"InitValue": 60000000,
|
||||
"LowerLimit": 50000000,
|
||||
"UpperLimit": 200000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 65000000
|
||||
},
|
||||
{
|
||||
"Id": 3010002,
|
||||
"InitValue": 600000000,
|
||||
"LowerLimit": 500000000,
|
||||
"UpperLimit": 2000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 650000000
|
||||
},
|
||||
{
|
||||
"Id": 3010003,
|
||||
"InitValue": 3000000000,
|
||||
"LowerLimit": 2500000000,
|
||||
"UpperLimit": 10000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 3250000000
|
||||
},
|
||||
{
|
||||
"Id": 3010004,
|
||||
"InitValue": 6000000000,
|
||||
"LowerLimit": 5000000000,
|
||||
"UpperLimit": 20000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 6500000000
|
||||
},
|
||||
{
|
||||
"Id": 3020001,
|
||||
"InitValue": 60000000,
|
||||
"LowerLimit": 50000000,
|
||||
"UpperLimit": 200000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 65000000
|
||||
},
|
||||
{
|
||||
"Id": 3020002,
|
||||
"InitValue": 600000000,
|
||||
"LowerLimit": 500000000,
|
||||
"UpperLimit": 2000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 650000000
|
||||
},
|
||||
{
|
||||
"Id": 3020003,
|
||||
"InitValue": 3000000000,
|
||||
"LowerLimit": 2500000000,
|
||||
"UpperLimit": 10000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 3250000000
|
||||
},
|
||||
{
|
||||
"Id": 3020004,
|
||||
"InitValue": 6000000000,
|
||||
"LowerLimit": 5000000000,
|
||||
"UpperLimit": 20000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 6500000000
|
||||
},
|
||||
{
|
||||
"Id": 3030001,
|
||||
"InitValue": 60000000,
|
||||
"LowerLimit": 50000000,
|
||||
"UpperLimit": 200000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 65000000
|
||||
},
|
||||
{
|
||||
"Id": 3030002,
|
||||
"InitValue": 600000000,
|
||||
"LowerLimit": 500000000,
|
||||
"UpperLimit": 2000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 650000000
|
||||
},
|
||||
{
|
||||
"Id": 3030003,
|
||||
"InitValue": 3000000000,
|
||||
"LowerLimit": 2500000000,
|
||||
"UpperLimit": 10000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 3250000000
|
||||
},
|
||||
{
|
||||
"Id": 3030004,
|
||||
"InitValue": 6000000000,
|
||||
"LowerLimit": 5000000000,
|
||||
"UpperLimit": 20000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 6500000000
|
||||
},
|
||||
{
|
||||
"Id": 3040001,
|
||||
"InitValue": 60000000,
|
||||
"LowerLimit": 50000000,
|
||||
"UpperLimit": 2000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 65000000
|
||||
},
|
||||
{
|
||||
"Id": 3040002,
|
||||
"InitValue": 3000000000,
|
||||
"LowerLimit": 2500000000,
|
||||
"UpperLimit": 10000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 3250000000
|
||||
},
|
||||
{
|
||||
"Id": 3040003,
|
||||
"InitValue": 6000000000,
|
||||
"LowerLimit": 5000000000,
|
||||
"UpperLimit": 20000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 6500000000
|
||||
},
|
||||
{
|
||||
"Id": 3050001,
|
||||
"InitValue": 60000000,
|
||||
"LowerLimit": 50000000,
|
||||
"UpperLimit": 2000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 65000000
|
||||
},
|
||||
{
|
||||
"Id": 3050002,
|
||||
"InitValue": 3000000000,
|
||||
"LowerLimit": 2500000000,
|
||||
"UpperLimit": 10000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 3250000000
|
||||
},
|
||||
{
|
||||
"Id": 3050003,
|
||||
"InitValue": 6000000000,
|
||||
"LowerLimit": 5000000000,
|
||||
"UpperLimit": 20000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 6500000000
|
||||
},
|
||||
{
|
||||
"Id": 3060001,
|
||||
"InitValue": 6000000,
|
||||
"LowerLimit": 5000000,
|
||||
"UpperLimit": 20000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 6500000
|
||||
},
|
||||
{
|
||||
"Id": 3060002,
|
||||
"InitValue": 60000000,
|
||||
"LowerLimit": 50000000,
|
||||
"UpperLimit": 200000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 65000000
|
||||
},
|
||||
{
|
||||
"Id": 3060003,
|
||||
"InitValue": 300000000,
|
||||
"LowerLimit": 250000000,
|
||||
"UpperLimit": 1000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 325000000
|
||||
},
|
||||
{
|
||||
"Id": 3060004,
|
||||
"InitValue": 600000000,
|
||||
"LowerLimit": 500000000,
|
||||
"UpperLimit": 2000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 650000000
|
||||
},
|
||||
{
|
||||
"Id": 3070001,
|
||||
"InitValue": 6000000,
|
||||
"LowerLimit": 5000000,
|
||||
"UpperLimit": 20000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 6500000
|
||||
},
|
||||
{
|
||||
"Id": 3070002,
|
||||
"InitValue": 60000000,
|
||||
"LowerLimit": 50000000,
|
||||
"UpperLimit": 200000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 65000000
|
||||
},
|
||||
{
|
||||
"Id": 3070003,
|
||||
"InitValue": 300000000,
|
||||
"LowerLimit": 250000000,
|
||||
"UpperLimit": 1000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 325000000
|
||||
},
|
||||
{
|
||||
"Id": 3070004,
|
||||
"InitValue": 600000000,
|
||||
"LowerLimit": 500000000,
|
||||
"UpperLimit": 2000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 650000000
|
||||
},
|
||||
{
|
||||
"Id": 3080001,
|
||||
"InitValue": 6000000,
|
||||
"LowerLimit": 5000000,
|
||||
"UpperLimit": 20000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 6500000
|
||||
},
|
||||
{
|
||||
"Id": 3090001,
|
||||
"InitValue": 60000000,
|
||||
"LowerLimit": 50000000,
|
||||
"UpperLimit": 200000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 65000000
|
||||
},
|
||||
{
|
||||
"Id": 3100001,
|
||||
"InitValue": 300000000,
|
||||
"LowerLimit": 250000000,
|
||||
"UpperLimit": 1000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 325000000
|
||||
},
|
||||
{
|
||||
"Id": 3110001,
|
||||
"InitValue": 600000000,
|
||||
"LowerLimit": 500000000,
|
||||
"UpperLimit": 2000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 650000000
|
||||
},
|
||||
{
|
||||
"Id": 3120001,
|
||||
"InitValue": 600000000,
|
||||
"LowerLimit": 500000000,
|
||||
"UpperLimit": 2000000000,
|
||||
"CtrlRate": 200,
|
||||
"InitNovicValue": 650000000
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
|
@ -10,43 +10,43 @@
|
|||
"Id": 20800,
|
||||
"Name": "Tienlen自由桌娱乐场-WTA",
|
||||
"GameId": 208,
|
||||
"GameDif": "208"
|
||||
"GameDif": "207"
|
||||
},
|
||||
{
|
||||
"Id": 20900,
|
||||
"Name": "Tienlen自由桌经典场(打到底)",
|
||||
"GameId": 209,
|
||||
"GameDif": "209"
|
||||
"GameDif": "207"
|
||||
},
|
||||
{
|
||||
"Id": 21000,
|
||||
"Name": "Tienlen自由桌娱乐场(打到底)",
|
||||
"GameId": 210,
|
||||
"GameDif": "210"
|
||||
"GameDif": "207"
|
||||
},
|
||||
{
|
||||
"Id": 24000,
|
||||
"Name": "Tienlen经典场-WTA",
|
||||
"GameId": 240,
|
||||
"GameDif": "240"
|
||||
"GameDif": "207"
|
||||
},
|
||||
{
|
||||
"Id": 24400,
|
||||
"Name": "Tienlen经典场(打到底)",
|
||||
"GameId": 244,
|
||||
"GameDif": "244"
|
||||
"GameDif": "207"
|
||||
},
|
||||
{
|
||||
"Id": 24100,
|
||||
"Name": "Tienlen娱乐场-WTA",
|
||||
"GameId": 241,
|
||||
"GameDif": "241"
|
||||
"GameDif": "207"
|
||||
},
|
||||
{
|
||||
"Id": 24500,
|
||||
"Name": "tienlen娱乐版(打到底)",
|
||||
"GameId": 245,
|
||||
"GameDif": "245"
|
||||
"GameDif": "207"
|
||||
},
|
||||
{
|
||||
"Id": 40100,
|
||||
|
|
@ -54,18 +54,6 @@
|
|||
"GameId": 401,
|
||||
"GameDif": "401"
|
||||
},
|
||||
{
|
||||
"Id": 30600,
|
||||
"Name": "水果拉霸",
|
||||
"GameId": 306,
|
||||
"GameDif": "306"
|
||||
},
|
||||
{
|
||||
"Id": 30400,
|
||||
"Name": "冰河世纪",
|
||||
"GameId": 304,
|
||||
"GameDif": "304"
|
||||
},
|
||||
{
|
||||
"Id": 52100,
|
||||
"Name": "ChessCambodian",
|
||||
|
|
@ -76,14 +64,14 @@
|
|||
"Id": 52200,
|
||||
"Name": "ChessCambodianRobot",
|
||||
"GameId": 522,
|
||||
"GameDif": "522"
|
||||
"GameDif": "521"
|
||||
},
|
||||
{
|
||||
"Id": 21100,
|
||||
"Name": "十三张(四人场)",
|
||||
"GameId": 211,
|
||||
"Params": [
|
||||
0,
|
||||
4,
|
||||
0,
|
||||
30,
|
||||
50,
|
||||
|
|
@ -96,20 +84,20 @@
|
|||
"Name": "十三张(八人场)",
|
||||
"GameId": 212,
|
||||
"Params": [
|
||||
1,
|
||||
8,
|
||||
0,
|
||||
30,
|
||||
50,
|
||||
0
|
||||
],
|
||||
"GameDif": "212"
|
||||
"GameDif": "211"
|
||||
},
|
||||
{
|
||||
"Id": 21300,
|
||||
"Name": "十三张(自由场经典场)",
|
||||
"GameId": 213,
|
||||
"Params": [
|
||||
1,
|
||||
8,
|
||||
0,
|
||||
30,
|
||||
50,
|
||||
|
|
@ -122,7 +110,7 @@
|
|||
"Name": "十三张(自由场癞子场)",
|
||||
"GameId": 214,
|
||||
"Params": [
|
||||
1,
|
||||
8,
|
||||
0,
|
||||
30,
|
||||
50,
|
||||
|
|
@ -134,25 +122,49 @@
|
|||
"Id": 24200,
|
||||
"Name": "Tienlen排位赛经典场-WTA",
|
||||
"GameId": 242,
|
||||
"GameDif": "242"
|
||||
"GameDif": "207"
|
||||
},
|
||||
{
|
||||
"Id": 24600,
|
||||
"Name": "Tienlen排位赛经典场(打到底)",
|
||||
"GameId": 246,
|
||||
"GameDif": "246"
|
||||
"GameDif": "207"
|
||||
},
|
||||
{
|
||||
"Id": 24300,
|
||||
"Name": "Tienlen排位赛娱乐场-WTA",
|
||||
"GameId": 243,
|
||||
"GameDif": "243"
|
||||
"GameDif": "207"
|
||||
},
|
||||
{
|
||||
"Id": 24700,
|
||||
"Name": "tienlen排位赛娱乐(打到底)",
|
||||
"GameId": 247,
|
||||
"GameDif": "247"
|
||||
"GameDif": "207"
|
||||
},
|
||||
{
|
||||
"Id": 21500,
|
||||
"Name": "tienlen房卡经典",
|
||||
"GameId": 215,
|
||||
"GameDif": "207"
|
||||
},
|
||||
{
|
||||
"Id": 21600,
|
||||
"Name": "tienlen房卡娱乐",
|
||||
"GameId": 216,
|
||||
"GameDif": "207"
|
||||
},
|
||||
{
|
||||
"Id": 21700,
|
||||
"Name": "tienlen房卡经典打到底",
|
||||
"GameId": 217,
|
||||
"GameDif": "207"
|
||||
},
|
||||
{
|
||||
"Id": 21800,
|
||||
"Name": "tienlen房卡娱乐打到底",
|
||||
"GameId": 218,
|
||||
"GameDif": "207"
|
||||
},
|
||||
{
|
||||
"Id": 60600,
|
||||
|
|
@ -165,6 +177,96 @@
|
|||
"Name": "小火箭",
|
||||
"GameId": 607,
|
||||
"GameDif": "607"
|
||||
},
|
||||
{
|
||||
"Id": 30100,
|
||||
"Name": "财运神",
|
||||
"GameId": 301,
|
||||
"GameDif": "301"
|
||||
},
|
||||
{
|
||||
"Id": 30200,
|
||||
"Name": "复仇者联盟",
|
||||
"GameId": 302,
|
||||
"GameDif": "302"
|
||||
},
|
||||
{
|
||||
"Id": 30300,
|
||||
"Name": "复活节岛",
|
||||
"GameId": 303,
|
||||
"GameDif": "303"
|
||||
},
|
||||
{
|
||||
"Id": 30400,
|
||||
"Name": "冰河世纪",
|
||||
"GameId": 304,
|
||||
"GameDif": "304"
|
||||
},
|
||||
{
|
||||
"Id": 30500,
|
||||
"Name": "百战成神",
|
||||
"GameId": 305,
|
||||
"GameDif": "305"
|
||||
},
|
||||
{
|
||||
"Id": 30600,
|
||||
"Name": "水果拉霸",
|
||||
"GameId": 306,
|
||||
"GameDif": "306"
|
||||
},
|
||||
{
|
||||
"Id": 30700,
|
||||
"Name": "多财多福",
|
||||
"GameId": 307,
|
||||
"GameDif": "307"
|
||||
},
|
||||
{
|
||||
"Id": 30800,
|
||||
"Name": "FortuneTiger",
|
||||
"GameId": 308,
|
||||
"GameDif": "308"
|
||||
},
|
||||
{
|
||||
"Id": 30900,
|
||||
"Name": "FortuneDragon",
|
||||
"GameId": 309,
|
||||
"GameDif": "309"
|
||||
},
|
||||
{
|
||||
"Id": 31000,
|
||||
"Name": "FortuneRabbit",
|
||||
"GameId": 310,
|
||||
"GameDif": "310"
|
||||
},
|
||||
{
|
||||
"Id": 31100,
|
||||
"Name": "FortuneOx",
|
||||
"GameId": 311,
|
||||
"GameDif": "311"
|
||||
},
|
||||
{
|
||||
"Id": 31200,
|
||||
"Name": "FortuneMouse",
|
||||
"GameId": 312,
|
||||
"GameDif": "312"
|
||||
},
|
||||
{
|
||||
"Id": 31300,
|
||||
"Name": "CashMania",
|
||||
"GameId": 313,
|
||||
"GameDif": "313"
|
||||
},
|
||||
{
|
||||
"Id": 31400,
|
||||
"Name": "GatesOfOlympus",
|
||||
"GameId": 314,
|
||||
"GameDif": "314"
|
||||
},
|
||||
{
|
||||
"Id": 60800,
|
||||
"Name": "娃娃机",
|
||||
"GameId": 608,
|
||||
"GameDif": "608"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1,210 +1,55 @@
|
|||
|
||||
Яа(Бъ:
|
||||
Я<18>'(Бъ:
|
||||
Я<18>N(Бъ:
|
||||
Я<18>u(Бъ:
|
||||
Я <>(Бъ:
|
||||
ЯЈУ(Бъ:
|
||||
ЯАъ(Бъ:
|
||||
ЯИ<>(Бъ:
|
||||
ЯРИ(Бъ:
|
||||
Ð ±ê(2
|
||||
ˆ' ±ê(12
|
||||
<10>N ±ê(c2
|
||||
˜u ±ê(•2
|
||||
œ ±ê(Æ2
|
||||
¨Ã ±ê(÷2
|
||||
°ê ±ê(©2
|
||||
¸‘ ±ê(Û2
|
||||
À¸ ±ê(Œ2
|
||||
|
||||
ЯШп(Бъ:
|
||||
Яа<>(Бъ:
|
||||
Яи(Бъ:
|
||||
Ярд(Бъ:
|
||||
Яшћ(Бъ:
|
||||
Я№Ђ(Бъ:
|
||||
ЯјЩ(Бъ:
|
||||
Я<18>ё(Бъ:
|
||||
Я<18><>(Бъ:
|
||||
Я<18>П(Бъ:
|
||||
Я<18>ц(Бъ:
|
||||
Я <>(Бъ:
|
||||
Я№<> (Бъ:
|
||||
ЯР<>(Бъ:
|
||||
Я<18>Ё(Бъ:
|
||||
ЯрЇ(Бъ:
|
||||
ЯАЎ(Бъ:
|
||||
Я<18>Е(Бъ:
|
||||
ЯаЛ(Бъ:
|
||||
Я Т(Бъ:
|
||||
Я№Ш!(Бъ:
|
||||
ЯРЯ$(Бъ:
|
||||
Я<18>ж'(Бъ:
|
||||
!Ярм*(Бъ:
|
||||
"ЯАу-(Бъ:
|
||||
#Я<18>ъ0(Бъ:
|
||||
$Яа№3(Бъ:
|
||||
%Я ї6(Бъ:
|
||||
&Я№§9(Бъ:
|
||||
'ЯР<>=(Бъ:
|
||||
(Я<18><>z(Бъ:
|
||||
|
||||
)ЯР<>Б(Бъ:
|
||||
|
||||
*Я<18>т(Бъ:2
|
||||
+ЯРУ<D0A0>(Бъ:2K
|
||||
,Я<18>кФ (Бъ:Kd
|
||||
-ЯР№ѕ(Бъ:d}
|
||||
.Я<18><>Ї(Бъ:}<7D>
|
||||
/ЯР<>и(Бъ:<04>Џ
|
||||
0Я<18>Д<EFBFBD>(Бъ:ЏШ
|
||||
1ЯРЪК(Бъ:Шс
|
||||
2Я<18>сы(Бъ:сњ
|
||||
3аа(Бъ:
|
||||
4а<18>'(Бъ:
|
||||
5а<18>N(Бъ:
|
||||
6а<18>u(Бъ:
|
||||
7а <>(Бъ:
|
||||
8аЈУ(Бъ:
|
||||
9аАъ(Бъ:
|
||||
:аИ<>(Бъ:
|
||||
;аРИ(Бъ:
|
||||
<аШп(Бъ:
|
||||
=аа<>(Бъ:
|
||||
>аи(Бъ:
|
||||
?ард(Бъ:
|
||||
@ашћ(Бъ:
|
||||
Aа№Ђ(Бъ:
|
||||
BајЩ(Бъ:
|
||||
Cа<18>ё(Бъ:
|
||||
Dа<18><>(Бъ:
|
||||
Eа<18>П(Бъ:
|
||||
Fа<18>ц(Бъ:
|
||||
Gа <>(Бъ:
|
||||
Hа№<> (Бъ:
|
||||
IаР<>(Бъ:
|
||||
Jа<18>Ё(Бъ:
|
||||
KарЇ(Бъ:
|
||||
LаАЎ(Бъ:
|
||||
Mа<18>Е(Бъ:
|
||||
NааЛ(Бъ:
|
||||
Oа Т(Бъ:
|
||||
Pа№Ш!(Бъ:
|
||||
QаРЯ$(Бъ:
|
||||
Rа<18>ж'(Бъ:
|
||||
Sарм*(Бъ:
|
||||
TаАу-(Бъ:
|
||||
Uа<18>ъ0(Бъ:
|
||||
Vаа№3(Бъ:
|
||||
Wа ї6(Бъ:
|
||||
Xа№§9(Бъ:
|
||||
YаР<>=(Бъ:
|
||||
Zа<18><>z(Бъ:
|
||||
|
||||
[аР<>Б(Бъ:
|
||||
|
||||
\а<18>т(Бъ:2
|
||||
]аРУ<D0A0>(Бъ:2K
|
||||
^а<18>кФ (Бъ:Kd
|
||||
_аР№ѕ(Бъ:d}
|
||||
`а<18><>Ї(Бъ:}<7D>
|
||||
aаР<>и(Бъ:<04>Џ
|
||||
bа<18>Д<EFBFBD>(Бъ:ЏШ
|
||||
cаРЪК(Бъ:Шс
|
||||
dа<18>сы(Бъ:сњ
|
||||
eба(Бъ:
|
||||
fб<18>'(Бъ:
|
||||
gб<18>N(Бъ:
|
||||
hб<18>u(Бъ:
|
||||
iб <>(Бъ:
|
||||
jбЈУ(Бъ:
|
||||
kбАъ(Бъ:
|
||||
lбИ<>(Бъ:
|
||||
mбРИ(Бъ:
|
||||
nбШп(Бъ:
|
||||
oба<>(Бъ:
|
||||
pби(Бъ:
|
||||
qбрд(Бъ:
|
||||
rбшћ(Бъ:
|
||||
sб№Ђ(Бъ:
|
||||
tбјЩ(Бъ:
|
||||
uб<18>ё(Бъ:
|
||||
vб<18><>(Бъ:
|
||||
wб<18>П(Бъ:
|
||||
xб<18>ц(Бъ:
|
||||
yб <>(Бъ:
|
||||
zб№<> (Бъ:
|
||||
{бР<>(Бъ:
|
||||
|б<18>Ё(Бъ:
|
||||
}брЇ(Бъ:
|
||||
~бАЎ(Бъ:
|
||||
б<18>Е(Бъ:
|
||||
<08>баЛ(Бъ:
|
||||
<08>б Т(Бъ:
|
||||
<08>б№Ш!(Бъ:
|
||||
<08>бРЯ$(Бъ:
|
||||
<08>б<18>ж'(Бъ:
|
||||
<08>брм*(Бъ:
|
||||
<08>бАу-(Бъ:
|
||||
<08>б<18>ъ0(Бъ:
|
||||
<08>ба№3(Бъ:
|
||||
<08>б ї6(Бъ:
|
||||
<08>б№§9(Бъ:
|
||||
<08>бР<>=(Бъ:
|
||||
<08>б<18><>z(Бъ:
|
||||
|
||||
<08>бР<>Б(Бъ:
|
||||
|
||||
<08>б<18>т(Бъ:2
|
||||
<08>бРУ<D0A0>(Бъ:2K
|
||||
<08>б<18>кФ (Бъ:Kd
|
||||
<08>бР№ѕ(Бъ:d}
|
||||
<08>б<18><>Ї(Бъ:}<7D>
|
||||
<08>бР<>и(Бъ:<04>Џ
|
||||
<08>б<18>Д<EFBFBD>(Бъ:ЏШ
|
||||
<08>бРЪК(Бъ:Шс
|
||||
<08>б<18>сы(Бъ:сњ
|
||||
<08>ва(Бъ:
|
||||
<08>в<18>'(Бъ:
|
||||
<08>в<18>N(Бъ:
|
||||
<08>в<18>u(Бъ:
|
||||
<08>в <>(Бъ:
|
||||
<08>вЈУ(Бъ:
|
||||
<08>вАъ(Бъ:
|
||||
<08>вИ<>(Бъ:
|
||||
<08>вРИ(Бъ:
|
||||
вШп(Бъ:
|
||||
Ёва<>(Бъ:
|
||||
Ђви(Бъ:
|
||||
Ѓврд(Бъ:
|
||||
Євшћ(Бъ:
|
||||
Ѕв№Ђ(Бъ:
|
||||
ІвјЩ(Бъ:
|
||||
Їв<18>ё(Бъ:
|
||||
Јв<18><>(Бъ:
|
||||
Љв<18>П(Бъ:
|
||||
Њв<18>ц(Бъ:
|
||||
Ћв <>(Бъ:
|
||||
Ќв№<> (Бъ:
|
||||
вР<>(Бъ:
|
||||
Ўв<18>Ё(Бъ:
|
||||
ЏврЇ(Бъ:
|
||||
АвАЎ(Бъ:
|
||||
Бв<18>Е(Бъ:
|
||||
ВваЛ(Бъ:
|
||||
Гв Т(Бъ:
|
||||
Дв№Ш!(Бъ:
|
||||
ЕвРЯ$(Бъ:
|
||||
Жв<18>ж'(Бъ:
|
||||
Зврм*(Бъ:
|
||||
ИвАу-(Бъ:
|
||||
Йв<18>ъ0(Бъ:
|
||||
Ква№3(Бъ:
|
||||
Лв ї6(Бъ:
|
||||
Мв№§9(Бъ:
|
||||
НвР<>=(Бъ:
|
||||
Ов<18><>z(Бъ:
|
||||
|
||||
ПвР<>Б(Бъ:
|
||||
|
||||
Рв<18>т(Бъ:2
|
||||
СвРУ<D0A0>(Бъ:2K
|
||||
Тв<18>кФ (Бъ:Kd
|
||||
УвР№ѕ(Бъ:d}
|
||||
Фв<18><>Ї(Бъ:}<7D>
|
||||
ХвР<>и(Бъ:<04>Џ
|
||||
Цв<18>Д<EFBFBD>(Бъ:ЏШ
|
||||
ЧвРЪК(Бъ:Шс
|
||||
Шв<18>сы(Бъ:сњ
|
||||
Èß ±ê(½2
|
||||
І ±ê(ï2
|
||||
Ø ±ê(¡2
|
||||
àÔ ±ê(Ò2
|
||||
èû ±ê(ƒ2
|
||||
𢠱ê(µ2
|
||||
øÉ ±ê(ç2
|
||||
€ñ ±ê(˜2
|
||||
ˆ˜ ±ê(É2
|
||||
<10>¿ ±ê(û2
|
||||
˜æ ±ê(2
|
||||
<> ±ê(Þ2
|
||||
ð“ ±ê(Í2
|
||||
Àš ±ê(¼2
|
||||
<10>¡ ±ê(«2
|
||||
à§ ±ê(š2
|
||||
°® ±ê(‰2
|
||||
€µ ±ê(ø2
|
||||
л ±ê(ç"2
|
||||
 ±ê(Ö&2
|
||||
ðÈ! ±ê(Å*2
|
||||
ÀÏ$ ±ê(´.2
|
||||
<10>Ö' ±ê(£22
|
||||
!àÜ* ±ê(ë32
|
||||
"°ã- ±ê(³52
|
||||
#€ê0 ±ê(û62
|
||||
$Ðð3 ±ê(Ã82
|
||||
% ÷6 ±ê(‹:2
|
||||
&ðý9 ±ê(Ó;2
|
||||
'À„= ±ê(›=2
|
||||
(€‰z ±ê(ã>2
|
||||
)À–± ±ê(«@2
|
||||
*€â ±ê(<28>N2
|
||||
+ÀÓ ±ê(<28>N2
|
||||
,€ÚÄ ±ê(<28>N2
|
||||
-Àðõ ±ê(<28>N2
|
||||
.€‡§ ±ê(<28>N2$
|
||||
/À<>Ø ±ê(<28>N2$*
|
||||
0€´‰ ±ê(<28>N2)0
|
||||
1Àʺ ±ê(<28>N2.6
|
||||
2€áë ±ê(<28>N23<
|
||||
3€Â×/ ±ê(<28>N2e{
|
||||
4€£ÃG ±ê(<28>N2–¤
|
||||
5€„¯_ ±ê(<28>N2Çö
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"Arr": [
|
||||
{
|
||||
"Id": 1,
|
||||
"ShopID": 970001,
|
||||
"Name": "7日礼品卡",
|
||||
"Rewards": {
|
||||
"100001": 5000000,
|
||||
"50001": 10
|
||||
},
|
||||
"DayRewards": {
|
||||
"100001": 1000000
|
||||
},
|
||||
"Time": 7,
|
||||
"Equity": [
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
<18>‰z Łś
|
||||
|
||||
‘N ‘N
|
||||
â§
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"Arr": [
|
||||
{
|
||||
"Id": 1,
|
||||
"ShowType": 1,
|
||||
"ShowVolume": 2000003,
|
||||
"Location": 20003
|
||||
},
|
||||
{
|
||||
"Id": 2,
|
||||
"ShowType": 2,
|
||||
"ShowVolume": 10001,
|
||||
"Location": 10001
|
||||
},
|
||||
{
|
||||
"Id": 3,
|
||||
"ShowType": 3,
|
||||
"ShowVolume": 300002
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
W鮮 チ<>=(2驥鷹ク。螳亥梱:1蝨ィ陲ォ轤ク蠑ケ譏守。ョ謾サ蜃サ譌カ{0}%讎ら紫螳悟<E89EB3>蜈咲稔@J<08>
|
||||
W鮮 チ<>=(2驥鷹ク。螳亥梱:1蝨ィ陲ォ轤ク蠑ケ譏守。ョ謾サ蜃サ譌カ{0}%讎ら紫螳悟<E89EB3>蜈咲稔@J<08>
|
||||
W鮮 チ<>=(2驥鷹ク。螳亥梱:1蝨ィ陲ォ轤ク蠑ケ譏守。ョ謾サ蜃サ譌カ{0}%讎ら紫螳悟<E89EB3>蜈咲稔@J<08>
|
||||
W鮮 チ<>=(2驥鷹ク。螳亥梱:1蝨ィ陲ォ轤ク蠑ケ譏守。ョ謾サ蜃サ譌カ{0}%讎ら紫螳悟<E89EB3>蜈咲稔@J<08>
|
||||
W鮮 チ<>=(2驥鷹ク。螳亥梱:1蝨ィ陲ォ轤ク蠑ケ譏守。ョ謾サ蜃サ譌カ{0}%讎ら紫螳悟<E89EB3>蜈咲稔@J<08>
|
||||
W鮮 チ<>=(2驥鷹ク。螳亥梱:1蝨ィ陲ォ轤ク蠑ケ譏守。ョ謾サ蜃サ譌カ{0}%讎ら紫螳悟<E89EB3>蜈咲稔@J<08>
|
||||
W鮮 チ<>=(2驥鷹ク。螳亥梱:1蝨ィ陲ォ轤ク蠑ケ譏守。ョ謾サ蜃サ譌カ{0}%讎ら紫螳悟<E89EB3>蜈咲稔@J<08>"
|
||||
W鮮 チ<>=(2驥鷹ク。螳亥梱:1蝨ィ陲ォ轤ク蠑ケ譏守。ョ謾サ蜃サ譌カ{0}%讎ら紫螳悟<E89EB3>蜈咲稔@J<08>7
|
||||
W 鮮 チ<>=( 2驥鷹ク。螳亥梱:1蝨ィ陲ォ轤ク蠑ケ譏守。ョ謾サ蜃サ譌カ{0}%讎ら紫螳悟<E89EB3>蜈咲稔@ J<08>Y
|
||||
X
|
||||
鮮 チ<>=(
|
||||
2驥鷹ク。螳亥梱:1蝨ィ陲ォ轤ク蠑ケ譏守。ョ謾サ蜃サ譌カ{0}%讎ら紫螳悟<E89EB3>蜈咲稔@
|
||||
J<08><10>
|
||||
|
|
@ -0,0 +1,134 @@
|
|||
{
|
||||
"Arr": [
|
||||
{
|
||||
"Id": 1,
|
||||
"SkillId": 10001,
|
||||
"SkillType": 1,
|
||||
"PetId": 1000001,
|
||||
"SkillLevel": 1,
|
||||
"SkillName": "金鸡守卫",
|
||||
"SkillDes": "在被炸弹明确攻击时{0}%概率完全免疫",
|
||||
"SKillValue": 1,
|
||||
"ItemConsum": {
|
||||
"11001": 20
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 2,
|
||||
"SkillId": 10001,
|
||||
"SkillType": 1,
|
||||
"PetId": 1000001,
|
||||
"SkillLevel": 2,
|
||||
"SkillName": "金鸡守卫",
|
||||
"SkillDes": "在被炸弹明确攻击时{0}%概率完全免疫",
|
||||
"SKillValue": 2,
|
||||
"ItemConsum": {
|
||||
"11001": 3
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 3,
|
||||
"SkillId": 10001,
|
||||
"SkillType": 1,
|
||||
"PetId": 1000001,
|
||||
"SkillLevel": 3,
|
||||
"SkillName": "金鸡守卫",
|
||||
"SkillDes": "在被炸弹明确攻击时{0}%概率完全免疫",
|
||||
"SKillValue": 3,
|
||||
"ItemConsum": {
|
||||
"11001": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 4,
|
||||
"SkillId": 10001,
|
||||
"SkillType": 1,
|
||||
"PetId": 1000001,
|
||||
"SkillLevel": 4,
|
||||
"SkillName": "金鸡守卫",
|
||||
"SkillDes": "在被炸弹明确攻击时{0}%概率完全免疫",
|
||||
"SKillValue": 4,
|
||||
"ItemConsum": {
|
||||
"11001": 8
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 5,
|
||||
"SkillId": 10001,
|
||||
"SkillType": 1,
|
||||
"PetId": 1000001,
|
||||
"SkillLevel": 5,
|
||||
"SkillName": "金鸡守卫",
|
||||
"SkillDes": "在被炸弹明确攻击时{0}%概率完全免疫",
|
||||
"SKillValue": 5,
|
||||
"ItemConsum": {
|
||||
"11001": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 6,
|
||||
"SkillId": 10001,
|
||||
"SkillType": 1,
|
||||
"PetId": 1000001,
|
||||
"SkillLevel": 6,
|
||||
"SkillName": "金鸡守卫",
|
||||
"SkillDes": "在被炸弹明确攻击时{0}%概率完全免疫",
|
||||
"SKillValue": 6,
|
||||
"ItemConsum": {
|
||||
"11001": 21
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 7,
|
||||
"SkillId": 10001,
|
||||
"SkillType": 1,
|
||||
"PetId": 1000001,
|
||||
"SkillLevel": 7,
|
||||
"SkillName": "金鸡守卫",
|
||||
"SkillDes": "在被炸弹明确攻击时{0}%概率完全免疫",
|
||||
"SKillValue": 7,
|
||||
"ItemConsum": {
|
||||
"11001": 34
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 8,
|
||||
"SkillId": 10001,
|
||||
"SkillType": 1,
|
||||
"PetId": 1000001,
|
||||
"SkillLevel": 8,
|
||||
"SkillName": "金鸡守卫",
|
||||
"SkillDes": "在被炸弹明确攻击时{0}%概率完全免疫",
|
||||
"SKillValue": 8,
|
||||
"ItemConsum": {
|
||||
"11001": 55
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 9,
|
||||
"SkillId": 10001,
|
||||
"SkillType": 1,
|
||||
"PetId": 1000001,
|
||||
"SkillLevel": 9,
|
||||
"SkillName": "金鸡守卫",
|
||||
"SkillDes": "在被炸弹明确攻击时{0}%概率完全免疫",
|
||||
"SKillValue": 9,
|
||||
"ItemConsum": {
|
||||
"11001": 89
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 10,
|
||||
"SkillId": 10001,
|
||||
"SkillType": 1,
|
||||
"PetId": 1000001,
|
||||
"SkillLevel": 10,
|
||||
"SkillName": "金鸡守卫",
|
||||
"SkillDes": "在被炸弹明确攻击时{0}%概率完全免疫",
|
||||
"SKillValue": 10,
|
||||
"ItemConsum": {
|
||||
"11001": 144
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
(Ђв0–8Ўи;@dH–Pc
|
||||
((Ђв0¬8ўи;@dH¬PЗ
|
||||
яБЧ/ 2(Ђв0о8Ји;@dHоPу
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
"Arr": [
|
||||
{
|
||||
"Id": 1,
|
||||
"BuyCountMin": 1,
|
||||
"BuyCountMax": 1,
|
||||
"CostDiamond": 30,
|
||||
"MaxGold": 10000000,
|
||||
"MaxDiamond": 150,
|
||||
"DiamondId": 980001,
|
||||
"CoinPrice": 100,
|
||||
"DiamondPrice": 150,
|
||||
"DiamondNowPrice": 99
|
||||
},
|
||||
{
|
||||
"Id": 2,
|
||||
"BuyCountMin": 2,
|
||||
"BuyCountMax": 2,
|
||||
"CostDiamond": 40,
|
||||
"MaxGold": 10000000,
|
||||
"MaxDiamond": 300,
|
||||
"DiamondId": 980002,
|
||||
"CoinPrice": 100,
|
||||
"DiamondPrice": 300,
|
||||
"DiamondNowPrice": 199
|
||||
},
|
||||
{
|
||||
"Id": 3,
|
||||
"BuyCountMin": 3,
|
||||
"BuyCountMax": 99999999,
|
||||
"CostDiamond": 50,
|
||||
"MaxGold": 10000000,
|
||||
"MaxDiamond": 750,
|
||||
"DiamondId": 980003,
|
||||
"CoinPrice": 100,
|
||||
"DiamondPrice": 750,
|
||||
"DiamondNowPrice": 499
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
WinCoinRate
|
||||
LoseCoinRate
|
||||
|
||||
DayBuyMaxCnt
|
||||
WinCoinRateDiamond
|
||||
LoseCoinRateDiamond
|
||||
|
||||
DayBuyMaxCntDiamond
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"Arr": [
|
||||
{
|
||||
"Id": 1,
|
||||
"PorpName": "WinCoinRate",
|
||||
"PropValue": 5
|
||||
},
|
||||
{
|
||||
"Id": 2,
|
||||
"PorpName": "LoseCoinRate",
|
||||
"PropValue": 10
|
||||
},
|
||||
{
|
||||
"Id": 3,
|
||||
"PorpName": "DayBuyMaxCnt",
|
||||
"PropValue": 3
|
||||
},
|
||||
{
|
||||
"Id": 4,
|
||||
"PorpName": "WinCoinRateDiamond",
|
||||
"PropValue": 5
|
||||
},
|
||||
{
|
||||
"Id": 5,
|
||||
"PorpName": "LoseCoinRateDiamond",
|
||||
"PropValue": 10
|
||||
},
|
||||
{
|
||||
"Id": 6,
|
||||
"PorpName": "DayBuyMaxCntDiamond",
|
||||
"PropValue": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
|
@ -63,6 +63,54 @@
|
|||
"Gain": {
|
||||
"100002": 500
|
||||
}
|
||||
}
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{}
|
||||
]
|
||||
}
|
||||
|
|
@ -1,8 +1,9 @@
|
|||
|
||||
$08и@HЂ‡§
|
||||
08ф@HЂЪД
|
||||
08¬@HЂв
|
||||
08И@HЂк0
|
||||
08–@H В
|
||||
08d@Hа§
|
||||
082@HАљ
|
||||
$08И@HЂ‡§
|
||||
08d@HЂЪД
|
||||
08<@HЂв
|
||||
08(@HЂк0
|
||||
08@H В
|
||||
08@Hа§
|
||||
08
|
||||
@HАљ
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
"RankType": 1,
|
||||
"Level": 36,
|
||||
"Award2Id": 2,
|
||||
"Award2Num": 1000,
|
||||
"Award2Num": 200,
|
||||
"Award3Id": 1,
|
||||
"Award3Num": 30000000
|
||||
},
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
"RankType": 1,
|
||||
"Level": 31,
|
||||
"Award2Id": 2,
|
||||
"Award2Num": 500,
|
||||
"Award2Num": 100,
|
||||
"Award3Id": 1,
|
||||
"Award3Num": 20000000
|
||||
},
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
"RankType": 1,
|
||||
"Level": 26,
|
||||
"Award2Id": 2,
|
||||
"Award2Num": 300,
|
||||
"Award2Num": 60,
|
||||
"Award3Id": 1,
|
||||
"Award3Num": 10000000
|
||||
},
|
||||
|
|
@ -32,7 +32,7 @@
|
|||
"RankType": 1,
|
||||
"Level": 21,
|
||||
"Award2Id": 2,
|
||||
"Award2Num": 200,
|
||||
"Award2Num": 40,
|
||||
"Award3Id": 1,
|
||||
"Award3Num": 800000
|
||||
},
|
||||
|
|
@ -41,7 +41,7 @@
|
|||
"RankType": 1,
|
||||
"Level": 16,
|
||||
"Award2Id": 2,
|
||||
"Award2Num": 150,
|
||||
"Award2Num": 30,
|
||||
"Award3Id": 1,
|
||||
"Award3Num": 500000
|
||||
},
|
||||
|
|
@ -50,7 +50,7 @@
|
|||
"RankType": 1,
|
||||
"Level": 11,
|
||||
"Award2Id": 2,
|
||||
"Award2Num": 100,
|
||||
"Award2Num": 20,
|
||||
"Award3Id": 1,
|
||||
"Award3Num": 300000
|
||||
},
|
||||
|
|
@ -59,7 +59,7 @@
|
|||
"RankType": 1,
|
||||
"Level": 6,
|
||||
"Award2Id": 2,
|
||||
"Award2Num": 50,
|
||||
"Award2Num": 10,
|
||||
"Award3Id": 1,
|
||||
"Award3Num": 200000
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -0,0 +1,147 @@
|
|||
{
|
||||
"Arr": [
|
||||
{
|
||||
"Id": 300001,
|
||||
"SkinClass": 4,
|
||||
"Model": "juese",
|
||||
"SkinPic": "icon_300001",
|
||||
"SkinName": "活力-黄",
|
||||
"SkinType": "mg_01",
|
||||
"SkinSkillName": "0",
|
||||
"SkinSkillIcon": "0",
|
||||
"SkinSkillDes": "0",
|
||||
"Turn": [
|
||||
0
|
||||
],
|
||||
"TurnKey": [
|
||||
"0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Id": 300002,
|
||||
"SkinClass": 2,
|
||||
"Model": "juese",
|
||||
"SkinPic": "icon_300002",
|
||||
"SkinName": "财神送福",
|
||||
"SkinType": "mg_06",
|
||||
"UnlockType": 2,
|
||||
"UnlockItem": {
|
||||
"310002": 20
|
||||
},
|
||||
"SkinSkillName": "福气东来",
|
||||
"SkinSkillIcon": "SkillIcon-30002",
|
||||
"SkinSkillDes": "排位赛积分提升",
|
||||
"Turn": [
|
||||
1
|
||||
],
|
||||
"TurnKey": [
|
||||
"DBSkinUnlock_300002_t1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Id": 300003,
|
||||
"SkinClass": 2,
|
||||
"Model": "juese",
|
||||
"SkinPic": "icon_300003",
|
||||
"SkinName": "活力-粉",
|
||||
"SkinType": "mg_02",
|
||||
"UnlockType": 2,
|
||||
"UnlockItem": {
|
||||
"310003": 20
|
||||
},
|
||||
"SkinSkillName": "活力满满",
|
||||
"SkinSkillIcon": "SkillIcon-30003",
|
||||
"SkinSkillDes": "VIP赛每日免费报名次数提升",
|
||||
"Turn": [
|
||||
2
|
||||
],
|
||||
"TurnKey": [
|
||||
"DBSkinUnlock_300003_t1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Id": 300004,
|
||||
"SkinClass": 2,
|
||||
"Model": "juese",
|
||||
"SkinPic": "icon_300004",
|
||||
"SkinName": "活力-青",
|
||||
"SkinType": "mg_03",
|
||||
"UnlockType": 2,
|
||||
"UnlockItem": {
|
||||
"310004": 20
|
||||
},
|
||||
"SkinSkillName": "金币满满",
|
||||
"SkinSkillIcon": "SkillIcon-30004",
|
||||
"SkinSkillDes": "每日礼包金币奖励提升",
|
||||
"Turn": [
|
||||
2
|
||||
],
|
||||
"TurnKey": [
|
||||
"DBSkinUnlock_300004_t1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Id": 300005,
|
||||
"SkinClass": 2,
|
||||
"Model": "juese",
|
||||
"SkinPic": "icon_300005",
|
||||
"SkinName": "摇滚小子",
|
||||
"SkinType": "mg_04",
|
||||
"UnlockType": 2,
|
||||
"UnlockItem": {
|
||||
"310005": 20
|
||||
},
|
||||
"SkinSkillName": "金币加成",
|
||||
"SkinSkillIcon": "SkillIcon-30005",
|
||||
"SkinSkillDes": "每日任务金币奖励加成",
|
||||
"Turn": [
|
||||
3
|
||||
],
|
||||
"TurnKey": [
|
||||
"DBSkinUnlock_300005_t1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Id": 300006,
|
||||
"SkinClass": 4,
|
||||
"Model": "juese",
|
||||
"SkinPic": "icon_300006",
|
||||
"SkinName": "潜水员",
|
||||
"SkinType": "mg_05",
|
||||
"UnlockType": 2,
|
||||
"UnlockItem": {
|
||||
"310006": 20
|
||||
},
|
||||
"SkinSkillName": "0",
|
||||
"SkinSkillIcon": "0",
|
||||
"SkinSkillDes": "0",
|
||||
"Turn": [
|
||||
4
|
||||
],
|
||||
"TurnKey": [
|
||||
"DBSkinUnlock_300006_t1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"Id": 300007,
|
||||
"SkinClass": 2,
|
||||
"Model": "juese",
|
||||
"SkinPic": "icon_300007",
|
||||
"SkinName": "冲浪健将",
|
||||
"SkinType": "mg_07",
|
||||
"UnlockType": 2,
|
||||
"UnlockItem": {
|
||||
"310007": 20
|
||||
},
|
||||
"SkinSkillName": "好运加成",
|
||||
"SkinSkillIcon": "SkillIcon-30007",
|
||||
"SkinSkillDes": "每次钻石抽奖幸运值提升",
|
||||
"Turn": [
|
||||
5
|
||||
],
|
||||
"TurnKey": [
|
||||
"DBSkinUnlock_300007_t1"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,89 @@
|
|||
|
||||
á§B0
|
||||
á§"ñõB0
|
||||
á§"ñõB0
|
||||
á§"ñõB0
|
||||
á§"ñõ
B0
|
||||
á§"ñõB0
|
||||
á§"ñõ"B0
|
||||
á§"ñõ7B0
|
||||
á§ "ñõYB0
|
||||
|
||||
á§
|
||||
"ñõ<10>B0
|
||||
+â§(²ê08B排ä½<C3A4>赛积分æ<E280A0><C3A6>å<EFBFBD>‡{0}%
|
||||
3â§"òõ(²ê08B排ä½<C3A4>赛积分æ<E280A0><C3A6>å<EFBFBD>‡{0}%
|
||||
3
â§"òõ(²ê08B排ä½<C3A4>赛积分æ<E280A0><C3A6>å<EFBFBD>‡{0}%
|
||||
3â§"òõ(²ê08B排ä½<C3A4>赛积分æ<E280A0><C3A6>å<EFBFBD>‡{0}%
|
||||
3â§"òõ
(²ê08B排ä½<C3A4>赛积分æ<E280A0><C3A6>å<EFBFBD>‡{0}%
|
||||
3â§"òõ(²ê08B排ä½<C3A4>赛积分æ<E280A0><C3A6>å<EFBFBD>‡{0}%
|
||||
3â§"òõ"(²ê08B排ä½<C3A4>赛积分æ<E280A0><C3A6>å<EFBFBD>‡{0}%
|
||||
3â§"òõ7(²ê08B排ä½<C3A4>赛积分æ<E280A0><C3A6>å<EFBFBD>‡{0}%
|
||||
3â§ "òõY(²ê0 8 B排ä½<C3A4>赛积分æ<E280A0><C3A6>å<EFBFBD>‡{0}%
|
||||
4â§
|
||||
"òõ<10>(²ê0
|
||||
8
|
||||
B排ä½<C3A4>赛积分æ<E280A0><C3A6>å<EFBFBD>‡{0}%
|
||||
9ã§(³ê08B'VIPèµ›æ¯<C3A6>æ—¥å…<C3A5>费报å<C2A5><C3A5>次数æ<C2B0><C3A6>å<EFBFBD>‡{0}
|
||||
Aã§"óõ(³ê08B'VIPèµ›æ¯<C3A6>æ—¥å…<C3A5>费报å<C2A5><C3A5>次数æ<C2B0><C3A6>å<EFBFBD>‡{0}
|
||||
Aã§"óõ(³ê08B'VIPèµ›æ¯<C3A6>æ—¥å…<C3A5>费报å<C2A5><C3A5>次数æ<C2B0><C3A6>å<EFBFBD>‡{0}
|
||||
Aã§"óõ(³ê08B'VIPèµ›æ¯<C3A6>æ—¥å…<C3A5>费报å<C2A5><C3A5>次数æ<C2B0><C3A6>å<EFBFBD>‡{0}
|
||||
Aã§"óõ
(³ê08B'VIPèµ›æ¯<C3A6>æ—¥å…<C3A5>费报å<C2A5><C3A5>次数æ<C2B0><C3A6>å<EFBFBD>‡{0}
|
||||
Aã§"óõ(³ê08B'VIPèµ›æ¯<C3A6>æ—¥å…<C3A5>费报å<C2A5><C3A5>次数æ<C2B0><C3A6>å<EFBFBD>‡{0}
|
||||
Aã§"óõ"(³ê08B'VIPèµ›æ¯<C3A6>æ—¥å…<C3A5>费报å<C2A5><C3A5>次数æ<C2B0><C3A6>å<EFBFBD>‡{0}
|
||||
Aã§"óõ7(³ê08B'VIPèµ›æ¯<C3A6>æ—¥å…<C3A5>费报å<C2A5><C3A5>次数æ<C2B0><C3A6>å<EFBFBD>‡{0}
|
||||
Aã§ "óõY(³ê0 8 B'VIPèµ›æ¯<C3A6>æ—¥å…<C3A5>费报å<C2A5><C3A5>次数æ<C2B0><C3A6>å<EFBFBD>‡{0}
|
||||
Bã§
|
||||
"óõ<10>(³ê0
|
||||
8
|
||||
B'VIPèµ›æ¯<C3A6>æ—¥å…<C3A5>费报å<C2A5><C3A5>次数æ<C2B0><C3A6>å<EFBFBD>‡{0}
|
||||
4ä§(´ê08B"æ¯<C3A6>日礼包金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
< ä§"ôõ(´ê08B"æ¯<C3A6>日礼包金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
<!ä§"ôõ(´ê08B"æ¯<C3A6>日礼包金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
<"ä§"ôõ(´ê08B"æ¯<C3A6>日礼包金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
<#ä§"ôõ
(´ê08B"æ¯<C3A6>日礼包金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
<$ä§"ôõ(´ê08B"æ¯<C3A6>日礼包金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
<%ä§"ôõ"(´ê08B"æ¯<C3A6>日礼包金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
<&ä§"ôõ7(´ê08B"æ¯<C3A6>日礼包金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
<'ä§ "ôõY(´ê0 8 B"æ¯<C3A6>日礼包金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
=(ä§
|
||||
"ôõ<10>(´ê0
|
||||
8
|
||||
B"æ¯<C3A6>日礼包金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
4)å§(µê08B"æ¯<C3A6>日任务金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
<*å§"õõ(µê08B"æ¯<C3A6>日任务金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
<+å§"õõ(µê08B"æ¯<C3A6>日任务金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
<,å§"õõ(µê08B"æ¯<C3A6>日任务金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
<-å§"õõ
(µê08B"æ¯<C3A6>日任务金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
<.å§"õõ(µê08B"æ¯<C3A6>日任务金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
</å§"õõ"(µê08B"æ¯<C3A6>日任务金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
<0å§"õõ7(µê08B"æ¯<C3A6>日任务金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
<1å§ "õõY(µê0 8 B"æ¯<C3A6>日任务金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
=2å§
|
||||
"õõ<10>(µê0
|
||||
8
|
||||
B"æ¯<C3A6>日任务金å¸<C3A5>奖励æ<C2B1><C3A6>å<EFBFBD>‡{0}%
|
||||
3æ§B0
|
||||
4æ§"öõB0
|
||||
5æ§"öõB0
|
||||
6æ§"öõB0
|
||||
7æ§"öõ
B0
|
||||
8æ§"öõB0
|
||||
9æ§"öõ"B0
|
||||
:æ§"öõ7B0
|
||||
;æ§ "öõYB0
|
||||
<æ§
|
||||
"öõ<10>B0
|
||||
7=ç§(·ê08B%æ¯<C3A6>次钻石抽奖幸è¿<C3A8>值æ<C2BC><C3A6>å<EFBFBD>‡{0}%
|
||||
?>ç§"÷õ(·ê08B%æ¯<C3A6>次钻石抽奖幸è¿<C3A8>值æ<C2BC><C3A6>å<EFBFBD>‡{0}%
|
||||
??ç§"÷õ(·ê08B%æ¯<C3A6>次钻石抽奖幸è¿<C3A8>值æ<C2BC><C3A6>å<EFBFBD>‡{0}%
|
||||
?@ç§"÷õ(·ê08B%æ¯<C3A6>次钻石抽奖幸è¿<C3A8>值æ<C2BC><C3A6>å<EFBFBD>‡{0}%
|
||||
?Aç§"÷õ
(·ê08B%æ¯<C3A6>次钻石抽奖幸è¿<C3A8>值æ<C2BC><C3A6>å<EFBFBD>‡{0}%
|
||||
?Bç§"÷õ(·ê08B%æ¯<C3A6>次钻石抽奖幸è¿<C3A8>值æ<C2BC><C3A6>å<EFBFBD>‡{0}%
|
||||
?Cç§"÷õ"(·ê08B%æ¯<C3A6>次钻石抽奖幸è¿<C3A8>值æ<C2BC><C3A6>å<EFBFBD>‡{0}%
|
||||
?Dç§"÷õ7(·ê08B%æ¯<C3A6>次钻石抽奖幸è¿<C3A8>值æ<C2BC><C3A6>å<EFBFBD>‡{0}%
|
||||
?Eç§ "÷õY(·ê0 8 B%æ¯<C3A6>次钻石抽奖幸è¿<C3A8>值æ<C2BC><C3A6>å<EFBFBD>‡{0}%
|
||||
@Fç§
|
||||
"÷õ<10>(·ê0
|
||||
8
|
||||
B%æ¯<C3A6>次钻石抽奖幸è¿<C3A8>值æ<C2BC><C3A6>å<EFBFBD>‡{0}%
|
||||
|
|
@ -0,0 +1,763 @@
|
|||
{
|
||||
"Arr": [
|
||||
{
|
||||
"Id": 1,
|
||||
"SkinId": 300001,
|
||||
"Level": 1,
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 2,
|
||||
"SkinId": 300001,
|
||||
"Level": 2,
|
||||
"UpItem": {
|
||||
"310001": 3
|
||||
},
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 3,
|
||||
"SkinId": 300001,
|
||||
"Level": 3,
|
||||
"UpItem": {
|
||||
"310001": 5
|
||||
},
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 4,
|
||||
"SkinId": 300001,
|
||||
"Level": 4,
|
||||
"UpItem": {
|
||||
"310001": 8
|
||||
},
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 5,
|
||||
"SkinId": 300001,
|
||||
"Level": 5,
|
||||
"UpItem": {
|
||||
"310001": 13
|
||||
},
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 6,
|
||||
"SkinId": 300001,
|
||||
"Level": 6,
|
||||
"UpItem": {
|
||||
"310001": 21
|
||||
},
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 7,
|
||||
"SkinId": 300001,
|
||||
"Level": 7,
|
||||
"UpItem": {
|
||||
"310001": 34
|
||||
},
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 8,
|
||||
"SkinId": 300001,
|
||||
"Level": 8,
|
||||
"UpItem": {
|
||||
"310001": 55
|
||||
},
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 9,
|
||||
"SkinId": 300001,
|
||||
"Level": 9,
|
||||
"UpItem": {
|
||||
"310001": 89
|
||||
},
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 10,
|
||||
"SkinId": 300001,
|
||||
"Level": 10,
|
||||
"UpItem": {
|
||||
"310001": 144
|
||||
},
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 11,
|
||||
"SkinId": 300002,
|
||||
"Level": 1,
|
||||
"SkinSkillId": 30002,
|
||||
"SkinSkillLevel": 1,
|
||||
"SkinSkillValue": 1,
|
||||
"SkinSkillDes": "排位赛积分提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 12,
|
||||
"SkinId": 300002,
|
||||
"Level": 2,
|
||||
"UpItem": {
|
||||
"310002": 3
|
||||
},
|
||||
"SkinSkillId": 30002,
|
||||
"SkinSkillLevel": 2,
|
||||
"SkinSkillValue": 2,
|
||||
"SkinSkillDes": "排位赛积分提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 13,
|
||||
"SkinId": 300002,
|
||||
"Level": 3,
|
||||
"UpItem": {
|
||||
"310002": 5
|
||||
},
|
||||
"SkinSkillId": 30002,
|
||||
"SkinSkillLevel": 3,
|
||||
"SkinSkillValue": 3,
|
||||
"SkinSkillDes": "排位赛积分提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 14,
|
||||
"SkinId": 300002,
|
||||
"Level": 4,
|
||||
"UpItem": {
|
||||
"310002": 8
|
||||
},
|
||||
"SkinSkillId": 30002,
|
||||
"SkinSkillLevel": 4,
|
||||
"SkinSkillValue": 4,
|
||||
"SkinSkillDes": "排位赛积分提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 15,
|
||||
"SkinId": 300002,
|
||||
"Level": 5,
|
||||
"UpItem": {
|
||||
"310002": 13
|
||||
},
|
||||
"SkinSkillId": 30002,
|
||||
"SkinSkillLevel": 5,
|
||||
"SkinSkillValue": 5,
|
||||
"SkinSkillDes": "排位赛积分提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 16,
|
||||
"SkinId": 300002,
|
||||
"Level": 6,
|
||||
"UpItem": {
|
||||
"310002": 21
|
||||
},
|
||||
"SkinSkillId": 30002,
|
||||
"SkinSkillLevel": 6,
|
||||
"SkinSkillValue": 6,
|
||||
"SkinSkillDes": "排位赛积分提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 17,
|
||||
"SkinId": 300002,
|
||||
"Level": 7,
|
||||
"UpItem": {
|
||||
"310002": 34
|
||||
},
|
||||
"SkinSkillId": 30002,
|
||||
"SkinSkillLevel": 7,
|
||||
"SkinSkillValue": 7,
|
||||
"SkinSkillDes": "排位赛积分提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 18,
|
||||
"SkinId": 300002,
|
||||
"Level": 8,
|
||||
"UpItem": {
|
||||
"310002": 55
|
||||
},
|
||||
"SkinSkillId": 30002,
|
||||
"SkinSkillLevel": 8,
|
||||
"SkinSkillValue": 8,
|
||||
"SkinSkillDes": "排位赛积分提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 19,
|
||||
"SkinId": 300002,
|
||||
"Level": 9,
|
||||
"UpItem": {
|
||||
"310002": 89
|
||||
},
|
||||
"SkinSkillId": 30002,
|
||||
"SkinSkillLevel": 9,
|
||||
"SkinSkillValue": 9,
|
||||
"SkinSkillDes": "排位赛积分提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 20,
|
||||
"SkinId": 300002,
|
||||
"Level": 10,
|
||||
"UpItem": {
|
||||
"310002": 144
|
||||
},
|
||||
"SkinSkillId": 30002,
|
||||
"SkinSkillLevel": 10,
|
||||
"SkinSkillValue": 10,
|
||||
"SkinSkillDes": "排位赛积分提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 21,
|
||||
"SkinId": 300003,
|
||||
"Level": 1,
|
||||
"SkinSkillId": 30003,
|
||||
"SkinSkillLevel": 1,
|
||||
"SkinSkillValue": 1,
|
||||
"SkinSkillDes": "VIP赛每日免费报名次数提升{0}"
|
||||
},
|
||||
{
|
||||
"Id": 22,
|
||||
"SkinId": 300003,
|
||||
"Level": 2,
|
||||
"UpItem": {
|
||||
"310003": 3
|
||||
},
|
||||
"SkinSkillId": 30003,
|
||||
"SkinSkillLevel": 2,
|
||||
"SkinSkillValue": 2,
|
||||
"SkinSkillDes": "VIP赛每日免费报名次数提升{0}"
|
||||
},
|
||||
{
|
||||
"Id": 23,
|
||||
"SkinId": 300003,
|
||||
"Level": 3,
|
||||
"UpItem": {
|
||||
"310003": 5
|
||||
},
|
||||
"SkinSkillId": 30003,
|
||||
"SkinSkillLevel": 3,
|
||||
"SkinSkillValue": 3,
|
||||
"SkinSkillDes": "VIP赛每日免费报名次数提升{0}"
|
||||
},
|
||||
{
|
||||
"Id": 24,
|
||||
"SkinId": 300003,
|
||||
"Level": 4,
|
||||
"UpItem": {
|
||||
"310003": 8
|
||||
},
|
||||
"SkinSkillId": 30003,
|
||||
"SkinSkillLevel": 4,
|
||||
"SkinSkillValue": 4,
|
||||
"SkinSkillDes": "VIP赛每日免费报名次数提升{0}"
|
||||
},
|
||||
{
|
||||
"Id": 25,
|
||||
"SkinId": 300003,
|
||||
"Level": 5,
|
||||
"UpItem": {
|
||||
"310003": 13
|
||||
},
|
||||
"SkinSkillId": 30003,
|
||||
"SkinSkillLevel": 5,
|
||||
"SkinSkillValue": 5,
|
||||
"SkinSkillDes": "VIP赛每日免费报名次数提升{0}"
|
||||
},
|
||||
{
|
||||
"Id": 26,
|
||||
"SkinId": 300003,
|
||||
"Level": 6,
|
||||
"UpItem": {
|
||||
"310003": 21
|
||||
},
|
||||
"SkinSkillId": 30003,
|
||||
"SkinSkillLevel": 6,
|
||||
"SkinSkillValue": 6,
|
||||
"SkinSkillDes": "VIP赛每日免费报名次数提升{0}"
|
||||
},
|
||||
{
|
||||
"Id": 27,
|
||||
"SkinId": 300003,
|
||||
"Level": 7,
|
||||
"UpItem": {
|
||||
"310003": 34
|
||||
},
|
||||
"SkinSkillId": 30003,
|
||||
"SkinSkillLevel": 7,
|
||||
"SkinSkillValue": 7,
|
||||
"SkinSkillDes": "VIP赛每日免费报名次数提升{0}"
|
||||
},
|
||||
{
|
||||
"Id": 28,
|
||||
"SkinId": 300003,
|
||||
"Level": 8,
|
||||
"UpItem": {
|
||||
"310003": 55
|
||||
},
|
||||
"SkinSkillId": 30003,
|
||||
"SkinSkillLevel": 8,
|
||||
"SkinSkillValue": 8,
|
||||
"SkinSkillDes": "VIP赛每日免费报名次数提升{0}"
|
||||
},
|
||||
{
|
||||
"Id": 29,
|
||||
"SkinId": 300003,
|
||||
"Level": 9,
|
||||
"UpItem": {
|
||||
"310003": 89
|
||||
},
|
||||
"SkinSkillId": 30003,
|
||||
"SkinSkillLevel": 9,
|
||||
"SkinSkillValue": 9,
|
||||
"SkinSkillDes": "VIP赛每日免费报名次数提升{0}"
|
||||
},
|
||||
{
|
||||
"Id": 30,
|
||||
"SkinId": 300003,
|
||||
"Level": 10,
|
||||
"UpItem": {
|
||||
"310003": 144
|
||||
},
|
||||
"SkinSkillId": 30003,
|
||||
"SkinSkillLevel": 10,
|
||||
"SkinSkillValue": 10,
|
||||
"SkinSkillDes": "VIP赛每日免费报名次数提升{0}"
|
||||
},
|
||||
{
|
||||
"Id": 31,
|
||||
"SkinId": 300004,
|
||||
"Level": 1,
|
||||
"SkinSkillId": 30004,
|
||||
"SkinSkillLevel": 1,
|
||||
"SkinSkillValue": 1,
|
||||
"SkinSkillDes": "每日礼包金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 32,
|
||||
"SkinId": 300004,
|
||||
"Level": 2,
|
||||
"UpItem": {
|
||||
"310004": 3
|
||||
},
|
||||
"SkinSkillId": 30004,
|
||||
"SkinSkillLevel": 2,
|
||||
"SkinSkillValue": 2,
|
||||
"SkinSkillDes": "每日礼包金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 33,
|
||||
"SkinId": 300004,
|
||||
"Level": 3,
|
||||
"UpItem": {
|
||||
"310004": 5
|
||||
},
|
||||
"SkinSkillId": 30004,
|
||||
"SkinSkillLevel": 3,
|
||||
"SkinSkillValue": 3,
|
||||
"SkinSkillDes": "每日礼包金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 34,
|
||||
"SkinId": 300004,
|
||||
"Level": 4,
|
||||
"UpItem": {
|
||||
"310004": 8
|
||||
},
|
||||
"SkinSkillId": 30004,
|
||||
"SkinSkillLevel": 4,
|
||||
"SkinSkillValue": 4,
|
||||
"SkinSkillDes": "每日礼包金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 35,
|
||||
"SkinId": 300004,
|
||||
"Level": 5,
|
||||
"UpItem": {
|
||||
"310004": 13
|
||||
},
|
||||
"SkinSkillId": 30004,
|
||||
"SkinSkillLevel": 5,
|
||||
"SkinSkillValue": 5,
|
||||
"SkinSkillDes": "每日礼包金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 36,
|
||||
"SkinId": 300004,
|
||||
"Level": 6,
|
||||
"UpItem": {
|
||||
"310004": 21
|
||||
},
|
||||
"SkinSkillId": 30004,
|
||||
"SkinSkillLevel": 6,
|
||||
"SkinSkillValue": 6,
|
||||
"SkinSkillDes": "每日礼包金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 37,
|
||||
"SkinId": 300004,
|
||||
"Level": 7,
|
||||
"UpItem": {
|
||||
"310004": 34
|
||||
},
|
||||
"SkinSkillId": 30004,
|
||||
"SkinSkillLevel": 7,
|
||||
"SkinSkillValue": 7,
|
||||
"SkinSkillDes": "每日礼包金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 38,
|
||||
"SkinId": 300004,
|
||||
"Level": 8,
|
||||
"UpItem": {
|
||||
"310004": 55
|
||||
},
|
||||
"SkinSkillId": 30004,
|
||||
"SkinSkillLevel": 8,
|
||||
"SkinSkillValue": 8,
|
||||
"SkinSkillDes": "每日礼包金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 39,
|
||||
"SkinId": 300004,
|
||||
"Level": 9,
|
||||
"UpItem": {
|
||||
"310004": 89
|
||||
},
|
||||
"SkinSkillId": 30004,
|
||||
"SkinSkillLevel": 9,
|
||||
"SkinSkillValue": 9,
|
||||
"SkinSkillDes": "每日礼包金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 40,
|
||||
"SkinId": 300004,
|
||||
"Level": 10,
|
||||
"UpItem": {
|
||||
"310004": 144
|
||||
},
|
||||
"SkinSkillId": 30004,
|
||||
"SkinSkillLevel": 10,
|
||||
"SkinSkillValue": 10,
|
||||
"SkinSkillDes": "每日礼包金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 41,
|
||||
"SkinId": 300005,
|
||||
"Level": 1,
|
||||
"SkinSkillId": 30005,
|
||||
"SkinSkillLevel": 1,
|
||||
"SkinSkillValue": 1,
|
||||
"SkinSkillDes": "每日任务金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 42,
|
||||
"SkinId": 300005,
|
||||
"Level": 2,
|
||||
"UpItem": {
|
||||
"310005": 3
|
||||
},
|
||||
"SkinSkillId": 30005,
|
||||
"SkinSkillLevel": 2,
|
||||
"SkinSkillValue": 2,
|
||||
"SkinSkillDes": "每日任务金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 43,
|
||||
"SkinId": 300005,
|
||||
"Level": 3,
|
||||
"UpItem": {
|
||||
"310005": 5
|
||||
},
|
||||
"SkinSkillId": 30005,
|
||||
"SkinSkillLevel": 3,
|
||||
"SkinSkillValue": 3,
|
||||
"SkinSkillDes": "每日任务金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 44,
|
||||
"SkinId": 300005,
|
||||
"Level": 4,
|
||||
"UpItem": {
|
||||
"310005": 8
|
||||
},
|
||||
"SkinSkillId": 30005,
|
||||
"SkinSkillLevel": 4,
|
||||
"SkinSkillValue": 4,
|
||||
"SkinSkillDes": "每日任务金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 45,
|
||||
"SkinId": 300005,
|
||||
"Level": 5,
|
||||
"UpItem": {
|
||||
"310005": 13
|
||||
},
|
||||
"SkinSkillId": 30005,
|
||||
"SkinSkillLevel": 5,
|
||||
"SkinSkillValue": 5,
|
||||
"SkinSkillDes": "每日任务金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 46,
|
||||
"SkinId": 300005,
|
||||
"Level": 6,
|
||||
"UpItem": {
|
||||
"310005": 21
|
||||
},
|
||||
"SkinSkillId": 30005,
|
||||
"SkinSkillLevel": 6,
|
||||
"SkinSkillValue": 6,
|
||||
"SkinSkillDes": "每日任务金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 47,
|
||||
"SkinId": 300005,
|
||||
"Level": 7,
|
||||
"UpItem": {
|
||||
"310005": 34
|
||||
},
|
||||
"SkinSkillId": 30005,
|
||||
"SkinSkillLevel": 7,
|
||||
"SkinSkillValue": 7,
|
||||
"SkinSkillDes": "每日任务金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 48,
|
||||
"SkinId": 300005,
|
||||
"Level": 8,
|
||||
"UpItem": {
|
||||
"310005": 55
|
||||
},
|
||||
"SkinSkillId": 30005,
|
||||
"SkinSkillLevel": 8,
|
||||
"SkinSkillValue": 8,
|
||||
"SkinSkillDes": "每日任务金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 49,
|
||||
"SkinId": 300005,
|
||||
"Level": 9,
|
||||
"UpItem": {
|
||||
"310005": 89
|
||||
},
|
||||
"SkinSkillId": 30005,
|
||||
"SkinSkillLevel": 9,
|
||||
"SkinSkillValue": 9,
|
||||
"SkinSkillDes": "每日任务金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 50,
|
||||
"SkinId": 300005,
|
||||
"Level": 10,
|
||||
"UpItem": {
|
||||
"310005": 144
|
||||
},
|
||||
"SkinSkillId": 30005,
|
||||
"SkinSkillLevel": 10,
|
||||
"SkinSkillValue": 10,
|
||||
"SkinSkillDes": "每日任务金币奖励提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 51,
|
||||
"SkinId": 300006,
|
||||
"Level": 1,
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 52,
|
||||
"SkinId": 300006,
|
||||
"Level": 2,
|
||||
"UpItem": {
|
||||
"310006": 3
|
||||
},
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 53,
|
||||
"SkinId": 300006,
|
||||
"Level": 3,
|
||||
"UpItem": {
|
||||
"310006": 5
|
||||
},
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 54,
|
||||
"SkinId": 300006,
|
||||
"Level": 4,
|
||||
"UpItem": {
|
||||
"310006": 8
|
||||
},
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 55,
|
||||
"SkinId": 300006,
|
||||
"Level": 5,
|
||||
"UpItem": {
|
||||
"310006": 13
|
||||
},
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 56,
|
||||
"SkinId": 300006,
|
||||
"Level": 6,
|
||||
"UpItem": {
|
||||
"310006": 21
|
||||
},
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 57,
|
||||
"SkinId": 300006,
|
||||
"Level": 7,
|
||||
"UpItem": {
|
||||
"310006": 34
|
||||
},
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 58,
|
||||
"SkinId": 300006,
|
||||
"Level": 8,
|
||||
"UpItem": {
|
||||
"310006": 55
|
||||
},
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 59,
|
||||
"SkinId": 300006,
|
||||
"Level": 9,
|
||||
"UpItem": {
|
||||
"310006": 89
|
||||
},
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 60,
|
||||
"SkinId": 300006,
|
||||
"Level": 10,
|
||||
"UpItem": {
|
||||
"310006": 144
|
||||
},
|
||||
"SkinSkillDes": "0"
|
||||
},
|
||||
{
|
||||
"Id": 61,
|
||||
"SkinId": 300007,
|
||||
"Level": 1,
|
||||
"SkinSkillId": 30007,
|
||||
"SkinSkillLevel": 1,
|
||||
"SkinSkillValue": 1,
|
||||
"SkinSkillDes": "每次钻石抽奖幸运值提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 62,
|
||||
"SkinId": 300007,
|
||||
"Level": 2,
|
||||
"UpItem": {
|
||||
"310007": 3
|
||||
},
|
||||
"SkinSkillId": 30007,
|
||||
"SkinSkillLevel": 2,
|
||||
"SkinSkillValue": 2,
|
||||
"SkinSkillDes": "每次钻石抽奖幸运值提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 63,
|
||||
"SkinId": 300007,
|
||||
"Level": 3,
|
||||
"UpItem": {
|
||||
"310007": 5
|
||||
},
|
||||
"SkinSkillId": 30007,
|
||||
"SkinSkillLevel": 3,
|
||||
"SkinSkillValue": 3,
|
||||
"SkinSkillDes": "每次钻石抽奖幸运值提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 64,
|
||||
"SkinId": 300007,
|
||||
"Level": 4,
|
||||
"UpItem": {
|
||||
"310007": 8
|
||||
},
|
||||
"SkinSkillId": 30007,
|
||||
"SkinSkillLevel": 4,
|
||||
"SkinSkillValue": 4,
|
||||
"SkinSkillDes": "每次钻石抽奖幸运值提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 65,
|
||||
"SkinId": 300007,
|
||||
"Level": 5,
|
||||
"UpItem": {
|
||||
"310007": 13
|
||||
},
|
||||
"SkinSkillId": 30007,
|
||||
"SkinSkillLevel": 5,
|
||||
"SkinSkillValue": 5,
|
||||
"SkinSkillDes": "每次钻石抽奖幸运值提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 66,
|
||||
"SkinId": 300007,
|
||||
"Level": 6,
|
||||
"UpItem": {
|
||||
"310007": 21
|
||||
},
|
||||
"SkinSkillId": 30007,
|
||||
"SkinSkillLevel": 6,
|
||||
"SkinSkillValue": 6,
|
||||
"SkinSkillDes": "每次钻石抽奖幸运值提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 67,
|
||||
"SkinId": 300007,
|
||||
"Level": 7,
|
||||
"UpItem": {
|
||||
"310007": 34
|
||||
},
|
||||
"SkinSkillId": 30007,
|
||||
"SkinSkillLevel": 7,
|
||||
"SkinSkillValue": 7,
|
||||
"SkinSkillDes": "每次钻石抽奖幸运值提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 68,
|
||||
"SkinId": 300007,
|
||||
"Level": 8,
|
||||
"UpItem": {
|
||||
"310007": 55
|
||||
},
|
||||
"SkinSkillId": 30007,
|
||||
"SkinSkillLevel": 8,
|
||||
"SkinSkillValue": 8,
|
||||
"SkinSkillDes": "每次钻石抽奖幸运值提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 69,
|
||||
"SkinId": 300007,
|
||||
"Level": 9,
|
||||
"UpItem": {
|
||||
"310007": 89
|
||||
},
|
||||
"SkinSkillId": 30007,
|
||||
"SkinSkillLevel": 9,
|
||||
"SkinSkillValue": 9,
|
||||
"SkinSkillDes": "每次钻石抽奖幸运值提升{0}%"
|
||||
},
|
||||
{
|
||||
"Id": 70,
|
||||
"SkinId": 300007,
|
||||
"Level": 10,
|
||||
"UpItem": {
|
||||
"310007": 144
|
||||
},
|
||||
"SkinSkillId": 30007,
|
||||
"SkinSkillLevel": 10,
|
||||
"SkinSkillValue": 10,
|
||||
"SkinSkillDes": "每次钻石抽奖幸运值提升{0}%"
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
data/DB_Task.dat
BIN
data/DB_Task.dat
Binary file not shown.
1236
data/DB_Task.json
1236
data/DB_Task.json
File diff suppressed because it is too large
Load Diff
BIN
data/DB_VIP.dat
BIN
data/DB_VIP.dat
Binary file not shown.
223
data/DB_VIP.json
223
data/DB_VIP.json
|
|
@ -3,8 +3,8 @@
|
|||
{
|
||||
"Name": "不是VIP",
|
||||
"Privilege1": [
|
||||
100000,
|
||||
2
|
||||
0,
|
||||
0
|
||||
],
|
||||
"Privilege2": [
|
||||
0,
|
||||
|
|
@ -28,7 +28,11 @@
|
|||
"获得专属头像框",
|
||||
"获得专属炮台",
|
||||
"更多VIP功能正待开发"
|
||||
]
|
||||
],
|
||||
"Privilege9": [
|
||||
0
|
||||
],
|
||||
"PrivilegeShow": 100
|
||||
},
|
||||
{
|
||||
"Id": 1,
|
||||
|
|
@ -36,8 +40,8 @@
|
|||
"Count": 1000,
|
||||
"VipExp": 1000,
|
||||
"Privilege1": [
|
||||
100000,
|
||||
100
|
||||
0,
|
||||
0
|
||||
],
|
||||
"Privilege2": [
|
||||
0,
|
||||
|
|
@ -62,7 +66,14 @@
|
|||
"获得专属头像框",
|
||||
"获得专属炮台",
|
||||
"更多VIP功能正待开发"
|
||||
]
|
||||
],
|
||||
"MatchFreeTimes": 1,
|
||||
"Privilege9": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"PrivilegeShow": 2000
|
||||
},
|
||||
{
|
||||
"Id": 2,
|
||||
|
|
@ -70,8 +81,8 @@
|
|||
"Count": 2000,
|
||||
"VipExp": 2000,
|
||||
"Privilege1": [
|
||||
150000,
|
||||
150
|
||||
0,
|
||||
0
|
||||
],
|
||||
"Privilege2": [
|
||||
0,
|
||||
|
|
@ -96,7 +107,15 @@
|
|||
"获得专属头像框",
|
||||
"获得专属炮台",
|
||||
"更多VIP功能正待开发"
|
||||
]
|
||||
],
|
||||
"MatchFreeTimes": 2,
|
||||
"Privilege9": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"PrivilegeShow": 3000
|
||||
},
|
||||
{
|
||||
"Id": 3,
|
||||
|
|
@ -104,8 +123,8 @@
|
|||
"Count": 5000,
|
||||
"VipExp": 5000,
|
||||
"Privilege1": [
|
||||
200000,
|
||||
200
|
||||
0,
|
||||
0
|
||||
],
|
||||
"Privilege2": [
|
||||
0,
|
||||
|
|
@ -130,7 +149,14 @@
|
|||
"获得专属头像框",
|
||||
"获得专属炮台",
|
||||
"更多VIP功能正待开发"
|
||||
]
|
||||
],
|
||||
"MatchFreeTimes": 3,
|
||||
"Privilege9": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"PrivilegeShow": 4000
|
||||
},
|
||||
{
|
||||
"Id": 4,
|
||||
|
|
@ -138,8 +164,8 @@
|
|||
"Count": 10000,
|
||||
"VipExp": 10000,
|
||||
"Privilege1": [
|
||||
300000,
|
||||
250
|
||||
0,
|
||||
0
|
||||
],
|
||||
"Privilege2": [
|
||||
0,
|
||||
|
|
@ -164,7 +190,14 @@
|
|||
"获得专属头像框",
|
||||
"获得专属炮台",
|
||||
"更多VIP功能正待开发"
|
||||
]
|
||||
],
|
||||
"MatchFreeTimes": 4,
|
||||
"Privilege9": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"PrivilegeShow": 5000
|
||||
},
|
||||
{
|
||||
"Id": 5,
|
||||
|
|
@ -172,8 +205,8 @@
|
|||
"Count": 20000,
|
||||
"VipExp": 20000,
|
||||
"Privilege1": [
|
||||
400000,
|
||||
300
|
||||
0,
|
||||
0
|
||||
],
|
||||
"Privilege2": [
|
||||
0,
|
||||
|
|
@ -198,7 +231,15 @@
|
|||
"获得专属头像框",
|
||||
"获得专属炮台",
|
||||
"更多VIP功能正待开发"
|
||||
]
|
||||
],
|
||||
"MatchFreeTimes": 5,
|
||||
"Privilege9": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"PrivilegeShow": 6000
|
||||
},
|
||||
{
|
||||
"Id": 6,
|
||||
|
|
@ -206,8 +247,8 @@
|
|||
"Count": 50000,
|
||||
"VipExp": 50000,
|
||||
"Privilege1": [
|
||||
500000,
|
||||
350
|
||||
0,
|
||||
0
|
||||
],
|
||||
"Privilege2": [
|
||||
0,
|
||||
|
|
@ -232,7 +273,14 @@
|
|||
"获得专属头像框",
|
||||
"获得专属炮台",
|
||||
"更多VIP功能正待开发"
|
||||
]
|
||||
],
|
||||
"MatchFreeTimes": 6,
|
||||
"Privilege9": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"PrivilegeShow": 7000
|
||||
},
|
||||
{
|
||||
"Id": 7,
|
||||
|
|
@ -240,8 +288,8 @@
|
|||
"Count": 100000,
|
||||
"VipExp": 100000,
|
||||
"Privilege1": [
|
||||
600000,
|
||||
400
|
||||
0,
|
||||
0
|
||||
],
|
||||
"Privilege2": [
|
||||
0,
|
||||
|
|
@ -266,7 +314,14 @@
|
|||
"获得专属头像框",
|
||||
"获得专属炮台",
|
||||
"更多VIP功能正待开发"
|
||||
]
|
||||
],
|
||||
"MatchFreeTimes": 7,
|
||||
"Privilege9": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"PrivilegeShow": 8000
|
||||
},
|
||||
{
|
||||
"Id": 8,
|
||||
|
|
@ -274,8 +329,8 @@
|
|||
"Count": 200000,
|
||||
"VipExp": 200000,
|
||||
"Privilege1": [
|
||||
700000,
|
||||
450
|
||||
0,
|
||||
0
|
||||
],
|
||||
"Privilege2": [
|
||||
0,
|
||||
|
|
@ -300,7 +355,14 @@
|
|||
"获得专属头像框",
|
||||
"获得专属炮台",
|
||||
"更多VIP功能正待开发"
|
||||
]
|
||||
],
|
||||
"MatchFreeTimes": 8,
|
||||
"Privilege9": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"PrivilegeShow": 9000
|
||||
},
|
||||
{
|
||||
"Id": 9,
|
||||
|
|
@ -308,8 +370,8 @@
|
|||
"Count": 500000,
|
||||
"VipExp": 500000,
|
||||
"Privilege1": [
|
||||
800000,
|
||||
500
|
||||
0,
|
||||
0
|
||||
],
|
||||
"Privilege2": [
|
||||
0,
|
||||
|
|
@ -334,7 +396,14 @@
|
|||
"获得专属头像框",
|
||||
"获得专属炮台",
|
||||
"更多VIP功能正待开发"
|
||||
]
|
||||
],
|
||||
"MatchFreeTimes": 9,
|
||||
"Privilege9": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"PrivilegeShow": 10000
|
||||
},
|
||||
{
|
||||
"Id": 10,
|
||||
|
|
@ -342,8 +411,8 @@
|
|||
"Count": 1000000,
|
||||
"VipExp": 1000000,
|
||||
"Privilege1": [
|
||||
900000,
|
||||
550
|
||||
0,
|
||||
0
|
||||
],
|
||||
"Privilege2": [
|
||||
0,
|
||||
|
|
@ -368,7 +437,14 @@
|
|||
"获得专属头像框",
|
||||
"获得专属炮台",
|
||||
"更多VIP功能正待开发"
|
||||
]
|
||||
],
|
||||
"MatchFreeTimes": 10,
|
||||
"Privilege9": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"PrivilegeShow": 11000
|
||||
},
|
||||
{
|
||||
"Id": 11,
|
||||
|
|
@ -376,8 +452,8 @@
|
|||
"Count": 2000000,
|
||||
"VipExp": 2000000,
|
||||
"Privilege1": [
|
||||
1000000,
|
||||
600
|
||||
0,
|
||||
0
|
||||
],
|
||||
"Privilege2": [
|
||||
0,
|
||||
|
|
@ -402,7 +478,14 @@
|
|||
"获得专属头像框",
|
||||
"获得专属炮台",
|
||||
"更多VIP功能正待开发"
|
||||
]
|
||||
],
|
||||
"MatchFreeTimes": 11,
|
||||
"Privilege9": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"PrivilegeShow": 12000
|
||||
},
|
||||
{
|
||||
"Id": 12,
|
||||
|
|
@ -410,8 +493,8 @@
|
|||
"Count": 5000000,
|
||||
"VipExp": 5000000,
|
||||
"Privilege1": [
|
||||
2000000,
|
||||
650
|
||||
0,
|
||||
0
|
||||
],
|
||||
"Privilege2": [
|
||||
0,
|
||||
|
|
@ -436,7 +519,14 @@
|
|||
"获得专属头像框",
|
||||
"获得专属炮台",
|
||||
"更多VIP功能正待开发"
|
||||
]
|
||||
],
|
||||
"MatchFreeTimes": 12,
|
||||
"Privilege9": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"PrivilegeShow": 13000
|
||||
},
|
||||
{
|
||||
"Id": 13,
|
||||
|
|
@ -444,8 +534,8 @@
|
|||
"Count": 10000000,
|
||||
"VipExp": 10000000,
|
||||
"Privilege1": [
|
||||
3000000,
|
||||
700
|
||||
0,
|
||||
0
|
||||
],
|
||||
"Privilege2": [
|
||||
0,
|
||||
|
|
@ -470,7 +560,14 @@
|
|||
"获得专属头像框",
|
||||
"获得专属炮台",
|
||||
"更多VIP功能正待开发"
|
||||
]
|
||||
],
|
||||
"MatchFreeTimes": 13,
|
||||
"Privilege9": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"PrivilegeShow": 14000
|
||||
},
|
||||
{
|
||||
"Id": 14,
|
||||
|
|
@ -478,8 +575,8 @@
|
|||
"Count": 20000000,
|
||||
"VipExp": 20000000,
|
||||
"Privilege1": [
|
||||
4000000,
|
||||
750
|
||||
0,
|
||||
0
|
||||
],
|
||||
"Privilege2": [
|
||||
0,
|
||||
|
|
@ -504,7 +601,14 @@
|
|||
"获得专属头像框",
|
||||
"获得专属炮台",
|
||||
"更多VIP功能正待开发"
|
||||
]
|
||||
],
|
||||
"MatchFreeTimes": 14,
|
||||
"Privilege9": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"PrivilegeShow": 15000
|
||||
},
|
||||
{
|
||||
"Id": 15,
|
||||
|
|
@ -512,8 +616,8 @@
|
|||
"Count": 50000000,
|
||||
"VipExp": 50000000,
|
||||
"Privilege1": [
|
||||
5000000,
|
||||
800
|
||||
0,
|
||||
0
|
||||
],
|
||||
"Privilege2": [
|
||||
0,
|
||||
|
|
@ -538,7 +642,14 @@
|
|||
"获得专属头像框",
|
||||
"获得专属炮台",
|
||||
"更多VIP功能正待开发"
|
||||
]
|
||||
],
|
||||
"MatchFreeTimes": 15,
|
||||
"Privilege9": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"PrivilegeShow": 16000
|
||||
},
|
||||
{
|
||||
"Id": 16,
|
||||
|
|
@ -546,8 +657,8 @@
|
|||
"Count": 100000000,
|
||||
"VipExp": 100000000,
|
||||
"Privilege1": [
|
||||
6000000,
|
||||
850
|
||||
0,
|
||||
0
|
||||
],
|
||||
"Privilege2": [
|
||||
0,
|
||||
|
|
@ -572,8 +683,14 @@
|
|||
"获得专属头像框",
|
||||
"获得专属炮台",
|
||||
"更多VIP功能正待开发"
|
||||
]
|
||||
},
|
||||
{}
|
||||
],
|
||||
"MatchFreeTimes": 16,
|
||||
"Privilege9": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"PrivilegeShow": 17000
|
||||
}
|
||||
]
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue