From 67fc3a72861bc2b013e994e13e357eb1dd5132a3 Mon Sep 17 00:00:00 2001 From: Park Byung Eun Date: Thu, 18 Aug 2022 07:42:33 +0000 Subject: [PATCH] =?UTF-8?q?=EC=A7=84=ED=96=89=EC=A4=91...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 85 + package.json | 4 + src/app/app.module.ts | 12 + src/app/core/nats/config/module-config.ts | 5 + src/app/core/nats/config/token.ts | 5 + src/app/core/nats/nats.module.ts | 35 + src/app/core/nats/services/index.ts | 5 + src/app/core/nats/services/nats.service.ts | 122 + .../core/web-storage/config/module-config.ts | 1 + src/app/core/web-storage/config/token.ts | 5 + src/app/core/web-storage/services/index.ts | 9 + .../services/web-local-storage.service.ts | 25 + .../services/web-session-storage.service.ts | 25 + .../services/web-storage.service.ts | 88 + .../core/web-storage/web-storage.module.ts | 20 + src/app/modules/polyglot/api/api.module.ts | 16 + .../polyglot/api/services/api.service.ts | 49 + .../modules/polyglot/api/services/index.ts | 5 + src/app/modules/polyglot/bank/bank.module.ts | 16 + .../polyglot/bank/services/bank.service.ts | 148 + .../modules/polyglot/bank/services/index.ts | 5 + .../polyglot/identity/identity.module.ts | 16 + .../identity/services/identity.service.ts | 133 + .../polyglot/identity/services/index.ts | 5 + .../modules/polyglot/member/member.module.ts | 16 + .../modules/polyglot/member/services/index.ts | 5 + .../member/services/member.service.ts | 183 + .../member_bank_account.module.ts | 16 + .../member_bank_account/services/index.ts | 5 + .../services/member_bank_account.service.ts | 158 + .../member_bank_deposit.module.ts | 16 + .../member_bank_deposit/services/index.ts | 5 + .../services/member_bank_deposit.service.ts | 184 + .../member_bank_withdraw.module.ts | 16 + .../member_bank_withdraw/services/index.ts | 5 + .../services/member_bank_withdraw.service.ts | 184 + .../member_class/member_class.module.ts | 16 + .../polyglot/member_class/services/index.ts | 5 + .../services/member_class.service.ts | 148 + .../member_level/member_level.module.ts | 16 + .../polyglot/member_level/services/index.ts | 5 + .../services/member_level.service.ts | 148 + .../modules/polyglot/site/services/index.ts | 5 + .../polyglot/site/services/site.service.ts | 82 + src/app/modules/polyglot/site/site.module.ts | 16 + src/app/modules/proto/c2se/api/vendor_pb.d.ts | 188 + src/app/modules/proto/c2se/api/vendor_pb.js | 1271 ++++ .../proto/c2se/backend/api/vendor_pb.d.ts | 6 + .../proto/c2se/backend/api/vendor_pb.js | 27 + .../modules/proto/c2se/backend/bank_pb.d.ts | 10 + src/app/modules/proto/c2se/backend/bank_pb.js | 35 + .../proto/c2se/backend/identity_pb.d.ts | 9 + .../modules/proto/c2se/backend/identity_pb.js | 33 + .../c2se/backend/member_bank_account_pb.d.ts | 10 + .../c2se/backend/member_bank_account_pb.js | 39 + .../c2se/backend/member_bank_deposit_pb.d.ts | 11 + .../c2se/backend/member_bank_deposit_pb.js | 35 + .../c2se/backend/member_bank_withdraw_pb.d.ts | 11 + .../c2se/backend/member_bank_withdraw_pb.js | 38 + .../proto/c2se/backend/member_class_pb.d.ts | 10 + .../proto/c2se/backend/member_class_pb.js | 35 + .../proto/c2se/backend/member_level_pb.d.ts | 10 + .../proto/c2se/backend/member_level_pb.js | 35 + .../modules/proto/c2se/backend/member_pb.d.ts | 11 + .../modules/proto/c2se/backend/member_pb.js | 37 + .../modules/proto/c2se/backend/site_pb.d.ts | 10 + src/app/modules/proto/c2se/backend/site_pb.js | 35 + src/app/modules/proto/c2se/bank_pb.d.ts | 446 ++ src/app/modules/proto/c2se/bank_pb.js | 3480 +++++++++ .../modules/proto/c2se/core/network_pb.d.ts | 6 + src/app/modules/proto/c2se/core/network_pb.js | 27 + .../modules/proto/c2se/frontend/bank_pb.d.ts | 7 + .../modules/proto/c2se/frontend/bank_pb.js | 29 + .../proto/c2se/frontend/identity_pb.d.ts | 9 + .../proto/c2se/frontend/identity_pb.js | 33 + src/app/modules/proto/c2se/identity_pb.d.ts | 290 + src/app/modules/proto/c2se/identity_pb.js | 2223 ++++++ .../proto/c2se/member_bank_account_pb.d.ts | 632 ++ .../proto/c2se/member_bank_account_pb.js | 4030 +++++++++++ .../proto/c2se/member_bank_deposit_pb.d.ts | 510 ++ .../proto/c2se/member_bank_deposit_pb.js | 3987 +++++++++++ .../proto/c2se/member_bank_withdraw_pb.d.ts | 546 ++ .../proto/c2se/member_bank_withdraw_pb.js | 4263 +++++++++++ .../modules/proto/c2se/member_class_pb.d.ts | 418 ++ src/app/modules/proto/c2se/member_class_pb.js | 3264 +++++++++ .../modules/proto/c2se/member_level_pb.d.ts | 414 ++ src/app/modules/proto/c2se/member_level_pb.js | 3228 +++++++++ src/app/modules/proto/c2se/member_pb.d.ts | 970 +++ src/app/modules/proto/c2se/member_pb.js | 6262 +++++++++++++++++ src/app/modules/proto/c2se/site_pb.d.ts | 486 ++ src/app/modules/proto/c2se/site_pb.js | 3804 ++++++++++ .../modules/proto/models/api/vendor_pb.d.ts | 76 + src/app/modules/proto/models/api/vendor_pb.js | 455 ++ src/app/modules/proto/models/bank_pb.d.ts | 55 + src/app/modules/proto/models/bank_pb.js | 398 ++ .../modules/proto/models/core/network_pb.d.ts | 37 + .../modules/proto/models/core/network_pb.js | 266 + .../proto/models/member_bank_account_pb.d.ts | 137 + .../proto/models/member_bank_account_pb.js | 876 +++ .../proto/models/member_bank_deposit_pb.d.ts | 67 + .../proto/models/member_bank_deposit_pb.js | 438 ++ .../proto/models/member_bank_withdraw_pb.d.ts | 79 + .../proto/models/member_bank_withdraw_pb.js | 528 ++ .../modules/proto/models/member_class_pb.d.ts | 47 + .../modules/proto/models/member_class_pb.js | 338 + .../modules/proto/models/member_level_pb.d.ts | 45 + .../modules/proto/models/member_level_pb.js | 320 + src/app/modules/proto/models/member_pb.d.ts | 239 + src/app/modules/proto/models/member_pb.js | 1486 ++++ .../proto/models/member_permission_pb.d.ts | 5 + .../proto/models/member_permission_pb.js | 17 + .../modules/proto/models/member_role_pb.d.ts | 5 + .../modules/proto/models/member_role_pb.js | 17 + .../proto/models/member_session_pb.d.ts | 48 + .../modules/proto/models/member_session_pb.js | 343 + .../proto/models/resource_action_pb.d.ts | 56 + .../proto/models/resource_action_pb.js | 403 ++ src/app/modules/proto/models/resource_pb.d.ts | 55 + src/app/modules/proto/models/resource_pb.js | 401 ++ src/app/modules/proto/models/role_pb.d.ts | 55 + src/app/modules/proto/models/role_pb.js | 401 ++ src/app/modules/proto/models/site_pb.d.ts | 69 + src/app/modules/proto/models/site_pb.js | 512 ++ .../modules/proto/protobuf/pagination_pb.d.ts | 64 + .../modules/proto/protobuf/pagination_pb.js | 427 ++ src/app/modules/proto/protobuf/rpc_pb.d.ts | 89 + src/app/modules/proto/protobuf/rpc_pb.js | 562 ++ 127 files changed, 52759 insertions(+) create mode 100644 src/app/core/nats/config/module-config.ts create mode 100644 src/app/core/nats/config/token.ts create mode 100644 src/app/core/nats/nats.module.ts create mode 100644 src/app/core/nats/services/index.ts create mode 100644 src/app/core/nats/services/nats.service.ts create mode 100644 src/app/core/web-storage/config/module-config.ts create mode 100644 src/app/core/web-storage/config/token.ts create mode 100644 src/app/core/web-storage/services/index.ts create mode 100644 src/app/core/web-storage/services/web-local-storage.service.ts create mode 100644 src/app/core/web-storage/services/web-session-storage.service.ts create mode 100644 src/app/core/web-storage/services/web-storage.service.ts create mode 100644 src/app/core/web-storage/web-storage.module.ts create mode 100644 src/app/modules/polyglot/api/api.module.ts create mode 100644 src/app/modules/polyglot/api/services/api.service.ts create mode 100644 src/app/modules/polyglot/api/services/index.ts create mode 100644 src/app/modules/polyglot/bank/bank.module.ts create mode 100644 src/app/modules/polyglot/bank/services/bank.service.ts create mode 100644 src/app/modules/polyglot/bank/services/index.ts create mode 100644 src/app/modules/polyglot/identity/identity.module.ts create mode 100644 src/app/modules/polyglot/identity/services/identity.service.ts create mode 100644 src/app/modules/polyglot/identity/services/index.ts create mode 100644 src/app/modules/polyglot/member/member.module.ts create mode 100644 src/app/modules/polyglot/member/services/index.ts create mode 100644 src/app/modules/polyglot/member/services/member.service.ts create mode 100644 src/app/modules/polyglot/member_bank_account/member_bank_account.module.ts create mode 100644 src/app/modules/polyglot/member_bank_account/services/index.ts create mode 100644 src/app/modules/polyglot/member_bank_account/services/member_bank_account.service.ts create mode 100644 src/app/modules/polyglot/member_bank_deposit/member_bank_deposit.module.ts create mode 100644 src/app/modules/polyglot/member_bank_deposit/services/index.ts create mode 100644 src/app/modules/polyglot/member_bank_deposit/services/member_bank_deposit.service.ts create mode 100644 src/app/modules/polyglot/member_bank_withdraw/member_bank_withdraw.module.ts create mode 100644 src/app/modules/polyglot/member_bank_withdraw/services/index.ts create mode 100644 src/app/modules/polyglot/member_bank_withdraw/services/member_bank_withdraw.service.ts create mode 100644 src/app/modules/polyglot/member_class/member_class.module.ts create mode 100644 src/app/modules/polyglot/member_class/services/index.ts create mode 100644 src/app/modules/polyglot/member_class/services/member_class.service.ts create mode 100644 src/app/modules/polyglot/member_level/member_level.module.ts create mode 100644 src/app/modules/polyglot/member_level/services/index.ts create mode 100644 src/app/modules/polyglot/member_level/services/member_level.service.ts create mode 100644 src/app/modules/polyglot/site/services/index.ts create mode 100644 src/app/modules/polyglot/site/services/site.service.ts create mode 100644 src/app/modules/polyglot/site/site.module.ts create mode 100644 src/app/modules/proto/c2se/api/vendor_pb.d.ts create mode 100644 src/app/modules/proto/c2se/api/vendor_pb.js create mode 100644 src/app/modules/proto/c2se/backend/api/vendor_pb.d.ts create mode 100644 src/app/modules/proto/c2se/backend/api/vendor_pb.js create mode 100644 src/app/modules/proto/c2se/backend/bank_pb.d.ts create mode 100644 src/app/modules/proto/c2se/backend/bank_pb.js create mode 100644 src/app/modules/proto/c2se/backend/identity_pb.d.ts create mode 100644 src/app/modules/proto/c2se/backend/identity_pb.js create mode 100644 src/app/modules/proto/c2se/backend/member_bank_account_pb.d.ts create mode 100644 src/app/modules/proto/c2se/backend/member_bank_account_pb.js create mode 100644 src/app/modules/proto/c2se/backend/member_bank_deposit_pb.d.ts create mode 100644 src/app/modules/proto/c2se/backend/member_bank_deposit_pb.js create mode 100644 src/app/modules/proto/c2se/backend/member_bank_withdraw_pb.d.ts create mode 100644 src/app/modules/proto/c2se/backend/member_bank_withdraw_pb.js create mode 100644 src/app/modules/proto/c2se/backend/member_class_pb.d.ts create mode 100644 src/app/modules/proto/c2se/backend/member_class_pb.js create mode 100644 src/app/modules/proto/c2se/backend/member_level_pb.d.ts create mode 100644 src/app/modules/proto/c2se/backend/member_level_pb.js create mode 100644 src/app/modules/proto/c2se/backend/member_pb.d.ts create mode 100644 src/app/modules/proto/c2se/backend/member_pb.js create mode 100644 src/app/modules/proto/c2se/backend/site_pb.d.ts create mode 100644 src/app/modules/proto/c2se/backend/site_pb.js create mode 100644 src/app/modules/proto/c2se/bank_pb.d.ts create mode 100644 src/app/modules/proto/c2se/bank_pb.js create mode 100644 src/app/modules/proto/c2se/core/network_pb.d.ts create mode 100644 src/app/modules/proto/c2se/core/network_pb.js create mode 100644 src/app/modules/proto/c2se/frontend/bank_pb.d.ts create mode 100644 src/app/modules/proto/c2se/frontend/bank_pb.js create mode 100644 src/app/modules/proto/c2se/frontend/identity_pb.d.ts create mode 100644 src/app/modules/proto/c2se/frontend/identity_pb.js create mode 100644 src/app/modules/proto/c2se/identity_pb.d.ts create mode 100644 src/app/modules/proto/c2se/identity_pb.js create mode 100644 src/app/modules/proto/c2se/member_bank_account_pb.d.ts create mode 100644 src/app/modules/proto/c2se/member_bank_account_pb.js create mode 100644 src/app/modules/proto/c2se/member_bank_deposit_pb.d.ts create mode 100644 src/app/modules/proto/c2se/member_bank_deposit_pb.js create mode 100644 src/app/modules/proto/c2se/member_bank_withdraw_pb.d.ts create mode 100644 src/app/modules/proto/c2se/member_bank_withdraw_pb.js create mode 100644 src/app/modules/proto/c2se/member_class_pb.d.ts create mode 100644 src/app/modules/proto/c2se/member_class_pb.js create mode 100644 src/app/modules/proto/c2se/member_level_pb.d.ts create mode 100644 src/app/modules/proto/c2se/member_level_pb.js create mode 100644 src/app/modules/proto/c2se/member_pb.d.ts create mode 100644 src/app/modules/proto/c2se/member_pb.js create mode 100644 src/app/modules/proto/c2se/site_pb.d.ts create mode 100644 src/app/modules/proto/c2se/site_pb.js create mode 100644 src/app/modules/proto/models/api/vendor_pb.d.ts create mode 100644 src/app/modules/proto/models/api/vendor_pb.js create mode 100644 src/app/modules/proto/models/bank_pb.d.ts create mode 100644 src/app/modules/proto/models/bank_pb.js create mode 100644 src/app/modules/proto/models/core/network_pb.d.ts create mode 100644 src/app/modules/proto/models/core/network_pb.js create mode 100644 src/app/modules/proto/models/member_bank_account_pb.d.ts create mode 100644 src/app/modules/proto/models/member_bank_account_pb.js create mode 100644 src/app/modules/proto/models/member_bank_deposit_pb.d.ts create mode 100644 src/app/modules/proto/models/member_bank_deposit_pb.js create mode 100644 src/app/modules/proto/models/member_bank_withdraw_pb.d.ts create mode 100644 src/app/modules/proto/models/member_bank_withdraw_pb.js create mode 100644 src/app/modules/proto/models/member_class_pb.d.ts create mode 100644 src/app/modules/proto/models/member_class_pb.js create mode 100644 src/app/modules/proto/models/member_level_pb.d.ts create mode 100644 src/app/modules/proto/models/member_level_pb.js create mode 100644 src/app/modules/proto/models/member_pb.d.ts create mode 100644 src/app/modules/proto/models/member_pb.js create mode 100644 src/app/modules/proto/models/member_permission_pb.d.ts create mode 100644 src/app/modules/proto/models/member_permission_pb.js create mode 100644 src/app/modules/proto/models/member_role_pb.d.ts create mode 100644 src/app/modules/proto/models/member_role_pb.js create mode 100644 src/app/modules/proto/models/member_session_pb.d.ts create mode 100644 src/app/modules/proto/models/member_session_pb.js create mode 100644 src/app/modules/proto/models/resource_action_pb.d.ts create mode 100644 src/app/modules/proto/models/resource_action_pb.js create mode 100644 src/app/modules/proto/models/resource_pb.d.ts create mode 100644 src/app/modules/proto/models/resource_pb.js create mode 100644 src/app/modules/proto/models/role_pb.d.ts create mode 100644 src/app/modules/proto/models/role_pb.js create mode 100644 src/app/modules/proto/models/site_pb.d.ts create mode 100644 src/app/modules/proto/models/site_pb.js create mode 100644 src/app/modules/proto/protobuf/pagination_pb.d.ts create mode 100644 src/app/modules/proto/protobuf/pagination_pb.js create mode 100644 src/app/modules/proto/protobuf/rpc_pb.d.ts create mode 100644 src/app/modules/proto/protobuf/rpc_pb.js diff --git a/package-lock.json b/package-lock.json index 6d28d1f..7795dcf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,9 +23,12 @@ "@ngneat/transloco": "3.1.4", "apexcharts": "3.33.1", "crypto-js": "3.3.0", + "google-protobuf": "^3.20.1", "highlight.js": "11.4.0", + "js-base64": "^3.7.2", "lodash-es": "4.17.21", "moment": "2.29.1", + "nats.ws": "^1.8.1", "ng-apexcharts": "1.7.0", "ngx-markdown": "13.1.0", "perfect-scrollbar": "1.5.3", @@ -48,6 +51,7 @@ "@tailwindcss/typography": "0.5.2", "@types/chroma-js": "2.1.3", "@types/crypto-js": "3.1.47", + "@types/google-protobuf": "^3.15.6", "@types/highlight.js": "10.1.0", "@types/jasmine": "3.10.3", "@types/lodash": "4.14.178", @@ -3314,6 +3318,12 @@ "@types/range-parser": "*" } }, + "node_modules/@types/google-protobuf": { + "version": "3.15.6", + "resolved": "https://registry.npmjs.org/@types/google-protobuf/-/google-protobuf-3.15.6.tgz", + "integrity": "sha512-pYVNNJ+winC4aek+lZp93sIKxnXt5qMkuKmaqS3WGuTq0Bw1ZDYNBgzG5kkdtwcv+GmYJGo3yEg6z2cKKAiEdw==", + "dev": true + }, "node_modules/@types/highlight.js": { "version": "10.1.0", "resolved": "https://registry.npmjs.org/@types/highlight.js/-/highlight.js-10.1.0.tgz", @@ -7769,6 +7779,11 @@ "node": ">=8.6.0" } }, + "node_modules/google-protobuf": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.21.0.tgz", + "integrity": "sha512-byR7MBTK4tZ5PZEb+u5ZTzpt4SfrTxv5682MjPlHN16XeqgZE2/8HOIWeiXe8JKnT9OVbtBGhbq8mtvkK8cd5g==" + }, "node_modules/graceful-fs": { "version": "4.2.9", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz", @@ -8884,6 +8899,11 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, + "node_modules/js-base64": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.2.tgz", + "integrity": "sha512-NnRs6dsyqUXejqk/yv2aiXlAvOs56sLkX6nUdeaNezI5LFFLlsZjOThmwnrcwh5ZZRwZlCMnVAY3CvhIhoVEKQ==" + }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -9946,6 +9966,14 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, + "node_modules/nats.ws": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/nats.ws/-/nats.ws-1.8.1.tgz", + "integrity": "sha512-7p1GkLfHTb42KX0wWZNEVEefYRQhsknE6tptMmr8oNzYA5gZ2BaZGQgXF+JUU9pBU6K+fVsClOrXt8nRugwDMg==", + "optionalDependencies": { + "nkeys.js": "^1.0.0-9" + } + }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", @@ -10044,6 +10072,18 @@ "node-gyp-build": "^4.2.2" } }, + "node_modules/nkeys.js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.3.tgz", + "integrity": "sha512-p5Bpb/acPaQmCrbe4gNmMBY/naZJV8Q7m2B9UkXT8BQRC6wjX8zqD2ya8eZu9mpSXQffodV46HCP9OckmxcwYA==", + "optional": true, + "dependencies": { + "tweetnacl": "1.0.3" + }, + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/node-addon-api": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz", @@ -13537,6 +13577,12 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true }, + "node_modules/tweetnacl": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", + "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==", + "optional": true + }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -16696,6 +16742,12 @@ "@types/range-parser": "*" } }, + "@types/google-protobuf": { + "version": "3.15.6", + "resolved": "https://registry.npmjs.org/@types/google-protobuf/-/google-protobuf-3.15.6.tgz", + "integrity": "sha512-pYVNNJ+winC4aek+lZp93sIKxnXt5qMkuKmaqS3WGuTq0Bw1ZDYNBgzG5kkdtwcv+GmYJGo3yEg6z2cKKAiEdw==", + "dev": true + }, "@types/highlight.js": { "version": "10.1.0", "resolved": "https://registry.npmjs.org/@types/highlight.js/-/highlight.js-10.1.0.tgz", @@ -19974,6 +20026,11 @@ } } }, + "google-protobuf": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.21.0.tgz", + "integrity": "sha512-byR7MBTK4tZ5PZEb+u5ZTzpt4SfrTxv5682MjPlHN16XeqgZE2/8HOIWeiXe8JKnT9OVbtBGhbq8mtvkK8cd5g==" + }, "graceful-fs": { "version": "4.2.9", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz", @@ -20784,6 +20841,11 @@ } } }, + "js-base64": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.2.tgz", + "integrity": "sha512-NnRs6dsyqUXejqk/yv2aiXlAvOs56sLkX6nUdeaNezI5LFFLlsZjOThmwnrcwh5ZZRwZlCMnVAY3CvhIhoVEKQ==" + }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -21580,6 +21642,14 @@ "integrity": "sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==", "dev": true }, + "nats.ws": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/nats.ws/-/nats.ws-1.8.1.tgz", + "integrity": "sha512-7p1GkLfHTb42KX0wWZNEVEefYRQhsknE6tptMmr8oNzYA5gZ2BaZGQgXF+JUU9pBU6K+fVsClOrXt8nRugwDMg==", + "requires": { + "nkeys.js": "^1.0.0-9" + } + }, "natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", @@ -21654,6 +21724,15 @@ "node-gyp-build": "^4.2.2" } }, + "nkeys.js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/nkeys.js/-/nkeys.js-1.0.3.tgz", + "integrity": "sha512-p5Bpb/acPaQmCrbe4gNmMBY/naZJV8Q7m2B9UkXT8BQRC6wjX8zqD2ya8eZu9mpSXQffodV46HCP9OckmxcwYA==", + "optional": true, + "requires": { + "tweetnacl": "1.0.3" + } + }, "node-addon-api": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz", @@ -24216,6 +24295,12 @@ } } }, + "tweetnacl": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", + "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==", + "optional": true + }, "type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", diff --git a/package.json b/package.json index 97691c2..2680926 100644 --- a/package.json +++ b/package.json @@ -28,9 +28,12 @@ "@ngneat/transloco": "3.1.4", "apexcharts": "3.33.1", "crypto-js": "3.3.0", + "google-protobuf": "^3.20.1", "highlight.js": "11.4.0", + "js-base64": "^3.7.2", "lodash-es": "4.17.21", "moment": "2.29.1", + "nats.ws": "^1.8.1", "ng-apexcharts": "1.7.0", "ngx-markdown": "13.1.0", "perfect-scrollbar": "1.5.3", @@ -53,6 +56,7 @@ "@tailwindcss/typography": "0.5.2", "@types/chroma-js": "2.1.3", "@types/crypto-js": "3.1.47", + "@types/google-protobuf": "^3.15.6", "@types/highlight.js": "10.1.0", "@types/jasmine": "3.10.3", "@types/lodash": "4.14.178", diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 206def7..37c359d 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -13,6 +13,18 @@ import { LayoutModule } from 'app/layout/layout.module'; import { AppComponent } from 'app/app.component'; import { appRoutes } from 'app/app.routing'; +import { BankModule } from 'app/modules/polyglot/bank/bank.module'; +import { IdentityModule } from 'app/modules/polyglot/identity/identity.module'; +import { MemberBankAccountModule } from 'app/modules/polyglot/member_bank_account/member_bank_account.module'; +import { MemberBankDepositModule } from 'app/modules/polyglot/member_bank_deposit/member_bank_deposit.module'; +import { MemberBankWithdrawModule } from 'app/modules/polyglot/member_bank_withdraw/member_bank_withdraw.module'; +import { MemberClassModule } from 'app/modules/polyglot/member_class/member_class.module'; +import { MemberLevelModule } from 'app/modules/polyglot/member_level/member_level.module'; +import { MemberModule } from 'app/modules/polyglot/member/member.module'; +import { SiteModule } from 'app/modules/polyglot/site/site.module'; + +import { ApiModule } from 'app/modules/polyglot/api/api.module'; + const routerConfig: ExtraOptions = { preloadingStrategy: PreloadAllModules, scrollPositionRestoration: 'enabled', diff --git a/src/app/core/nats/config/module-config.ts b/src/app/core/nats/config/module-config.ts new file mode 100644 index 0000000..03619d9 --- /dev/null +++ b/src/app/core/nats/config/module-config.ts @@ -0,0 +1,5 @@ +import * as nats from 'nats.ws'; + +export interface ModuleConfig { + connectionOptions: nats.ConnectionOptions; +} diff --git a/src/app/core/nats/config/token.ts b/src/app/core/nats/config/token.ts new file mode 100644 index 0000000..a8702aa --- /dev/null +++ b/src/app/core/nats/config/token.ts @@ -0,0 +1,5 @@ +import { InjectionToken } from '@angular/core'; + +export const _MODULE_CONFIG = new InjectionToken( + '@bet/beteran nats config of module' +); diff --git a/src/app/core/nats/nats.module.ts b/src/app/core/nats/nats.module.ts new file mode 100644 index 0000000..b3583a7 --- /dev/null +++ b/src/app/core/nats/nats.module.ts @@ -0,0 +1,35 @@ +import { APP_INITIALIZER, ModuleWithProviders, NgModule } from '@angular/core'; +import { ModuleConfig } from './config/module-config'; +import { _MODULE_CONFIG } from './config/token'; + +import { SERVICES } from './services'; +import { NatsService } from './services/nats.service'; + +@NgModule({}) +export class NatsRootModule {} + +@NgModule({}) +export class NatsModule { + public static forRoot( + config: ModuleConfig + ): ModuleWithProviders { + return { + ngModule: NatsRootModule, + providers: [ + { provide: _MODULE_CONFIG, useValue: config }, + { + // Preload the default language before the app starts to prevent empty/jumping content + provide: APP_INITIALIZER, + deps: [NatsService], + useFactory: + (natsService: NatsService): any => + (): Promise => { + return natsService.connect(); + }, + multi: true, + }, + ...SERVICES, + ], + }; + } +} diff --git a/src/app/core/nats/services/index.ts b/src/app/core/nats/services/index.ts new file mode 100644 index 0000000..820b3a5 --- /dev/null +++ b/src/app/core/nats/services/index.ts @@ -0,0 +1,5 @@ +import { Type } from '@angular/core'; + +import { NatsService } from './nats.service'; + +export const SERVICES: Type[] = [NatsService]; diff --git a/src/app/core/nats/services/nats.service.ts b/src/app/core/nats/services/nats.service.ts new file mode 100644 index 0000000..d4f434e --- /dev/null +++ b/src/app/core/nats/services/nats.service.ts @@ -0,0 +1,122 @@ +import { Inject, Injectable, OnInit, Type } from '@angular/core'; +import { DOCUMENT } from '@angular/common'; + +import * as jspb from 'google-protobuf'; +import * as nats from 'nats.ws'; +import { Base64 } from 'js-base64'; + +import { HEADER_CLIENT } from 'app/modules/proto/c2se/core/network_pb'; +import { Client } from 'app/modules/proto/models/core/network_pb'; + +import { ModuleConfig } from '../config/module-config'; +import { _MODULE_CONFIG } from '../config/token'; +import { WebSessionStorageService } from 'app/core/web-storage/services/web-session-storage.service'; + +type DeserializeConstructor = { + new (): T; + deserializeBinary(this: DeserializeConstructor, bytes: Uint8Array): T; +}; + +const NAME_GET_ERROR = 'getError'; +const NAME_GET_RESULT = 'getResult'; + +@Injectable({ + providedIn: 'root', +}) +export class NatsService { + private __conn?: nats.NatsConnection; + + /** + * Constructor + */ + constructor( + @Inject(_MODULE_CONFIG) private __config: ModuleConfig, + @Inject(DOCUMENT) private __document: Document, + private __webSessionStorageService: WebSessionStorageService + ) {} + + ngOnInit(): void {} + + // ----------------------------------------------------------------------------------------------------- + // @ Accessors + // ----------------------------------------------------------------------------------------------------- + get connection(): nats.NatsConnection | undefined { + return this.__conn; + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + connect(): Promise { + return new Promise((resolve, reject) => { + if (!!this.__conn) { + return resolve(); + } + nats + .connect(this.__config.connectionOptions) + .then((conn) => { + console.log('NATS connected', conn.info?.client_ip); + this.__conn = conn; + + this.__webSessionStorageService + .watch('accessToken') + .subscribe((accessToken) => { + console.log('accessToken in NatsService', accessToken); + }); + + resolve(); + }) + .catch((e) => { + reject(e); + }); + }); + } + + request( + subject: string, + req: Uint8Array, + deserialize: (data: Uint8Array) => any, + opts?: nats.RequestOptions | undefined + ): Promise { + return new Promise((resolve, reject) => { + let c = new Client(); + c.setClientIp(this.__conn?.info?.client_ip + ''); + c.setAccessToken(this.__webSessionStorageService.get('accessToken')); + c.setSiteUrl(this.__document.location.hostname); + + let _opts: nats.RequestOptions = !!opts ? opts : { timeout: 3000 }; + if (!_opts.headers) { + _opts.headers = nats.headers(); + } + + _opts.headers.append( + HEADER_CLIENT, + Base64.fromUint8Array(c.serializeBinary()) + ); + + this.__conn?.request(subject, req, _opts).then((msg) => { + let res = deserialize(msg.data); + + let get_error = (res as any)[NAME_GET_ERROR]; + if (!!get_error) { + let error = get_error.call(res); + if (!!error) { + return reject(error); + } + } + + let get_result = (res as any)[NAME_GET_RESULT]; + if (!!get_result) { + let result = get_result.call(res); + if (!result) { + return reject('result is not exist'); + } + return resolve(result); + } + + return reject('protocol error'); + }); + }); + } +} diff --git a/src/app/core/web-storage/config/module-config.ts b/src/app/core/web-storage/config/module-config.ts new file mode 100644 index 0000000..b7d7971 --- /dev/null +++ b/src/app/core/web-storage/config/module-config.ts @@ -0,0 +1 @@ +export interface ModuleConfig {} diff --git a/src/app/core/web-storage/config/token.ts b/src/app/core/web-storage/config/token.ts new file mode 100644 index 0000000..cba1139 --- /dev/null +++ b/src/app/core/web-storage/config/token.ts @@ -0,0 +1,5 @@ +import { InjectionToken } from '@angular/core'; + +export const _MODULE_CONFIG = new InjectionToken( + '@bet/beteran web-storage config of module' +); diff --git a/src/app/core/web-storage/services/index.ts b/src/app/core/web-storage/services/index.ts new file mode 100644 index 0000000..c343c54 --- /dev/null +++ b/src/app/core/web-storage/services/index.ts @@ -0,0 +1,9 @@ +import { Type } from '@angular/core'; + +import { WebLocalStorageService } from './web-local-storage.service'; +import { WebSessionStorageService } from './web-session-storage.service'; + +export const SERVICES: Type[] = [ + WebLocalStorageService, + WebSessionStorageService, +]; diff --git a/src/app/core/web-storage/services/web-local-storage.service.ts b/src/app/core/web-storage/services/web-local-storage.service.ts new file mode 100644 index 0000000..45de16d --- /dev/null +++ b/src/app/core/web-storage/services/web-local-storage.service.ts @@ -0,0 +1,25 @@ +import { Inject, Injectable } from '@angular/core'; + +import { ModuleConfig } from '../config/module-config'; +import { _MODULE_CONFIG } from '../config/token'; +import { WebStorageService } from './web-storage.service'; + +@Injectable({ + providedIn: 'root', +}) +export class WebLocalStorageService extends WebStorageService { + /** + * Constructor + */ + constructor() { + super(localStorage); + } + + // ----------------------------------------------------------------------------------------------------- + // @ Accessors + // ----------------------------------------------------------------------------------------------------- + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- +} diff --git a/src/app/core/web-storage/services/web-session-storage.service.ts b/src/app/core/web-storage/services/web-session-storage.service.ts new file mode 100644 index 0000000..793f88b --- /dev/null +++ b/src/app/core/web-storage/services/web-session-storage.service.ts @@ -0,0 +1,25 @@ +import { Inject, Injectable } from '@angular/core'; + +import { ModuleConfig } from '../config/module-config'; +import { _MODULE_CONFIG } from '../config/token'; +import { WebStorageService } from './web-storage.service'; + +@Injectable({ + providedIn: 'root', +}) +export class WebSessionStorageService extends WebStorageService { + /** + * Constructor + */ + constructor() { + super(sessionStorage); + } + + // ----------------------------------------------------------------------------------------------------- + // @ Accessors + // ----------------------------------------------------------------------------------------------------- + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- +} diff --git a/src/app/core/web-storage/services/web-storage.service.ts b/src/app/core/web-storage/services/web-storage.service.ts new file mode 100644 index 0000000..eee9e0e --- /dev/null +++ b/src/app/core/web-storage/services/web-storage.service.ts @@ -0,0 +1,88 @@ +import { BehaviorSubject, Observable } from 'rxjs'; + +import { ModuleConfig } from '../config/module-config'; +import { _MODULE_CONFIG } from '../config/token'; + +export abstract class WebStorageService { + private __storage: Storage; + private __subjects: Map>; + + /** + * Constructor + */ + constructor(storage: Storage) { + this.__storage = storage; + this.__subjects = new Map>(); + } + + // ----------------------------------------------------------------------------------------------------- + // @ Accessors + // ----------------------------------------------------------------------------------------------------- + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + /** + * watch data of given key + * @param key + * @param defaultValue + */ + watch(key: string, defaultValue: any = null): Observable { + if (!this.__subjects.has(key)) { + this.__subjects.set(key, new BehaviorSubject(defaultValue)); + } + let item = this.__storage.getItem(key); + if (item !== null) { + item = JSON.parse(item); + } + (this.__subjects.get(key) as BehaviorSubject).next(item); + return (this.__subjects.get(key) as BehaviorSubject).asObservable(); + } + + /** + * get data of given key + * @param key + */ + get(key: string): any { + let item = this.__storage.getItem(key); + if (item !== null) { + item = JSON.parse(item); + } + return item; + } + + /** + * set value on given key + * @param key + * @param value + */ + set(key: string, value: any) { + this.__storage.setItem(key, JSON.stringify(value)); + if (!this.__subjects.has(key)) { + this.__subjects.set(key, new BehaviorSubject(value)); + (this.__subjects.get(key) as BehaviorSubject).next(value); + } else { + (this.__subjects.get(key) as BehaviorSubject).next(value); + } + } + + /** + * remove given key + * @param key + */ + remove(key: string) { + if (this.__subjects.has(key)) { + (this.__subjects.get(key) as BehaviorSubject).complete(); + this.__subjects.delete(key); + } + this.__storage.removeItem(key); + } + + /** + * clear all available keys + */ + clear() { + this.__subjects.clear(); + this.__storage.clear(); + } +} diff --git a/src/app/core/web-storage/web-storage.module.ts b/src/app/core/web-storage/web-storage.module.ts new file mode 100644 index 0000000..e3be4d6 --- /dev/null +++ b/src/app/core/web-storage/web-storage.module.ts @@ -0,0 +1,20 @@ +import { ModuleWithProviders, NgModule } from '@angular/core'; +import { ModuleConfig } from './config/module-config'; +import { _MODULE_CONFIG } from './config/token'; + +import { SERVICES } from './services'; + +@NgModule({}) +export class WebStorageRootModule {} + +@NgModule({}) +export class WebStorageModule { + public static forRoot( + config: ModuleConfig + ): ModuleWithProviders { + return { + ngModule: WebStorageRootModule, + providers: [{ provide: _MODULE_CONFIG, useValue: config }, ...SERVICES], + }; + } +} diff --git a/src/app/modules/polyglot/api/api.module.ts b/src/app/modules/polyglot/api/api.module.ts new file mode 100644 index 0000000..416c5f5 --- /dev/null +++ b/src/app/modules/polyglot/api/api.module.ts @@ -0,0 +1,16 @@ +import { ModuleWithProviders, NgModule } from '@angular/core'; + +import { SERVICES } from './services'; + +@NgModule({}) +export class ApiRootModule {} + +@NgModule({}) +export class ApiModule { + public static forRoot(): ModuleWithProviders { + return { + ngModule: ApiRootModule, + providers: [...SERVICES], + }; + } +} diff --git a/src/app/modules/polyglot/api/services/api.service.ts b/src/app/modules/polyglot/api/services/api.service.ts new file mode 100644 index 0000000..98bfe59 --- /dev/null +++ b/src/app/modules/polyglot/api/services/api.service.ts @@ -0,0 +1,49 @@ +import { Injectable } from '@angular/core'; +import { NatsService } from 'app/core/nats/services/nats.service'; + +import { Error } from 'app/modules/proto/protobuf/rpc_pb'; + +import { + ListVendorsRequest, + ListVendorsResponse, +} from 'app/modules/proto/c2se/api/vendor_pb'; +import { SUBJECT_LIST_VENDORS } from 'app/modules/proto/c2se/backend/api/vendor_pb'; + +@Injectable({ + providedIn: 'root', +}) +export class ApiService { + /** + * Constructor + */ + constructor(private __natsService: NatsService) {} + + // ----------------------------------------------------------------------------------------------------- + // @ Accessors + // ----------------------------------------------------------------------------------------------------- + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + listBanks(): Promise { + return new Promise((resolve, reject) => { + let req = new ListVendorsRequest(); + + this.__natsService + .request( + SUBJECT_LIST_VENDORS, + req.serializeBinary(), + ListVendorsResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getVendorsList()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + }); + } +} diff --git a/src/app/modules/polyglot/api/services/index.ts b/src/app/modules/polyglot/api/services/index.ts new file mode 100644 index 0000000..23dfd5a --- /dev/null +++ b/src/app/modules/polyglot/api/services/index.ts @@ -0,0 +1,5 @@ +import { Type } from '@angular/core'; + +import { ApiService } from './api.service'; + +export const SERVICES: Type[] = [ApiService]; diff --git a/src/app/modules/polyglot/bank/bank.module.ts b/src/app/modules/polyglot/bank/bank.module.ts new file mode 100644 index 0000000..f82543a --- /dev/null +++ b/src/app/modules/polyglot/bank/bank.module.ts @@ -0,0 +1,16 @@ +import { ModuleWithProviders, NgModule } from '@angular/core'; + +import { SERVICES } from './services'; + +@NgModule({}) +export class BankRootModule {} + +@NgModule({}) +export class BankModule { + public static forRoot(): ModuleWithProviders { + return { + ngModule: BankRootModule, + providers: [...SERVICES], + }; + } +} diff --git a/src/app/modules/polyglot/bank/services/bank.service.ts b/src/app/modules/polyglot/bank/services/bank.service.ts new file mode 100644 index 0000000..753cd0e --- /dev/null +++ b/src/app/modules/polyglot/bank/services/bank.service.ts @@ -0,0 +1,148 @@ +import { Injectable } from '@angular/core'; +import { NatsService } from 'app/core/nats/services/nats.service'; +import * as nats from 'nats.ws'; + +import { Error } from 'app/modules/proto/protobuf/rpc_pb'; + +import { + ListBanksRequest, + ListBanksResponse, + CreateBankRequest, + CreateBankResponse, + UpdateBankRequest, + UpdateBankResponse, + DeleteBankRequest, + DeleteBankResponse, + GetBankResponse, + GetBankRequest, +} from 'app/modules/proto/c2se/bank_pb'; +import { + SUBJECT_LIST_BANKS, + SUBJECT_CREATE_BANK, + SUBJECT_UPDATE_BANK, + SUBJECT_DELETE_BANK, + SUBJECT_GET_BANK, +} from 'app/modules/proto/c2se/backend/bank_pb'; + +@Injectable({ + providedIn: 'root', +}) +export class BankService { + /** + * Constructor + */ + constructor(private __natsService: NatsService) {} + + // ----------------------------------------------------------------------------------------------------- + // @ Accessors + // ----------------------------------------------------------------------------------------------------- + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + createBank(): Promise { + return new Promise((resolve, reject) => { + let req = new CreateBankRequest(); + + this.__natsService + .request( + SUBJECT_CREATE_BANK, + req.serializeBinary(), + CreateBankResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getBank()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + }); + } + + listBanks(): Promise { + return new Promise((resolve, reject) => { + let req = new ListBanksRequest(); + + this.__natsService + .request( + SUBJECT_LIST_BANKS, + req.serializeBinary(), + ListBanksResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getBanksList()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + }); + } + + getBank(): Promise { + return new Promise((resolve, reject) => { + let req = new GetBankRequest(); + + this.__natsService + .request( + SUBJECT_GET_BANK, + req.serializeBinary(), + GetBankResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getBank()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + }); + } + + updateBank(): Promise { + return new Promise((resolve, reject) => { + let req = new UpdateBankRequest(); + + this.__natsService + .request( + SUBJECT_UPDATE_BANK, + req.serializeBinary(), + UpdateBankResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getBank()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + }); + } + + deleteBank(): Promise { + return new Promise((resolve, reject) => { + let req = new DeleteBankRequest(); + + this.__natsService + .request( + SUBJECT_DELETE_BANK, + req.serializeBinary(), + DeleteBankResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + }); + } +} diff --git a/src/app/modules/polyglot/bank/services/index.ts b/src/app/modules/polyglot/bank/services/index.ts new file mode 100644 index 0000000..da6a1ea --- /dev/null +++ b/src/app/modules/polyglot/bank/services/index.ts @@ -0,0 +1,5 @@ +import { Type } from '@angular/core'; + +import { BankService } from './bank.service'; + +export const SERVICES: Type[] = [BankService]; diff --git a/src/app/modules/polyglot/identity/identity.module.ts b/src/app/modules/polyglot/identity/identity.module.ts new file mode 100644 index 0000000..8fecf51 --- /dev/null +++ b/src/app/modules/polyglot/identity/identity.module.ts @@ -0,0 +1,16 @@ +import { ModuleWithProviders, NgModule } from '@angular/core'; + +import { SERVICES } from './services'; + +@NgModule({}) +export class IdentityRootModule {} + +@NgModule({}) +export class IdentityModule { + public static forRoot(): ModuleWithProviders { + return { + ngModule: IdentityRootModule, + providers: [...SERVICES], + }; + } +} diff --git a/src/app/modules/polyglot/identity/services/identity.service.ts b/src/app/modules/polyglot/identity/services/identity.service.ts new file mode 100644 index 0000000..2b5d64f --- /dev/null +++ b/src/app/modules/polyglot/identity/services/identity.service.ts @@ -0,0 +1,133 @@ +import { Injectable } from '@angular/core'; +import { NatsService } from 'app/core/nats/services/nats.service'; +import * as nats from 'nats.ws'; + +import { Error } from 'app/modules/proto/protobuf/rpc_pb'; + +import { + CheckUsernameForDuplicationRequest, + CheckUsernameForDuplicationResponse, + CheckNicknameForDuplicationRequest, + CheckNicknameForDuplicationResponse, + CaptchaRequest, + CaptchaResponse, + SigninRequest, + SigninResponse, +} from 'app/modules/proto/c2se/identity_pb'; +import { + SUBJECT_CHECK_USERNAME_FOR_DUPLICATION, + SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION, + SUBJECT_CAPTCHA, + SUBJECT_SIGNIN, +} from 'app/modules/proto/c2se/backend/identity_pb'; + +@Injectable({ + providedIn: 'root', +}) +export class IdentityService { + /** + * Constructor + */ + constructor(private __natsService: NatsService) {} + + // ----------------------------------------------------------------------------------------------------- + // @ Accessors + // ----------------------------------------------------------------------------------------------------- + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + checkUsernameForDuplication(username: string): Promise { + return new Promise((resolve, reject) => { + let req = new CheckUsernameForDuplicationRequest(); + req.setUsername(username); + + this.__natsService + .request( + SUBJECT_CHECK_USERNAME_FOR_DUPLICATION, + req.serializeBinary(), + CheckUsernameForDuplicationResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getDuplicated()); + resolve(result.getDuplicated()); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + }); + } + + checkNicknameForDuplication(nickname: string): Promise { + return new Promise((resolve, reject) => { + let req = new CheckNicknameForDuplicationRequest(); + req.setNickname(nickname); + + this.__natsService + .request( + SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION, + req.serializeBinary(), + CheckNicknameForDuplicationResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getDuplicated()); + resolve(result.getDuplicated()); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + }); + } + + captcha(): Promise { + return new Promise((resolve, reject) => { + let req = new CaptchaRequest(); + + this.__natsService + .request( + SUBJECT_CAPTCHA, + req.serializeBinary(), + CaptchaResponse.deserializeBinary + ) + .then((result) => { + resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + }); + } + + signin( + securityCodeHash: string, + securityCode: string, + username: string, + password: string + ): Promise { + return new Promise((resolve, reject) => { + let req = new SigninRequest(); + req.setSecurityCodeHash(securityCodeHash); + req.setSecurityCode(securityCode); + req.setUsername(username); + req.setPassword(password); + + this.__natsService + .request( + SUBJECT_SIGNIN, + req.serializeBinary(), + SigninResponse.deserializeBinary + ) + .then((result) => { + resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + }); + } +} diff --git a/src/app/modules/polyglot/identity/services/index.ts b/src/app/modules/polyglot/identity/services/index.ts new file mode 100644 index 0000000..ffc107a --- /dev/null +++ b/src/app/modules/polyglot/identity/services/index.ts @@ -0,0 +1,5 @@ +import { Type } from '@angular/core'; + +import { IdentityService } from './identity.service'; + +export const SERVICES: Type[] = [IdentityService]; diff --git a/src/app/modules/polyglot/member/member.module.ts b/src/app/modules/polyglot/member/member.module.ts new file mode 100644 index 0000000..9409680 --- /dev/null +++ b/src/app/modules/polyglot/member/member.module.ts @@ -0,0 +1,16 @@ +import { ModuleWithProviders, NgModule } from '@angular/core'; + +import { SERVICES } from './services'; + +@NgModule({}) +export class MemberRootModule {} + +@NgModule({}) +export class MemberModule { + public static forRoot(): ModuleWithProviders { + return { + ngModule: MemberRootModule, + providers: [...SERVICES], + }; + } +} diff --git a/src/app/modules/polyglot/member/services/index.ts b/src/app/modules/polyglot/member/services/index.ts new file mode 100644 index 0000000..b2b6f9a --- /dev/null +++ b/src/app/modules/polyglot/member/services/index.ts @@ -0,0 +1,5 @@ +import { Type } from '@angular/core'; + +import { MemberService } from './member.service'; + +export const SERVICES: Type[] = [MemberService]; diff --git a/src/app/modules/polyglot/member/services/member.service.ts b/src/app/modules/polyglot/member/services/member.service.ts new file mode 100644 index 0000000..307cf46 --- /dev/null +++ b/src/app/modules/polyglot/member/services/member.service.ts @@ -0,0 +1,183 @@ +import { Injectable } from '@angular/core'; +import { NatsService } from 'app/core/nats/services/nats.service'; +import * as nats from 'nats.ws'; + +import { Error } from 'app/modules/proto/protobuf/rpc_pb'; + +import { + ListMembersRequest, + ListMembersResponse, + GetMemberByUsernameRequest, + GetMemberByUsernameResponse, + GetMemberRequest, + GetMemberResponse, + UpdateMemberRequest, + UpdateMemberResponse, + CreateMemberResponse, + CreateMemberRequest, +} from 'app/modules/proto/c2se/member_pb'; +import { + SUBJECT_LIST_MEMBERS, + SUBJECT_GET_MEMBER, + SUBJECT_GET_MEMBER_BY_USERNAME, + SUBJECT_UPDATE_MEMBER, + SUBJECT_CREATE_MEMBER, +} from 'app/modules/proto/c2se/backend/member_pb'; +import { Pagination } from 'app/modules/proto/protobuf/pagination_pb'; + +@Injectable({ + providedIn: 'root', +}) +export class MemberService { + /** + * Constructor + */ + constructor(private __natsService: NatsService) {} + + // ----------------------------------------------------------------------------------------------------- + // @ Accessors + // ----------------------------------------------------------------------------------------------------- + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + listMembers(req?: ListMembersRequest): Promise { + return new Promise((resolve, reject) => { + if (!req) { + req = new ListMembersRequest(); + } + + if (!req.hasPagination()) { + let paging = new Pagination(); + paging.setPageSize(10); + paging.setPage(0); + + req.setPagination(paging); + } + + this.__natsService + .request( + SUBJECT_LIST_MEMBERS, + req.serializeBinary(), + ListMembersResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMembersList()); + resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + }); + } + + getMember(id: string): Promise { + return new Promise((resolve, reject) => { + let req = new GetMemberRequest(); + req.setId(id); + + this.__natsService + .request( + SUBJECT_GET_MEMBER, + req.serializeBinary(), + GetMemberResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMember()); + resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + }); + } + + getMemberByUsername(): Promise { + return new Promise( + (resolve, reject) => { + let req = new GetMemberByUsernameRequest(); + + this.__natsService + .request( + SUBJECT_GET_MEMBER_BY_USERNAME, + req.serializeBinary(), + GetMemberByUsernameResponse.deserializeBinary + ) + .then((result) => { + resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + } + ); + } + + updateMember( + id: string, + siteId: string, + memberLevelId: string, + password: string, + mobilePhoneNumber: string + ): Promise { + return new Promise((resolve, reject) => { + let req = new UpdateMemberRequest(); + req.setId(id); + + if (!!siteId) { + req.setSiteId(siteId); + } + if (!!memberLevelId) { + req.setMemberLevelId(memberLevelId); + } + if (!!password) { + req.setPassword(password); + } + if (!!mobilePhoneNumber) { + req.setMobilePhoneNumber(mobilePhoneNumber); + } + + this.__natsService + .request( + SUBJECT_UPDATE_MEMBER, + req.serializeBinary(), + UpdateMemberResponse.deserializeBinary + ) + .then((result) => { + console.log('updateMember Result: ', result); + resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + }); + } + + // siteId: 8429a7ab-b9de-400b-a209-28ff46e22bec + // classId: 4b014ef5-3bab-4413-aaf9-b0040a70ec77 + // levelId: c56231ac-2120-4a81-a30a-5d41fafb6c57 + + createMember(req: CreateMemberRequest): Promise { + return new Promise((resolve, reject) => { + this.__natsService + .request( + SUBJECT_CREATE_MEMBER, + req.serializeBinary(), + CreateMemberResponse.deserializeBinary + ) + .then((result) => { + console.log('createMember Result: ', result); + resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + }); + } +} diff --git a/src/app/modules/polyglot/member_bank_account/member_bank_account.module.ts b/src/app/modules/polyglot/member_bank_account/member_bank_account.module.ts new file mode 100644 index 0000000..7a946b2 --- /dev/null +++ b/src/app/modules/polyglot/member_bank_account/member_bank_account.module.ts @@ -0,0 +1,16 @@ +import { ModuleWithProviders, NgModule } from '@angular/core'; + +import { SERVICES } from './services'; + +@NgModule({}) +export class MemberBankAccountRootModule {} + +@NgModule({}) +export class MemberBankAccountModule { + public static forRoot(): ModuleWithProviders { + return { + ngModule: MemberBankAccountRootModule, + providers: [...SERVICES], + }; + } +} diff --git a/src/app/modules/polyglot/member_bank_account/services/index.ts b/src/app/modules/polyglot/member_bank_account/services/index.ts new file mode 100644 index 0000000..7416dec --- /dev/null +++ b/src/app/modules/polyglot/member_bank_account/services/index.ts @@ -0,0 +1,5 @@ +import { Type } from '@angular/core'; + +import { MemberBankAccountService } from './member_bank_account.service'; + +export const SERVICES: Type[] = [MemberBankAccountService]; diff --git a/src/app/modules/polyglot/member_bank_account/services/member_bank_account.service.ts b/src/app/modules/polyglot/member_bank_account/services/member_bank_account.service.ts new file mode 100644 index 0000000..b77f060 --- /dev/null +++ b/src/app/modules/polyglot/member_bank_account/services/member_bank_account.service.ts @@ -0,0 +1,158 @@ +import { Injectable } from '@angular/core'; +import { NatsService } from 'app/core/nats/services/nats.service'; +import * as nats from 'nats.ws'; + +import { Error } from 'app/modules/proto/protobuf/rpc_pb'; + +import { + ListMemberBankAccountsRequest, + ListMemberBankAccountsResponse, + CreateMemberBankAccountRequest, + CreateMemberBankAccountResponse, + UpdateMemberBankAccountRequest, + UpdateMemberBankAccountResponse, + DeleteMemberBankAccountRequest, + DeleteMemberBankAccountResponse, + GetMemberBankAccountResponse, + GetMemberBankAccountRequest, +} from 'app/modules/proto/c2se/member_bank_account_pb'; +import { + SUBJECT_LIST_MEMBER_BANK_ACCOUNTS, + SUBJECT_CREATE_MEMBER_BANK_ACCOUNT, + SUBJECT_UPDATE_MEMBER_BANK_ACCOUNT, + SUBJECT_DELETE_MEMBER_BANK_ACCOUNT, + SUBJECT_GET_MEMBER_BANK_ACCOUNT, +} from 'app/modules/proto/c2se/backend/member_bank_account_pb'; + +@Injectable({ + providedIn: 'root', +}) +export class MemberBankAccountService { + /** + * Constructor + */ + constructor(private __natsService: NatsService) {} + + // ----------------------------------------------------------------------------------------------------- + // @ Accessors + // ----------------------------------------------------------------------------------------------------- + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + createMemberBankAccount(): Promise { + return new Promise( + (resolve, reject) => { + let req = new CreateMemberBankAccountRequest(); + + this.__natsService + .request( + SUBJECT_CREATE_MEMBER_BANK_ACCOUNT, + req.serializeBinary(), + CreateMemberBankAccountResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberBankAccount()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + } + ); + } + + listMemberBankAccounts(): Promise { + return new Promise( + (resolve, reject) => { + let req = new ListMemberBankAccountsRequest(); + + this.__natsService + .request( + SUBJECT_LIST_MEMBER_BANK_ACCOUNTS, + req.serializeBinary(), + ListMemberBankAccountsResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberBankAccountsList()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + } + ); + } + + getMemberBankAccount(): Promise { + return new Promise( + (resolve, reject) => { + let req = new GetMemberBankAccountRequest(); + + this.__natsService + .request( + SUBJECT_GET_MEMBER_BANK_ACCOUNT, + req.serializeBinary(), + GetMemberBankAccountResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberBankAccount()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + } + ); + } + + updateMemberBankAccount(): Promise { + return new Promise( + (resolve, reject) => { + let req = new UpdateMemberBankAccountRequest(); + + this.__natsService + .request( + SUBJECT_UPDATE_MEMBER_BANK_ACCOUNT, + req.serializeBinary(), + UpdateMemberBankAccountResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberBankAccount()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + } + ); + } + + deleteMemberBankAccount(): Promise { + return new Promise( + (resolve, reject) => { + let req = new DeleteMemberBankAccountRequest(); + + this.__natsService + .request( + SUBJECT_DELETE_MEMBER_BANK_ACCOUNT, + req.serializeBinary(), + DeleteMemberBankAccountResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + } + ); + } +} diff --git a/src/app/modules/polyglot/member_bank_deposit/member_bank_deposit.module.ts b/src/app/modules/polyglot/member_bank_deposit/member_bank_deposit.module.ts new file mode 100644 index 0000000..375c62d --- /dev/null +++ b/src/app/modules/polyglot/member_bank_deposit/member_bank_deposit.module.ts @@ -0,0 +1,16 @@ +import { ModuleWithProviders, NgModule } from '@angular/core'; + +import { SERVICES } from './services'; + +@NgModule({}) +export class MemberBankDepositRootModule {} + +@NgModule({}) +export class MemberBankDepositModule { + public static forRoot(): ModuleWithProviders { + return { + ngModule: MemberBankDepositRootModule, + providers: [...SERVICES], + }; + } +} diff --git a/src/app/modules/polyglot/member_bank_deposit/services/index.ts b/src/app/modules/polyglot/member_bank_deposit/services/index.ts new file mode 100644 index 0000000..28032f9 --- /dev/null +++ b/src/app/modules/polyglot/member_bank_deposit/services/index.ts @@ -0,0 +1,5 @@ +import { Type } from '@angular/core'; + +import { MemberBankDepositService } from './member_bank_deposit.service'; + +export const SERVICES: Type[] = [MemberBankDepositService]; diff --git a/src/app/modules/polyglot/member_bank_deposit/services/member_bank_deposit.service.ts b/src/app/modules/polyglot/member_bank_deposit/services/member_bank_deposit.service.ts new file mode 100644 index 0000000..eb7e119 --- /dev/null +++ b/src/app/modules/polyglot/member_bank_deposit/services/member_bank_deposit.service.ts @@ -0,0 +1,184 @@ +import { Injectable } from '@angular/core'; +import { NatsService } from 'app/core/nats/services/nats.service'; +import * as nats from 'nats.ws'; + +import { Error } from 'app/modules/proto/protobuf/rpc_pb'; + +import { + ListMemberBankDepositsRequest, + ListMemberBankDepositsResponse, + CreateMemberBankDepositRequest, + CreateMemberBankDepositResponse, + UpdateMemberBankDepositRequest, + UpdateMemberBankDepositResponse, + DeleteMemberBankDepositRequest, + DeleteMemberBankDepositResponse, + GetMemberBankDepositResponse, + GetMemberBankDepositRequest, + UpdateMemberBankDepositForStateResponse, + UpdateMemberBankDepositForStateRequest, +} from 'app/modules/proto/c2se/member_bank_deposit_pb'; +import { + SUBJECT_LIST_MEMBER_BANK_DEPOSITS, + SUBJECT_CREATE_MEMBER_BANK_DEPOSIT, + SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT, + SUBJECT_DELETE_MEMBER_BANK_DEPOSIT, + SUBJECT_GET_MEMBER_BANK_DEPOSIT, + SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT_FOR_STATE, +} from 'app/modules/proto/c2se/backend/member_bank_deposit_pb'; + +@Injectable({ + providedIn: 'root', +}) +export class MemberBankDepositService { + /** + * Constructor + */ + constructor(private __natsService: NatsService) {} + + // ----------------------------------------------------------------------------------------------------- + // @ Accessors + // ----------------------------------------------------------------------------------------------------- + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + createMemberBankDeposit(): Promise { + return new Promise( + (resolve, reject) => { + let req = new CreateMemberBankDepositRequest(); + + this.__natsService + .request( + SUBJECT_CREATE_MEMBER_BANK_DEPOSIT, + req.serializeBinary(), + CreateMemberBankDepositResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberBankDeposit()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + } + ); + } + + listMemberBankDeposits(): Promise { + return new Promise( + (resolve, reject) => { + let req = new ListMemberBankDepositsRequest(); + + this.__natsService + .request( + SUBJECT_LIST_MEMBER_BANK_DEPOSITS, + req.serializeBinary(), + ListMemberBankDepositsResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberBankDepositsList()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + } + ); + } + + getMemberBankDeposit(): Promise { + return new Promise( + (resolve, reject) => { + let req = new GetMemberBankDepositRequest(); + + this.__natsService + .request( + SUBJECT_GET_MEMBER_BANK_DEPOSIT, + req.serializeBinary(), + GetMemberBankDepositResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberBankDeposit()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + } + ); + } + + updateMemberBankDeposit(): Promise { + return new Promise( + (resolve, reject) => { + let req = new UpdateMemberBankDepositRequest(); + + this.__natsService + .request( + SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT, + req.serializeBinary(), + UpdateMemberBankDepositResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberBankDeposit()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + } + ); + } + + updateMemberBankDepositForState(): Promise { + return new Promise( + (resolve, reject) => { + let req = new UpdateMemberBankDepositForStateRequest(); + + this.__natsService + .request( + SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT_FOR_STATE, + req.serializeBinary(), + UpdateMemberBankDepositForStateResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberBankDeposit()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + } + ); + } + + deleteMemberBankDeposit(): Promise { + return new Promise( + (resolve, reject) => { + let req = new DeleteMemberBankDepositRequest(); + + this.__natsService + .request( + SUBJECT_DELETE_MEMBER_BANK_DEPOSIT, + req.serializeBinary(), + DeleteMemberBankDepositResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + } + ); + } +} diff --git a/src/app/modules/polyglot/member_bank_withdraw/member_bank_withdraw.module.ts b/src/app/modules/polyglot/member_bank_withdraw/member_bank_withdraw.module.ts new file mode 100644 index 0000000..b62b127 --- /dev/null +++ b/src/app/modules/polyglot/member_bank_withdraw/member_bank_withdraw.module.ts @@ -0,0 +1,16 @@ +import { ModuleWithProviders, NgModule } from '@angular/core'; + +import { SERVICES } from './services'; + +@NgModule({}) +export class MemberBankWithdrawRootModule {} + +@NgModule({}) +export class MemberBankWithdrawModule { + public static forRoot(): ModuleWithProviders { + return { + ngModule: MemberBankWithdrawRootModule, + providers: [...SERVICES], + }; + } +} diff --git a/src/app/modules/polyglot/member_bank_withdraw/services/index.ts b/src/app/modules/polyglot/member_bank_withdraw/services/index.ts new file mode 100644 index 0000000..9bad2d7 --- /dev/null +++ b/src/app/modules/polyglot/member_bank_withdraw/services/index.ts @@ -0,0 +1,5 @@ +import { Type } from '@angular/core'; + +import { MemberBankWithdrawService } from './member_bank_withdraw.service'; + +export const SERVICES: Type[] = [MemberBankWithdrawService]; diff --git a/src/app/modules/polyglot/member_bank_withdraw/services/member_bank_withdraw.service.ts b/src/app/modules/polyglot/member_bank_withdraw/services/member_bank_withdraw.service.ts new file mode 100644 index 0000000..0e8ea38 --- /dev/null +++ b/src/app/modules/polyglot/member_bank_withdraw/services/member_bank_withdraw.service.ts @@ -0,0 +1,184 @@ +import { Injectable } from '@angular/core'; +import { NatsService } from 'app/core/nats/services/nats.service'; +import * as nats from 'nats.ws'; + +import { Error } from 'app/modules/proto/protobuf/rpc_pb'; + +import { + ListMemberBankWithdrawsRequest, + ListMemberBankWithdrawsResponse, + CreateMemberBankWithdrawRequest, + CreateMemberBankWithdrawResponse, + UpdateMemberBankWithdrawRequest, + UpdateMemberBankWithdrawResponse, + DeleteMemberBankWithdrawRequest, + DeleteMemberBankWithdrawResponse, + GetMemberBankWithdrawResponse, + GetMemberBankWithdrawRequest, + UpdateMemberBankWithdrawForStateResponse, + UpdateMemberBankWithdrawForStateRequest, +} from 'app/modules/proto/c2se/member_bank_withdraw_pb'; +import { + SUBJECT_LIST_MEMBER_BANK_WITHDRAWS, + SUBJECT_CREATE_MEMBER_BANK_WITHDRAW, + SUBJECT_UPDATE_MEMBER_BANK_WITHDRAW, + SUBJECT_DELETE_MEMBER_BANK_WITHDRAW, + SUBJECT_GET_MEMBER_BANK_WITHDRAW, + SUBJECT_UPDATE_MEMBER_BANK_WITHDRAW_FOR_STATE, +} from 'app/modules/proto/c2se/backend/member_bank_withdraw_pb'; + +@Injectable({ + providedIn: 'root', +}) +export class MemberBankWithdrawService { + /** + * Constructor + */ + constructor(private __natsService: NatsService) {} + + // ----------------------------------------------------------------------------------------------------- + // @ Accessors + // ----------------------------------------------------------------------------------------------------- + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + createMemberBankWithdraw(): Promise { + return new Promise( + (resolve, reject) => { + let req = new CreateMemberBankWithdrawRequest(); + + this.__natsService + .request( + SUBJECT_CREATE_MEMBER_BANK_WITHDRAW, + req.serializeBinary(), + CreateMemberBankWithdrawResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberBankWithdraw()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + } + ); + } + + listMemberBankWithdraws(): Promise { + return new Promise( + (resolve, reject) => { + let req = new ListMemberBankWithdrawsRequest(); + + this.__natsService + .request( + SUBJECT_LIST_MEMBER_BANK_WITHDRAWS, + req.serializeBinary(), + ListMemberBankWithdrawsResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberBankWithdrawsList()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + } + ); + } + + getMemberBankWithdraw(): Promise { + return new Promise( + (resolve, reject) => { + let req = new GetMemberBankWithdrawRequest(); + + this.__natsService + .request( + SUBJECT_GET_MEMBER_BANK_WITHDRAW, + req.serializeBinary(), + GetMemberBankWithdrawResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberBankWithdraw()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + } + ); + } + + updateMemberBankWithdraw(): Promise { + return new Promise( + (resolve, reject) => { + let req = new UpdateMemberBankWithdrawRequest(); + + this.__natsService + .request( + SUBJECT_UPDATE_MEMBER_BANK_WITHDRAW, + req.serializeBinary(), + UpdateMemberBankWithdrawResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberBankWithdraw()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + } + ); + } + + updateMemberBankWithdrawForState(): Promise { + return new Promise( + (resolve, reject) => { + let req = new UpdateMemberBankWithdrawForStateRequest(); + + this.__natsService + .request( + SUBJECT_UPDATE_MEMBER_BANK_WITHDRAW_FOR_STATE, + req.serializeBinary(), + UpdateMemberBankWithdrawForStateResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberBankWithdraw()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + } + ); + } + + deleteMemberBankWithdraw(): Promise { + return new Promise( + (resolve, reject) => { + let req = new DeleteMemberBankWithdrawRequest(); + + this.__natsService + .request( + SUBJECT_DELETE_MEMBER_BANK_WITHDRAW, + req.serializeBinary(), + DeleteMemberBankWithdrawResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + } + ); + } +} diff --git a/src/app/modules/polyglot/member_class/member_class.module.ts b/src/app/modules/polyglot/member_class/member_class.module.ts new file mode 100644 index 0000000..5954fcb --- /dev/null +++ b/src/app/modules/polyglot/member_class/member_class.module.ts @@ -0,0 +1,16 @@ +import { ModuleWithProviders, NgModule } from '@angular/core'; + +import { SERVICES } from './services'; + +@NgModule({}) +export class MemberClassRootModule {} + +@NgModule({}) +export class MemberClassModule { + public static forRoot(): ModuleWithProviders { + return { + ngModule: MemberClassRootModule, + providers: [...SERVICES], + }; + } +} diff --git a/src/app/modules/polyglot/member_class/services/index.ts b/src/app/modules/polyglot/member_class/services/index.ts new file mode 100644 index 0000000..06d880e --- /dev/null +++ b/src/app/modules/polyglot/member_class/services/index.ts @@ -0,0 +1,5 @@ +import { Type } from '@angular/core'; + +import { MemberClassService } from './member_class.service'; + +export const SERVICES: Type[] = [MemberClassService]; diff --git a/src/app/modules/polyglot/member_class/services/member_class.service.ts b/src/app/modules/polyglot/member_class/services/member_class.service.ts new file mode 100644 index 0000000..0b63681 --- /dev/null +++ b/src/app/modules/polyglot/member_class/services/member_class.service.ts @@ -0,0 +1,148 @@ +import { Injectable } from '@angular/core'; +import { NatsService } from 'app/core/nats/services/nats.service'; +import * as nats from 'nats.ws'; + +import { Error } from 'app/modules/proto/protobuf/rpc_pb'; + +import { + ListMemberClassesRequest, + ListMemberClassesResponse, + CreateMemberClassRequest, + CreateMemberClassResponse, + UpdateMemberClassRequest, + UpdateMemberClassResponse, + DeleteMemberClassRequest, + DeleteMemberClassResponse, + GetMemberClassResponse, + GetMemberClassRequest, +} from 'app/modules/proto/c2se/member_class_pb'; +import { + SUBJECT_LIST_MEMBER_CLASSES, + SUBJECT_CREATE_MEMBER_CLASS, + SUBJECT_UPDATE_MEMBER_CLASS, + SUBJECT_DELETE_MEMBER_CLASS, + SUBJECT_GET_MEMBER_CLASS, +} from 'app/modules/proto/c2se/backend/member_class_pb'; + +@Injectable({ + providedIn: 'root', +}) +export class MemberClassService { + /** + * Constructor + */ + constructor(private __natsService: NatsService) {} + + // ----------------------------------------------------------------------------------------------------- + // @ Accessors + // ----------------------------------------------------------------------------------------------------- + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + createMemberClass(): Promise { + return new Promise((resolve, reject) => { + let req = new CreateMemberClassRequest(); + + this.__natsService + .request( + SUBJECT_CREATE_MEMBER_CLASS, + req.serializeBinary(), + CreateMemberClassResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberClass()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + }); + } + + listMemberClasss(): Promise { + return new Promise((resolve, reject) => { + let req = new ListMemberClassesRequest(); + + this.__natsService + .request( + SUBJECT_LIST_MEMBER_CLASSES, + req.serializeBinary(), + ListMemberClassesResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberClassesList()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + }); + } + + getMemberClass(): Promise { + return new Promise((resolve, reject) => { + let req = new GetMemberClassRequest(); + + this.__natsService + .request( + SUBJECT_GET_MEMBER_CLASS, + req.serializeBinary(), + GetMemberClassResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberClass()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + }); + } + + updateMemberClass(): Promise { + return new Promise((resolve, reject) => { + let req = new UpdateMemberClassRequest(); + + this.__natsService + .request( + SUBJECT_UPDATE_MEMBER_CLASS, + req.serializeBinary(), + UpdateMemberClassResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberClass()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + }); + } + + deleteMemberClass(): Promise { + return new Promise((resolve, reject) => { + let req = new DeleteMemberClassRequest(); + + this.__natsService + .request( + SUBJECT_DELETE_MEMBER_CLASS, + req.serializeBinary(), + DeleteMemberClassResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + }); + } +} diff --git a/src/app/modules/polyglot/member_level/member_level.module.ts b/src/app/modules/polyglot/member_level/member_level.module.ts new file mode 100644 index 0000000..8a6cc05 --- /dev/null +++ b/src/app/modules/polyglot/member_level/member_level.module.ts @@ -0,0 +1,16 @@ +import { ModuleWithProviders, NgModule } from '@angular/core'; + +import { SERVICES } from './services'; + +@NgModule({}) +export class MemberLevelRootModule {} + +@NgModule({}) +export class MemberLevelModule { + public static forRoot(): ModuleWithProviders { + return { + ngModule: MemberLevelRootModule, + providers: [...SERVICES], + }; + } +} diff --git a/src/app/modules/polyglot/member_level/services/index.ts b/src/app/modules/polyglot/member_level/services/index.ts new file mode 100644 index 0000000..7c24e33 --- /dev/null +++ b/src/app/modules/polyglot/member_level/services/index.ts @@ -0,0 +1,5 @@ +import { Type } from '@angular/core'; + +import { MemberLevelService } from './member_level.service'; + +export const SERVICES: Type[] = [MemberLevelService]; diff --git a/src/app/modules/polyglot/member_level/services/member_level.service.ts b/src/app/modules/polyglot/member_level/services/member_level.service.ts new file mode 100644 index 0000000..7b6ce8d --- /dev/null +++ b/src/app/modules/polyglot/member_level/services/member_level.service.ts @@ -0,0 +1,148 @@ +import { Injectable } from '@angular/core'; +import { NatsService } from 'app/core/nats/services/nats.service'; +import * as nats from 'nats.ws'; + +import { Error } from 'app/modules/proto/protobuf/rpc_pb'; + +import { + ListMemberLevelsRequest, + ListMemberLevelsResponse, + CreateMemberLevelRequest, + CreateMemberLevelResponse, + UpdateMemberLevelRequest, + UpdateMemberLevelResponse, + DeleteMemberLevelRequest, + DeleteMemberLevelResponse, + GetMemberLevelResponse, + GetMemberLevelRequest, +} from 'app/modules/proto/c2se/member_level_pb'; +import { + SUBJECT_LIST_MEMBER_LEVELS, + SUBJECT_CREATE_MEMBER_LEVEL, + SUBJECT_UPDATE_MEMBER_LEVEL, + SUBJECT_DELETE_MEMBER_LEVEL, + SUBJECT_GET_MEMBER_LEVEL, +} from 'app/modules/proto/c2se/backend/member_level_pb'; + +@Injectable({ + providedIn: 'root', +}) +export class MemberLevelService { + /** + * Constructor + */ + constructor(private __natsService: NatsService) {} + + // ----------------------------------------------------------------------------------------------------- + // @ Accessors + // ----------------------------------------------------------------------------------------------------- + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + createMemberLevel(): Promise { + return new Promise((resolve, reject) => { + let req = new CreateMemberLevelRequest(); + + this.__natsService + .request( + SUBJECT_CREATE_MEMBER_LEVEL, + req.serializeBinary(), + CreateMemberLevelResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberLevel()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + }); + } + + listMemberLevels(): Promise { + return new Promise((resolve, reject) => { + let req = new ListMemberLevelsRequest(); + + this.__natsService + .request( + SUBJECT_LIST_MEMBER_LEVELS, + req.serializeBinary(), + ListMemberLevelsResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberLevelsList()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + }); + } + + getMemberLevel(): Promise { + return new Promise((resolve, reject) => { + let req = new GetMemberLevelRequest(); + + this.__natsService + .request( + SUBJECT_GET_MEMBER_LEVEL, + req.serializeBinary(), + GetMemberLevelResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberLevel()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + }); + } + + updateMemberLevel(): Promise { + return new Promise((resolve, reject) => { + let req = new UpdateMemberLevelRequest(); + + this.__natsService + .request( + SUBJECT_UPDATE_MEMBER_LEVEL, + req.serializeBinary(), + UpdateMemberLevelResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getMemberLevel()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + }); + } + + deleteMemberLevel(): Promise { + return new Promise((resolve, reject) => { + let req = new DeleteMemberLevelRequest(); + + this.__natsService + .request( + SUBJECT_DELETE_MEMBER_LEVEL, + req.serializeBinary(), + DeleteMemberLevelResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + }); + } +} diff --git a/src/app/modules/polyglot/site/services/index.ts b/src/app/modules/polyglot/site/services/index.ts new file mode 100644 index 0000000..2316ce7 --- /dev/null +++ b/src/app/modules/polyglot/site/services/index.ts @@ -0,0 +1,5 @@ +import { Type } from '@angular/core'; + +import { SiteService } from './site.service'; + +export const SERVICES: Type[] = [SiteService]; diff --git a/src/app/modules/polyglot/site/services/site.service.ts b/src/app/modules/polyglot/site/services/site.service.ts new file mode 100644 index 0000000..da0f7d8 --- /dev/null +++ b/src/app/modules/polyglot/site/services/site.service.ts @@ -0,0 +1,82 @@ +import { Injectable } from '@angular/core'; +import { NatsService } from 'app/core/nats/services/nats.service'; +import * as nats from 'nats.ws'; + +import { Error } from 'app/modules/proto/protobuf/rpc_pb'; + +import { + ListSitesRequest, + ListSitesResponse, + CreateSiteRequest, + CreateSiteResponse, + UpdateSiteRequest, + UpdateSiteResponse, + DeleteSiteRequest, + DeleteSiteResponse, +} from 'app/modules/proto/c2se/site_pb'; +import { + SUBJECT_LIST_SITES, + SUBJECT_CREATE_SITE, + SUBJECT_UPDATE_SITE, + SUBJECT_DELETE_SITE, +} from 'app/modules/proto/c2se/backend/site_pb'; + +@Injectable({ + providedIn: 'root', +}) +export class SiteService { + /** + * Constructor + */ + constructor(private __natsService: NatsService) {} + + // ----------------------------------------------------------------------------------------------------- + // @ Accessors + // ----------------------------------------------------------------------------------------------------- + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + listSites(): Promise { + return new Promise((resolve, reject) => { + let req = new ListSitesRequest(); + + this.__natsService + .request( + SUBJECT_LIST_SITES, + req.serializeBinary(), + ListSitesResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getSitesList()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + }); + } + + createSite(): Promise { + return new Promise((resolve, reject) => { + let req = new CreateSiteRequest(); + + this.__natsService + .request( + SUBJECT_CREATE_SITE, + req.serializeBinary(), + CreateSiteResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getSite()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + return reject(e); + }); + }); + } +} diff --git a/src/app/modules/polyglot/site/site.module.ts b/src/app/modules/polyglot/site/site.module.ts new file mode 100644 index 0000000..82fd4c7 --- /dev/null +++ b/src/app/modules/polyglot/site/site.module.ts @@ -0,0 +1,16 @@ +import { ModuleWithProviders, NgModule } from '@angular/core'; + +import { SERVICES } from './services'; + +@NgModule({}) +export class SiteRootModule {} + +@NgModule({}) +export class SiteModule { + public static forRoot(): ModuleWithProviders { + return { + ngModule: SiteRootModule, + providers: [...SERVICES], + }; + } +} diff --git a/src/app/modules/proto/c2se/api/vendor_pb.d.ts b/src/app/modules/proto/c2se/api/vendor_pb.d.ts new file mode 100644 index 0000000..51eaa13 --- /dev/null +++ b/src/app/modules/proto/c2se/api/vendor_pb.d.ts @@ -0,0 +1,188 @@ +// package: bet.beteran.c2se.api.vendor +// file: c2se/api/vendor.proto + +import * as jspb from 'google-protobuf'; +import * as protobuf_rpc_pb from '../../protobuf/rpc_pb'; +import * as protobuf_pagination_pb from '../../protobuf/pagination_pb'; +import * as models_core_network_pb from '../../models/core/network_pb'; +import * as models_api_vendor_pb from '../../models/api/vendor_pb'; + +export class ListVendorsRequest extends jspb.Message { + hasPagination(): boolean; + clearPagination(): void; + getPagination(): protobuf_pagination_pb.Pagination | undefined; + setPagination(value?: protobuf_pagination_pb.Pagination): void; + + clearSortsList(): void; + getSortsList(): Array; + setSortsList(value: Array): void; + addSorts( + value?: protobuf_pagination_pb.Sort, + index?: number + ): protobuf_pagination_pb.Sort; + + hasSearch(): boolean; + clearSearch(): void; + getSearch(): ListVendorsRequest.Search | undefined; + setSearch(value?: ListVendorsRequest.Search): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListVendorsRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: ListVendorsRequest + ): ListVendorsRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListVendorsRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListVendorsRequest; + static deserializeBinaryFromReader( + message: ListVendorsRequest, + reader: jspb.BinaryReader + ): ListVendorsRequest; +} + +export namespace ListVendorsRequest { + export type AsObject = { + pagination?: protobuf_pagination_pb.Pagination.AsObject; + sortsList: Array; + search?: ListVendorsRequest.Search.AsObject; + }; + + export class Search extends jspb.Message { + hasCompanyId(): boolean; + clearCompanyId(): void; + getCompanyId(): number; + setCompanyId(value: number): void; + + hasVendorId(): boolean; + clearVendorId(): void; + getVendorId(): number; + setVendorId(value: number): void; + + hasKeyLike(): boolean; + clearKeyLike(): void; + getKeyLike(): string; + setKeyLike(value: string): void; + + hasNameLike(): boolean; + clearNameLike(): void; + getNameLike(): string; + setNameLike(value: string): void; + + hasCategoryLike(): boolean; + clearCategoryLike(): void; + getCategoryLike(): string; + setCategoryLike(value: string): void; + + hasIsEnable(): boolean; + clearIsEnable(): void; + getIsEnable(): string; + setIsEnable(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Search.AsObject; + static toObject(includeInstance: boolean, msg: Search): Search.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Search, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Search; + static deserializeBinaryFromReader( + message: Search, + reader: jspb.BinaryReader + ): Search; + } + + export namespace Search { + export type AsObject = { + companyId: number; + vendorId: number; + keyLike: string; + nameLike: string; + categoryLike: string; + isEnable: string; + }; + } +} + +export class ListVendorsResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): ListVendorsResponse.Result | undefined; + setResult(value?: ListVendorsResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListVendorsResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: ListVendorsResponse + ): ListVendorsResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListVendorsResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListVendorsResponse; + static deserializeBinaryFromReader( + message: ListVendorsResponse, + reader: jspb.BinaryReader + ): ListVendorsResponse; +} + +export namespace ListVendorsResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: ListVendorsResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + clearVendorsList(): void; + getVendorsList(): Array; + setVendorsList(value: Array): void; + addVendors( + value?: models_api_vendor_pb.Vendor, + index?: number + ): models_api_vendor_pb.Vendor; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Result, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader( + message: Result, + reader: jspb.BinaryReader + ): Result; + } + + export namespace Result { + export type AsObject = { + vendorsList: Array; + }; + } +} diff --git a/src/app/modules/proto/c2se/api/vendor_pb.js b/src/app/modules/proto/c2se/api/vendor_pb.js new file mode 100644 index 0000000..ccfed2d --- /dev/null +++ b/src/app/modules/proto/c2se/api/vendor_pb.js @@ -0,0 +1,1271 @@ +// source: c2se/api/vendor.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +var protobuf_rpc_pb = require("../../protobuf/rpc_pb.js"); +goog.object.extend(proto, protobuf_rpc_pb); +var protobuf_pagination_pb = require("../../protobuf/pagination_pb.js"); +goog.object.extend(proto, protobuf_pagination_pb); +var models_core_network_pb = require("../../models/core/network_pb.js"); +goog.object.extend(proto, models_core_network_pb); +var models_api_vendor_pb = require("../../models/api/vendor_pb.js"); +goog.object.extend(proto, models_api_vendor_pb); +goog.exportSymbol( + "proto.bet.beteran.c2se.api.vendor.ListVendorsRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.api.vendor.ListVendorsResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result", + null, + global +); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.repeatedFields_, + null + ); +}; +goog.inherits( + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.displayName = + "proto.bet.beteran.c2se.api.vendor.ListVendorsRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.displayName = + "proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.displayName = + "proto.bet.beteran.c2se.api.vendor.ListVendorsResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result = function ( + opt_data +) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result + .repeatedFields_, + null + ); +}; +goog.inherits( + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.displayName = + "proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result"; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.repeatedFields_ = [2]; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + pagination: + (f = msg.getPagination()) && + protobuf_pagination_pb.Pagination.toObject(includeInstance, f), + sortsList: jspb.Message.toObjectList( + msg.getSortsList(), + protobuf_pagination_pb.Sort.toObject, + includeInstance + ), + search: + (f = msg.getSearch()) && + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.api.vendor.ListVendorsRequest(); + return proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_pagination_pb.Pagination(); + reader.readMessage( + value, + protobuf_pagination_pb.Pagination.deserializeBinaryFromReader + ); + msg.setPagination(value); + break; + case 2: + var value = new protobuf_pagination_pb.Sort(); + reader.readMessage( + value, + protobuf_pagination_pb.Sort.deserializeBinaryFromReader + ); + msg.addSorts(value); + break; + case 3: + var value = + new proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search(); + reader.readMessage( + value, + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search + .deserializeBinaryFromReader + ); + msg.setSearch(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_pagination_pb.Pagination.serializeBinaryToWriter + ); + } + f = message.getSortsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + protobuf_pagination_pb.Sort.serializeBinaryToWriter + ); + } + f = message.getSearch(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search + .serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.toObject = + function (includeInstance, msg) { + var f, + obj = { + companyId: jspb.Message.getFieldWithDefault(msg, 1, 0), + vendorId: jspb.Message.getFieldWithDefault(msg, 2, 0), + keyLike: jspb.Message.getFieldWithDefault(msg, 3, ""), + nameLike: jspb.Message.getFieldWithDefault(msg, 4, ""), + categoryLike: jspb.Message.getFieldWithDefault(msg, 5, ""), + isEnable: jspb.Message.getFieldWithDefault(msg, 6, ""), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search(); + return proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCompanyId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setVendorId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setKeyLike(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setNameLike(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setCategoryLike(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setIsEnable(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = /** @type {number} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeUint64(1, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeUint64(2, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString(3, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString(4, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeString(5, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeString(6, f); + } + }; + +/** + * optional uint64 company_id = 1; + * @return {number} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.getCompanyId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.setCompanyId = + function (value) { + return jspb.Message.setField(this, 1, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.clearCompanyId = + function () { + return jspb.Message.setField(this, 1, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.hasCompanyId = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional uint64 vendor_id = 2; + * @return {number} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.getVendorId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.setVendorId = + function (value) { + return jspb.Message.setField(this, 2, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.clearVendorId = + function () { + return jspb.Message.setField(this, 2, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.hasVendorId = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +/** + * optional string key_like = 3; + * @return {string} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.getKeyLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.setKeyLike = + function (value) { + return jspb.Message.setField(this, 3, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.clearKeyLike = + function () { + return jspb.Message.setField(this, 3, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.hasKeyLike = + function () { + return jspb.Message.getField(this, 3) != null; + }; + +/** + * optional string name_like = 4; + * @return {string} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.getNameLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.setNameLike = + function (value) { + return jspb.Message.setField(this, 4, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.clearNameLike = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.hasNameLike = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional string category_like = 5; + * @return {string} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.getCategoryLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.setCategoryLike = + function (value) { + return jspb.Message.setField(this, 5, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.clearCategoryLike = + function () { + return jspb.Message.setField(this, 5, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.hasCategoryLike = + function () { + return jspb.Message.getField(this, 5) != null; + }; + +/** + * optional string is_enable = 6; + * @return {string} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.getIsEnable = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 6, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.setIsEnable = + function (value) { + return jspb.Message.setField(this, 6, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.clearIsEnable = + function () { + return jspb.Message.setField(this, 6, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.hasIsEnable = + function () { + return jspb.Message.getField(this, 6) != null; + }; + +/** + * optional bet.protobuf.pagination.Pagination pagination = 1; + * @return {?proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.getPagination = + function () { + return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( + jspb.Message.getWrapperField(this, protobuf_pagination_pb.Pagination, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.setPagination = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.clearPagination = + function () { + return this.setPagination(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.hasPagination = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * repeated bet.protobuf.pagination.Sort sorts = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.getSortsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, protobuf_pagination_pb.Sort, 2) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.setSortsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); + }; + +/** + * @param {!proto.bet.protobuf.pagination.Sort=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Sort} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.addSorts = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 2, + opt_value, + proto.bet.protobuf.pagination.Sort, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.clearSortsList = + function () { + return this.setSortsList([]); + }; + +/** + * optional Search search = 3; + * @return {?proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.getSearch = + function () { + return /** @type{?proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search, + 3 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search|undefined} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.setSearch = + function (value) { + return jspb.Message.setWrapperField(this, 3, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.clearSearch = + function () { + return this.setSearch(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.hasSearch = + function () { + return jspb.Message.getField(this, 3) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.api.vendor.ListVendorsResponse(); + return proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result + .deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result + .serializeBinaryToWriter + ); + } + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.repeatedFields_ = [ + 1, +]; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + vendorsList: jspb.Message.toObjectList( + msg.getVendorsList(), + models_api_vendor_pb.Vendor.toObject, + includeInstance + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result(); + return proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_api_vendor_pb.Vendor(); + reader.readMessage( + value, + models_api_vendor_pb.Vendor.deserializeBinaryFromReader + ); + msg.addVendors(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getVendorsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + models_api_vendor_pb.Vendor.serializeBinaryToWriter + ); + } + }; + +/** + * repeated bet.beteran.api.vendor.Vendor vendors = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.prototype.getVendorsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, models_api_vendor_pb.Vendor, 1) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.prototype.setVendorsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); + }; + +/** + * @param {!proto.bet.beteran.api.vendor.Vendor=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.api.vendor.Vendor} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.prototype.addVendors = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 1, + opt_value, + proto.bet.beteran.api.vendor.Vendor, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.prototype.clearVendorsList = + function () { + return this.setVendorsList([]); + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +goog.object.extend(exports, proto.bet.beteran.c2se.api.vendor); diff --git a/src/app/modules/proto/c2se/backend/api/vendor_pb.d.ts b/src/app/modules/proto/c2se/backend/api/vendor_pb.d.ts new file mode 100644 index 0000000..71ecba1 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/api/vendor_pb.d.ts @@ -0,0 +1,6 @@ +// package: bet.beteran.c2se.backend.api.vendor +// file: c2se/backend/api/vendor.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_LIST_VENDORS: string; diff --git a/src/app/modules/proto/c2se/backend/api/vendor_pb.js b/src/app/modules/proto/c2se/backend/api/vendor_pb.js new file mode 100644 index 0000000..f0a70cf --- /dev/null +++ b/src/app/modules/proto/c2se/backend/api/vendor_pb.js @@ -0,0 +1,27 @@ +// source: c2se/backend/api/vendor.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +goog.exportSymbol("proto.bet.beteran.c2se.backend.api.vendor", null, global); + +proto.bet.beteran.c2se.backend.api.vendor = {}; + +proto.bet.beteran.c2se.backend.api.vendor.SUBJECT_LIST_VENDORS = + "bet.beteran.c2se.backend.api.vendor.ListVendors"; + +goog.object.extend(exports, proto.bet.beteran.c2se.backend.api.vendor); diff --git a/src/app/modules/proto/c2se/backend/bank_pb.d.ts b/src/app/modules/proto/c2se/backend/bank_pb.d.ts new file mode 100644 index 0000000..2d2d4a0 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/bank_pb.d.ts @@ -0,0 +1,10 @@ +// package: bet.beteran.c2se.backend.bank +// file: c2se/backend/bank.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_CREATE_BANK: string; +export const SUBJECT_LIST_BANKS: string; +export const SUBJECT_GET_BANK: string; +export const SUBJECT_UPDATE_BANK: string; +export const SUBJECT_DELETE_BANK: string; diff --git a/src/app/modules/proto/c2se/backend/bank_pb.js b/src/app/modules/proto/c2se/backend/bank_pb.js new file mode 100644 index 0000000..4fb847c --- /dev/null +++ b/src/app/modules/proto/c2se/backend/bank_pb.js @@ -0,0 +1,35 @@ +// source: c2se/backend/bank.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +goog.exportSymbol("proto.bet.beteran.c2se.backend.bank", null, global); + +proto.bet.beteran.c2se.backend.bank = {}; + +proto.bet.beteran.c2se.backend.bank.SUBJECT_CREATE_BANK = + "bet.beteran.c2se.backend.bank.CreateBank"; +proto.bet.beteran.c2se.backend.bank.SUBJECT_LIST_BANKS = + "bet.beteran.c2se.backend.bank.ListBanks"; +proto.bet.beteran.c2se.backend.bank.SUBJECT_GET_BANK = + "bet.beteran.c2se.backend.bank.GetBank"; +proto.bet.beteran.c2se.backend.bank.SUBJECT_UPDATE_BANK = + "bet.beteran.c2se.backend.bank.UpdateBank"; +proto.bet.beteran.c2se.backend.bank.SUBJECT_DELETE_BANK = + "bet.beteran.c2se.backend.bank.DeleteBank"; + +goog.object.extend(exports, proto.bet.beteran.c2se.backend.bank); diff --git a/src/app/modules/proto/c2se/backend/identity_pb.d.ts b/src/app/modules/proto/c2se/backend/identity_pb.d.ts new file mode 100644 index 0000000..52bc051 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/identity_pb.d.ts @@ -0,0 +1,9 @@ +// package: bet.beteran.c2se.backend.identity +// file: c2se/backend/identity.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_CHECK_USERNAME_FOR_DUPLICATION: string; +export const SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION: string; +export const SUBJECT_CAPTCHA: string; +export const SUBJECT_SIGNIN: string; diff --git a/src/app/modules/proto/c2se/backend/identity_pb.js b/src/app/modules/proto/c2se/backend/identity_pb.js new file mode 100644 index 0000000..b89c76f --- /dev/null +++ b/src/app/modules/proto/c2se/backend/identity_pb.js @@ -0,0 +1,33 @@ +// source: c2se/backend/identity.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +goog.exportSymbol("proto.bet.beteran.c2se.backend.identity", null, global); + +proto.bet.beteran.c2se.backend.identity = {}; + +proto.bet.beteran.c2se.backend.identity.SUBJECT_CHECK_USERNAME_FOR_DUPLICATION = + "bet.beteran.c2se.backend.identity.CheckUsernameForDuplication"; +proto.bet.beteran.c2se.backend.identity.SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION = + "bet.beteran.c2se.backend.identity.CheckNicknameForDuplication"; +proto.bet.beteran.c2se.backend.identity.SUBJECT_CAPTCHA = + "bet.beteran.c2se.backend.identity.Captcha"; +proto.bet.beteran.c2se.backend.identity.SUBJECT_SIGNIN = + "bet.beteran.c2se.backend.identity.Signin"; + +goog.object.extend(exports, proto.bet.beteran.c2se.backend.identity); diff --git a/src/app/modules/proto/c2se/backend/member_bank_account_pb.d.ts b/src/app/modules/proto/c2se/backend/member_bank_account_pb.d.ts new file mode 100644 index 0000000..95ed2c7 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/member_bank_account_pb.d.ts @@ -0,0 +1,10 @@ +// package: bet.beteran.c2se.backend.member_bank_account +// file: c2se/backend/member_bank_account.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_CREATE_MEMBER_BANK_ACCOUNT: string; +export const SUBJECT_LIST_MEMBER_BANK_ACCOUNTS: string; +export const SUBJECT_GET_MEMBER_BANK_ACCOUNT: string; +export const SUBJECT_UPDATE_MEMBER_BANK_ACCOUNT: string; +export const SUBJECT_DELETE_MEMBER_BANK_ACCOUNT: string; diff --git a/src/app/modules/proto/c2se/backend/member_bank_account_pb.js b/src/app/modules/proto/c2se/backend/member_bank_account_pb.js new file mode 100644 index 0000000..27150b1 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/member_bank_account_pb.js @@ -0,0 +1,39 @@ +// source: c2se/backend/member_member_bank_account_account.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_bank_account", + null, + global +); + +proto.bet.beteran.c2se.backend.member_bank_account = {}; + +proto.bet.beteran.c2se.backend.member_bank_account.SUBJECT_CREATE_MEMBER_BANK_ACCOUNT = + "bet.beteran.c2se.backend.member_bank_account.CreateMemberBankAccount"; +proto.bet.beteran.c2se.backend.member_bank_account.SUBJECT_LIST_MEMBER_BANK_ACCOUNTS = + "bet.beteran.c2se.backend.member_bank_account.ListMemberBankAccounts"; +proto.bet.beteran.c2se.backend.member_bank_account.SUBJECT_GET_MEMBER_BANK_ACCOUNT = + "bet.beteran.c2se.backend.member_bank_account.GetMemberBankAccount"; +proto.bet.beteran.c2se.backend.member_bank_account.SUBJECT_UPDATE_MEMBER_BANK_ACCOUNT = + "bet.beteran.c2se.backend.member_bank_account.UpdateMemberBankAccount"; +proto.bet.beteran.c2se.backend.member_bank_account.SUBJECT_DELETE_MEMBER_BANK_ACCOUNT = + "bet.beteran.c2se.backend.member_bank_account.DeleteMemberBankAccount"; + +goog.object.extend(exports, proto.bet.beteran.c2se.backend.member_bank_account); diff --git a/src/app/modules/proto/c2se/backend/member_bank_deposit_pb.d.ts b/src/app/modules/proto/c2se/backend/member_bank_deposit_pb.d.ts new file mode 100644 index 0000000..746ba38 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/member_bank_deposit_pb.d.ts @@ -0,0 +1,11 @@ +// package: bet.beteran.c2se.backend.member_bank_deposit +// file: c2se/backend/member_bank_deposit.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_CREATE_MEMBER_BANK_DEPOSIT: string; +export const SUBJECT_LIST_MEMBER_BANK_DEPOSITS: string; +export const SUBJECT_GET_MEMBER_BANK_DEPOSIT: string; +export const SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT: string; +export const SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT_FOR_STATE: string; +export const SUBJECT_DELETE_MEMBER_BANK_DEPOSIT: string; diff --git a/src/app/modules/proto/c2se/backend/member_bank_deposit_pb.js b/src/app/modules/proto/c2se/backend/member_bank_deposit_pb.js new file mode 100644 index 0000000..5b99513 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/member_bank_deposit_pb.js @@ -0,0 +1,35 @@ +// source: c2se/backend/member_bank_deposit.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +proto.bet.beteran.c2se.backend.member_bank_deposit = {}; + +proto.bet.beteran.c2se.backend.member_bank_deposit.SUBJECT_CREATE_MEMBER_BANK_DEPOSIT = + "bet.beteran.c2se.backend.member_bank_deposit.CreateMemberBankDeposit"; +proto.bet.beteran.c2se.backend.member_bank_deposit.SUBJECT_LIST_MEMBER_BANK_DEPOSITS = + "bet.beteran.c2se.backend.member_bank_deposit.ListMemberBankDeposits"; +proto.bet.beteran.c2se.backend.member_bank_deposit.SUBJECT_GET_MEMBER_BANK_DEPOSIT = + "bet.beteran.c2se.backend.member_bank_deposit.GetMemberBankDeposit"; +proto.bet.beteran.c2se.backend.member_bank_deposit.SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT = + "bet.beteran.c2se.backend.member_bank_deposit.UpdateMemberBankDeposit"; +proto.bet.beteran.c2se.backend.member_bank_deposit.SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT_FOR_STATE = + "bet.beteran.c2se.backend.member_bank_deposit.UpdateMemberBankDepositForState"; +proto.bet.beteran.c2se.backend.member_bank_deposit.SUBJECT_DELETE_MEMBER_BANK_DEPOSIT = + "bet.beteran.c2se.backend.member_bank_deposit.DeleteMemberBankDeposit"; + +goog.object.extend(exports, proto.bet.beteran.c2se.backend.member_bank_deposit); diff --git a/src/app/modules/proto/c2se/backend/member_bank_withdraw_pb.d.ts b/src/app/modules/proto/c2se/backend/member_bank_withdraw_pb.d.ts new file mode 100644 index 0000000..a6791a9 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/member_bank_withdraw_pb.d.ts @@ -0,0 +1,11 @@ +// package: bet.beteran.c2se.backend.member_bank_withdraw +// file: c2se/backend/member_bank_withdraw.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_CREATE_MEMBER_BANK_WITHDRAW: string; +export const SUBJECT_LIST_MEMBER_BANK_WITHDRAWS: string; +export const SUBJECT_GET_MEMBER_BANK_WITHDRAW: string; +export const SUBJECT_UPDATE_MEMBER_BANK_WITHDRAW: string; +export const SUBJECT_UPDATE_MEMBER_BANK_WITHDRAW_FOR_STATE: string; +export const SUBJECT_DELETE_MEMBER_BANK_WITHDRAW: string; diff --git a/src/app/modules/proto/c2se/backend/member_bank_withdraw_pb.js b/src/app/modules/proto/c2se/backend/member_bank_withdraw_pb.js new file mode 100644 index 0000000..bbb0f37 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/member_bank_withdraw_pb.js @@ -0,0 +1,38 @@ +// source: c2se/backend/member_bank_withdraw.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +proto.bet.beteran.c2se.backend.member_bank_withdraw = {}; + +proto.bet.beteran.c2se.backend.member_bank_withdraw.SUBJECT_CREATE_MEMBER_BANK_WITHDRAW = + "bet.beteran.c2se.backend.member_bank_withdraw.CreateMemberBankWithdraw"; +proto.bet.beteran.c2se.backend.member_bank_withdraw.SUBJECT_LIST_MEMBER_BANK_WITHDRAWS = + "bet.beteran.c2se.backend.member_bank_withdraw.ListMemberBankWithdraws"; +proto.bet.beteran.c2se.backend.member_bank_withdraw.SUBJECT_GET_MEMBER_BANK_WITHDRAW = + "bet.beteran.c2se.backend.member_bank_withdraw.GetMemberBankWithdraw"; +proto.bet.beteran.c2se.backend.member_bank_withdraw.SUBJECT_UPDATE_MEMBER_BANK_WITHDRAW = + "bet.beteran.c2se.backend.member_bank_withdraw.UpdateMemberBankWithdraw"; +proto.bet.beteran.c2se.backend.member_bank_withdraw.SUBJECT_UPDATE_MEMBER_BANK_WITHDRAW_FOR_STATE = + "bet.beteran.c2se.backend.member_bank_withdraw.UpdateMemberBankWithdrawForState"; +proto.bet.beteran.c2se.backend.member_bank_withdraw.SUBJECT_DELETE_MEMBER_BANK_WITHDRAW = + "bet.beteran.c2se.backend.member_bank_withdraw.DeleteMemberBankWithdraw"; + +goog.object.extend( + exports, + proto.bet.beteran.c2se.backend.member_bank_withdraw +); diff --git a/src/app/modules/proto/c2se/backend/member_class_pb.d.ts b/src/app/modules/proto/c2se/backend/member_class_pb.d.ts new file mode 100644 index 0000000..e70eb00 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/member_class_pb.d.ts @@ -0,0 +1,10 @@ +// package: bet.beteran.c2se.backend.member_class +// file: c2se/backend/member_class.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_CREATE_MEMBER_CLASS: string; +export const SUBJECT_LIST_MEMBER_CLASSES: string; +export const SUBJECT_GET_MEMBER_CLASS: string; +export const SUBJECT_UPDATE_MEMBER_CLASS: string; +export const SUBJECT_DELETE_MEMBER_CLASS: string; diff --git a/src/app/modules/proto/c2se/backend/member_class_pb.js b/src/app/modules/proto/c2se/backend/member_class_pb.js new file mode 100644 index 0000000..0736497 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/member_class_pb.js @@ -0,0 +1,35 @@ +// source: c2se/backend/member_class.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +goog.exportSymbol("proto.bet.beteran.c2se.backend.member_class", null, global); + +proto.bet.beteran.c2se.backend.member_class = {}; + +proto.bet.beteran.c2se.backend.member_class.SUBJECT_CREATE_MEMBER_CLASS = + "bet.beteran.c2se.backend.member_class.CreateMemberClass"; +proto.bet.beteran.c2se.backend.member_class.SUBJECT_LIST_MEMBER_CLASSES = + "bet.beteran.c2se.backend.member_class.ListMemberClasses"; +proto.bet.beteran.c2se.backend.member_class.SUBJECT_GET_MEMBER_CLASS = + "bet.beteran.c2se.backend.member_class.GetMemberClass"; +proto.bet.beteran.c2se.backend.member_class.SUBJECT_UPDATE_MEMBER_CLASS = + "bet.beteran.c2se.backend.member_class.UpdateMemberClass"; +proto.bet.beteran.c2se.backend.member_class.SUBJECT_DELETE_MEMBER_CLASS = + "bet.beteran.c2se.backend.member_class.DeleteMemberClass"; + +goog.object.extend(exports, proto.bet.beteran.c2se.backend.member_class); diff --git a/src/app/modules/proto/c2se/backend/member_level_pb.d.ts b/src/app/modules/proto/c2se/backend/member_level_pb.d.ts new file mode 100644 index 0000000..8ed6aa2 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/member_level_pb.d.ts @@ -0,0 +1,10 @@ +// package: bet.beteran.c2se.backend.member_level +// file: c2se/backend/member_level.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_CREATE_MEMBER_LEVEL: string; +export const SUBJECT_LIST_MEMBER_LEVELS: string; +export const SUBJECT_GET_MEMBER_LEVEL: string; +export const SUBJECT_UPDATE_MEMBER_LEVEL: string; +export const SUBJECT_DELETE_MEMBER_LEVEL: string; diff --git a/src/app/modules/proto/c2se/backend/member_level_pb.js b/src/app/modules/proto/c2se/backend/member_level_pb.js new file mode 100644 index 0000000..81f93b1 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/member_level_pb.js @@ -0,0 +1,35 @@ +// source: c2se/backend/member_level.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +goog.exportSymbol("proto.bet.beteran.c2se.backend.member_level", null, global); + +proto.bet.beteran.c2se.backend.member_level = {}; + +proto.bet.beteran.c2se.backend.member_level.SUBJECT_CREATE_MEMBER_LEVEL = + "bet.beteran.c2se.backend.member_level.CreateMemberLevel"; +proto.bet.beteran.c2se.backend.member_level.SUBJECT_LIST_MEMBER_LEVELS = + "bet.beteran.c2se.backend.member_level.ListMemberLevels"; +proto.bet.beteran.c2se.backend.member_level.SUBJECT_GET_MEMBER_LEVEL = + "bet.beteran.c2se.backend.member_level.GetMemberLevel"; +proto.bet.beteran.c2se.backend.member_level.SUBJECT_UPDATE_MEMBER_LEVEL = + "bet.beteran.c2se.backend.member_level.UpdateMemberLevel"; +proto.bet.beteran.c2se.backend.member_level.SUBJECT_DELETE_MEMBER_LEVEL = + "bet.beteran.c2se.backend.member_level.DeleteMemberLevel"; + +goog.object.extend(exports, proto.bet.beteran.c2se.backend.member_level); diff --git a/src/app/modules/proto/c2se/backend/member_pb.d.ts b/src/app/modules/proto/c2se/backend/member_pb.d.ts new file mode 100644 index 0000000..e37e330 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/member_pb.d.ts @@ -0,0 +1,11 @@ +// package: bet.beteran.c2se.backend.member +// file: c2se/backend/member.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_CREATE_MEMBER: string; +export const SUBJECT_LIST_MEMBERS: string; +export const SUBJECT_GET_MEMBER: string; +export const SUBJECT_GET_MEMBER_BY_USERNAME: string; +export const SUBJECT_UPDATE_MEMBER: string; +export const SUBJECT_DELETE_MEMBER: string; diff --git a/src/app/modules/proto/c2se/backend/member_pb.js b/src/app/modules/proto/c2se/backend/member_pb.js new file mode 100644 index 0000000..8b6898a --- /dev/null +++ b/src/app/modules/proto/c2se/backend/member_pb.js @@ -0,0 +1,37 @@ +// source: c2se/backend/member.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +goog.exportSymbol("proto.bet.beteran.c2se.backend.member", null, global); + +proto.bet.beteran.c2se.backend.member = {}; + +proto.bet.beteran.c2se.backend.member.SUBJECT_CREATE_MEMBER = + "bet.beteran.c2se.backend.member.CreateMember"; +proto.bet.beteran.c2se.backend.member.SUBJECT_LIST_MEMBERS = + "bet.beteran.c2se.backend.member.ListMembers"; +proto.bet.beteran.c2se.backend.member.SUBJECT_GET_MEMBER = + "bet.beteran.c2se.backend.member.GetMember"; +proto.bet.beteran.c2se.backend.member.SUBJECT_GET_MEMBER_BY_USERNAME = + "bet.beteran.c2se.backend.member.GetMemberByUsername"; +proto.bet.beteran.c2se.backend.member.SUBJECT_UPDATE_MEMBER = + "bet.beteran.c2se.backend.member.UpdateMember"; +proto.bet.beteran.c2se.backend.member.SUBJECT_DELETE_MEMBER = + "bet.beteran.c2se.backend.member.DeleteMember"; + +goog.object.extend(exports, proto.bet.beteran.c2se.backend.member); diff --git a/src/app/modules/proto/c2se/backend/site_pb.d.ts b/src/app/modules/proto/c2se/backend/site_pb.d.ts new file mode 100644 index 0000000..48ab723 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/site_pb.d.ts @@ -0,0 +1,10 @@ +// package: bet.beteran.c2se.backend.site +// file: c2se/backend/site.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_CREATE_SITE: string; +export const SUBJECT_LIST_SITES: string; +export const SUBJECT_GET_SITE: string; +export const SUBJECT_UPDATE_SITE: string; +export const SUBJECT_DELETE_SITE: string; diff --git a/src/app/modules/proto/c2se/backend/site_pb.js b/src/app/modules/proto/c2se/backend/site_pb.js new file mode 100644 index 0000000..6a61e9e --- /dev/null +++ b/src/app/modules/proto/c2se/backend/site_pb.js @@ -0,0 +1,35 @@ +// source: c2se/backend/site.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +goog.exportSymbol("proto.bet.beteran.c2se.backend.site", null, global); + +proto.bet.beteran.c2se.backend.site = {}; + +proto.bet.beteran.c2se.backend.site.SUBJECT_CREATE_SITE = + "bet.beteran.c2se.backend.site.CreateSite"; +proto.bet.beteran.c2se.backend.site.SUBJECT_LIST_SITES = + "bet.beteran.c2se.backend.site.ListSites"; +proto.bet.beteran.c2se.backend.site.SUBJECT_GET_SITE = + "bet.beteran.c2se.backend.site.GetSite"; +proto.bet.beteran.c2se.backend.site.SUBJECT_UPDATE_SITE = + "bet.beteran.c2se.backend.site.UpdateSite"; +proto.bet.beteran.c2se.backend.site.SUBJECT_DELETE_SITE = + "bet.beteran.c2se.backend.site.DeleteSite"; + +goog.object.extend(exports, proto.bet.beteran.c2se.backend.site); diff --git a/src/app/modules/proto/c2se/bank_pb.d.ts b/src/app/modules/proto/c2se/bank_pb.d.ts new file mode 100644 index 0000000..6f24697 --- /dev/null +++ b/src/app/modules/proto/c2se/bank_pb.d.ts @@ -0,0 +1,446 @@ +// package: bet.beteran.c2se.bank +// file: c2se/bank.proto + +import * as jspb from "google-protobuf"; +import * as protobuf_rpc_pb from "../protobuf/rpc_pb"; +import * as protobuf_pagination_pb from "../protobuf/pagination_pb"; +import * as models_bank_pb from "../models/bank_pb"; + +export class CreateBankRequest extends jspb.Message { + getName(): string; + setName(value: string): void; + + getSortOrder(): number; + setSortOrder(value: number): void; + + getShow(): boolean; + setShow(value: boolean): void; + + getCanUse(): boolean; + setCanUse(value: boolean): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateBankRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateBankRequest): CreateBankRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateBankRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateBankRequest; + static deserializeBinaryFromReader(message: CreateBankRequest, reader: jspb.BinaryReader): CreateBankRequest; +} + +export namespace CreateBankRequest { + export type AsObject = { + name: string, + sortOrder: number, + show: boolean, + canUse: boolean, + memo: string, + } +} + +export class CreateBankResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): CreateBankResponse.Result | undefined; + setResult(value?: CreateBankResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateBankResponse.AsObject; + static toObject(includeInstance: boolean, msg: CreateBankResponse): CreateBankResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateBankResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateBankResponse; + static deserializeBinaryFromReader(message: CreateBankResponse, reader: jspb.BinaryReader): CreateBankResponse; +} + +export namespace CreateBankResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: CreateBankResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasBank(): boolean; + clearBank(): void; + getBank(): models_bank_pb.Bank | undefined; + setBank(value?: models_bank_pb.Bank): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + bank?: models_bank_pb.Bank.AsObject, + } + } +} + +export class ListBanksRequest extends jspb.Message { + hasPagination(): boolean; + clearPagination(): void; + getPagination(): protobuf_pagination_pb.Pagination | undefined; + setPagination(value?: protobuf_pagination_pb.Pagination): void; + + clearSortsList(): void; + getSortsList(): Array; + setSortsList(value: Array): void; + addSorts(value?: protobuf_pagination_pb.Sort, index?: number): protobuf_pagination_pb.Sort; + + hasSearch(): boolean; + clearSearch(): void; + getSearch(): ListBanksRequest.Search | undefined; + setSearch(value?: ListBanksRequest.Search): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListBanksRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListBanksRequest): ListBanksRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListBanksRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListBanksRequest; + static deserializeBinaryFromReader(message: ListBanksRequest, reader: jspb.BinaryReader): ListBanksRequest; +} + +export namespace ListBanksRequest { + export type AsObject = { + pagination?: protobuf_pagination_pb.Pagination.AsObject, + sortsList: Array, + search?: ListBanksRequest.Search.AsObject, + } + + export class Search extends jspb.Message { + hasNameLike(): boolean; + clearNameLike(): void; + getNameLike(): string; + setNameLike(value: string): void; + + hasShow(): boolean; + clearShow(): void; + getShow(): boolean; + setShow(value: boolean): void; + + hasCanUse(): boolean; + clearCanUse(): void; + getCanUse(): boolean; + setCanUse(value: boolean): void; + + hasMemoLike(): boolean; + clearMemoLike(): void; + getMemoLike(): string; + setMemoLike(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Search.AsObject; + static toObject(includeInstance: boolean, msg: Search): Search.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Search, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Search; + static deserializeBinaryFromReader(message: Search, reader: jspb.BinaryReader): Search; + } + + export namespace Search { + export type AsObject = { + nameLike: string, + show: boolean, + canUse: boolean, + memoLike: string, + } + } +} + +export class ListBanksResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): ListBanksResponse.Result | undefined; + setResult(value?: ListBanksResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListBanksResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListBanksResponse): ListBanksResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListBanksResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListBanksResponse; + static deserializeBinaryFromReader(message: ListBanksResponse, reader: jspb.BinaryReader): ListBanksResponse; +} + +export namespace ListBanksResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: ListBanksResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + clearBanksList(): void; + getBanksList(): Array; + setBanksList(value: Array): void; + addBanks(value?: models_bank_pb.Bank, index?: number): models_bank_pb.Bank; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + banksList: Array, + } + } +} + +export class GetBankRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetBankRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetBankRequest): GetBankRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetBankRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetBankRequest; + static deserializeBinaryFromReader(message: GetBankRequest, reader: jspb.BinaryReader): GetBankRequest; +} + +export namespace GetBankRequest { + export type AsObject = { + id: string, + } +} + +export class GetBankResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): GetBankResponse.Result | undefined; + setResult(value?: GetBankResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetBankResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetBankResponse): GetBankResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetBankResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetBankResponse; + static deserializeBinaryFromReader(message: GetBankResponse, reader: jspb.BinaryReader): GetBankResponse; +} + +export namespace GetBankResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: GetBankResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasBank(): boolean; + clearBank(): void; + getBank(): models_bank_pb.Bank | undefined; + setBank(value?: models_bank_pb.Bank): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + bank?: models_bank_pb.Bank.AsObject, + } + } +} + +export class UpdateBankRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getName(): string; + setName(value: string): void; + + getSortOrder(): number; + setSortOrder(value: number): void; + + getShow(): boolean; + setShow(value: boolean): void; + + getCanUse(): boolean; + setCanUse(value: boolean): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateBankRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateBankRequest): UpdateBankRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateBankRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateBankRequest; + static deserializeBinaryFromReader(message: UpdateBankRequest, reader: jspb.BinaryReader): UpdateBankRequest; +} + +export namespace UpdateBankRequest { + export type AsObject = { + id: string, + name: string, + sortOrder: number, + show: boolean, + canUse: boolean, + memo: string, + } +} + +export class UpdateBankResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): UpdateBankResponse.Result | undefined; + setResult(value?: UpdateBankResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateBankResponse.AsObject; + static toObject(includeInstance: boolean, msg: UpdateBankResponse): UpdateBankResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateBankResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateBankResponse; + static deserializeBinaryFromReader(message: UpdateBankResponse, reader: jspb.BinaryReader): UpdateBankResponse; +} + +export namespace UpdateBankResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: UpdateBankResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasBank(): boolean; + clearBank(): void; + getBank(): models_bank_pb.Bank | undefined; + setBank(value?: models_bank_pb.Bank): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + bank?: models_bank_pb.Bank.AsObject, + } + } +} + +export class DeleteBankRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteBankRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteBankRequest): DeleteBankRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteBankRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteBankRequest; + static deserializeBinaryFromReader(message: DeleteBankRequest, reader: jspb.BinaryReader): DeleteBankRequest; +} + +export namespace DeleteBankRequest { + export type AsObject = { + id: string, + } +} + +export class DeleteBankResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): DeleteBankResponse.Result | undefined; + setResult(value?: DeleteBankResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteBankResponse.AsObject; + static toObject(includeInstance: boolean, msg: DeleteBankResponse): DeleteBankResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteBankResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteBankResponse; + static deserializeBinaryFromReader(message: DeleteBankResponse, reader: jspb.BinaryReader): DeleteBankResponse; +} + +export namespace DeleteBankResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: DeleteBankResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + } + } +} + diff --git a/src/app/modules/proto/c2se/bank_pb.js b/src/app/modules/proto/c2se/bank_pb.js new file mode 100644 index 0000000..c02730a --- /dev/null +++ b/src/app/modules/proto/c2se/bank_pb.js @@ -0,0 +1,3480 @@ +// source: c2se/bank.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +var protobuf_rpc_pb = require('../protobuf/rpc_pb.js'); +goog.object.extend(proto, protobuf_rpc_pb); +var protobuf_pagination_pb = require('../protobuf/pagination_pb.js'); +goog.object.extend(proto, protobuf_pagination_pb); +var models_bank_pb = require('../models/bank_pb.js'); +goog.object.extend(proto, models_bank_pb); +goog.exportSymbol('proto.bet.beteran.c2se.bank.CreateBankRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.bank.CreateBankResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.bank.CreateBankResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.bank.DeleteBankRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.bank.DeleteBankResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.bank.DeleteBankResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.bank.GetBankRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.bank.GetBankResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.bank.GetBankResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.bank.ListBanksRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.bank.ListBanksRequest.Search', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.bank.ListBanksResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.bank.ListBanksResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.bank.UpdateBankRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.bank.UpdateBankResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.bank.UpdateBankResponse.Result', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.bank.CreateBankRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.bank.CreateBankRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.bank.CreateBankRequest.displayName = 'proto.bet.beteran.c2se.bank.CreateBankRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.bank.CreateBankResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.bank.CreateBankResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.bank.CreateBankResponse.displayName = 'proto.bet.beteran.c2se.bank.CreateBankResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.bank.CreateBankResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.bank.CreateBankResponse.Result.displayName = 'proto.bet.beteran.c2se.bank.CreateBankResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.bank.ListBanksRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.beteran.c2se.bank.ListBanksRequest.repeatedFields_, null); +}; +goog.inherits(proto.bet.beteran.c2se.bank.ListBanksRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.bank.ListBanksRequest.displayName = 'proto.bet.beteran.c2se.bank.ListBanksRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.bank.ListBanksRequest.Search, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.bank.ListBanksRequest.Search.displayName = 'proto.bet.beteran.c2se.bank.ListBanksRequest.Search'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.bank.ListBanksResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.bank.ListBanksResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.bank.ListBanksResponse.displayName = 'proto.bet.beteran.c2se.bank.ListBanksResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.beteran.c2se.bank.ListBanksResponse.Result.repeatedFields_, null); +}; +goog.inherits(proto.bet.beteran.c2se.bank.ListBanksResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.bank.ListBanksResponse.Result.displayName = 'proto.bet.beteran.c2se.bank.ListBanksResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.bank.GetBankRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.bank.GetBankRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.bank.GetBankRequest.displayName = 'proto.bet.beteran.c2se.bank.GetBankRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.bank.GetBankResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.bank.GetBankResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.bank.GetBankResponse.displayName = 'proto.bet.beteran.c2se.bank.GetBankResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.bank.GetBankResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.bank.GetBankResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.bank.GetBankResponse.Result.displayName = 'proto.bet.beteran.c2se.bank.GetBankResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.bank.UpdateBankRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.bank.UpdateBankRequest.displayName = 'proto.bet.beteran.c2se.bank.UpdateBankRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.bank.UpdateBankResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.bank.UpdateBankResponse.displayName = 'proto.bet.beteran.c2se.bank.UpdateBankResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.bank.UpdateBankResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.bank.UpdateBankResponse.Result.displayName = 'proto.bet.beteran.c2se.bank.UpdateBankResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.bank.DeleteBankRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.bank.DeleteBankRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.bank.DeleteBankRequest.displayName = 'proto.bet.beteran.c2se.bank.DeleteBankRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.bank.DeleteBankResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.bank.DeleteBankResponse.displayName = 'proto.bet.beteran.c2se.bank.DeleteBankResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.bank.DeleteBankResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.bank.DeleteBankResponse.Result.displayName = 'proto.bet.beteran.c2se.bank.DeleteBankResponse.Result'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.bank.CreateBankRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.bank.CreateBankRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.bank.CreateBankRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.CreateBankRequest.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + sortOrder: jspb.Message.getFieldWithDefault(msg, 2, 0), + show: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + memo: jspb.Message.getFieldWithDefault(msg, 5, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.bank.CreateBankRequest} + */ +proto.bet.beteran.c2se.bank.CreateBankRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.bank.CreateBankRequest; + return proto.bet.beteran.c2se.bank.CreateBankRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.bank.CreateBankRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.bank.CreateBankRequest} + */ +proto.bet.beteran.c2se.bank.CreateBankRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setSortOrder(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCanUse(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.bank.CreateBankRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.bank.CreateBankRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.bank.CreateBankRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.CreateBankRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getSortOrder(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getShow(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getCanUse(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeString( + 5, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.bet.beteran.c2se.bank.CreateBankRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.bank.CreateBankRequest} returns this + */ +proto.bet.beteran.c2se.bank.CreateBankRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional uint32 sort_order = 2; + * @return {number} + */ +proto.bet.beteran.c2se.bank.CreateBankRequest.prototype.getSortOrder = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.bank.CreateBankRequest} returns this + */ +proto.bet.beteran.c2se.bank.CreateBankRequest.prototype.setSortOrder = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional bool show = 3; + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.CreateBankRequest.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.bank.CreateBankRequest} returns this + */ +proto.bet.beteran.c2se.bank.CreateBankRequest.prototype.setShow = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional bool can_use = 4; + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.CreateBankRequest.prototype.getCanUse = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.bank.CreateBankRequest} returns this + */ +proto.bet.beteran.c2se.bank.CreateBankRequest.prototype.setCanUse = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * optional string memo = 5; + * @return {string} + */ +proto.bet.beteran.c2se.bank.CreateBankRequest.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.bank.CreateBankRequest} returns this + */ +proto.bet.beteran.c2se.bank.CreateBankRequest.prototype.setMemo = function(value) { + return jspb.Message.setField(this, 5, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.CreateBankRequest} returns this + */ +proto.bet.beteran.c2se.bank.CreateBankRequest.prototype.clearMemo = function() { + return jspb.Message.setField(this, 5, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.CreateBankRequest.prototype.hasMemo = function() { + return jspb.Message.getField(this, 5) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.bank.CreateBankResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.bank.CreateBankResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.bank.CreateBankResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.bank.CreateBankResponse} + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.bank.CreateBankResponse; + return proto.bet.beteran.c2se.bank.CreateBankResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.bank.CreateBankResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.bank.CreateBankResponse} + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.bank.CreateBankResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.bank.CreateBankResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.bank.CreateBankResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.bank.CreateBankResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.bank.CreateBankResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.bank.CreateBankResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.bank.CreateBankResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + bank: (f = msg.getBank()) && models_bank_pb.Bank.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.bank.CreateBankResponse.Result} + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.bank.CreateBankResponse.Result; + return proto.bet.beteran.c2se.bank.CreateBankResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.bank.CreateBankResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.bank.CreateBankResponse.Result} + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_bank_pb.Bank; + reader.readMessage(value,models_bank_pb.Bank.deserializeBinaryFromReader); + msg.setBank(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.bank.CreateBankResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.bank.CreateBankResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBank(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_bank_pb.Bank.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.bank.Bank bank = 1; + * @return {?proto.bet.beteran.bank.Bank} + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.Result.prototype.getBank = function() { + return /** @type{?proto.bet.beteran.bank.Bank} */ ( + jspb.Message.getWrapperField(this, models_bank_pb.Bank, 1)); +}; + + +/** + * @param {?proto.bet.beteran.bank.Bank|undefined} value + * @return {!proto.bet.beteran.c2se.bank.CreateBankResponse.Result} returns this +*/ +proto.bet.beteran.c2se.bank.CreateBankResponse.Result.prototype.setBank = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.CreateBankResponse.Result} returns this + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.Result.prototype.clearBank = function() { + return this.setBank(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.Result.prototype.hasBank = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.bank.CreateBankResponse} returns this +*/ +proto.bet.beteran.c2se.bank.CreateBankResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.CreateBankResponse} returns this + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.bank.CreateBankResponse.Result} + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.bank.CreateBankResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.bank.CreateBankResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.bank.CreateBankResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.bank.CreateBankResponse} returns this +*/ +proto.bet.beteran.c2se.bank.CreateBankResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.CreateBankResponse} returns this + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.CreateBankResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.bank.ListBanksRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.bank.ListBanksRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.toObject = function(includeInstance, msg) { + var f, obj = { + pagination: (f = msg.getPagination()) && protobuf_pagination_pb.Pagination.toObject(includeInstance, f), + sortsList: jspb.Message.toObjectList(msg.getSortsList(), + protobuf_pagination_pb.Sort.toObject, includeInstance), + search: (f = msg.getSearch()) && proto.bet.beteran.c2se.bank.ListBanksRequest.Search.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.bank.ListBanksRequest} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.bank.ListBanksRequest; + return proto.bet.beteran.c2se.bank.ListBanksRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.bank.ListBanksRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.bank.ListBanksRequest} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_pagination_pb.Pagination; + reader.readMessage(value,protobuf_pagination_pb.Pagination.deserializeBinaryFromReader); + msg.setPagination(value); + break; + case 2: + var value = new protobuf_pagination_pb.Sort; + reader.readMessage(value,protobuf_pagination_pb.Sort.deserializeBinaryFromReader); + msg.addSorts(value); + break; + case 3: + var value = new proto.bet.beteran.c2se.bank.ListBanksRequest.Search; + reader.readMessage(value,proto.bet.beteran.c2se.bank.ListBanksRequest.Search.deserializeBinaryFromReader); + msg.setSearch(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.bank.ListBanksRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.bank.ListBanksRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_pagination_pb.Pagination.serializeBinaryToWriter + ); + } + f = message.getSortsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + protobuf_pagination_pb.Sort.serializeBinaryToWriter + ); + } + f = message.getSearch(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.bet.beteran.c2se.bank.ListBanksRequest.Search.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.bank.ListBanksRequest.Search.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.bank.ListBanksRequest.Search} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.toObject = function(includeInstance, msg) { + var f, obj = { + nameLike: jspb.Message.getFieldWithDefault(msg, 1, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + memoLike: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.bank.ListBanksRequest.Search} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.bank.ListBanksRequest.Search; + return proto.bet.beteran.c2se.bank.ListBanksRequest.Search.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.bank.ListBanksRequest.Search} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.bank.ListBanksRequest.Search} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setNameLike(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCanUse(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setMemoLike(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.bank.ListBanksRequest.Search.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.bank.ListBanksRequest.Search} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeBool( + 2, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeBool( + 3, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional string name_like = 1; + * @return {string} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.prototype.getNameLike = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.bank.ListBanksRequest.Search} returns this + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.prototype.setNameLike = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.ListBanksRequest.Search} returns this + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.prototype.clearNameLike = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.prototype.hasNameLike = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bool show = 2; + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.bank.ListBanksRequest.Search} returns this + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.prototype.setShow = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.ListBanksRequest.Search} returns this + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.prototype.clearShow = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.prototype.hasShow = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional bool can_use = 3; + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.prototype.getCanUse = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.bank.ListBanksRequest.Search} returns this + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.prototype.setCanUse = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.ListBanksRequest.Search} returns this + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.prototype.clearCanUse = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.prototype.hasCanUse = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string memo_like = 4; + * @return {string} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.prototype.getMemoLike = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.bank.ListBanksRequest.Search} returns this + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.prototype.setMemoLike = function(value) { + return jspb.Message.setField(this, 4, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.ListBanksRequest.Search} returns this + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.prototype.clearMemoLike = function() { + return jspb.Message.setField(this, 4, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.Search.prototype.hasMemoLike = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional bet.protobuf.pagination.Pagination pagination = 1; + * @return {?proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.prototype.getPagination = function() { + return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( + jspb.Message.getWrapperField(this, protobuf_pagination_pb.Pagination, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value + * @return {!proto.bet.beteran.c2se.bank.ListBanksRequest} returns this +*/ +proto.bet.beteran.c2se.bank.ListBanksRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.ListBanksRequest} returns this + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated bet.protobuf.pagination.Sort sorts = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.prototype.getSortsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, protobuf_pagination_pb.Sort, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.bank.ListBanksRequest} returns this +*/ +proto.bet.beteran.c2se.bank.ListBanksRequest.prototype.setSortsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.bet.protobuf.pagination.Sort=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Sort} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.prototype.addSorts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bet.protobuf.pagination.Sort, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.bank.ListBanksRequest} returns this + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.prototype.clearSortsList = function() { + return this.setSortsList([]); +}; + + +/** + * optional Search search = 3; + * @return {?proto.bet.beteran.c2se.bank.ListBanksRequest.Search} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.prototype.getSearch = function() { + return /** @type{?proto.bet.beteran.c2se.bank.ListBanksRequest.Search} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.bank.ListBanksRequest.Search, 3)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.bank.ListBanksRequest.Search|undefined} value + * @return {!proto.bet.beteran.c2se.bank.ListBanksRequest} returns this +*/ +proto.bet.beteran.c2se.bank.ListBanksRequest.prototype.setSearch = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.ListBanksRequest} returns this + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.prototype.clearSearch = function() { + return this.setSearch(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.ListBanksRequest.prototype.hasSearch = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.bank.ListBanksResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.bank.ListBanksResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.bank.ListBanksResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.bank.ListBanksResponse} + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.bank.ListBanksResponse; + return proto.bet.beteran.c2se.bank.ListBanksResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.bank.ListBanksResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.bank.ListBanksResponse} + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.bank.ListBanksResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.bank.ListBanksResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.bank.ListBanksResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.bank.ListBanksResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.bank.ListBanksResponse.Result.serializeBinaryToWriter + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.Result.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.bank.ListBanksResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.bank.ListBanksResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + banksList: jspb.Message.toObjectList(msg.getBanksList(), + models_bank_pb.Bank.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.bank.ListBanksResponse.Result} + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.bank.ListBanksResponse.Result; + return proto.bet.beteran.c2se.bank.ListBanksResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.bank.ListBanksResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.bank.ListBanksResponse.Result} + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_bank_pb.Bank; + reader.readMessage(value,models_bank_pb.Bank.deserializeBinaryFromReader); + msg.addBanks(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.bank.ListBanksResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.bank.ListBanksResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBanksList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + models_bank_pb.Bank.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated bet.beteran.bank.Bank banks = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.Result.prototype.getBanksList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, models_bank_pb.Bank, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.bank.ListBanksResponse.Result} returns this +*/ +proto.bet.beteran.c2se.bank.ListBanksResponse.Result.prototype.setBanksList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.bet.beteran.bank.Bank=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.bank.Bank} + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.Result.prototype.addBanks = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bet.beteran.bank.Bank, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.bank.ListBanksResponse.Result} returns this + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.Result.prototype.clearBanksList = function() { + return this.setBanksList([]); +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.bank.ListBanksResponse} returns this +*/ +proto.bet.beteran.c2se.bank.ListBanksResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.ListBanksResponse} returns this + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.bank.ListBanksResponse.Result} + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.bank.ListBanksResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.bank.ListBanksResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.bank.ListBanksResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.bank.ListBanksResponse} returns this +*/ +proto.bet.beteran.c2se.bank.ListBanksResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.ListBanksResponse} returns this + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.ListBanksResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.bank.GetBankRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.bank.GetBankRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.bank.GetBankRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.GetBankRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.bank.GetBankRequest} + */ +proto.bet.beteran.c2se.bank.GetBankRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.bank.GetBankRequest; + return proto.bet.beteran.c2se.bank.GetBankRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.bank.GetBankRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.bank.GetBankRequest} + */ +proto.bet.beteran.c2se.bank.GetBankRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.bank.GetBankRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.bank.GetBankRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.bank.GetBankRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.GetBankRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.bank.GetBankRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.bank.GetBankRequest} returns this + */ +proto.bet.beteran.c2se.bank.GetBankRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.bank.GetBankResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.bank.GetBankResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.bank.GetBankResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.GetBankResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.bank.GetBankResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.bank.GetBankResponse} + */ +proto.bet.beteran.c2se.bank.GetBankResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.bank.GetBankResponse; + return proto.bet.beteran.c2se.bank.GetBankResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.bank.GetBankResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.bank.GetBankResponse} + */ +proto.bet.beteran.c2se.bank.GetBankResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.bank.GetBankResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.bank.GetBankResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.bank.GetBankResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.bank.GetBankResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.bank.GetBankResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.GetBankResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.bank.GetBankResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.bank.GetBankResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.bank.GetBankResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.bank.GetBankResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.GetBankResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + bank: (f = msg.getBank()) && models_bank_pb.Bank.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.bank.GetBankResponse.Result} + */ +proto.bet.beteran.c2se.bank.GetBankResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.bank.GetBankResponse.Result; + return proto.bet.beteran.c2se.bank.GetBankResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.bank.GetBankResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.bank.GetBankResponse.Result} + */ +proto.bet.beteran.c2se.bank.GetBankResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_bank_pb.Bank; + reader.readMessage(value,models_bank_pb.Bank.deserializeBinaryFromReader); + msg.setBank(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.bank.GetBankResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.bank.GetBankResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.bank.GetBankResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.GetBankResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBank(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_bank_pb.Bank.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.bank.Bank bank = 1; + * @return {?proto.bet.beteran.bank.Bank} + */ +proto.bet.beteran.c2se.bank.GetBankResponse.Result.prototype.getBank = function() { + return /** @type{?proto.bet.beteran.bank.Bank} */ ( + jspb.Message.getWrapperField(this, models_bank_pb.Bank, 1)); +}; + + +/** + * @param {?proto.bet.beteran.bank.Bank|undefined} value + * @return {!proto.bet.beteran.c2se.bank.GetBankResponse.Result} returns this +*/ +proto.bet.beteran.c2se.bank.GetBankResponse.Result.prototype.setBank = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.GetBankResponse.Result} returns this + */ +proto.bet.beteran.c2se.bank.GetBankResponse.Result.prototype.clearBank = function() { + return this.setBank(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.GetBankResponse.Result.prototype.hasBank = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.bank.GetBankResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.bank.GetBankResponse} returns this +*/ +proto.bet.beteran.c2se.bank.GetBankResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.GetBankResponse} returns this + */ +proto.bet.beteran.c2se.bank.GetBankResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.GetBankResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.bank.GetBankResponse.Result} + */ +proto.bet.beteran.c2se.bank.GetBankResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.bank.GetBankResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.bank.GetBankResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.bank.GetBankResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.bank.GetBankResponse} returns this +*/ +proto.bet.beteran.c2se.bank.GetBankResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.GetBankResponse} returns this + */ +proto.bet.beteran.c2se.bank.GetBankResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.GetBankResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.bank.UpdateBankRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.bank.UpdateBankRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + sortOrder: jspb.Message.getFieldWithDefault(msg, 3, 0), + show: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + memo: jspb.Message.getFieldWithDefault(msg, 6, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.bank.UpdateBankRequest} + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.bank.UpdateBankRequest; + return proto.bet.beteran.c2se.bank.UpdateBankRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.bank.UpdateBankRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.bank.UpdateBankRequest} + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setSortOrder(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCanUse(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.bank.UpdateBankRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.bank.UpdateBankRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getSortOrder(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getShow(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getCanUse(); + if (f) { + writer.writeBool( + 5, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeString( + 6, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.bank.UpdateBankRequest} returns this + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string name = 2; + * @return {string} + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.bank.UpdateBankRequest} returns this + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional uint32 sort_order = 3; + * @return {number} + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.prototype.getSortOrder = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.bank.UpdateBankRequest} returns this + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.prototype.setSortOrder = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional bool show = 4; + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.bank.UpdateBankRequest} returns this + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.prototype.setShow = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * optional bool can_use = 5; + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.prototype.getCanUse = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.bank.UpdateBankRequest} returns this + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.prototype.setCanUse = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + +/** + * optional string memo = 6; + * @return {string} + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.bank.UpdateBankRequest} returns this + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.prototype.setMemo = function(value) { + return jspb.Message.setField(this, 6, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.UpdateBankRequest} returns this + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.prototype.clearMemo = function() { + return jspb.Message.setField(this, 6, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.UpdateBankRequest.prototype.hasMemo = function() { + return jspb.Message.getField(this, 6) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.bank.UpdateBankResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.bank.UpdateBankResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.bank.UpdateBankResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.bank.UpdateBankResponse} + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.bank.UpdateBankResponse; + return proto.bet.beteran.c2se.bank.UpdateBankResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.bank.UpdateBankResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.bank.UpdateBankResponse} + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.bank.UpdateBankResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.bank.UpdateBankResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.bank.UpdateBankResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.bank.UpdateBankResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.bank.UpdateBankResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.bank.UpdateBankResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.bank.UpdateBankResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + bank: (f = msg.getBank()) && models_bank_pb.Bank.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.bank.UpdateBankResponse.Result} + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.bank.UpdateBankResponse.Result; + return proto.bet.beteran.c2se.bank.UpdateBankResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.bank.UpdateBankResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.bank.UpdateBankResponse.Result} + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_bank_pb.Bank; + reader.readMessage(value,models_bank_pb.Bank.deserializeBinaryFromReader); + msg.setBank(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.bank.UpdateBankResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.bank.UpdateBankResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBank(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_bank_pb.Bank.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.bank.Bank bank = 1; + * @return {?proto.bet.beteran.bank.Bank} + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.Result.prototype.getBank = function() { + return /** @type{?proto.bet.beteran.bank.Bank} */ ( + jspb.Message.getWrapperField(this, models_bank_pb.Bank, 1)); +}; + + +/** + * @param {?proto.bet.beteran.bank.Bank|undefined} value + * @return {!proto.bet.beteran.c2se.bank.UpdateBankResponse.Result} returns this +*/ +proto.bet.beteran.c2se.bank.UpdateBankResponse.Result.prototype.setBank = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.UpdateBankResponse.Result} returns this + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.Result.prototype.clearBank = function() { + return this.setBank(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.Result.prototype.hasBank = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.bank.UpdateBankResponse} returns this +*/ +proto.bet.beteran.c2se.bank.UpdateBankResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.UpdateBankResponse} returns this + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.bank.UpdateBankResponse.Result} + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.bank.UpdateBankResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.bank.UpdateBankResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.bank.UpdateBankResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.bank.UpdateBankResponse} returns this +*/ +proto.bet.beteran.c2se.bank.UpdateBankResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.UpdateBankResponse} returns this + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.UpdateBankResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.bank.DeleteBankRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.bank.DeleteBankRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.bank.DeleteBankRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.DeleteBankRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.bank.DeleteBankRequest} + */ +proto.bet.beteran.c2se.bank.DeleteBankRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.bank.DeleteBankRequest; + return proto.bet.beteran.c2se.bank.DeleteBankRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.bank.DeleteBankRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.bank.DeleteBankRequest} + */ +proto.bet.beteran.c2se.bank.DeleteBankRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.bank.DeleteBankRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.bank.DeleteBankRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.bank.DeleteBankRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.DeleteBankRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.bank.DeleteBankRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.bank.DeleteBankRequest} returns this + */ +proto.bet.beteran.c2se.bank.DeleteBankRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.bank.DeleteBankResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.bank.DeleteBankResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.bank.DeleteBankResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.bank.DeleteBankResponse} + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.bank.DeleteBankResponse; + return proto.bet.beteran.c2se.bank.DeleteBankResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.bank.DeleteBankResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.bank.DeleteBankResponse} + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.bank.DeleteBankResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.bank.DeleteBankResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.bank.DeleteBankResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.bank.DeleteBankResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.bank.DeleteBankResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.bank.DeleteBankResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.bank.DeleteBankResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.bank.DeleteBankResponse.Result} + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.bank.DeleteBankResponse.Result; + return proto.bet.beteran.c2se.bank.DeleteBankResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.bank.DeleteBankResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.bank.DeleteBankResponse.Result} + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.bank.DeleteBankResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.bank.DeleteBankResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.bank.DeleteBankResponse} returns this +*/ +proto.bet.beteran.c2se.bank.DeleteBankResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.DeleteBankResponse} returns this + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.bank.DeleteBankResponse.Result} + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.bank.DeleteBankResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.bank.DeleteBankResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.bank.DeleteBankResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.bank.DeleteBankResponse} returns this +*/ +proto.bet.beteran.c2se.bank.DeleteBankResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.bank.DeleteBankResponse} returns this + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.bank.DeleteBankResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +goog.object.extend(exports, proto.bet.beteran.c2se.bank); diff --git a/src/app/modules/proto/c2se/core/network_pb.d.ts b/src/app/modules/proto/c2se/core/network_pb.d.ts new file mode 100644 index 0000000..03edd1f --- /dev/null +++ b/src/app/modules/proto/c2se/core/network_pb.d.ts @@ -0,0 +1,6 @@ +// package: bet.beteran.c2se.core.network +// file: c2se/core/network.proto + +import * as jspb from 'google-protobuf'; + +export const HEADER_CLIENT: string; diff --git a/src/app/modules/proto/c2se/core/network_pb.js b/src/app/modules/proto/c2se/core/network_pb.js new file mode 100644 index 0000000..ceacb8e --- /dev/null +++ b/src/app/modules/proto/c2se/core/network_pb.js @@ -0,0 +1,27 @@ +// source: c2se/core/network.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +goog.exportSymbol("proto.bet.beteran.c2se.core.network", null, global); + +proto.bet.beteran.c2se.core.network = {}; + +proto.bet.beteran.c2se.core.network.HEADER_CLIENT = + "bet.beteran.c2se.core.network.Client"; + +goog.object.extend(exports, proto.bet.beteran.c2se.core.network); diff --git a/src/app/modules/proto/c2se/frontend/bank_pb.d.ts b/src/app/modules/proto/c2se/frontend/bank_pb.d.ts new file mode 100644 index 0000000..a626f7d --- /dev/null +++ b/src/app/modules/proto/c2se/frontend/bank_pb.d.ts @@ -0,0 +1,7 @@ +// package: bet.beteran.c2se.frontend.bank +// file: c2se/frontend/bank.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_LIST_BANKS: string; +export const SUBJECT_GET_BANK: string; diff --git a/src/app/modules/proto/c2se/frontend/bank_pb.js b/src/app/modules/proto/c2se/frontend/bank_pb.js new file mode 100644 index 0000000..59f4fda --- /dev/null +++ b/src/app/modules/proto/c2se/frontend/bank_pb.js @@ -0,0 +1,29 @@ +// source: c2se/frontend/bank.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +goog.exportSymbol("proto.bet.beteran.c2se.frontend.bank", null, global); + +proto.bet.beteran.c2se.frontend.bank = {}; + +proto.bet.beteran.c2se.frontend.bank.SUBJECT_LIST_BANKS = + "bet.beteran.c2se.frontend.bank.ListBanks"; +proto.bet.beteran.c2se.frontend.bank.SUBJECT_GET_BANK = + "bet.beteran.c2se.frontend.bank.GetBank"; + +goog.object.extend(exports, proto.bet.beteran.c2se.frontend.bank); diff --git a/src/app/modules/proto/c2se/frontend/identity_pb.d.ts b/src/app/modules/proto/c2se/frontend/identity_pb.d.ts new file mode 100644 index 0000000..230b25c --- /dev/null +++ b/src/app/modules/proto/c2se/frontend/identity_pb.d.ts @@ -0,0 +1,9 @@ +// package: bet.beteran.c2se.frontend.identity +// file: c2se/frontend/identity.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_CHECK_USERNAME_FOR_DUPLICATION: string; +export const SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION: string; +export const SUBJECT_CAPTCHA: string; +export const SUBJECT_SIGNIN: string; diff --git a/src/app/modules/proto/c2se/frontend/identity_pb.js b/src/app/modules/proto/c2se/frontend/identity_pb.js new file mode 100644 index 0000000..f5a7ca8 --- /dev/null +++ b/src/app/modules/proto/c2se/frontend/identity_pb.js @@ -0,0 +1,33 @@ +// source: c2se/frontend/identity.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +goog.exportSymbol("proto.bet.beteran.c2se.frontend.identity", null, global); + +proto.bet.beteran.c2se.frontend.identity = {}; + +proto.bet.beteran.c2se.frontend.identity.SUBJECT_CHECK_USERNAME_FOR_DUPLICATION = + "bet.beteran.c2se.frontend.identity.CheckUsernameForDuplication"; +proto.bet.beteran.c2se.frontend.identity.SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION = + "bet.beteran.c2se.frontend.identity.CheckNicknameForDuplication"; +proto.bet.beteran.c2se.frontend.identity.SUBJECT_CAPTCHA = + "bet.beteran.c2se.frontend.identity.Captcha"; +proto.bet.beteran.c2se.frontend.identity.SUBJECT_SIGNIN = + "bet.beteran.c2se.frontend.identity.Signin"; + +goog.object.extend(exports, proto.bet.beteran.c2se.frontend.identity); diff --git a/src/app/modules/proto/c2se/identity_pb.d.ts b/src/app/modules/proto/c2se/identity_pb.d.ts new file mode 100644 index 0000000..1c7dd31 --- /dev/null +++ b/src/app/modules/proto/c2se/identity_pb.d.ts @@ -0,0 +1,290 @@ +// package: bet.beteran.c2se.identity +// file: c2se/identity.proto + +import * as jspb from "google-protobuf"; +import * as protobuf_rpc_pb from "../protobuf/rpc_pb"; + +export class CheckUsernameForDuplicationRequest extends jspb.Message { + getUsername(): string; + setUsername(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CheckUsernameForDuplicationRequest.AsObject; + static toObject(includeInstance: boolean, msg: CheckUsernameForDuplicationRequest): CheckUsernameForDuplicationRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CheckUsernameForDuplicationRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CheckUsernameForDuplicationRequest; + static deserializeBinaryFromReader(message: CheckUsernameForDuplicationRequest, reader: jspb.BinaryReader): CheckUsernameForDuplicationRequest; +} + +export namespace CheckUsernameForDuplicationRequest { + export type AsObject = { + username: string, + } +} + +export class CheckUsernameForDuplicationResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): CheckUsernameForDuplicationResponse.Result | undefined; + setResult(value?: CheckUsernameForDuplicationResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CheckUsernameForDuplicationResponse.AsObject; + static toObject(includeInstance: boolean, msg: CheckUsernameForDuplicationResponse): CheckUsernameForDuplicationResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CheckUsernameForDuplicationResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CheckUsernameForDuplicationResponse; + static deserializeBinaryFromReader(message: CheckUsernameForDuplicationResponse, reader: jspb.BinaryReader): CheckUsernameForDuplicationResponse; +} + +export namespace CheckUsernameForDuplicationResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: CheckUsernameForDuplicationResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + getDuplicated(): boolean; + setDuplicated(value: boolean): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + duplicated: boolean, + } + } +} + +export class CheckNicknameForDuplicationRequest extends jspb.Message { + getNickname(): string; + setNickname(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CheckNicknameForDuplicationRequest.AsObject; + static toObject(includeInstance: boolean, msg: CheckNicknameForDuplicationRequest): CheckNicknameForDuplicationRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CheckNicknameForDuplicationRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CheckNicknameForDuplicationRequest; + static deserializeBinaryFromReader(message: CheckNicknameForDuplicationRequest, reader: jspb.BinaryReader): CheckNicknameForDuplicationRequest; +} + +export namespace CheckNicknameForDuplicationRequest { + export type AsObject = { + nickname: string, + } +} + +export class CheckNicknameForDuplicationResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): CheckNicknameForDuplicationResponse.Result | undefined; + setResult(value?: CheckNicknameForDuplicationResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CheckNicknameForDuplicationResponse.AsObject; + static toObject(includeInstance: boolean, msg: CheckNicknameForDuplicationResponse): CheckNicknameForDuplicationResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CheckNicknameForDuplicationResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CheckNicknameForDuplicationResponse; + static deserializeBinaryFromReader(message: CheckNicknameForDuplicationResponse, reader: jspb.BinaryReader): CheckNicknameForDuplicationResponse; +} + +export namespace CheckNicknameForDuplicationResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: CheckNicknameForDuplicationResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + getDuplicated(): boolean; + setDuplicated(value: boolean): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + duplicated: boolean, + } + } +} + +export class CaptchaRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CaptchaRequest.AsObject; + static toObject(includeInstance: boolean, msg: CaptchaRequest): CaptchaRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CaptchaRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CaptchaRequest; + static deserializeBinaryFromReader(message: CaptchaRequest, reader: jspb.BinaryReader): CaptchaRequest; +} + +export namespace CaptchaRequest { + export type AsObject = { + } +} + +export class CaptchaResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): CaptchaResponse.Result | undefined; + setResult(value?: CaptchaResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CaptchaResponse.AsObject; + static toObject(includeInstance: boolean, msg: CaptchaResponse): CaptchaResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CaptchaResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CaptchaResponse; + static deserializeBinaryFromReader(message: CaptchaResponse, reader: jspb.BinaryReader): CaptchaResponse; +} + +export namespace CaptchaResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: CaptchaResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + getSecurityCodeHash(): string; + setSecurityCodeHash(value: string): void; + + getImage(): string; + setImage(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + securityCodeHash: string, + image: string, + } + } +} + +export class SigninRequest extends jspb.Message { + getSecurityCodeHash(): string; + setSecurityCodeHash(value: string): void; + + getSecurityCode(): string; + setSecurityCode(value: string): void; + + getUsername(): string; + setUsername(value: string): void; + + getPassword(): string; + setPassword(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SigninRequest.AsObject; + static toObject(includeInstance: boolean, msg: SigninRequest): SigninRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SigninRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SigninRequest; + static deserializeBinaryFromReader(message: SigninRequest, reader: jspb.BinaryReader): SigninRequest; +} + +export namespace SigninRequest { + export type AsObject = { + securityCodeHash: string, + securityCode: string, + username: string, + password: string, + } +} + +export class SigninResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): SigninResponse.Result | undefined; + setResult(value?: SigninResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SigninResponse.AsObject; + static toObject(includeInstance: boolean, msg: SigninResponse): SigninResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SigninResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SigninResponse; + static deserializeBinaryFromReader(message: SigninResponse, reader: jspb.BinaryReader): SigninResponse; +} + +export namespace SigninResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: SigninResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + getAccessToken(): string; + setAccessToken(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + accessToken: string, + } + } +} + diff --git a/src/app/modules/proto/c2se/identity_pb.js b/src/app/modules/proto/c2se/identity_pb.js new file mode 100644 index 0000000..3844b9b --- /dev/null +++ b/src/app/modules/proto/c2se/identity_pb.js @@ -0,0 +1,2223 @@ +// source: c2se/identity.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +var protobuf_rpc_pb = require('../protobuf/rpc_pb.js'); +goog.object.extend(proto, protobuf_rpc_pb); +goog.exportSymbol('proto.bet.beteran.c2se.identity.CaptchaRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.identity.CaptchaResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.identity.CaptchaResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.identity.SigninRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.identity.SigninResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.identity.SigninResponse.Result', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.displayName = 'proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.displayName = 'proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.displayName = 'proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.displayName = 'proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.displayName = 'proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.displayName = 'proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.identity.CaptchaRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.identity.CaptchaRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.identity.CaptchaRequest.displayName = 'proto.bet.beteran.c2se.identity.CaptchaRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.identity.CaptchaResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.identity.CaptchaResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.identity.CaptchaResponse.displayName = 'proto.bet.beteran.c2se.identity.CaptchaResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.identity.CaptchaResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.identity.CaptchaResponse.Result.displayName = 'proto.bet.beteran.c2se.identity.CaptchaResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.identity.SigninRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.identity.SigninRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.identity.SigninRequest.displayName = 'proto.bet.beteran.c2se.identity.SigninRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.identity.SigninResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.identity.SigninResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.identity.SigninResponse.displayName = 'proto.bet.beteran.c2se.identity.SigninResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.identity.SigninResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.identity.SigninResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.identity.SigninResponse.Result.displayName = 'proto.bet.beteran.c2se.identity.SigninResponse.Result'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.toObject = function(includeInstance, msg) { + var f, obj = { + username: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest} + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest; + return proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest} + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setUsername(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUsername(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string username = 1; + * @return {string} + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.prototype.getUsername = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest} returns this + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationRequest.prototype.setUsername = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse} + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse; + return proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse} + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + duplicated: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result} + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result; + return proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result} + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDuplicated(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDuplicated(); + if (f) { + writer.writeBool( + 1, + f + ); + } +}; + + +/** + * optional bool duplicated = 1; + * @return {boolean} + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.prototype.getDuplicated = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result} returns this + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result.prototype.setDuplicated = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse} returns this +*/ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse} returns this + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result} + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse} returns this +*/ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse} returns this + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.identity.CheckUsernameForDuplicationResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.toObject = function(includeInstance, msg) { + var f, obj = { + nickname: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest} + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest; + return proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest} + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setNickname(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNickname(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string nickname = 1; + * @return {string} + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.prototype.getNickname = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest} returns this + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationRequest.prototype.setNickname = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse} + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse; + return proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse} + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + duplicated: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result} + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result; + return proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result} + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDuplicated(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDuplicated(); + if (f) { + writer.writeBool( + 1, + f + ); + } +}; + + +/** + * optional bool duplicated = 1; + * @return {boolean} + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.prototype.getDuplicated = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result} returns this + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result.prototype.setDuplicated = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse} returns this +*/ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse} returns this + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result} + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse} returns this +*/ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse} returns this + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.identity.CheckNicknameForDuplicationResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.identity.CaptchaRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.identity.CaptchaRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.identity.CaptchaRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.CaptchaRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.identity.CaptchaRequest} + */ +proto.bet.beteran.c2se.identity.CaptchaRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.identity.CaptchaRequest; + return proto.bet.beteran.c2se.identity.CaptchaRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.identity.CaptchaRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.identity.CaptchaRequest} + */ +proto.bet.beteran.c2se.identity.CaptchaRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.identity.CaptchaRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.identity.CaptchaRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.identity.CaptchaRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.CaptchaRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.identity.CaptchaResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.identity.CaptchaResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.identity.CaptchaResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.identity.CaptchaResponse} + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.identity.CaptchaResponse; + return proto.bet.beteran.c2se.identity.CaptchaResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.identity.CaptchaResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.identity.CaptchaResponse} + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.identity.CaptchaResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.identity.CaptchaResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.identity.CaptchaResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.identity.CaptchaResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.identity.CaptchaResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.identity.CaptchaResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.identity.CaptchaResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + securityCodeHash: jspb.Message.getFieldWithDefault(msg, 1, ""), + image: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.identity.CaptchaResponse.Result} + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.identity.CaptchaResponse.Result; + return proto.bet.beteran.c2se.identity.CaptchaResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.identity.CaptchaResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.identity.CaptchaResponse.Result} + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSecurityCodeHash(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setImage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.identity.CaptchaResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.identity.CaptchaResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSecurityCodeHash(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getImage(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string security_code_hash = 1; + * @return {string} + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.Result.prototype.getSecurityCodeHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.identity.CaptchaResponse.Result} returns this + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.Result.prototype.setSecurityCodeHash = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string image = 2; + * @return {string} + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.Result.prototype.getImage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.identity.CaptchaResponse.Result} returns this + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.Result.prototype.setImage = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.identity.CaptchaResponse} returns this +*/ +proto.bet.beteran.c2se.identity.CaptchaResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.identity.CaptchaResponse} returns this + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.identity.CaptchaResponse.Result} + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.identity.CaptchaResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.identity.CaptchaResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.identity.CaptchaResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.identity.CaptchaResponse} returns this +*/ +proto.bet.beteran.c2se.identity.CaptchaResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.identity.CaptchaResponse} returns this + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.identity.CaptchaResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.identity.SigninRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.identity.SigninRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.identity.SigninRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.SigninRequest.toObject = function(includeInstance, msg) { + var f, obj = { + securityCodeHash: jspb.Message.getFieldWithDefault(msg, 1, ""), + securityCode: jspb.Message.getFieldWithDefault(msg, 2, ""), + username: jspb.Message.getFieldWithDefault(msg, 3, ""), + password: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.identity.SigninRequest} + */ +proto.bet.beteran.c2se.identity.SigninRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.identity.SigninRequest; + return proto.bet.beteran.c2se.identity.SigninRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.identity.SigninRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.identity.SigninRequest} + */ +proto.bet.beteran.c2se.identity.SigninRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSecurityCodeHash(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setSecurityCode(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setUsername(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setPassword(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.identity.SigninRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.identity.SigninRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.identity.SigninRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.SigninRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSecurityCodeHash(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getSecurityCode(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getUsername(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getPassword(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional string security_code_hash = 1; + * @return {string} + */ +proto.bet.beteran.c2se.identity.SigninRequest.prototype.getSecurityCodeHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.identity.SigninRequest} returns this + */ +proto.bet.beteran.c2se.identity.SigninRequest.prototype.setSecurityCodeHash = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string security_code = 2; + * @return {string} + */ +proto.bet.beteran.c2se.identity.SigninRequest.prototype.getSecurityCode = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.identity.SigninRequest} returns this + */ +proto.bet.beteran.c2se.identity.SigninRequest.prototype.setSecurityCode = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string username = 3; + * @return {string} + */ +proto.bet.beteran.c2se.identity.SigninRequest.prototype.getUsername = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.identity.SigninRequest} returns this + */ +proto.bet.beteran.c2se.identity.SigninRequest.prototype.setUsername = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string password = 4; + * @return {string} + */ +proto.bet.beteran.c2se.identity.SigninRequest.prototype.getPassword = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.identity.SigninRequest} returns this + */ +proto.bet.beteran.c2se.identity.SigninRequest.prototype.setPassword = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.identity.SigninResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.identity.SigninResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.identity.SigninResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.SigninResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.identity.SigninResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.identity.SigninResponse} + */ +proto.bet.beteran.c2se.identity.SigninResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.identity.SigninResponse; + return proto.bet.beteran.c2se.identity.SigninResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.identity.SigninResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.identity.SigninResponse} + */ +proto.bet.beteran.c2se.identity.SigninResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.identity.SigninResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.identity.SigninResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.identity.SigninResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.identity.SigninResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.identity.SigninResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.SigninResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.identity.SigninResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.identity.SigninResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.identity.SigninResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.identity.SigninResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.SigninResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + accessToken: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.identity.SigninResponse.Result} + */ +proto.bet.beteran.c2se.identity.SigninResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.identity.SigninResponse.Result; + return proto.bet.beteran.c2se.identity.SigninResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.identity.SigninResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.identity.SigninResponse.Result} + */ +proto.bet.beteran.c2se.identity.SigninResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setAccessToken(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.identity.SigninResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.identity.SigninResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.identity.SigninResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.identity.SigninResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAccessToken(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string access_token = 1; + * @return {string} + */ +proto.bet.beteran.c2se.identity.SigninResponse.Result.prototype.getAccessToken = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.identity.SigninResponse.Result} returns this + */ +proto.bet.beteran.c2se.identity.SigninResponse.Result.prototype.setAccessToken = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.identity.SigninResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.identity.SigninResponse} returns this +*/ +proto.bet.beteran.c2se.identity.SigninResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.identity.SigninResponse} returns this + */ +proto.bet.beteran.c2se.identity.SigninResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.identity.SigninResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.identity.SigninResponse.Result} + */ +proto.bet.beteran.c2se.identity.SigninResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.identity.SigninResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.identity.SigninResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.identity.SigninResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.identity.SigninResponse} returns this +*/ +proto.bet.beteran.c2se.identity.SigninResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.identity.SigninResponse} returns this + */ +proto.bet.beteran.c2se.identity.SigninResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.identity.SigninResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +goog.object.extend(exports, proto.bet.beteran.c2se.identity); diff --git a/src/app/modules/proto/c2se/member_bank_account_pb.d.ts b/src/app/modules/proto/c2se/member_bank_account_pb.d.ts new file mode 100644 index 0000000..9089256 --- /dev/null +++ b/src/app/modules/proto/c2se/member_bank_account_pb.d.ts @@ -0,0 +1,632 @@ +// package: bet.beteran.c2se.member_bank_account +// file: c2se/member_bank_account.proto + +import * as jspb from 'google-protobuf'; +import * as protobuf_rpc_pb from '../protobuf/rpc_pb'; +import * as protobuf_pagination_pb from '../protobuf/pagination_pb'; +import * as models_member_bank_account_pb from '../models/member_bank_account_pb'; + +export class CreateMemberBankAccountRequest extends jspb.Message { + getMemberId(): string; + setMemberId(value: string): void; + + getBankId(): string; + setBankId(value: string): void; + + getName(): string; + setName(value: string): void; + + getAccountNumber(): string; + setAccountNumber(value: string): void; + + getExchangePassword(): string; + setExchangePassword(value: string): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberBankAccountRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateMemberBankAccountRequest + ): CreateMemberBankAccountRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateMemberBankAccountRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberBankAccountRequest; + static deserializeBinaryFromReader( + message: CreateMemberBankAccountRequest, + reader: jspb.BinaryReader + ): CreateMemberBankAccountRequest; +} + +export namespace CreateMemberBankAccountRequest { + export type AsObject = { + memberId: string; + bankId: string; + name: string; + accountNumber: string; + exchangePassword: string; + memo: string; + }; +} + +export class CreateMemberBankAccountResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): CreateMemberBankAccountResponse.Result | undefined; + setResult(value?: CreateMemberBankAccountResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberBankAccountResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateMemberBankAccountResponse + ): CreateMemberBankAccountResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateMemberBankAccountResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberBankAccountResponse; + static deserializeBinaryFromReader( + message: CreateMemberBankAccountResponse, + reader: jspb.BinaryReader + ): CreateMemberBankAccountResponse; +} + +export namespace CreateMemberBankAccountResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: CreateMemberBankAccountResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMemberBankAccount(): boolean; + clearMemberBankAccount(): void; + getMemberBankAccount(): + | models_member_bank_account_pb.MemberBankAccount + | undefined; + setMemberBankAccount( + value?: models_member_bank_account_pb.MemberBankAccount + ): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Result, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader( + message: Result, + reader: jspb.BinaryReader + ): Result; + } + + export namespace Result { + export type AsObject = { + memberBankAccount?: models_member_bank_account_pb.MemberBankAccount.AsObject; + }; + } +} + +export class ListMemberBankAccountsRequest extends jspb.Message { + hasPagination(): boolean; + clearPagination(): void; + getPagination(): protobuf_pagination_pb.Pagination | undefined; + setPagination(value?: protobuf_pagination_pb.Pagination): void; + + clearSortsList(): void; + getSortsList(): Array; + setSortsList(value: Array): void; + addSorts( + value?: protobuf_pagination_pb.Sort, + index?: number + ): protobuf_pagination_pb.Sort; + + hasSearch(): boolean; + clearSearch(): void; + getSearch(): ListMemberBankAccountsRequest.Search | undefined; + setSearch(value?: ListMemberBankAccountsRequest.Search): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMemberBankAccountsRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: ListMemberBankAccountsRequest + ): ListMemberBankAccountsRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListMemberBankAccountsRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListMemberBankAccountsRequest; + static deserializeBinaryFromReader( + message: ListMemberBankAccountsRequest, + reader: jspb.BinaryReader + ): ListMemberBankAccountsRequest; +} + +export namespace ListMemberBankAccountsRequest { + export type AsObject = { + pagination?: protobuf_pagination_pb.Pagination.AsObject; + sortsList: Array; + search?: ListMemberBankAccountsRequest.Search.AsObject; + }; + + export class Search extends jspb.Message { + hasMemberId(): boolean; + clearMemberId(): void; + getMemberId(): string; + setMemberId(value: string): void; + + hasBankId(): boolean; + clearBankId(): void; + getBankId(): string; + setBankId(value: string): void; + + hasNameLike(): boolean; + clearNameLike(): void; + getNameLike(): string; + setNameLike(value: string): void; + + hasAccountNumberLike(): boolean; + clearAccountNumberLike(): void; + getAccountNumberLike(): string; + setAccountNumberLike(value: string): void; + + hasMemoLike(): boolean; + clearMemoLike(): void; + getMemoLike(): string; + setMemoLike(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Search.AsObject; + static toObject(includeInstance: boolean, msg: Search): Search.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Search, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Search; + static deserializeBinaryFromReader( + message: Search, + reader: jspb.BinaryReader + ): Search; + } + + export namespace Search { + export type AsObject = { + memberId: string; + bankId: string; + nameLike: string; + accountNumberLike: string; + memoLike: string; + }; + } +} + +export class ListMemberBankAccountsResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): ListMemberBankAccountsResponse.Result | undefined; + setResult(value?: ListMemberBankAccountsResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMemberBankAccountsResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: ListMemberBankAccountsResponse + ): ListMemberBankAccountsResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListMemberBankAccountsResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListMemberBankAccountsResponse; + static deserializeBinaryFromReader( + message: ListMemberBankAccountsResponse, + reader: jspb.BinaryReader + ): ListMemberBankAccountsResponse; +} + +export namespace ListMemberBankAccountsResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: ListMemberBankAccountsResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + clearMemberBankAccountsList(): void; + getMemberBankAccountsList(): Array; + setMemberBankAccountsList( + value: Array + ): void; + addMemberBankAccounts( + value?: models_member_bank_account_pb.MemberBankAccount, + index?: number + ): models_member_bank_account_pb.MemberBankAccount; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Result, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader( + message: Result, + reader: jspb.BinaryReader + ): Result; + } + + export namespace Result { + export type AsObject = { + memberBankAccountsList: Array; + }; + } +} + +export class GetMemberBankAccountRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberBankAccountRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: GetMemberBankAccountRequest + ): GetMemberBankAccountRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: GetMemberBankAccountRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): GetMemberBankAccountRequest; + static deserializeBinaryFromReader( + message: GetMemberBankAccountRequest, + reader: jspb.BinaryReader + ): GetMemberBankAccountRequest; +} + +export namespace GetMemberBankAccountRequest { + export type AsObject = { + id: string; + }; +} + +export class GetMemberBankAccountResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): GetMemberBankAccountResponse.Result | undefined; + setResult(value?: GetMemberBankAccountResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberBankAccountResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: GetMemberBankAccountResponse + ): GetMemberBankAccountResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: GetMemberBankAccountResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): GetMemberBankAccountResponse; + static deserializeBinaryFromReader( + message: GetMemberBankAccountResponse, + reader: jspb.BinaryReader + ): GetMemberBankAccountResponse; +} + +export namespace GetMemberBankAccountResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: GetMemberBankAccountResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMemberBankAccount(): boolean; + clearMemberBankAccount(): void; + getMemberBankAccount(): + | models_member_bank_account_pb.MemberBankAccount + | undefined; + setMemberBankAccount( + value?: models_member_bank_account_pb.MemberBankAccount + ): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Result, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader( + message: Result, + reader: jspb.BinaryReader + ): Result; + } + + export namespace Result { + export type AsObject = { + memberBankAccount?: models_member_bank_account_pb.MemberBankAccount.AsObject; + }; + } +} + +export class UpdateMemberBankAccountRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getBankId(): string; + setBankId(value: string): void; + + getName(): string; + setName(value: string): void; + + getAccountNumber(): string; + setAccountNumber(value: string): void; + + getExchangePassword(): string; + setExchangePassword(value: string): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberBankAccountRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateMemberBankAccountRequest + ): UpdateMemberBankAccountRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateMemberBankAccountRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberBankAccountRequest; + static deserializeBinaryFromReader( + message: UpdateMemberBankAccountRequest, + reader: jspb.BinaryReader + ): UpdateMemberBankAccountRequest; +} + +export namespace UpdateMemberBankAccountRequest { + export type AsObject = { + id: string; + bankId: string; + name: string; + accountNumber: string; + exchangePassword: string; + memo: string; + }; +} + +export class UpdateMemberBankAccountResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): UpdateMemberBankAccountResponse.Result | undefined; + setResult(value?: UpdateMemberBankAccountResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberBankAccountResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateMemberBankAccountResponse + ): UpdateMemberBankAccountResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateMemberBankAccountResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberBankAccountResponse; + static deserializeBinaryFromReader( + message: UpdateMemberBankAccountResponse, + reader: jspb.BinaryReader + ): UpdateMemberBankAccountResponse; +} + +export namespace UpdateMemberBankAccountResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: UpdateMemberBankAccountResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMemberBankAccount(): boolean; + clearMemberBankAccount(): void; + getMemberBankAccount(): + | models_member_bank_account_pb.MemberBankAccount + | undefined; + setMemberBankAccount( + value?: models_member_bank_account_pb.MemberBankAccount + ): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Result, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader( + message: Result, + reader: jspb.BinaryReader + ): Result; + } + + export namespace Result { + export type AsObject = { + memberBankAccount?: models_member_bank_account_pb.MemberBankAccount.AsObject; + }; + } +} + +export class DeleteMemberBankAccountRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberBankAccountRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteMemberBankAccountRequest + ): DeleteMemberBankAccountRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteMemberBankAccountRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberBankAccountRequest; + static deserializeBinaryFromReader( + message: DeleteMemberBankAccountRequest, + reader: jspb.BinaryReader + ): DeleteMemberBankAccountRequest; +} + +export namespace DeleteMemberBankAccountRequest { + export type AsObject = { + id: string; + }; +} + +export class DeleteMemberBankAccountResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): DeleteMemberBankAccountResponse.Result | undefined; + setResult(value?: DeleteMemberBankAccountResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberBankAccountResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteMemberBankAccountResponse + ): DeleteMemberBankAccountResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteMemberBankAccountResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberBankAccountResponse; + static deserializeBinaryFromReader( + message: DeleteMemberBankAccountResponse, + reader: jspb.BinaryReader + ): DeleteMemberBankAccountResponse; +} + +export namespace DeleteMemberBankAccountResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: DeleteMemberBankAccountResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Result, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader( + message: Result, + reader: jspb.BinaryReader + ): Result; + } + + export namespace Result { + export type AsObject = {}; + } +} diff --git a/src/app/modules/proto/c2se/member_bank_account_pb.js b/src/app/modules/proto/c2se/member_bank_account_pb.js new file mode 100644 index 0000000..7f0436d --- /dev/null +++ b/src/app/modules/proto/c2se/member_bank_account_pb.js @@ -0,0 +1,4030 @@ +// source: c2se/member_bank_account.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +var protobuf_rpc_pb = require("../protobuf/rpc_pb.js"); +goog.object.extend(proto, protobuf_rpc_pb); +var protobuf_pagination_pb = require("../protobuf/pagination_pb.js"); +goog.object.extend(proto, protobuf_pagination_pb); +var models_member_bank_account_pb = require("../models/member_bank_account_pb.js"); +goog.object.extend(proto, models_member_bank_account_pb); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result", + null, + global +); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.displayName = + "proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.displayName = + "proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse + .Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result.displayName = + "proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest = + function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest + .repeatedFields_, + null + ); + }; +goog.inherits( + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.displayName = + "proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest + .Search, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.displayName = + "proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.displayName = + "proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result = + function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse + .Result.repeatedFields_, + null + ); + }; +goog.inherits( + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse + .Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result.displayName = + "proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest.displayName = + "proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.displayName = + "proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse + .Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result.displayName = + "proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.displayName = + "proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.displayName = + "proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse + .Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result.displayName = + "proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest.displayName = + "proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.displayName = + "proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse + .Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result.displayName = + "proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result"; +} + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberId: jspb.Message.getFieldWithDefault(msg, 1, ""), + bankId: jspb.Message.getFieldWithDefault(msg, 2, ""), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + accountNumber: jspb.Message.getFieldWithDefault(msg, 4, ""), + exchangePassword: jspb.Message.getFieldWithDefault(msg, 5, ""), + memo: jspb.Message.getFieldWithDefault(msg, 6, ""), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest(); + return proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setBankId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAccountNumber(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setExchangePassword(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getBankId(); + if (f.length > 0) { + writer.writeString(2, f); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString(3, f); + } + f = message.getAccountNumber(); + if (f.length > 0) { + writer.writeString(4, f); + } + f = message.getExchangePassword(); + if (f.length > 0) { + writer.writeString(5, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeString(6, f); + } + }; + +/** + * optional string member_id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.prototype.getMemberId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.prototype.setMemberId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional string bank_id = 2; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.prototype.getBankId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.prototype.setBankId = + function (value) { + return jspb.Message.setProto3StringField(this, 2, value); + }; + +/** + * optional string name = 3; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.prototype.getName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.prototype.setName = + function (value) { + return jspb.Message.setProto3StringField(this, 3, value); + }; + +/** + * optional string account_number = 4; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.prototype.getAccountNumber = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.prototype.setAccountNumber = + function (value) { + return jspb.Message.setProto3StringField(this, 4, value); + }; + +/** + * optional string exchange_password = 5; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.prototype.getExchangePassword = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.prototype.setExchangePassword = + function (value) { + return jspb.Message.setProto3StringField(this, 5, value); + }; + +/** + * optional string memo = 6; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.prototype.getMemo = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 6, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.prototype.setMemo = + function (value) { + return jspb.Message.setField(this, 6, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.prototype.clearMemo = + function () { + return jspb.Message.setField(this, 6, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.prototype.hasMemo = + function () { + return jspb.Message.getField(this, 6) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.toObject = + function (includeInstance, msg) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse(); + return proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_bank_account + .CreateMemberBankAccountResponse.Result + .deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_bank_account + .CreateMemberBankAccountResponse.Result.serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberBankAccount: + (f = msg.getMemberBankAccount()) && + models_member_bank_account_pb.MemberBankAccount.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result(); + return proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_bank_account_pb.MemberBankAccount(); + reader.readMessage( + value, + models_member_bank_account_pb.MemberBankAccount + .deserializeBinaryFromReader + ); + msg.setMemberBankAccount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberBankAccount(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_bank_account_pb.MemberBankAccount.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member_bank_account.MemberBankAccount member_bank_account = 1; + * @return {?proto.bet.beteran.member_bank_account.MemberBankAccount} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result.prototype.getMemberBankAccount = + function () { + return /** @type{?proto.bet.beteran.member_bank_account.MemberBankAccount} */ ( + jspb.Message.getWrapperField( + this, + models_member_bank_account_pb.MemberBankAccount, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member_bank_account.MemberBankAccount|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result.prototype.setMemberBankAccount = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result.prototype.clearMemberBankAccount = + function () { + return this.setMemberBankAccount(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result.prototype.hasMemberBankAccount = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_bank_account + .CreateMemberBankAccountResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.repeatedFields_ = + [2]; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + pagination: + (f = msg.getPagination()) && + protobuf_pagination_pb.Pagination.toObject(includeInstance, f), + sortsList: jspb.Message.toObjectList( + msg.getSortsList(), + protobuf_pagination_pb.Sort.toObject, + includeInstance + ), + search: + (f = msg.getSearch()) && + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest(); + return proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_pagination_pb.Pagination(); + reader.readMessage( + value, + protobuf_pagination_pb.Pagination.deserializeBinaryFromReader + ); + msg.setPagination(value); + break; + case 2: + var value = new protobuf_pagination_pb.Sort(); + reader.readMessage( + value, + protobuf_pagination_pb.Sort.deserializeBinaryFromReader + ); + msg.addSorts(value); + break; + case 3: + var value = + new proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_bank_account + .ListMemberBankAccountsRequest.Search.deserializeBinaryFromReader + ); + msg.setSearch(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_pagination_pb.Pagination.serializeBinaryToWriter + ); + } + f = message.getSortsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + protobuf_pagination_pb.Sort.serializeBinaryToWriter + ); + } + f = message.getSearch(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest + .Search.serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberId: jspb.Message.getFieldWithDefault(msg, 1, ""), + bankId: jspb.Message.getFieldWithDefault(msg, 2, ""), + nameLike: jspb.Message.getFieldWithDefault(msg, 3, ""), + accountNumberLike: jspb.Message.getFieldWithDefault(msg, 4, ""), + memoLike: jspb.Message.getFieldWithDefault(msg, 5, ""), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search(); + return proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setBankId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setNameLike(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAccountNumberLike(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setMemoLike(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString(1, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString(2, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString(3, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString(4, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeString(5, f); + } + }; + +/** + * optional string member_id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.getMemberId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.setMemberId = + function (value) { + return jspb.Message.setField(this, 1, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.clearMemberId = + function () { + return jspb.Message.setField(this, 1, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.hasMemberId = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional string bank_id = 2; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.getBankId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.setBankId = + function (value) { + return jspb.Message.setField(this, 2, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.clearBankId = + function () { + return jspb.Message.setField(this, 2, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.hasBankId = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +/** + * optional string name_like = 3; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.getNameLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.setNameLike = + function (value) { + return jspb.Message.setField(this, 3, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.clearNameLike = + function () { + return jspb.Message.setField(this, 3, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.hasNameLike = + function () { + return jspb.Message.getField(this, 3) != null; + }; + +/** + * optional string account_number_like = 4; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.getAccountNumberLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.setAccountNumberLike = + function (value) { + return jspb.Message.setField(this, 4, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.clearAccountNumberLike = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.hasAccountNumberLike = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional string memo_like = 5; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.getMemoLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.setMemoLike = + function (value) { + return jspb.Message.setField(this, 5, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.clearMemoLike = + function () { + return jspb.Message.setField(this, 5, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search.prototype.hasMemoLike = + function () { + return jspb.Message.getField(this, 5) != null; + }; + +/** + * optional bet.protobuf.pagination.Pagination pagination = 1; + * @return {?proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.prototype.getPagination = + function () { + return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( + jspb.Message.getWrapperField(this, protobuf_pagination_pb.Pagination, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.prototype.setPagination = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.prototype.clearPagination = + function () { + return this.setPagination(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.prototype.hasPagination = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * repeated bet.protobuf.pagination.Sort sorts = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.prototype.getSortsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, protobuf_pagination_pb.Sort, 2) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.prototype.setSortsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); + }; + +/** + * @param {!proto.bet.protobuf.pagination.Sort=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Sort} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.prototype.addSorts = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 2, + opt_value, + proto.bet.protobuf.pagination.Sort, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.prototype.clearSortsList = + function () { + return this.setSortsList([]); + }; + +/** + * optional Search search = 3; + * @return {?proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.prototype.getSearch = + function () { + return /** @type{?proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest + .Search, + 3 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.Search|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.prototype.setSearch = + function (value) { + return jspb.Message.setWrapperField(this, 3, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.prototype.clearSearch = + function () { + return this.setSearch(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsRequest.prototype.hasSearch = + function () { + return jspb.Message.getField(this, 3) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.toObject = + function (includeInstance, msg) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse(); + return proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_bank_account + .ListMemberBankAccountsResponse.Result.deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_bank_account + .ListMemberBankAccountsResponse.Result.serializeBinaryToWriter + ); + } + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result.repeatedFields_ = + [1]; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberBankAccountsList: jspb.Message.toObjectList( + msg.getMemberBankAccountsList(), + models_member_bank_account_pb.MemberBankAccount.toObject, + includeInstance + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result(); + return proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_bank_account_pb.MemberBankAccount(); + reader.readMessage( + value, + models_member_bank_account_pb.MemberBankAccount + .deserializeBinaryFromReader + ); + msg.addMemberBankAccounts(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberBankAccountsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + models_member_bank_account_pb.MemberBankAccount.serializeBinaryToWriter + ); + } + }; + +/** + * repeated bet.beteran.member_bank_account.MemberBankAccount member_bank_accounts = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result.prototype.getMemberBankAccountsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + models_member_bank_account_pb.MemberBankAccount, + 1 + ) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result.prototype.setMemberBankAccountsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); + }; + +/** + * @param {!proto.bet.beteran.member_bank_account.MemberBankAccount=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccount} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result.prototype.addMemberBankAccounts = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 1, + opt_value, + proto.bet.beteran.member_bank_account.MemberBankAccount, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result.prototype.clearMemberBankAccountsList = + function () { + return this.setMemberBankAccountsList([]); + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_bank_account + .ListMemberBankAccountsResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.ListMemberBankAccountsResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest} + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest(); + return proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest} + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountRequest.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.toObject = + function (includeInstance, msg) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse} + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse(); + return proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse} + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_bank_account + .GetMemberBankAccountResponse.Result.deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse + .Result.serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberBankAccount: + (f = msg.getMemberBankAccount()) && + models_member_bank_account_pb.MemberBankAccount.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result(); + return proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_bank_account_pb.MemberBankAccount(); + reader.readMessage( + value, + models_member_bank_account_pb.MemberBankAccount + .deserializeBinaryFromReader + ); + msg.setMemberBankAccount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberBankAccount(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_bank_account_pb.MemberBankAccount.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member_bank_account.MemberBankAccount member_bank_account = 1; + * @return {?proto.bet.beteran.member_bank_account.MemberBankAccount} + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result.prototype.getMemberBankAccount = + function () { + return /** @type{?proto.bet.beteran.member_bank_account.MemberBankAccount} */ ( + jspb.Message.getWrapperField( + this, + models_member_bank_account_pb.MemberBankAccount, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member_bank_account.MemberBankAccount|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result.prototype.setMemberBankAccount = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result.prototype.clearMemberBankAccount = + function () { + return this.setMemberBankAccount(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result.prototype.hasMemberBankAccount = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.GetMemberBankAccountResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + bankId: jspb.Message.getFieldWithDefault(msg, 2, ""), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + accountNumber: jspb.Message.getFieldWithDefault(msg, 4, ""), + exchangePassword: jspb.Message.getFieldWithDefault(msg, 5, ""), + memo: jspb.Message.getFieldWithDefault(msg, 6, ""), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest(); + return proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setBankId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAccountNumber(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setExchangePassword(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getBankId(); + if (f.length > 0) { + writer.writeString(2, f); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString(3, f); + } + f = message.getAccountNumber(); + if (f.length > 0) { + writer.writeString(4, f); + } + f = message.getExchangePassword(); + if (f.length > 0) { + writer.writeString(5, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeString(6, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional string bank_id = 2; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.prototype.getBankId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.prototype.setBankId = + function (value) { + return jspb.Message.setProto3StringField(this, 2, value); + }; + +/** + * optional string name = 3; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.prototype.getName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.prototype.setName = + function (value) { + return jspb.Message.setProto3StringField(this, 3, value); + }; + +/** + * optional string account_number = 4; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.prototype.getAccountNumber = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.prototype.setAccountNumber = + function (value) { + return jspb.Message.setProto3StringField(this, 4, value); + }; + +/** + * optional string exchange_password = 5; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.prototype.getExchangePassword = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.prototype.setExchangePassword = + function (value) { + return jspb.Message.setProto3StringField(this, 5, value); + }; + +/** + * optional string memo = 6; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.prototype.getMemo = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 6, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.prototype.setMemo = + function (value) { + return jspb.Message.setField(this, 6, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.prototype.clearMemo = + function () { + return jspb.Message.setField(this, 6, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.prototype.hasMemo = + function () { + return jspb.Message.getField(this, 6) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.toObject = + function (includeInstance, msg) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse(); + return proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_bank_account + .UpdateMemberBankAccountResponse.Result + .deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_bank_account + .UpdateMemberBankAccountResponse.Result.serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberBankAccount: + (f = msg.getMemberBankAccount()) && + models_member_bank_account_pb.MemberBankAccount.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result(); + return proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_bank_account_pb.MemberBankAccount(); + reader.readMessage( + value, + models_member_bank_account_pb.MemberBankAccount + .deserializeBinaryFromReader + ); + msg.setMemberBankAccount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberBankAccount(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_bank_account_pb.MemberBankAccount.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member_bank_account.MemberBankAccount member_bank_account = 1; + * @return {?proto.bet.beteran.member_bank_account.MemberBankAccount} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result.prototype.getMemberBankAccount = + function () { + return /** @type{?proto.bet.beteran.member_bank_account.MemberBankAccount} */ ( + jspb.Message.getWrapperField( + this, + models_member_bank_account_pb.MemberBankAccount, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member_bank_account.MemberBankAccount|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result.prototype.setMemberBankAccount = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result.prototype.clearMemberBankAccount = + function () { + return this.setMemberBankAccount(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result.prototype.hasMemberBankAccount = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_bank_account + .UpdateMemberBankAccountResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest} + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest(); + return proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest} + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountRequest.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.toObject = + function (includeInstance, msg) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse} + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse(); + return proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse} + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_bank_account + .DeleteMemberBankAccountResponse.Result + .deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_bank_account + .DeleteMemberBankAccountResponse.Result.serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = {}; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result(); + return proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_bank_account + .DeleteMemberBankAccountResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_account.DeleteMemberBankAccountResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +goog.object.extend(exports, proto.bet.beteran.c2se.member_bank_account); diff --git a/src/app/modules/proto/c2se/member_bank_deposit_pb.d.ts b/src/app/modules/proto/c2se/member_bank_deposit_pb.d.ts new file mode 100644 index 0000000..0e05a0b --- /dev/null +++ b/src/app/modules/proto/c2se/member_bank_deposit_pb.d.ts @@ -0,0 +1,510 @@ +// package: bet.beteran.c2se.member_bank_deposit +// file: c2se/member_bank_deposit.proto + +import * as jspb from "google-protobuf"; +import * as protobuf_rpc_pb from "../protobuf/rpc_pb"; +import * as protobuf_pagination_pb from "../protobuf/pagination_pb"; +import * as models_member_bank_deposit_pb from "../models/member_bank_deposit_pb"; + +export class CreateMemberBankDepositRequest extends jspb.Message { + getName(): string; + setName(value: string): void; + + getAmount(): number; + setAmount(value: number): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberBankDepositRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateMemberBankDepositRequest): CreateMemberBankDepositRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateMemberBankDepositRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberBankDepositRequest; + static deserializeBinaryFromReader(message: CreateMemberBankDepositRequest, reader: jspb.BinaryReader): CreateMemberBankDepositRequest; +} + +export namespace CreateMemberBankDepositRequest { + export type AsObject = { + name: string, + amount: number, + memo: string, + } +} + +export class CreateMemberBankDepositResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): CreateMemberBankDepositResponse.Result | undefined; + setResult(value?: CreateMemberBankDepositResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberBankDepositResponse.AsObject; + static toObject(includeInstance: boolean, msg: CreateMemberBankDepositResponse): CreateMemberBankDepositResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateMemberBankDepositResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberBankDepositResponse; + static deserializeBinaryFromReader(message: CreateMemberBankDepositResponse, reader: jspb.BinaryReader): CreateMemberBankDepositResponse; +} + +export namespace CreateMemberBankDepositResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: CreateMemberBankDepositResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasMemberBankDeposit(): boolean; + clearMemberBankDeposit(): void; + getMemberBankDeposit(): models_member_bank_deposit_pb.MemberBankDeposit | undefined; + setMemberBankDeposit(value?: models_member_bank_deposit_pb.MemberBankDeposit): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + memberBankDeposit?: models_member_bank_deposit_pb.MemberBankDeposit.AsObject, + } + } +} + +export class ListMemberBankDepositsRequest extends jspb.Message { + hasPagination(): boolean; + clearPagination(): void; + getPagination(): protobuf_pagination_pb.Pagination | undefined; + setPagination(value?: protobuf_pagination_pb.Pagination): void; + + clearSortsList(): void; + getSortsList(): Array; + setSortsList(value: Array): void; + addSorts(value?: protobuf_pagination_pb.Sort, index?: number): protobuf_pagination_pb.Sort; + + hasSearch(): boolean; + clearSearch(): void; + getSearch(): ListMemberBankDepositsRequest.Search | undefined; + setSearch(value?: ListMemberBankDepositsRequest.Search): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMemberBankDepositsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListMemberBankDepositsRequest): ListMemberBankDepositsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListMemberBankDepositsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListMemberBankDepositsRequest; + static deserializeBinaryFromReader(message: ListMemberBankDepositsRequest, reader: jspb.BinaryReader): ListMemberBankDepositsRequest; +} + +export namespace ListMemberBankDepositsRequest { + export type AsObject = { + pagination?: protobuf_pagination_pb.Pagination.AsObject, + sortsList: Array, + search?: ListMemberBankDepositsRequest.Search.AsObject, + } + + export class Search extends jspb.Message { + hasMemberId(): boolean; + clearMemberId(): void; + getMemberId(): string; + setMemberId(value: string): void; + + hasNameLike(): boolean; + clearNameLike(): void; + getNameLike(): string; + setNameLike(value: string): void; + + hasAmount(): boolean; + clearAmount(): void; + getAmount(): number; + setAmount(value: number): void; + + hasMemoLike(): boolean; + clearMemoLike(): void; + getMemoLike(): string; + setMemoLike(value: string): void; + + hasState(): boolean; + clearState(): void; + getState(): models_member_bank_deposit_pb.MemberBankDepositStateMap[keyof models_member_bank_deposit_pb.MemberBankDepositStateMap]; + setState(value: models_member_bank_deposit_pb.MemberBankDepositStateMap[keyof models_member_bank_deposit_pb.MemberBankDepositStateMap]): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Search.AsObject; + static toObject(includeInstance: boolean, msg: Search): Search.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Search, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Search; + static deserializeBinaryFromReader(message: Search, reader: jspb.BinaryReader): Search; + } + + export namespace Search { + export type AsObject = { + memberId: string, + nameLike: string, + amount: number, + memoLike: string, + state: models_member_bank_deposit_pb.MemberBankDepositStateMap[keyof models_member_bank_deposit_pb.MemberBankDepositStateMap], + } + } +} + +export class ListMemberBankDepositsResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): ListMemberBankDepositsResponse.Result | undefined; + setResult(value?: ListMemberBankDepositsResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMemberBankDepositsResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListMemberBankDepositsResponse): ListMemberBankDepositsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListMemberBankDepositsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListMemberBankDepositsResponse; + static deserializeBinaryFromReader(message: ListMemberBankDepositsResponse, reader: jspb.BinaryReader): ListMemberBankDepositsResponse; +} + +export namespace ListMemberBankDepositsResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: ListMemberBankDepositsResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + clearMemberBankDepositsList(): void; + getMemberBankDepositsList(): Array; + setMemberBankDepositsList(value: Array): void; + addMemberBankDeposits(value?: models_member_bank_deposit_pb.MemberBankDeposit, index?: number): models_member_bank_deposit_pb.MemberBankDeposit; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + memberBankDepositsList: Array, + } + } +} + +export class GetMemberBankDepositRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberBankDepositRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetMemberBankDepositRequest): GetMemberBankDepositRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetMemberBankDepositRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetMemberBankDepositRequest; + static deserializeBinaryFromReader(message: GetMemberBankDepositRequest, reader: jspb.BinaryReader): GetMemberBankDepositRequest; +} + +export namespace GetMemberBankDepositRequest { + export type AsObject = { + id: string, + } +} + +export class GetMemberBankDepositResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): GetMemberBankDepositResponse.Result | undefined; + setResult(value?: GetMemberBankDepositResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberBankDepositResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetMemberBankDepositResponse): GetMemberBankDepositResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetMemberBankDepositResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetMemberBankDepositResponse; + static deserializeBinaryFromReader(message: GetMemberBankDepositResponse, reader: jspb.BinaryReader): GetMemberBankDepositResponse; +} + +export namespace GetMemberBankDepositResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: GetMemberBankDepositResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasMemberBankDeposit(): boolean; + clearMemberBankDeposit(): void; + getMemberBankDeposit(): models_member_bank_deposit_pb.MemberBankDeposit | undefined; + setMemberBankDeposit(value?: models_member_bank_deposit_pb.MemberBankDeposit): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + memberBankDeposit?: models_member_bank_deposit_pb.MemberBankDeposit.AsObject, + } + } +} + +export class UpdateMemberBankDepositRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getName(): string; + setName(value: string): void; + + getAmount(): number; + setAmount(value: number): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberBankDepositRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateMemberBankDepositRequest): UpdateMemberBankDepositRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateMemberBankDepositRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberBankDepositRequest; + static deserializeBinaryFromReader(message: UpdateMemberBankDepositRequest, reader: jspb.BinaryReader): UpdateMemberBankDepositRequest; +} + +export namespace UpdateMemberBankDepositRequest { + export type AsObject = { + id: string, + name: string, + amount: number, + memo: string, + } +} + +export class UpdateMemberBankDepositResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): UpdateMemberBankDepositResponse.Result | undefined; + setResult(value?: UpdateMemberBankDepositResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberBankDepositResponse.AsObject; + static toObject(includeInstance: boolean, msg: UpdateMemberBankDepositResponse): UpdateMemberBankDepositResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateMemberBankDepositResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberBankDepositResponse; + static deserializeBinaryFromReader(message: UpdateMemberBankDepositResponse, reader: jspb.BinaryReader): UpdateMemberBankDepositResponse; +} + +export namespace UpdateMemberBankDepositResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: UpdateMemberBankDepositResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasMemberBankDeposit(): boolean; + clearMemberBankDeposit(): void; + getMemberBankDeposit(): models_member_bank_deposit_pb.MemberBankDeposit | undefined; + setMemberBankDeposit(value?: models_member_bank_deposit_pb.MemberBankDeposit): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + memberBankDeposit?: models_member_bank_deposit_pb.MemberBankDeposit.AsObject, + } + } +} + +export class UpdateMemberBankDepositForStateRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getState(): models_member_bank_deposit_pb.MemberBankDepositStateMap[keyof models_member_bank_deposit_pb.MemberBankDepositStateMap]; + setState(value: models_member_bank_deposit_pb.MemberBankDepositStateMap[keyof models_member_bank_deposit_pb.MemberBankDepositStateMap]): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberBankDepositForStateRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateMemberBankDepositForStateRequest): UpdateMemberBankDepositForStateRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateMemberBankDepositForStateRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberBankDepositForStateRequest; + static deserializeBinaryFromReader(message: UpdateMemberBankDepositForStateRequest, reader: jspb.BinaryReader): UpdateMemberBankDepositForStateRequest; +} + +export namespace UpdateMemberBankDepositForStateRequest { + export type AsObject = { + id: string, + state: models_member_bank_deposit_pb.MemberBankDepositStateMap[keyof models_member_bank_deposit_pb.MemberBankDepositStateMap], + } +} + +export class UpdateMemberBankDepositForStateResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): UpdateMemberBankDepositForStateResponse.Result | undefined; + setResult(value?: UpdateMemberBankDepositForStateResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberBankDepositForStateResponse.AsObject; + static toObject(includeInstance: boolean, msg: UpdateMemberBankDepositForStateResponse): UpdateMemberBankDepositForStateResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateMemberBankDepositForStateResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberBankDepositForStateResponse; + static deserializeBinaryFromReader(message: UpdateMemberBankDepositForStateResponse, reader: jspb.BinaryReader): UpdateMemberBankDepositForStateResponse; +} + +export namespace UpdateMemberBankDepositForStateResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: UpdateMemberBankDepositForStateResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasMemberBankDeposit(): boolean; + clearMemberBankDeposit(): void; + getMemberBankDeposit(): models_member_bank_deposit_pb.MemberBankDeposit | undefined; + setMemberBankDeposit(value?: models_member_bank_deposit_pb.MemberBankDeposit): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + memberBankDeposit?: models_member_bank_deposit_pb.MemberBankDeposit.AsObject, + } + } +} + +export class DeleteMemberBankDepositRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberBankDepositRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteMemberBankDepositRequest): DeleteMemberBankDepositRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteMemberBankDepositRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberBankDepositRequest; + static deserializeBinaryFromReader(message: DeleteMemberBankDepositRequest, reader: jspb.BinaryReader): DeleteMemberBankDepositRequest; +} + +export namespace DeleteMemberBankDepositRequest { + export type AsObject = { + id: string, + } +} + +export class DeleteMemberBankDepositResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): DeleteMemberBankDepositResponse.Result | undefined; + setResult(value?: DeleteMemberBankDepositResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberBankDepositResponse.AsObject; + static toObject(includeInstance: boolean, msg: DeleteMemberBankDepositResponse): DeleteMemberBankDepositResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteMemberBankDepositResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberBankDepositResponse; + static deserializeBinaryFromReader(message: DeleteMemberBankDepositResponse, reader: jspb.BinaryReader): DeleteMemberBankDepositResponse; +} + +export namespace DeleteMemberBankDepositResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: DeleteMemberBankDepositResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + } + } +} + diff --git a/src/app/modules/proto/c2se/member_bank_deposit_pb.js b/src/app/modules/proto/c2se/member_bank_deposit_pb.js new file mode 100644 index 0000000..34081a3 --- /dev/null +++ b/src/app/modules/proto/c2se/member_bank_deposit_pb.js @@ -0,0 +1,3987 @@ +// source: c2se/member_bank_deposit.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +var protobuf_rpc_pb = require('../protobuf/rpc_pb.js'); +goog.object.extend(proto, protobuf_rpc_pb); +var protobuf_pagination_pb = require('../protobuf/pagination_pb.js'); +goog.object.extend(proto, protobuf_pagination_pb); +var models_member_bank_deposit_pb = require('../models/member_bank_deposit_pb.js'); +goog.object.extend(proto, models_member_bank_deposit_pb); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.repeatedFields_, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.repeatedFields_, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result.displayName = 'proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + amount: jspb.Message.getFieldWithDefault(msg, 2, 0), + memo: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest; + return proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setAmount(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAmount(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional uint32 amount = 2; + * @return {number} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest.prototype.setAmount = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional string memo = 3; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest.prototype.setMemo = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest.prototype.clearMemo = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositRequest.prototype.hasMemo = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse; + return proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + memberBankDeposit: (f = msg.getMemberBankDeposit()) && models_member_bank_deposit_pb.MemberBankDeposit.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result; + return proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_bank_deposit_pb.MemberBankDeposit; + reader.readMessage(value,models_member_bank_deposit_pb.MemberBankDeposit.deserializeBinaryFromReader); + msg.setMemberBankDeposit(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberBankDeposit(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_bank_deposit_pb.MemberBankDeposit.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.member_bank_deposit.MemberBankDeposit member_bank_deposit = 1; + * @return {?proto.bet.beteran.member_bank_deposit.MemberBankDeposit} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result.prototype.getMemberBankDeposit = function() { + return /** @type{?proto.bet.beteran.member_bank_deposit.MemberBankDeposit} */ ( + jspb.Message.getWrapperField(this, models_member_bank_deposit_pb.MemberBankDeposit, 1)); +}; + + +/** + * @param {?proto.bet.beteran.member_bank_deposit.MemberBankDeposit|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result.prototype.setMemberBankDeposit = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result.prototype.clearMemberBankDeposit = function() { + return this.setMemberBankDeposit(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result.prototype.hasMemberBankDeposit = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.CreateMemberBankDepositResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + pagination: (f = msg.getPagination()) && protobuf_pagination_pb.Pagination.toObject(includeInstance, f), + sortsList: jspb.Message.toObjectList(msg.getSortsList(), + protobuf_pagination_pb.Sort.toObject, includeInstance), + search: (f = msg.getSearch()) && proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest; + return proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_pagination_pb.Pagination; + reader.readMessage(value,protobuf_pagination_pb.Pagination.deserializeBinaryFromReader); + msg.setPagination(value); + break; + case 2: + var value = new protobuf_pagination_pb.Sort; + reader.readMessage(value,protobuf_pagination_pb.Sort.deserializeBinaryFromReader); + msg.addSorts(value); + break; + case 3: + var value = new proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search; + reader.readMessage(value,proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.deserializeBinaryFromReader); + msg.setSearch(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_pagination_pb.Pagination.serializeBinaryToWriter + ); + } + f = message.getSortsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + protobuf_pagination_pb.Sort.serializeBinaryToWriter + ); + } + f = message.getSearch(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.toObject = function(includeInstance, msg) { + var f, obj = { + memberId: jspb.Message.getFieldWithDefault(msg, 1, ""), + nameLike: jspb.Message.getFieldWithDefault(msg, 2, ""), + amount: jspb.Message.getFieldWithDefault(msg, 3, 0), + memoLike: jspb.Message.getFieldWithDefault(msg, 4, ""), + state: jspb.Message.getFieldWithDefault(msg, 5, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search; + return proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setNameLike(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setAmount(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setMemoLike(value); + break; + case 5: + var value = /** @type {!proto.bet.beteran.member_bank_deposit.MemberBankDepositState} */ (reader.readEnum()); + msg.setState(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeUint32( + 3, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString( + 4, + f + ); + } + f = /** @type {!proto.bet.beteran.member_bank_deposit.MemberBankDepositState} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeEnum( + 5, + f + ); + } +}; + + +/** + * optional string member_id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.getMemberId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.setMemberId = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.clearMemberId = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.hasMemberId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string name_like = 2; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.getNameLike = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.setNameLike = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.clearNameLike = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.hasNameLike = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional uint32 amount = 3; + * @return {number} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.setAmount = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.clearAmount = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.hasAmount = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string memo_like = 4; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.getMemoLike = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.setMemoLike = function(value) { + return jspb.Message.setField(this, 4, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.clearMemoLike = function() { + return jspb.Message.setField(this, 4, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.hasMemoLike = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional bet.beteran.member_bank_deposit.MemberBankDepositState state = 5; + * @return {!proto.bet.beteran.member_bank_deposit.MemberBankDepositState} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.getState = function() { + return /** @type {!proto.bet.beteran.member_bank_deposit.MemberBankDepositState} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {!proto.bet.beteran.member_bank_deposit.MemberBankDepositState} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.setState = function(value) { + return jspb.Message.setField(this, 5, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.clearState = function() { + return jspb.Message.setField(this, 5, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.hasState = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional bet.protobuf.pagination.Pagination pagination = 1; + * @return {?proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.prototype.getPagination = function() { + return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( + jspb.Message.getWrapperField(this, protobuf_pagination_pb.Pagination, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated bet.protobuf.pagination.Sort sorts = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.prototype.getSortsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, protobuf_pagination_pb.Sort, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.prototype.setSortsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.bet.protobuf.pagination.Sort=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Sort} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.prototype.addSorts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bet.protobuf.pagination.Sort, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.prototype.clearSortsList = function() { + return this.setSortsList([]); +}; + + +/** + * optional Search search = 3; + * @return {?proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.prototype.getSearch = function() { + return /** @type{?proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search, 3)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.prototype.setSearch = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.prototype.clearSearch = function() { + return this.setSearch(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.prototype.hasSearch = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse; + return proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.serializeBinaryToWriter + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + memberBankDepositsList: jspb.Message.toObjectList(msg.getMemberBankDepositsList(), + models_member_bank_deposit_pb.MemberBankDeposit.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result; + return proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_bank_deposit_pb.MemberBankDeposit; + reader.readMessage(value,models_member_bank_deposit_pb.MemberBankDeposit.deserializeBinaryFromReader); + msg.addMemberBankDeposits(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberBankDepositsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + models_member_bank_deposit_pb.MemberBankDeposit.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated bet.beteran.member_bank_deposit.MemberBankDeposit member_bank_deposits = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.prototype.getMemberBankDepositsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, models_member_bank_deposit_pb.MemberBankDeposit, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.prototype.setMemberBankDepositsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.bet.beteran.member_bank_deposit.MemberBankDeposit=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.member_bank_deposit.MemberBankDeposit} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.prototype.addMemberBankDeposits = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bet.beteran.member_bank_deposit.MemberBankDeposit, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result.prototype.clearMemberBankDepositsList = function() { + return this.setMemberBankDepositsList([]); +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest; + return proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse; + return proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + memberBankDeposit: (f = msg.getMemberBankDeposit()) && models_member_bank_deposit_pb.MemberBankDeposit.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result; + return proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_bank_deposit_pb.MemberBankDeposit; + reader.readMessage(value,models_member_bank_deposit_pb.MemberBankDeposit.deserializeBinaryFromReader); + msg.setMemberBankDeposit(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberBankDeposit(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_bank_deposit_pb.MemberBankDeposit.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.member_bank_deposit.MemberBankDeposit member_bank_deposit = 1; + * @return {?proto.bet.beteran.member_bank_deposit.MemberBankDeposit} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result.prototype.getMemberBankDeposit = function() { + return /** @type{?proto.bet.beteran.member_bank_deposit.MemberBankDeposit} */ ( + jspb.Message.getWrapperField(this, models_member_bank_deposit_pb.MemberBankDeposit, 1)); +}; + + +/** + * @param {?proto.bet.beteran.member_bank_deposit.MemberBankDeposit|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result.prototype.setMemberBankDeposit = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result.prototype.clearMemberBankDeposit = function() { + return this.setMemberBankDeposit(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result.prototype.hasMemberBankDeposit = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.GetMemberBankDepositResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + amount: jspb.Message.getFieldWithDefault(msg, 5, 0), + memo: jspb.Message.getFieldWithDefault(msg, 7, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest; + return proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint32()); + msg.setAmount(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getAmount(); + if (f !== 0) { + writer.writeUint32( + 5, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeString( + 7, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string name = 3; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional uint32 amount = 5; + * @return {number} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.prototype.setAmount = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional string memo = 7; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.prototype.setMemo = function(value) { + return jspb.Message.setField(this, 7, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.prototype.clearMemo = function() { + return jspb.Message.setField(this, 7, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositRequest.prototype.hasMemo = function() { + return jspb.Message.getField(this, 7) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse; + return proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + memberBankDeposit: (f = msg.getMemberBankDeposit()) && models_member_bank_deposit_pb.MemberBankDeposit.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result; + return proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_bank_deposit_pb.MemberBankDeposit; + reader.readMessage(value,models_member_bank_deposit_pb.MemberBankDeposit.deserializeBinaryFromReader); + msg.setMemberBankDeposit(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberBankDeposit(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_bank_deposit_pb.MemberBankDeposit.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.member_bank_deposit.MemberBankDeposit member_bank_deposit = 1; + * @return {?proto.bet.beteran.member_bank_deposit.MemberBankDeposit} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result.prototype.getMemberBankDeposit = function() { + return /** @type{?proto.bet.beteran.member_bank_deposit.MemberBankDeposit} */ ( + jspb.Message.getWrapperField(this, models_member_bank_deposit_pb.MemberBankDeposit, 1)); +}; + + +/** + * @param {?proto.bet.beteran.member_bank_deposit.MemberBankDeposit|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result.prototype.setMemberBankDeposit = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result.prototype.clearMemberBankDeposit = function() { + return this.setMemberBankDeposit(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result.prototype.hasMemberBankDeposit = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + state: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest; + return proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {!proto.bet.beteran.member_bank_deposit.MemberBankDepositState} */ (reader.readEnum()); + msg.setState(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getState(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bet.beteran.member_bank_deposit.MemberBankDepositState state = 2; + * @return {!proto.bet.beteran.member_bank_deposit.MemberBankDepositState} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest.prototype.getState = function() { + return /** @type {!proto.bet.beteran.member_bank_deposit.MemberBankDepositState} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.bet.beteran.member_bank_deposit.MemberBankDepositState} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateRequest.prototype.setState = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse; + return proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + memberBankDeposit: (f = msg.getMemberBankDeposit()) && models_member_bank_deposit_pb.MemberBankDeposit.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result; + return proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_bank_deposit_pb.MemberBankDeposit; + reader.readMessage(value,models_member_bank_deposit_pb.MemberBankDeposit.deserializeBinaryFromReader); + msg.setMemberBankDeposit(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberBankDeposit(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_bank_deposit_pb.MemberBankDeposit.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.member_bank_deposit.MemberBankDeposit member_bank_deposit = 1; + * @return {?proto.bet.beteran.member_bank_deposit.MemberBankDeposit} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result.prototype.getMemberBankDeposit = function() { + return /** @type{?proto.bet.beteran.member_bank_deposit.MemberBankDeposit} */ ( + jspb.Message.getWrapperField(this, models_member_bank_deposit_pb.MemberBankDeposit, 1)); +}; + + +/** + * @param {?proto.bet.beteran.member_bank_deposit.MemberBankDeposit|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result.prototype.setMemberBankDeposit = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result.prototype.clearMemberBankDeposit = function() { + return this.setMemberBankDeposit(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result.prototype.hasMemberBankDeposit = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.UpdateMemberBankDepositForStateResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest} + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest; + return proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest} + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse} + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse; + return proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse} + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result; + return proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_deposit.DeleteMemberBankDepositResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +goog.object.extend(exports, proto.bet.beteran.c2se.member_bank_deposit); diff --git a/src/app/modules/proto/c2se/member_bank_withdraw_pb.d.ts b/src/app/modules/proto/c2se/member_bank_withdraw_pb.d.ts new file mode 100644 index 0000000..b46e327 --- /dev/null +++ b/src/app/modules/proto/c2se/member_bank_withdraw_pb.d.ts @@ -0,0 +1,546 @@ +// package: bet.beteran.c2se.member_bank_withdraw +// file: c2se/member_bank_withdraw.proto + +import * as jspb from "google-protobuf"; +import * as protobuf_rpc_pb from "../protobuf/rpc_pb"; +import * as protobuf_pagination_pb from "../protobuf/pagination_pb"; +import * as models_member_bank_withdraw_pb from "../models/member_bank_withdraw_pb"; + +export class CreateMemberBankWithdrawRequest extends jspb.Message { + getBankName(): string; + setBankName(value: string): void; + + getName(): string; + setName(value: string): void; + + getAccountNumber(): string; + setAccountNumber(value: string): void; + + getAmount(): number; + setAmount(value: number): void; + + getPassword(): string; + setPassword(value: string): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberBankWithdrawRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateMemberBankWithdrawRequest): CreateMemberBankWithdrawRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateMemberBankWithdrawRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberBankWithdrawRequest; + static deserializeBinaryFromReader(message: CreateMemberBankWithdrawRequest, reader: jspb.BinaryReader): CreateMemberBankWithdrawRequest; +} + +export namespace CreateMemberBankWithdrawRequest { + export type AsObject = { + bankName: string, + name: string, + accountNumber: string, + amount: number, + password: string, + memo: string, + } +} + +export class CreateMemberBankWithdrawResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): CreateMemberBankWithdrawResponse.Result | undefined; + setResult(value?: CreateMemberBankWithdrawResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberBankWithdrawResponse.AsObject; + static toObject(includeInstance: boolean, msg: CreateMemberBankWithdrawResponse): CreateMemberBankWithdrawResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateMemberBankWithdrawResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberBankWithdrawResponse; + static deserializeBinaryFromReader(message: CreateMemberBankWithdrawResponse, reader: jspb.BinaryReader): CreateMemberBankWithdrawResponse; +} + +export namespace CreateMemberBankWithdrawResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: CreateMemberBankWithdrawResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasMemberBankWithdraw(): boolean; + clearMemberBankWithdraw(): void; + getMemberBankWithdraw(): models_member_bank_withdraw_pb.MemberBankWithdraw | undefined; + setMemberBankWithdraw(value?: models_member_bank_withdraw_pb.MemberBankWithdraw): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + memberBankWithdraw?: models_member_bank_withdraw_pb.MemberBankWithdraw.AsObject, + } + } +} + +export class ListMemberBankWithdrawsRequest extends jspb.Message { + hasPagination(): boolean; + clearPagination(): void; + getPagination(): protobuf_pagination_pb.Pagination | undefined; + setPagination(value?: protobuf_pagination_pb.Pagination): void; + + clearSortsList(): void; + getSortsList(): Array; + setSortsList(value: Array): void; + addSorts(value?: protobuf_pagination_pb.Sort, index?: number): protobuf_pagination_pb.Sort; + + hasSearch(): boolean; + clearSearch(): void; + getSearch(): ListMemberBankWithdrawsRequest.Search | undefined; + setSearch(value?: ListMemberBankWithdrawsRequest.Search): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMemberBankWithdrawsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListMemberBankWithdrawsRequest): ListMemberBankWithdrawsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListMemberBankWithdrawsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListMemberBankWithdrawsRequest; + static deserializeBinaryFromReader(message: ListMemberBankWithdrawsRequest, reader: jspb.BinaryReader): ListMemberBankWithdrawsRequest; +} + +export namespace ListMemberBankWithdrawsRequest { + export type AsObject = { + pagination?: protobuf_pagination_pb.Pagination.AsObject, + sortsList: Array, + search?: ListMemberBankWithdrawsRequest.Search.AsObject, + } + + export class Search extends jspb.Message { + hasMemberId(): boolean; + clearMemberId(): void; + getMemberId(): string; + setMemberId(value: string): void; + + hasBankNameLike(): boolean; + clearBankNameLike(): void; + getBankNameLike(): string; + setBankNameLike(value: string): void; + + hasNameLike(): boolean; + clearNameLike(): void; + getNameLike(): string; + setNameLike(value: string): void; + + hasAccountNumberLike(): boolean; + clearAccountNumberLike(): void; + getAccountNumberLike(): string; + setAccountNumberLike(value: string): void; + + hasAmount(): boolean; + clearAmount(): void; + getAmount(): number; + setAmount(value: number): void; + + hasMemoLike(): boolean; + clearMemoLike(): void; + getMemoLike(): string; + setMemoLike(value: string): void; + + hasState(): boolean; + clearState(): void; + getState(): models_member_bank_withdraw_pb.MemberBankWithdrawStateMap[keyof models_member_bank_withdraw_pb.MemberBankWithdrawStateMap]; + setState(value: models_member_bank_withdraw_pb.MemberBankWithdrawStateMap[keyof models_member_bank_withdraw_pb.MemberBankWithdrawStateMap]): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Search.AsObject; + static toObject(includeInstance: boolean, msg: Search): Search.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Search, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Search; + static deserializeBinaryFromReader(message: Search, reader: jspb.BinaryReader): Search; + } + + export namespace Search { + export type AsObject = { + memberId: string, + bankNameLike: string, + nameLike: string, + accountNumberLike: string, + amount: number, + memoLike: string, + state: models_member_bank_withdraw_pb.MemberBankWithdrawStateMap[keyof models_member_bank_withdraw_pb.MemberBankWithdrawStateMap], + } + } +} + +export class ListMemberBankWithdrawsResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): ListMemberBankWithdrawsResponse.Result | undefined; + setResult(value?: ListMemberBankWithdrawsResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMemberBankWithdrawsResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListMemberBankWithdrawsResponse): ListMemberBankWithdrawsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListMemberBankWithdrawsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListMemberBankWithdrawsResponse; + static deserializeBinaryFromReader(message: ListMemberBankWithdrawsResponse, reader: jspb.BinaryReader): ListMemberBankWithdrawsResponse; +} + +export namespace ListMemberBankWithdrawsResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: ListMemberBankWithdrawsResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + clearMemberBankWithdrawsList(): void; + getMemberBankWithdrawsList(): Array; + setMemberBankWithdrawsList(value: Array): void; + addMemberBankWithdraws(value?: models_member_bank_withdraw_pb.MemberBankWithdraw, index?: number): models_member_bank_withdraw_pb.MemberBankWithdraw; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + memberBankWithdrawsList: Array, + } + } +} + +export class GetMemberBankWithdrawRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberBankWithdrawRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetMemberBankWithdrawRequest): GetMemberBankWithdrawRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetMemberBankWithdrawRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetMemberBankWithdrawRequest; + static deserializeBinaryFromReader(message: GetMemberBankWithdrawRequest, reader: jspb.BinaryReader): GetMemberBankWithdrawRequest; +} + +export namespace GetMemberBankWithdrawRequest { + export type AsObject = { + id: string, + } +} + +export class GetMemberBankWithdrawResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): GetMemberBankWithdrawResponse.Result | undefined; + setResult(value?: GetMemberBankWithdrawResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberBankWithdrawResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetMemberBankWithdrawResponse): GetMemberBankWithdrawResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetMemberBankWithdrawResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetMemberBankWithdrawResponse; + static deserializeBinaryFromReader(message: GetMemberBankWithdrawResponse, reader: jspb.BinaryReader): GetMemberBankWithdrawResponse; +} + +export namespace GetMemberBankWithdrawResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: GetMemberBankWithdrawResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasMemberBankWithdraw(): boolean; + clearMemberBankWithdraw(): void; + getMemberBankWithdraw(): models_member_bank_withdraw_pb.MemberBankWithdraw | undefined; + setMemberBankWithdraw(value?: models_member_bank_withdraw_pb.MemberBankWithdraw): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + memberBankWithdraw?: models_member_bank_withdraw_pb.MemberBankWithdraw.AsObject, + } + } +} + +export class UpdateMemberBankWithdrawRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getBankName(): string; + setBankName(value: string): void; + + getName(): string; + setName(value: string): void; + + getAccountNumber(): string; + setAccountNumber(value: string): void; + + getAmount(): number; + setAmount(value: number): void; + + getPassword(): string; + setPassword(value: string): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberBankWithdrawRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateMemberBankWithdrawRequest): UpdateMemberBankWithdrawRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateMemberBankWithdrawRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberBankWithdrawRequest; + static deserializeBinaryFromReader(message: UpdateMemberBankWithdrawRequest, reader: jspb.BinaryReader): UpdateMemberBankWithdrawRequest; +} + +export namespace UpdateMemberBankWithdrawRequest { + export type AsObject = { + id: string, + bankName: string, + name: string, + accountNumber: string, + amount: number, + password: string, + memo: string, + } +} + +export class UpdateMemberBankWithdrawResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): UpdateMemberBankWithdrawResponse.Result | undefined; + setResult(value?: UpdateMemberBankWithdrawResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberBankWithdrawResponse.AsObject; + static toObject(includeInstance: boolean, msg: UpdateMemberBankWithdrawResponse): UpdateMemberBankWithdrawResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateMemberBankWithdrawResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberBankWithdrawResponse; + static deserializeBinaryFromReader(message: UpdateMemberBankWithdrawResponse, reader: jspb.BinaryReader): UpdateMemberBankWithdrawResponse; +} + +export namespace UpdateMemberBankWithdrawResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: UpdateMemberBankWithdrawResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasMemberBankWithdraw(): boolean; + clearMemberBankWithdraw(): void; + getMemberBankWithdraw(): models_member_bank_withdraw_pb.MemberBankWithdraw | undefined; + setMemberBankWithdraw(value?: models_member_bank_withdraw_pb.MemberBankWithdraw): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + memberBankWithdraw?: models_member_bank_withdraw_pb.MemberBankWithdraw.AsObject, + } + } +} + +export class UpdateMemberBankWithdrawForStateRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getState(): models_member_bank_withdraw_pb.MemberBankWithdrawStateMap[keyof models_member_bank_withdraw_pb.MemberBankWithdrawStateMap]; + setState(value: models_member_bank_withdraw_pb.MemberBankWithdrawStateMap[keyof models_member_bank_withdraw_pb.MemberBankWithdrawStateMap]): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberBankWithdrawForStateRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateMemberBankWithdrawForStateRequest): UpdateMemberBankWithdrawForStateRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateMemberBankWithdrawForStateRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberBankWithdrawForStateRequest; + static deserializeBinaryFromReader(message: UpdateMemberBankWithdrawForStateRequest, reader: jspb.BinaryReader): UpdateMemberBankWithdrawForStateRequest; +} + +export namespace UpdateMemberBankWithdrawForStateRequest { + export type AsObject = { + id: string, + state: models_member_bank_withdraw_pb.MemberBankWithdrawStateMap[keyof models_member_bank_withdraw_pb.MemberBankWithdrawStateMap], + } +} + +export class UpdateMemberBankWithdrawForStateResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): UpdateMemberBankWithdrawForStateResponse.Result | undefined; + setResult(value?: UpdateMemberBankWithdrawForStateResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberBankWithdrawForStateResponse.AsObject; + static toObject(includeInstance: boolean, msg: UpdateMemberBankWithdrawForStateResponse): UpdateMemberBankWithdrawForStateResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateMemberBankWithdrawForStateResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberBankWithdrawForStateResponse; + static deserializeBinaryFromReader(message: UpdateMemberBankWithdrawForStateResponse, reader: jspb.BinaryReader): UpdateMemberBankWithdrawForStateResponse; +} + +export namespace UpdateMemberBankWithdrawForStateResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: UpdateMemberBankWithdrawForStateResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasMemberBankWithdraw(): boolean; + clearMemberBankWithdraw(): void; + getMemberBankWithdraw(): models_member_bank_withdraw_pb.MemberBankWithdraw | undefined; + setMemberBankWithdraw(value?: models_member_bank_withdraw_pb.MemberBankWithdraw): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + memberBankWithdraw?: models_member_bank_withdraw_pb.MemberBankWithdraw.AsObject, + } + } +} + +export class DeleteMemberBankWithdrawRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberBankWithdrawRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteMemberBankWithdrawRequest): DeleteMemberBankWithdrawRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteMemberBankWithdrawRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberBankWithdrawRequest; + static deserializeBinaryFromReader(message: DeleteMemberBankWithdrawRequest, reader: jspb.BinaryReader): DeleteMemberBankWithdrawRequest; +} + +export namespace DeleteMemberBankWithdrawRequest { + export type AsObject = { + id: string, + } +} + +export class DeleteMemberBankWithdrawResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): DeleteMemberBankWithdrawResponse.Result | undefined; + setResult(value?: DeleteMemberBankWithdrawResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberBankWithdrawResponse.AsObject; + static toObject(includeInstance: boolean, msg: DeleteMemberBankWithdrawResponse): DeleteMemberBankWithdrawResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteMemberBankWithdrawResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberBankWithdrawResponse; + static deserializeBinaryFromReader(message: DeleteMemberBankWithdrawResponse, reader: jspb.BinaryReader): DeleteMemberBankWithdrawResponse; +} + +export namespace DeleteMemberBankWithdrawResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: DeleteMemberBankWithdrawResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + } + } +} + diff --git a/src/app/modules/proto/c2se/member_bank_withdraw_pb.js b/src/app/modules/proto/c2se/member_bank_withdraw_pb.js new file mode 100644 index 0000000..31468e7 --- /dev/null +++ b/src/app/modules/proto/c2se/member_bank_withdraw_pb.js @@ -0,0 +1,4263 @@ +// source: c2se/member_bank_withdraw.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +var protobuf_rpc_pb = require('../protobuf/rpc_pb.js'); +goog.object.extend(proto, protobuf_rpc_pb); +var protobuf_pagination_pb = require('../protobuf/pagination_pb.js'); +goog.object.extend(proto, protobuf_pagination_pb); +var models_member_bank_withdraw_pb = require('../models/member_bank_withdraw_pb.js'); +goog.object.extend(proto, models_member_bank_withdraw_pb); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.repeatedFields_, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.repeatedFields_, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result.displayName = 'proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.toObject = function(includeInstance, msg) { + var f, obj = { + bankName: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + accountNumber: jspb.Message.getFieldWithDefault(msg, 3, ""), + amount: jspb.Message.getFieldWithDefault(msg, 4, 0), + password: jspb.Message.getFieldWithDefault(msg, 5, ""), + memo: jspb.Message.getFieldWithDefault(msg, 6, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest; + return proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setBankName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAccountNumber(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setAmount(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setPassword(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBankName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getAccountNumber(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getAmount(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } + f = message.getPassword(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeString( + 6, + f + ); + } +}; + + +/** + * optional string bank_name = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.prototype.getBankName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.prototype.setBankName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string name = 2; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string account_number = 3; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.prototype.getAccountNumber = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.prototype.setAccountNumber = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional uint32 amount = 4; + * @return {number} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.prototype.setAmount = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional string password = 5; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.prototype.getPassword = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.prototype.setPassword = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional string memo = 6; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.prototype.setMemo = function(value) { + return jspb.Message.setField(this, 6, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.prototype.clearMemo = function() { + return jspb.Message.setField(this, 6, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawRequest.prototype.hasMemo = function() { + return jspb.Message.getField(this, 6) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse; + return proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + memberBankWithdraw: (f = msg.getMemberBankWithdraw()) && models_member_bank_withdraw_pb.MemberBankWithdraw.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result; + return proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_bank_withdraw_pb.MemberBankWithdraw; + reader.readMessage(value,models_member_bank_withdraw_pb.MemberBankWithdraw.deserializeBinaryFromReader); + msg.setMemberBankWithdraw(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberBankWithdraw(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_bank_withdraw_pb.MemberBankWithdraw.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.member_bank_withdraw.MemberBankWithdraw member_bank_withdraw = 1; + * @return {?proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result.prototype.getMemberBankWithdraw = function() { + return /** @type{?proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} */ ( + jspb.Message.getWrapperField(this, models_member_bank_withdraw_pb.MemberBankWithdraw, 1)); +}; + + +/** + * @param {?proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result.prototype.setMemberBankWithdraw = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result.prototype.clearMemberBankWithdraw = function() { + return this.setMemberBankWithdraw(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result.prototype.hasMemberBankWithdraw = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.CreateMemberBankWithdrawResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + pagination: (f = msg.getPagination()) && protobuf_pagination_pb.Pagination.toObject(includeInstance, f), + sortsList: jspb.Message.toObjectList(msg.getSortsList(), + protobuf_pagination_pb.Sort.toObject, includeInstance), + search: (f = msg.getSearch()) && proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest; + return proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_pagination_pb.Pagination; + reader.readMessage(value,protobuf_pagination_pb.Pagination.deserializeBinaryFromReader); + msg.setPagination(value); + break; + case 2: + var value = new protobuf_pagination_pb.Sort; + reader.readMessage(value,protobuf_pagination_pb.Sort.deserializeBinaryFromReader); + msg.addSorts(value); + break; + case 3: + var value = new proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search; + reader.readMessage(value,proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.deserializeBinaryFromReader); + msg.setSearch(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_pagination_pb.Pagination.serializeBinaryToWriter + ); + } + f = message.getSortsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + protobuf_pagination_pb.Sort.serializeBinaryToWriter + ); + } + f = message.getSearch(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.toObject = function(includeInstance, msg) { + var f, obj = { + memberId: jspb.Message.getFieldWithDefault(msg, 1, ""), + bankNameLike: jspb.Message.getFieldWithDefault(msg, 2, ""), + nameLike: jspb.Message.getFieldWithDefault(msg, 3, ""), + accountNumberLike: jspb.Message.getFieldWithDefault(msg, 4, ""), + amount: jspb.Message.getFieldWithDefault(msg, 5, 0), + memoLike: jspb.Message.getFieldWithDefault(msg, 6, ""), + state: jspb.Message.getFieldWithDefault(msg, 7, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search; + return proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setBankNameLike(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setNameLike(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAccountNumberLike(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint32()); + msg.setAmount(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setMemoLike(value); + break; + case 7: + var value = /** @type {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState} */ (reader.readEnum()); + msg.setState(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString( + 3, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString( + 4, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeUint32( + 5, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeString( + 6, + f + ); + } + f = /** @type {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeEnum( + 7, + f + ); + } +}; + + +/** + * optional string member_id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.getMemberId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.setMemberId = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.clearMemberId = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.hasMemberId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string bank_name_like = 2; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.getBankNameLike = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.setBankNameLike = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.clearBankNameLike = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.hasBankNameLike = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string name_like = 3; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.getNameLike = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.setNameLike = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.clearNameLike = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.hasNameLike = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string account_number_like = 4; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.getAccountNumberLike = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.setAccountNumberLike = function(value) { + return jspb.Message.setField(this, 4, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.clearAccountNumberLike = function() { + return jspb.Message.setField(this, 4, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.hasAccountNumberLike = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional uint32 amount = 5; + * @return {number} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.setAmount = function(value) { + return jspb.Message.setField(this, 5, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.clearAmount = function() { + return jspb.Message.setField(this, 5, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.hasAmount = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional string memo_like = 6; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.getMemoLike = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.setMemoLike = function(value) { + return jspb.Message.setField(this, 6, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.clearMemoLike = function() { + return jspb.Message.setField(this, 6, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.hasMemoLike = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional bet.beteran.member_bank_withdraw.MemberBankWithdrawState state = 7; + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.getState = function() { + return /** @type {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.setState = function(value) { + return jspb.Message.setField(this, 7, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.clearState = function() { + return jspb.Message.setField(this, 7, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.hasState = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional bet.protobuf.pagination.Pagination pagination = 1; + * @return {?proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.prototype.getPagination = function() { + return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( + jspb.Message.getWrapperField(this, protobuf_pagination_pb.Pagination, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated bet.protobuf.pagination.Sort sorts = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.prototype.getSortsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, protobuf_pagination_pb.Sort, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.prototype.setSortsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.bet.protobuf.pagination.Sort=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Sort} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.prototype.addSorts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bet.protobuf.pagination.Sort, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.prototype.clearSortsList = function() { + return this.setSortsList([]); +}; + + +/** + * optional Search search = 3; + * @return {?proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.prototype.getSearch = function() { + return /** @type{?proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search, 3)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.prototype.setSearch = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.prototype.clearSearch = function() { + return this.setSearch(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.prototype.hasSearch = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse; + return proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.serializeBinaryToWriter + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + memberBankWithdrawsList: jspb.Message.toObjectList(msg.getMemberBankWithdrawsList(), + models_member_bank_withdraw_pb.MemberBankWithdraw.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result; + return proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_bank_withdraw_pb.MemberBankWithdraw; + reader.readMessage(value,models_member_bank_withdraw_pb.MemberBankWithdraw.deserializeBinaryFromReader); + msg.addMemberBankWithdraws(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberBankWithdrawsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + models_member_bank_withdraw_pb.MemberBankWithdraw.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated bet.beteran.member_bank_withdraw.MemberBankWithdraw member_bank_withdraws = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.prototype.getMemberBankWithdrawsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, models_member_bank_withdraw_pb.MemberBankWithdraw, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.prototype.setMemberBankWithdrawsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.prototype.addMemberBankWithdraws = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result.prototype.clearMemberBankWithdrawsList = function() { + return this.setMemberBankWithdrawsList([]); +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest; + return proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse; + return proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + memberBankWithdraw: (f = msg.getMemberBankWithdraw()) && models_member_bank_withdraw_pb.MemberBankWithdraw.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result; + return proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_bank_withdraw_pb.MemberBankWithdraw; + reader.readMessage(value,models_member_bank_withdraw_pb.MemberBankWithdraw.deserializeBinaryFromReader); + msg.setMemberBankWithdraw(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberBankWithdraw(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_bank_withdraw_pb.MemberBankWithdraw.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.member_bank_withdraw.MemberBankWithdraw member_bank_withdraw = 1; + * @return {?proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result.prototype.getMemberBankWithdraw = function() { + return /** @type{?proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} */ ( + jspb.Message.getWrapperField(this, models_member_bank_withdraw_pb.MemberBankWithdraw, 1)); +}; + + +/** + * @param {?proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result.prototype.setMemberBankWithdraw = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result.prototype.clearMemberBankWithdraw = function() { + return this.setMemberBankWithdraw(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result.prototype.hasMemberBankWithdraw = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.GetMemberBankWithdrawResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + bankName: jspb.Message.getFieldWithDefault(msg, 2, ""), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + accountNumber: jspb.Message.getFieldWithDefault(msg, 4, ""), + amount: jspb.Message.getFieldWithDefault(msg, 5, 0), + password: jspb.Message.getFieldWithDefault(msg, 6, ""), + memo: jspb.Message.getFieldWithDefault(msg, 7, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest; + return proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setBankName(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAccountNumber(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint32()); + msg.setAmount(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setPassword(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getBankName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getAccountNumber(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getAmount(); + if (f !== 0) { + writer.writeUint32( + 5, + f + ); + } + f = message.getPassword(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeString( + 7, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string bank_name = 2; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.prototype.getBankName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.prototype.setBankName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string name = 3; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string account_number = 4; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.prototype.getAccountNumber = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.prototype.setAccountNumber = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional uint32 amount = 5; + * @return {number} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.prototype.setAmount = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional string password = 6; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.prototype.getPassword = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.prototype.setPassword = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * optional string memo = 7; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.prototype.setMemo = function(value) { + return jspb.Message.setField(this, 7, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.prototype.clearMemo = function() { + return jspb.Message.setField(this, 7, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawRequest.prototype.hasMemo = function() { + return jspb.Message.getField(this, 7) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse; + return proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + memberBankWithdraw: (f = msg.getMemberBankWithdraw()) && models_member_bank_withdraw_pb.MemberBankWithdraw.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result; + return proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_bank_withdraw_pb.MemberBankWithdraw; + reader.readMessage(value,models_member_bank_withdraw_pb.MemberBankWithdraw.deserializeBinaryFromReader); + msg.setMemberBankWithdraw(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberBankWithdraw(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_bank_withdraw_pb.MemberBankWithdraw.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.member_bank_withdraw.MemberBankWithdraw member_bank_withdraw = 1; + * @return {?proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result.prototype.getMemberBankWithdraw = function() { + return /** @type{?proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} */ ( + jspb.Message.getWrapperField(this, models_member_bank_withdraw_pb.MemberBankWithdraw, 1)); +}; + + +/** + * @param {?proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result.prototype.setMemberBankWithdraw = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result.prototype.clearMemberBankWithdraw = function() { + return this.setMemberBankWithdraw(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result.prototype.hasMemberBankWithdraw = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + state: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest; + return proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState} */ (reader.readEnum()); + msg.setState(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getState(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bet.beteran.member_bank_withdraw.MemberBankWithdrawState state = 2; + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest.prototype.getState = function() { + return /** @type {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateRequest.prototype.setState = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse; + return proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + memberBankWithdraw: (f = msg.getMemberBankWithdraw()) && models_member_bank_withdraw_pb.MemberBankWithdraw.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result; + return proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_bank_withdraw_pb.MemberBankWithdraw; + reader.readMessage(value,models_member_bank_withdraw_pb.MemberBankWithdraw.deserializeBinaryFromReader); + msg.setMemberBankWithdraw(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberBankWithdraw(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_bank_withdraw_pb.MemberBankWithdraw.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.member_bank_withdraw.MemberBankWithdraw member_bank_withdraw = 1; + * @return {?proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result.prototype.getMemberBankWithdraw = function() { + return /** @type{?proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} */ ( + jspb.Message.getWrapperField(this, models_member_bank_withdraw_pb.MemberBankWithdraw, 1)); +}; + + +/** + * @param {?proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result.prototype.setMemberBankWithdraw = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result.prototype.clearMemberBankWithdraw = function() { + return this.setMemberBankWithdraw(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result.prototype.hasMemberBankWithdraw = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.UpdateMemberBankWithdrawForStateResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest} + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest; + return proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest} + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse} + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse; + return proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse} + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result; + return proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result} + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse} returns this +*/ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse} returns this + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_bank_withdraw.DeleteMemberBankWithdrawResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +goog.object.extend(exports, proto.bet.beteran.c2se.member_bank_withdraw); diff --git a/src/app/modules/proto/c2se/member_class_pb.d.ts b/src/app/modules/proto/c2se/member_class_pb.d.ts new file mode 100644 index 0000000..f1e314e --- /dev/null +++ b/src/app/modules/proto/c2se/member_class_pb.d.ts @@ -0,0 +1,418 @@ +// package: bet.beteran.c2se.member_class +// file: c2se/member_class.proto + +import * as jspb from "google-protobuf"; +import * as protobuf_rpc_pb from "../protobuf/rpc_pb"; +import * as protobuf_pagination_pb from "../protobuf/pagination_pb"; +import * as models_member_class_pb from "../models/member_class_pb"; + +export class CreateMemberClassRequest extends jspb.Message { + hasParentId(): boolean; + clearParentId(): void; + getParentId(): string; + setParentId(value: string): void; + + getName(): string; + setName(value: string): void; + + getShow(): boolean; + setShow(value: boolean): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberClassRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateMemberClassRequest): CreateMemberClassRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateMemberClassRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberClassRequest; + static deserializeBinaryFromReader(message: CreateMemberClassRequest, reader: jspb.BinaryReader): CreateMemberClassRequest; +} + +export namespace CreateMemberClassRequest { + export type AsObject = { + parentId: string, + name: string, + show: boolean, + } +} + +export class CreateMemberClassResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): CreateMemberClassResponse.Result | undefined; + setResult(value?: CreateMemberClassResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberClassResponse.AsObject; + static toObject(includeInstance: boolean, msg: CreateMemberClassResponse): CreateMemberClassResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateMemberClassResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberClassResponse; + static deserializeBinaryFromReader(message: CreateMemberClassResponse, reader: jspb.BinaryReader): CreateMemberClassResponse; +} + +export namespace CreateMemberClassResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: CreateMemberClassResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasMemberClass(): boolean; + clearMemberClass(): void; + getMemberClass(): models_member_class_pb.MemberClass | undefined; + setMemberClass(value?: models_member_class_pb.MemberClass): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + memberClass?: models_member_class_pb.MemberClass.AsObject, + } + } +} + +export class ListMemberClassesRequest extends jspb.Message { + hasPagination(): boolean; + clearPagination(): void; + getPagination(): protobuf_pagination_pb.Pagination | undefined; + setPagination(value?: protobuf_pagination_pb.Pagination): void; + + clearSortsList(): void; + getSortsList(): Array; + setSortsList(value: Array): void; + addSorts(value?: protobuf_pagination_pb.Sort, index?: number): protobuf_pagination_pb.Sort; + + hasSearch(): boolean; + clearSearch(): void; + getSearch(): ListMemberClassesRequest.Search | undefined; + setSearch(value?: ListMemberClassesRequest.Search): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMemberClassesRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListMemberClassesRequest): ListMemberClassesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListMemberClassesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListMemberClassesRequest; + static deserializeBinaryFromReader(message: ListMemberClassesRequest, reader: jspb.BinaryReader): ListMemberClassesRequest; +} + +export namespace ListMemberClassesRequest { + export type AsObject = { + pagination?: protobuf_pagination_pb.Pagination.AsObject, + sortsList: Array, + search?: ListMemberClassesRequest.Search.AsObject, + } + + export class Search extends jspb.Message { + hasNameLike(): boolean; + clearNameLike(): void; + getNameLike(): string; + setNameLike(value: string): void; + + hasShow(): boolean; + clearShow(): void; + getShow(): boolean; + setShow(value: boolean): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Search.AsObject; + static toObject(includeInstance: boolean, msg: Search): Search.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Search, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Search; + static deserializeBinaryFromReader(message: Search, reader: jspb.BinaryReader): Search; + } + + export namespace Search { + export type AsObject = { + nameLike: string, + show: boolean, + } + } +} + +export class ListMemberClassesResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): ListMemberClassesResponse.Result | undefined; + setResult(value?: ListMemberClassesResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMemberClassesResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListMemberClassesResponse): ListMemberClassesResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListMemberClassesResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListMemberClassesResponse; + static deserializeBinaryFromReader(message: ListMemberClassesResponse, reader: jspb.BinaryReader): ListMemberClassesResponse; +} + +export namespace ListMemberClassesResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: ListMemberClassesResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + clearMemberClassesList(): void; + getMemberClassesList(): Array; + setMemberClassesList(value: Array): void; + addMemberClasses(value?: models_member_class_pb.MemberClass, index?: number): models_member_class_pb.MemberClass; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + memberClassesList: Array, + } + } +} + +export class GetMemberClassRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberClassRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetMemberClassRequest): GetMemberClassRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetMemberClassRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetMemberClassRequest; + static deserializeBinaryFromReader(message: GetMemberClassRequest, reader: jspb.BinaryReader): GetMemberClassRequest; +} + +export namespace GetMemberClassRequest { + export type AsObject = { + id: string, + } +} + +export class GetMemberClassResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): GetMemberClassResponse.Result | undefined; + setResult(value?: GetMemberClassResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberClassResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetMemberClassResponse): GetMemberClassResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetMemberClassResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetMemberClassResponse; + static deserializeBinaryFromReader(message: GetMemberClassResponse, reader: jspb.BinaryReader): GetMemberClassResponse; +} + +export namespace GetMemberClassResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: GetMemberClassResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasMemberClass(): boolean; + clearMemberClass(): void; + getMemberClass(): models_member_class_pb.MemberClass | undefined; + setMemberClass(value?: models_member_class_pb.MemberClass): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + memberClass?: models_member_class_pb.MemberClass.AsObject, + } + } +} + +export class UpdateMemberClassRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + hasParentId(): boolean; + clearParentId(): void; + getParentId(): string; + setParentId(value: string): void; + + getName(): string; + setName(value: string): void; + + getShow(): boolean; + setShow(value: boolean): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberClassRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateMemberClassRequest): UpdateMemberClassRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateMemberClassRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberClassRequest; + static deserializeBinaryFromReader(message: UpdateMemberClassRequest, reader: jspb.BinaryReader): UpdateMemberClassRequest; +} + +export namespace UpdateMemberClassRequest { + export type AsObject = { + id: string, + parentId: string, + name: string, + show: boolean, + } +} + +export class UpdateMemberClassResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): UpdateMemberClassResponse.Result | undefined; + setResult(value?: UpdateMemberClassResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberClassResponse.AsObject; + static toObject(includeInstance: boolean, msg: UpdateMemberClassResponse): UpdateMemberClassResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateMemberClassResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberClassResponse; + static deserializeBinaryFromReader(message: UpdateMemberClassResponse, reader: jspb.BinaryReader): UpdateMemberClassResponse; +} + +export namespace UpdateMemberClassResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: UpdateMemberClassResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasMemberClass(): boolean; + clearMemberClass(): void; + getMemberClass(): models_member_class_pb.MemberClass | undefined; + setMemberClass(value?: models_member_class_pb.MemberClass): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + memberClass?: models_member_class_pb.MemberClass.AsObject, + } + } +} + +export class DeleteMemberClassRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberClassRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteMemberClassRequest): DeleteMemberClassRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteMemberClassRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberClassRequest; + static deserializeBinaryFromReader(message: DeleteMemberClassRequest, reader: jspb.BinaryReader): DeleteMemberClassRequest; +} + +export namespace DeleteMemberClassRequest { + export type AsObject = { + id: string, + } +} + +export class DeleteMemberClassResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): DeleteMemberClassResponse.Result | undefined; + setResult(value?: DeleteMemberClassResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberClassResponse.AsObject; + static toObject(includeInstance: boolean, msg: DeleteMemberClassResponse): DeleteMemberClassResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteMemberClassResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberClassResponse; + static deserializeBinaryFromReader(message: DeleteMemberClassResponse, reader: jspb.BinaryReader): DeleteMemberClassResponse; +} + +export namespace DeleteMemberClassResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: DeleteMemberClassResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + } + } +} + diff --git a/src/app/modules/proto/c2se/member_class_pb.js b/src/app/modules/proto/c2se/member_class_pb.js new file mode 100644 index 0000000..4701ecb --- /dev/null +++ b/src/app/modules/proto/c2se/member_class_pb.js @@ -0,0 +1,3264 @@ +// source: c2se/member_class.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +var protobuf_rpc_pb = require('../protobuf/rpc_pb.js'); +goog.object.extend(proto, protobuf_rpc_pb); +var protobuf_pagination_pb = require('../protobuf/pagination_pb.js'); +goog.object.extend(proto, protobuf_pagination_pb); +var models_member_class_pb = require('../models/member_class_pb.js'); +goog.object.extend(proto, models_member_class_pb); +goog.exportSymbol('proto.bet.beteran.c2se.member_class.CreateMemberClassRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_class.CreateMemberClassResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_class.GetMemberClassRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_class.GetMemberClassResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_class.ListMemberClassesRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_class.ListMemberClassesResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_class.CreateMemberClassRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.displayName = 'proto.bet.beteran.c2se.member_class.CreateMemberClassRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_class.CreateMemberClassResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.displayName = 'proto.bet.beteran.c2se.member_class.CreateMemberClassResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.displayName = 'proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.repeatedFields_, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_class.ListMemberClassesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.displayName = 'proto.bet.beteran.c2se.member_class.ListMemberClassesRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.displayName = 'proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_class.ListMemberClassesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.displayName = 'proto.bet.beteran.c2se.member_class.ListMemberClassesResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.repeatedFields_, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.displayName = 'proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_class.GetMemberClassRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_class.GetMemberClassRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_class.GetMemberClassRequest.displayName = 'proto.bet.beteran.c2se.member_class.GetMemberClassRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_class.GetMemberClassResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_class.GetMemberClassResponse.displayName = 'proto.bet.beteran.c2se.member_class.GetMemberClassResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.displayName = 'proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.displayName = 'proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.displayName = 'proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.displayName = 'proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.displayName = 'proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.displayName = 'proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.displayName = 'proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_class.CreateMemberClassRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.toObject = function(includeInstance, msg) { + var f, obj = { + parentId: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassRequest} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_class.CreateMemberClassRequest; + return proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_class.CreateMemberClassRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassRequest} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setParentId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_class.CreateMemberClassRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getShow(); + if (f) { + writer.writeBool( + 3, + f + ); + } +}; + + +/** + * optional string parent_id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.getParentId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.setParentId = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.clearParentId = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.hasParentId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string name = 2; + * @return {string} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional bool show = 3; + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.setShow = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_class.CreateMemberClassResponse; + return proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + memberClass: (f = msg.getMemberClass()) && models_member_class_pb.MemberClass.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result; + return proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_class_pb.MemberClass; + reader.readMessage(value,models_member_class_pb.MemberClass.deserializeBinaryFromReader); + msg.setMemberClass(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberClass(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_class_pb.MemberClass.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.member_class.MemberClass member_class = 1; + * @return {?proto.bet.beteran.member_class.MemberClass} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.prototype.getMemberClass = function() { + return /** @type{?proto.bet.beteran.member_class.MemberClass} */ ( + jspb.Message.getWrapperField(this, models_member_class_pb.MemberClass, 1)); +}; + + +/** + * @param {?proto.bet.beteran.member_class.MemberClass|undefined} value + * @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result} returns this +*/ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.prototype.setMemberClass = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.prototype.clearMemberClass = function() { + return this.setMemberClass(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.prototype.hasMemberClass = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse} returns this +*/ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse} returns this +*/ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + pagination: (f = msg.getPagination()) && protobuf_pagination_pb.Pagination.toObject(includeInstance, f), + sortsList: jspb.Message.toObjectList(msg.getSortsList(), + protobuf_pagination_pb.Sort.toObject, includeInstance), + search: (f = msg.getSearch()) && proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_class.ListMemberClassesRequest; + return proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_pagination_pb.Pagination; + reader.readMessage(value,protobuf_pagination_pb.Pagination.deserializeBinaryFromReader); + msg.setPagination(value); + break; + case 2: + var value = new protobuf_pagination_pb.Sort; + reader.readMessage(value,protobuf_pagination_pb.Sort.deserializeBinaryFromReader); + msg.addSorts(value); + break; + case 3: + var value = new proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search; + reader.readMessage(value,proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.deserializeBinaryFromReader); + msg.setSearch(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_pagination_pb.Pagination.serializeBinaryToWriter + ); + } + f = message.getSortsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + protobuf_pagination_pb.Sort.serializeBinaryToWriter + ); + } + f = message.getSearch(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.toObject = function(includeInstance, msg) { + var f, obj = { + nameLike: jspb.Message.getFieldWithDefault(msg, 1, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search; + return proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setNameLike(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeBool( + 2, + f + ); + } +}; + + +/** + * optional string name_like = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.getNameLike = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.setNameLike = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.clearNameLike = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.hasNameLike = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bool show = 2; + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.setShow = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.clearShow = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.hasShow = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional bet.protobuf.pagination.Pagination pagination = 1; + * @return {?proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.getPagination = function() { + return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( + jspb.Message.getWrapperField(this, protobuf_pagination_pb.Pagination, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest} returns this +*/ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest} returns this + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated bet.protobuf.pagination.Sort sorts = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.getSortsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, protobuf_pagination_pb.Sort, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest} returns this +*/ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.setSortsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.bet.protobuf.pagination.Sort=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Sort} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.addSorts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bet.protobuf.pagination.Sort, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest} returns this + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.clearSortsList = function() { + return this.setSortsList([]); +}; + + +/** + * optional Search search = 3; + * @return {?proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.getSearch = function() { + return /** @type{?proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search, 3)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search|undefined} value + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest} returns this +*/ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.setSearch = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest} returns this + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.clearSearch = function() { + return this.setSearch(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.hasSearch = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_class.ListMemberClassesResponse; + return proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.serializeBinaryToWriter + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + memberClassesList: jspb.Message.toObjectList(msg.getMemberClassesList(), + models_member_class_pb.MemberClass.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result; + return proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_class_pb.MemberClass; + reader.readMessage(value,models_member_class_pb.MemberClass.deserializeBinaryFromReader); + msg.addMemberClasses(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberClassesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + models_member_class_pb.MemberClass.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated bet.beteran.member_class.MemberClass member_classes = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.prototype.getMemberClassesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, models_member_class_pb.MemberClass, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result} returns this +*/ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.prototype.setMemberClassesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.bet.beteran.member_class.MemberClass=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.member_class.MemberClass} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.prototype.addMemberClasses = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bet.beteran.member_class.MemberClass, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.prototype.clearMemberClassesList = function() { + return this.setMemberClassesList([]); +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse} returns this +*/ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse} returns this + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse} returns this +*/ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse} returns this + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_class.GetMemberClassRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_class.GetMemberClassRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.GetMemberClassRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_class.GetMemberClassRequest} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_class.GetMemberClassRequest; + return proto.bet.beteran.c2se.member_class.GetMemberClassRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_class.GetMemberClassRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_class.GetMemberClassRequest} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_class.GetMemberClassRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_class.GetMemberClassRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.GetMemberClassRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_class.GetMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.member_class.GetMemberClassRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_class.GetMemberClassResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_class.GetMemberClassResponse; + return proto.bet.beteran.c2se.member_class.GetMemberClassResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_class.GetMemberClassResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + memberClass: (f = msg.getMemberClass()) && models_member_class_pb.MemberClass.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result; + return proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_class_pb.MemberClass; + reader.readMessage(value,models_member_class_pb.MemberClass.deserializeBinaryFromReader); + msg.setMemberClass(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberClass(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_class_pb.MemberClass.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.member_class.MemberClass member_class = 1; + * @return {?proto.bet.beteran.member_class.MemberClass} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.prototype.getMemberClass = function() { + return /** @type{?proto.bet.beteran.member_class.MemberClass} */ ( + jspb.Message.getWrapperField(this, models_member_class_pb.MemberClass, 1)); +}; + + +/** + * @param {?proto.bet.beteran.member_class.MemberClass|undefined} value + * @return {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result} returns this +*/ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.prototype.setMemberClass = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.prototype.clearMemberClass = function() { + return this.setMemberClass(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.prototype.hasMemberClass = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse} returns this +*/ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse} returns this +*/ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.GetMemberClassResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + parentId: jspb.Message.getFieldWithDefault(msg, 2, ""), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest; + return proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setParentId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getShow(); + if (f) { + writer.writeBool( + 4, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string parent_id = 2; + * @return {string} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.getParentId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.setParentId = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.clearParentId = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.hasParentId = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string name = 3; + * @return {string} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional bool show = 4; + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.setShow = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse; + return proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + memberClass: (f = msg.getMemberClass()) && models_member_class_pb.MemberClass.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result; + return proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_class_pb.MemberClass; + reader.readMessage(value,models_member_class_pb.MemberClass.deserializeBinaryFromReader); + msg.setMemberClass(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberClass(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_class_pb.MemberClass.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.member_class.MemberClass member_class = 1; + * @return {?proto.bet.beteran.member_class.MemberClass} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.prototype.getMemberClass = function() { + return /** @type{?proto.bet.beteran.member_class.MemberClass} */ ( + jspb.Message.getWrapperField(this, models_member_class_pb.MemberClass, 1)); +}; + + +/** + * @param {?proto.bet.beteran.member_class.MemberClass|undefined} value + * @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result} returns this +*/ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.prototype.setMemberClass = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.prototype.clearMemberClass = function() { + return this.setMemberClass(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.prototype.hasMemberClass = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse} returns this +*/ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse} returns this +*/ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest} + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest; + return proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest} + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse} + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse; + return proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse} + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result; + return proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse} returns this +*/ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse} returns this +*/ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +goog.object.extend(exports, proto.bet.beteran.c2se.member_class); diff --git a/src/app/modules/proto/c2se/member_level_pb.d.ts b/src/app/modules/proto/c2se/member_level_pb.d.ts new file mode 100644 index 0000000..cbd3aec --- /dev/null +++ b/src/app/modules/proto/c2se/member_level_pb.d.ts @@ -0,0 +1,414 @@ +// package: bet.beteran.c2se.member_level +// file: c2se/member_level.proto + +import * as jspb from "google-protobuf"; +import * as protobuf_rpc_pb from "../protobuf/rpc_pb"; +import * as protobuf_pagination_pb from "../protobuf/pagination_pb"; +import * as models_member_level_pb from "../models/member_level_pb"; + +export class CreateMemberLevelRequest extends jspb.Message { + getName(): string; + setName(value: string): void; + + getShow(): boolean; + setShow(value: boolean): void; + + getSortOrder(): number; + setSortOrder(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberLevelRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateMemberLevelRequest): CreateMemberLevelRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateMemberLevelRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberLevelRequest; + static deserializeBinaryFromReader(message: CreateMemberLevelRequest, reader: jspb.BinaryReader): CreateMemberLevelRequest; +} + +export namespace CreateMemberLevelRequest { + export type AsObject = { + name: string, + show: boolean, + sortOrder: number, + } +} + +export class CreateMemberLevelResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): CreateMemberLevelResponse.Result | undefined; + setResult(value?: CreateMemberLevelResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberLevelResponse.AsObject; + static toObject(includeInstance: boolean, msg: CreateMemberLevelResponse): CreateMemberLevelResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateMemberLevelResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberLevelResponse; + static deserializeBinaryFromReader(message: CreateMemberLevelResponse, reader: jspb.BinaryReader): CreateMemberLevelResponse; +} + +export namespace CreateMemberLevelResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: CreateMemberLevelResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasMemberLevel(): boolean; + clearMemberLevel(): void; + getMemberLevel(): models_member_level_pb.MemberLevel | undefined; + setMemberLevel(value?: models_member_level_pb.MemberLevel): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + memberLevel?: models_member_level_pb.MemberLevel.AsObject, + } + } +} + +export class ListMemberLevelsRequest extends jspb.Message { + hasPagination(): boolean; + clearPagination(): void; + getPagination(): protobuf_pagination_pb.Pagination | undefined; + setPagination(value?: protobuf_pagination_pb.Pagination): void; + + clearSortsList(): void; + getSortsList(): Array; + setSortsList(value: Array): void; + addSorts(value?: protobuf_pagination_pb.Sort, index?: number): protobuf_pagination_pb.Sort; + + hasSearch(): boolean; + clearSearch(): void; + getSearch(): ListMemberLevelsRequest.Search | undefined; + setSearch(value?: ListMemberLevelsRequest.Search): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMemberLevelsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListMemberLevelsRequest): ListMemberLevelsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListMemberLevelsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListMemberLevelsRequest; + static deserializeBinaryFromReader(message: ListMemberLevelsRequest, reader: jspb.BinaryReader): ListMemberLevelsRequest; +} + +export namespace ListMemberLevelsRequest { + export type AsObject = { + pagination?: protobuf_pagination_pb.Pagination.AsObject, + sortsList: Array, + search?: ListMemberLevelsRequest.Search.AsObject, + } + + export class Search extends jspb.Message { + hasNameLike(): boolean; + clearNameLike(): void; + getNameLike(): string; + setNameLike(value: string): void; + + hasShow(): boolean; + clearShow(): void; + getShow(): boolean; + setShow(value: boolean): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Search.AsObject; + static toObject(includeInstance: boolean, msg: Search): Search.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Search, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Search; + static deserializeBinaryFromReader(message: Search, reader: jspb.BinaryReader): Search; + } + + export namespace Search { + export type AsObject = { + nameLike: string, + show: boolean, + } + } +} + +export class ListMemberLevelsResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): ListMemberLevelsResponse.Result | undefined; + setResult(value?: ListMemberLevelsResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMemberLevelsResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListMemberLevelsResponse): ListMemberLevelsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListMemberLevelsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListMemberLevelsResponse; + static deserializeBinaryFromReader(message: ListMemberLevelsResponse, reader: jspb.BinaryReader): ListMemberLevelsResponse; +} + +export namespace ListMemberLevelsResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: ListMemberLevelsResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + clearMemberLevelsList(): void; + getMemberLevelsList(): Array; + setMemberLevelsList(value: Array): void; + addMemberLevels(value?: models_member_level_pb.MemberLevel, index?: number): models_member_level_pb.MemberLevel; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + memberLevelsList: Array, + } + } +} + +export class GetMemberLevelRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberLevelRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetMemberLevelRequest): GetMemberLevelRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetMemberLevelRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetMemberLevelRequest; + static deserializeBinaryFromReader(message: GetMemberLevelRequest, reader: jspb.BinaryReader): GetMemberLevelRequest; +} + +export namespace GetMemberLevelRequest { + export type AsObject = { + id: string, + } +} + +export class GetMemberLevelResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): GetMemberLevelResponse.Result | undefined; + setResult(value?: GetMemberLevelResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberLevelResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetMemberLevelResponse): GetMemberLevelResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetMemberLevelResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetMemberLevelResponse; + static deserializeBinaryFromReader(message: GetMemberLevelResponse, reader: jspb.BinaryReader): GetMemberLevelResponse; +} + +export namespace GetMemberLevelResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: GetMemberLevelResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasMemberLevel(): boolean; + clearMemberLevel(): void; + getMemberLevel(): models_member_level_pb.MemberLevel | undefined; + setMemberLevel(value?: models_member_level_pb.MemberLevel): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + memberLevel?: models_member_level_pb.MemberLevel.AsObject, + } + } +} + +export class UpdateMemberLevelRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getName(): string; + setName(value: string): void; + + getShow(): boolean; + setShow(value: boolean): void; + + getSortOrder(): number; + setSortOrder(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberLevelRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateMemberLevelRequest): UpdateMemberLevelRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateMemberLevelRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberLevelRequest; + static deserializeBinaryFromReader(message: UpdateMemberLevelRequest, reader: jspb.BinaryReader): UpdateMemberLevelRequest; +} + +export namespace UpdateMemberLevelRequest { + export type AsObject = { + id: string, + name: string, + show: boolean, + sortOrder: number, + } +} + +export class UpdateMemberLevelResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): UpdateMemberLevelResponse.Result | undefined; + setResult(value?: UpdateMemberLevelResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberLevelResponse.AsObject; + static toObject(includeInstance: boolean, msg: UpdateMemberLevelResponse): UpdateMemberLevelResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateMemberLevelResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberLevelResponse; + static deserializeBinaryFromReader(message: UpdateMemberLevelResponse, reader: jspb.BinaryReader): UpdateMemberLevelResponse; +} + +export namespace UpdateMemberLevelResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: UpdateMemberLevelResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasMemberLevel(): boolean; + clearMemberLevel(): void; + getMemberLevel(): models_member_level_pb.MemberLevel | undefined; + setMemberLevel(value?: models_member_level_pb.MemberLevel): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + memberLevel?: models_member_level_pb.MemberLevel.AsObject, + } + } +} + +export class DeleteMemberLevelRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberLevelRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteMemberLevelRequest): DeleteMemberLevelRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteMemberLevelRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberLevelRequest; + static deserializeBinaryFromReader(message: DeleteMemberLevelRequest, reader: jspb.BinaryReader): DeleteMemberLevelRequest; +} + +export namespace DeleteMemberLevelRequest { + export type AsObject = { + id: string, + } +} + +export class DeleteMemberLevelResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): DeleteMemberLevelResponse.Result | undefined; + setResult(value?: DeleteMemberLevelResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberLevelResponse.AsObject; + static toObject(includeInstance: boolean, msg: DeleteMemberLevelResponse): DeleteMemberLevelResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteMemberLevelResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberLevelResponse; + static deserializeBinaryFromReader(message: DeleteMemberLevelResponse, reader: jspb.BinaryReader): DeleteMemberLevelResponse; +} + +export namespace DeleteMemberLevelResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: DeleteMemberLevelResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + } + } +} + diff --git a/src/app/modules/proto/c2se/member_level_pb.js b/src/app/modules/proto/c2se/member_level_pb.js new file mode 100644 index 0000000..41b01ed --- /dev/null +++ b/src/app/modules/proto/c2se/member_level_pb.js @@ -0,0 +1,3228 @@ +// source: c2se/member_level.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +var protobuf_rpc_pb = require('../protobuf/rpc_pb.js'); +goog.object.extend(proto, protobuf_rpc_pb); +var protobuf_pagination_pb = require('../protobuf/pagination_pb.js'); +goog.object.extend(proto, protobuf_pagination_pb); +var models_member_level_pb = require('../models/member_level_pb.js'); +goog.object.extend(proto, models_member_level_pb); +goog.exportSymbol('proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_level.GetMemberLevelRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_level.GetMemberLevelResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.displayName = 'proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.displayName = 'proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result.displayName = 'proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.repeatedFields_, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.displayName = 'proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.displayName = 'proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.displayName = 'proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.repeatedFields_, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.displayName = 'proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_level.GetMemberLevelRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_level.GetMemberLevelRequest.displayName = 'proto.bet.beteran.c2se.member_level.GetMemberLevelRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_level.GetMemberLevelResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.displayName = 'proto.bet.beteran.c2se.member_level.GetMemberLevelResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result.displayName = 'proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.displayName = 'proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.displayName = 'proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result.displayName = 'proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest.displayName = 'proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.displayName = 'proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result.displayName = 'proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + sortOrder: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest; + return proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setSortOrder(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getShow(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getSortOrder(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bool show = 2; + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.prototype.setShow = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional uint32 sort_order = 3; + * @return {number} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.prototype.getSortOrder = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.prototype.setSortOrder = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse; + return proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + memberLevel: (f = msg.getMemberLevel()) && models_member_level_pb.MemberLevel.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result; + return proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_level_pb.MemberLevel; + reader.readMessage(value,models_member_level_pb.MemberLevel.deserializeBinaryFromReader); + msg.setMemberLevel(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberLevel(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_level_pb.MemberLevel.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.member_level.MemberLevel member_level = 1; + * @return {?proto.bet.beteran.member_level.MemberLevel} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result.prototype.getMemberLevel = function() { + return /** @type{?proto.bet.beteran.member_level.MemberLevel} */ ( + jspb.Message.getWrapperField(this, models_member_level_pb.MemberLevel, 1)); +}; + + +/** + * @param {?proto.bet.beteran.member_level.MemberLevel|undefined} value + * @return {!proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result} returns this +*/ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result.prototype.setMemberLevel = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result.prototype.clearMemberLevel = function() { + return this.setMemberLevel(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result.prototype.hasMemberLevel = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse} returns this +*/ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse} returns this +*/ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + pagination: (f = msg.getPagination()) && protobuf_pagination_pb.Pagination.toObject(includeInstance, f), + sortsList: jspb.Message.toObjectList(msg.getSortsList(), + protobuf_pagination_pb.Sort.toObject, includeInstance), + search: (f = msg.getSearch()) && proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest; + return proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_pagination_pb.Pagination; + reader.readMessage(value,protobuf_pagination_pb.Pagination.deserializeBinaryFromReader); + msg.setPagination(value); + break; + case 2: + var value = new protobuf_pagination_pb.Sort; + reader.readMessage(value,protobuf_pagination_pb.Sort.deserializeBinaryFromReader); + msg.addSorts(value); + break; + case 3: + var value = new proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search; + reader.readMessage(value,proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.deserializeBinaryFromReader); + msg.setSearch(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_pagination_pb.Pagination.serializeBinaryToWriter + ); + } + f = message.getSortsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + protobuf_pagination_pb.Sort.serializeBinaryToWriter + ); + } + f = message.getSearch(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.toObject = function(includeInstance, msg) { + var f, obj = { + nameLike: jspb.Message.getFieldWithDefault(msg, 1, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search; + return proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setNameLike(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeBool( + 2, + f + ); + } +}; + + +/** + * optional string name_like = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.prototype.getNameLike = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.prototype.setNameLike = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.prototype.clearNameLike = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.prototype.hasNameLike = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bool show = 2; + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.prototype.setShow = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.prototype.clearShow = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.prototype.hasShow = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional bet.protobuf.pagination.Pagination pagination = 1; + * @return {?proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.prototype.getPagination = function() { + return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( + jspb.Message.getWrapperField(this, protobuf_pagination_pb.Pagination, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest} returns this +*/ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest} returns this + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated bet.protobuf.pagination.Sort sorts = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.prototype.getSortsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, protobuf_pagination_pb.Sort, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest} returns this +*/ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.prototype.setSortsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.bet.protobuf.pagination.Sort=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Sort} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.prototype.addSorts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bet.protobuf.pagination.Sort, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest} returns this + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.prototype.clearSortsList = function() { + return this.setSortsList([]); +}; + + +/** + * optional Search search = 3; + * @return {?proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.prototype.getSearch = function() { + return /** @type{?proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search, 3)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search|undefined} value + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest} returns this +*/ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.prototype.setSearch = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest} returns this + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.prototype.clearSearch = function() { + return this.setSearch(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.prototype.hasSearch = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse; + return proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.serializeBinaryToWriter + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + memberLevelsList: jspb.Message.toObjectList(msg.getMemberLevelsList(), + models_member_level_pb.MemberLevel.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result; + return proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_level_pb.MemberLevel; + reader.readMessage(value,models_member_level_pb.MemberLevel.deserializeBinaryFromReader); + msg.addMemberLevels(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberLevelsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + models_member_level_pb.MemberLevel.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated bet.beteran.member_level.MemberLevel member_levels = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.prototype.getMemberLevelsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, models_member_level_pb.MemberLevel, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result} returns this +*/ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.prototype.setMemberLevelsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.bet.beteran.member_level.MemberLevel=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.member_level.MemberLevel} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.prototype.addMemberLevels = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bet.beteran.member_level.MemberLevel, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result.prototype.clearMemberLevelsList = function() { + return this.setMemberLevelsList([]); +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse} returns this +*/ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse} returns this + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse} returns this +*/ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse} returns this + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_level.GetMemberLevelRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_level.GetMemberLevelRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_level.GetMemberLevelRequest} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_level.GetMemberLevelRequest; + return proto.bet.beteran.c2se.member_level.GetMemberLevelRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_level.GetMemberLevelRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_level.GetMemberLevelRequest} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_level.GetMemberLevelRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_level.GetMemberLevelRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_level.GetMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_level.GetMemberLevelResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_level.GetMemberLevelResponse} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_level.GetMemberLevelResponse; + return proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_level.GetMemberLevelResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_level.GetMemberLevelResponse} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_level.GetMemberLevelResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + memberLevel: (f = msg.getMemberLevel()) && models_member_level_pb.MemberLevel.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result; + return proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_level_pb.MemberLevel; + reader.readMessage(value,models_member_level_pb.MemberLevel.deserializeBinaryFromReader); + msg.setMemberLevel(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberLevel(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_level_pb.MemberLevel.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.member_level.MemberLevel member_level = 1; + * @return {?proto.bet.beteran.member_level.MemberLevel} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result.prototype.getMemberLevel = function() { + return /** @type{?proto.bet.beteran.member_level.MemberLevel} */ ( + jspb.Message.getWrapperField(this, models_member_level_pb.MemberLevel, 1)); +}; + + +/** + * @param {?proto.bet.beteran.member_level.MemberLevel|undefined} value + * @return {!proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result} returns this +*/ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result.prototype.setMemberLevel = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result.prototype.clearMemberLevel = function() { + return this.setMemberLevel(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result.prototype.hasMemberLevel = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_level.GetMemberLevelResponse} returns this +*/ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_level.GetMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_level.GetMemberLevelResponse} returns this +*/ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_level.GetMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.GetMemberLevelResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + sortOrder: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest; + return proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setSortOrder(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getShow(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getSortOrder(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string name = 2; + * @return {string} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional bool show = 3; + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.prototype.setShow = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional uint32 sort_order = 4; + * @return {number} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.prototype.getSortOrder = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.prototype.setSortOrder = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse; + return proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + memberLevel: (f = msg.getMemberLevel()) && models_member_level_pb.MemberLevel.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result; + return proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_level_pb.MemberLevel; + reader.readMessage(value,models_member_level_pb.MemberLevel.deserializeBinaryFromReader); + msg.setMemberLevel(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemberLevel(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_level_pb.MemberLevel.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.member_level.MemberLevel member_level = 1; + * @return {?proto.bet.beteran.member_level.MemberLevel} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result.prototype.getMemberLevel = function() { + return /** @type{?proto.bet.beteran.member_level.MemberLevel} */ ( + jspb.Message.getWrapperField(this, models_member_level_pb.MemberLevel, 1)); +}; + + +/** + * @param {?proto.bet.beteran.member_level.MemberLevel|undefined} value + * @return {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result} returns this +*/ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result.prototype.setMemberLevel = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result.prototype.clearMemberLevel = function() { + return this.setMemberLevel(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result.prototype.hasMemberLevel = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse} returns this +*/ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse} returns this +*/ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest} + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest; + return proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest} + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse} + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse; + return proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse} + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result; + return proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse} returns this +*/ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse} returns this +*/ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.DeleteMemberLevelResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +goog.object.extend(exports, proto.bet.beteran.c2se.member_level); diff --git a/src/app/modules/proto/c2se/member_pb.d.ts b/src/app/modules/proto/c2se/member_pb.d.ts new file mode 100644 index 0000000..785df79 --- /dev/null +++ b/src/app/modules/proto/c2se/member_pb.d.ts @@ -0,0 +1,970 @@ +// package: bet.beteran.c2se.member +// file: c2se/member.proto + +import * as jspb from 'google-protobuf'; +import * as protobuf_rpc_pb from '../protobuf/rpc_pb'; +import * as protobuf_pagination_pb from '../protobuf/pagination_pb'; +import * as models_member_pb from '../models/member_pb'; + +export class CreateMemberRequest extends jspb.Message { + getSiteId(): string; + setSiteId(value: string): void; + + getMemberClassId(): string; + setMemberClassId(value: string): void; + + getMemberLevelId(): string; + setMemberLevelId(value: string): void; + + hasReferrerMemberUsername(): boolean; + clearReferrerMemberUsername(): void; + getReferrerMemberUsername(): string; + setReferrerMemberUsername(value: string): void; + + getUsername(): string; + setUsername(value: string): void; + + getPassword(): string; + setPassword(value: string): void; + + getNickname(): string; + setNickname(value: string): void; + + hasMobilePhoneNumber(): boolean; + clearMobilePhoneNumber(): void; + getMobilePhoneNumber(): string; + setMobilePhoneNumber(value: string): void; + + hasBankAccount(): boolean; + clearBankAccount(): void; + getBankAccount(): CreateMemberRequest.BankAccount | undefined; + setBankAccount(value?: CreateMemberRequest.BankAccount): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateMemberRequest + ): CreateMemberRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateMemberRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberRequest; + static deserializeBinaryFromReader( + message: CreateMemberRequest, + reader: jspb.BinaryReader + ): CreateMemberRequest; +} + +export namespace CreateMemberRequest { + export type AsObject = { + siteId: string; + memberClassId: string; + memberLevelId: string; + referrerMemberUsername: string; + username: string; + password: string; + nickname: string; + mobilePhoneNumber: string; + bankAccount?: CreateMemberRequest.BankAccount.AsObject; + }; + + export class BankAccount extends jspb.Message { + getBankId(): string; + setBankId(value: string): void; + + getName(): string; + setName(value: string): void; + + getAccountNumber(): string; + setAccountNumber(value: string): void; + + getExchangePassword(): string; + setExchangePassword(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BankAccount.AsObject; + static toObject( + includeInstance: boolean, + msg: BankAccount + ): BankAccount.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: BankAccount, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): BankAccount; + static deserializeBinaryFromReader( + message: BankAccount, + reader: jspb.BinaryReader + ): BankAccount; + } + + export namespace BankAccount { + export type AsObject = { + bankId: string; + name: string; + accountNumber: string; + exchangePassword: string; + }; + } +} + +export class CreateMemberResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): CreateMemberResponse.Result | undefined; + setResult(value?: CreateMemberResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateMemberResponse + ): CreateMemberResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateMemberResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberResponse; + static deserializeBinaryFromReader( + message: CreateMemberResponse, + reader: jspb.BinaryReader + ): CreateMemberResponse; +} + +export namespace CreateMemberResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: CreateMemberResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMember(): boolean; + clearMember(): void; + getMember(): models_member_pb.MemberModel | undefined; + setMember(value?: models_member_pb.MemberModel): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Result, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader( + message: Result, + reader: jspb.BinaryReader + ): Result; + } + + export namespace Result { + export type AsObject = { + member?: models_member_pb.MemberModel.AsObject; + }; + } +} + +export class ListMembersRequest extends jspb.Message { + hasPagination(): boolean; + clearPagination(): void; + getPagination(): protobuf_pagination_pb.Pagination | undefined; + setPagination(value?: protobuf_pagination_pb.Pagination): void; + + clearSortsList(): void; + getSortsList(): Array; + setSortsList(value: Array): void; + addSorts( + value?: protobuf_pagination_pb.Sort, + index?: number + ): protobuf_pagination_pb.Sort; + + hasSearch(): boolean; + clearSearch(): void; + getSearch(): ListMembersRequest.Search | undefined; + setSearch(value?: ListMembersRequest.Search): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMembersRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: ListMembersRequest + ): ListMembersRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListMembersRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListMembersRequest; + static deserializeBinaryFromReader( + message: ListMembersRequest, + reader: jspb.BinaryReader + ): ListMembersRequest; +} + +export namespace ListMembersRequest { + export type AsObject = { + pagination?: protobuf_pagination_pb.Pagination.AsObject; + sortsList: Array; + search?: ListMembersRequest.Search.AsObject; + }; + + export class Search extends jspb.Message { + hasSiteId(): boolean; + clearSiteId(): void; + getSiteId(): string; + setSiteId(value: string): void; + + hasMemberClassId(): boolean; + clearMemberClassId(): void; + getMemberClassId(): string; + setMemberClassId(value: string): void; + + hasMemberLevelId(): boolean; + clearMemberLevelId(): void; + getMemberLevelId(): string; + setMemberLevelId(value: string): void; + + hasReferrerMemberId(): boolean; + clearReferrerMemberId(): void; + getReferrerMemberId(): string; + setReferrerMemberId(value: string): void; + + hasUsernameLike(): boolean; + clearUsernameLike(): void; + getUsernameLike(): string; + setUsernameLike(value: string): void; + + hasNicknameLike(): boolean; + clearNicknameLike(): void; + getNicknameLike(): string; + setNicknameLike(value: string): void; + + hasMobilePhoneNumberLike(): boolean; + clearMobilePhoneNumberLike(): void; + getMobilePhoneNumberLike(): string; + setMobilePhoneNumberLike(value: string): void; + + hasLastSigninedIp(): boolean; + clearLastSigninedIp(): void; + getLastSigninedIp(): string; + setLastSigninedIp(value: string): void; + + hasState(): boolean; + clearState(): void; + getState(): models_member_pb.MemberStateMap[keyof models_member_pb.MemberStateMap]; + setState( + value: models_member_pb.MemberStateMap[keyof models_member_pb.MemberStateMap] + ): void; + + hasDeletedAt(): boolean; + clearDeletedAt(): void; + getDeletedAt(): number; + setDeletedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Search.AsObject; + static toObject(includeInstance: boolean, msg: Search): Search.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Search, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Search; + static deserializeBinaryFromReader( + message: Search, + reader: jspb.BinaryReader + ): Search; + } + + export namespace Search { + export type AsObject = { + siteId: string; + memberClassId: string; + memberLevelId: string; + referrerMemberId: string; + usernameLike: string; + nicknameLike: string; + mobilePhoneNumberLike: string; + lastSigninedIp: string; + state: models_member_pb.MemberStateMap[keyof models_member_pb.MemberStateMap]; + deletedAt: number; + }; + } +} + +export class ListMembersResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): ListMembersResponse.Result | undefined; + setResult(value?: ListMembersResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMembersResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: ListMembersResponse + ): ListMembersResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListMembersResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListMembersResponse; + static deserializeBinaryFromReader( + message: ListMembersResponse, + reader: jspb.BinaryReader + ): ListMembersResponse; +} + +export namespace ListMembersResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: ListMembersResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + clearMembersList(): void; + getMembersList(): Array; + setMembersList(value: Array): void; + addMembers( + value?: models_member_pb.MemberModel, + index?: number + ): models_member_pb.MemberModel; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Result, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader( + message: Result, + reader: jspb.BinaryReader + ): Result; + } + + export namespace Result { + export type AsObject = { + membersList: Array; + }; + } +} + +export class GetMemberRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: GetMemberRequest + ): GetMemberRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: GetMemberRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): GetMemberRequest; + static deserializeBinaryFromReader( + message: GetMemberRequest, + reader: jspb.BinaryReader + ): GetMemberRequest; +} + +export namespace GetMemberRequest { + export type AsObject = { + id: string; + }; +} + +export class GetMemberResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): GetMemberResponse.Result | undefined; + setResult(value?: GetMemberResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: GetMemberResponse + ): GetMemberResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: GetMemberResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): GetMemberResponse; + static deserializeBinaryFromReader( + message: GetMemberResponse, + reader: jspb.BinaryReader + ): GetMemberResponse; +} + +export namespace GetMemberResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: GetMemberResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMember(): boolean; + clearMember(): void; + getMember(): models_member_pb.MemberModel | undefined; + setMember(value?: models_member_pb.MemberModel): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Result, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader( + message: Result, + reader: jspb.BinaryReader + ): Result; + } + + export namespace Result { + export type AsObject = { + member?: models_member_pb.MemberModel.AsObject; + }; + } +} + +export class GetMemberByUsernameRequest extends jspb.Message { + getUsername(): string; + setUsername(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberByUsernameRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: GetMemberByUsernameRequest + ): GetMemberByUsernameRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: GetMemberByUsernameRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): GetMemberByUsernameRequest; + static deserializeBinaryFromReader( + message: GetMemberByUsernameRequest, + reader: jspb.BinaryReader + ): GetMemberByUsernameRequest; +} + +export namespace GetMemberByUsernameRequest { + export type AsObject = { + username: string; + }; +} + +export class GetMemberByUsernameResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): GetMemberByUsernameResponse.Result | undefined; + setResult(value?: GetMemberByUsernameResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberByUsernameResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: GetMemberByUsernameResponse + ): GetMemberByUsernameResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: GetMemberByUsernameResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): GetMemberByUsernameResponse; + static deserializeBinaryFromReader( + message: GetMemberByUsernameResponse, + reader: jspb.BinaryReader + ): GetMemberByUsernameResponse; +} + +export namespace GetMemberByUsernameResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: GetMemberByUsernameResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMember(): boolean; + clearMember(): void; + getMember(): models_member_pb.MemberModel | undefined; + setMember(value?: models_member_pb.MemberModel): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Result, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader( + message: Result, + reader: jspb.BinaryReader + ): Result; + } + + export namespace Result { + export type AsObject = { + member?: models_member_pb.MemberModel.AsObject; + }; + } +} + +export class UpdateMemberRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + hasSiteId(): boolean; + clearSiteId(): void; + getSiteId(): string; + setSiteId(value: string): void; + + hasMemberLevelId(): boolean; + clearMemberLevelId(): void; + getMemberLevelId(): string; + setMemberLevelId(value: string): void; + + hasPassword(): boolean; + clearPassword(): void; + getPassword(): string; + setPassword(value: string): void; + + hasMobilePhoneNumber(): boolean; + clearMobilePhoneNumber(): void; + getMobilePhoneNumber(): string; + setMobilePhoneNumber(value: string): void; + + hasBankAccount(): boolean; + clearBankAccount(): void; + getBankAccount(): UpdateMemberRequest.BankAccount | undefined; + setBankAccount(value?: UpdateMemberRequest.BankAccount): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateMemberRequest + ): UpdateMemberRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateMemberRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberRequest; + static deserializeBinaryFromReader( + message: UpdateMemberRequest, + reader: jspb.BinaryReader + ): UpdateMemberRequest; +} + +export namespace UpdateMemberRequest { + export type AsObject = { + id: string; + siteId: string; + memberLevelId: string; + password: string; + mobilePhoneNumber: string; + bankAccount?: UpdateMemberRequest.BankAccount.AsObject; + }; + + export class BankAccount extends jspb.Message { + getId(): string; + setId(value: string): void; + + getBankId(): string; + setBankId(value: string): void; + + getName(): string; + setName(value: string): void; + + getAccountNumber(): string; + setAccountNumber(value: string): void; + + getExchangePassword(): string; + setExchangePassword(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BankAccount.AsObject; + static toObject( + includeInstance: boolean, + msg: BankAccount + ): BankAccount.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: BankAccount, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): BankAccount; + static deserializeBinaryFromReader( + message: BankAccount, + reader: jspb.BinaryReader + ): BankAccount; + } + + export namespace BankAccount { + export type AsObject = { + id: string; + bankId: string; + name: string; + accountNumber: string; + exchangePassword: string; + }; + } +} + +export class UpdateMemberResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): UpdateMemberResponse.Result | undefined; + setResult(value?: UpdateMemberResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateMemberResponse + ): UpdateMemberResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateMemberResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberResponse; + static deserializeBinaryFromReader( + message: UpdateMemberResponse, + reader: jspb.BinaryReader + ): UpdateMemberResponse; +} + +export namespace UpdateMemberResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: UpdateMemberResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMember(): boolean; + clearMember(): void; + getMember(): models_member_pb.MemberModel | undefined; + setMember(value?: models_member_pb.MemberModel): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Result, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader( + message: Result, + reader: jspb.BinaryReader + ): Result; + } + + export namespace Result { + export type AsObject = { + member?: models_member_pb.MemberModel.AsObject; + }; + } +} + +export class UpdateMemberForStateRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getState(): models_member_pb.MemberStateMap[keyof models_member_pb.MemberStateMap]; + setState( + value: models_member_pb.MemberStateMap[keyof models_member_pb.MemberStateMap] + ): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberForStateRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateMemberForStateRequest + ): UpdateMemberForStateRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateMemberForStateRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberForStateRequest; + static deserializeBinaryFromReader( + message: UpdateMemberForStateRequest, + reader: jspb.BinaryReader + ): UpdateMemberForStateRequest; +} + +export namespace UpdateMemberForStateRequest { + export type AsObject = { + id: string; + state: models_member_pb.MemberStateMap[keyof models_member_pb.MemberStateMap]; + }; +} + +export class UpdateMemberForStateResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): UpdateMemberForStateResponse.Result | undefined; + setResult(value?: UpdateMemberForStateResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberForStateResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateMemberForStateResponse + ): UpdateMemberForStateResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateMemberForStateResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberForStateResponse; + static deserializeBinaryFromReader( + message: UpdateMemberForStateResponse, + reader: jspb.BinaryReader + ): UpdateMemberForStateResponse; +} + +export namespace UpdateMemberForStateResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: UpdateMemberForStateResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMember(): boolean; + clearMember(): void; + getMember(): models_member_pb.MemberModel | undefined; + setMember(value?: models_member_pb.MemberModel): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Result, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader( + message: Result, + reader: jspb.BinaryReader + ): Result; + } + + export namespace Result { + export type AsObject = { + member?: models_member_pb.MemberModel.AsObject; + }; + } +} + +export class DeleteMemberRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteMemberRequest + ): DeleteMemberRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteMemberRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberRequest; + static deserializeBinaryFromReader( + message: DeleteMemberRequest, + reader: jspb.BinaryReader + ): DeleteMemberRequest; +} + +export namespace DeleteMemberRequest { + export type AsObject = { + id: string; + }; +} + +export class DeleteMemberResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): DeleteMemberResponse.Result | undefined; + setResult(value?: DeleteMemberResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteMemberResponse + ): DeleteMemberResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteMemberResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberResponse; + static deserializeBinaryFromReader( + message: DeleteMemberResponse, + reader: jspb.BinaryReader + ): DeleteMemberResponse; +} + +export namespace DeleteMemberResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: DeleteMemberResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Result, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader( + message: Result, + reader: jspb.BinaryReader + ): Result; + } + + export namespace Result { + export type AsObject = {}; + } +} diff --git a/src/app/modules/proto/c2se/member_pb.js b/src/app/modules/proto/c2se/member_pb.js new file mode 100644 index 0000000..19c7a68 --- /dev/null +++ b/src/app/modules/proto/c2se/member_pb.js @@ -0,0 +1,6262 @@ +// source: c2se/member.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +var protobuf_rpc_pb = require("../protobuf/rpc_pb.js"); +goog.object.extend(proto, protobuf_rpc_pb); +var protobuf_pagination_pb = require("../protobuf/pagination_pb.js"); +goog.object.extend(proto, protobuf_pagination_pb); +var models_member_pb = require("../models/member_pb.js"); +goog.object.extend(proto, models_member_pb); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.CreateMemberRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.CreateMemberResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.CreateMemberResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.DeleteMemberRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.DeleteMemberResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.DeleteMemberResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.GetMemberByUsernameRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.GetMemberByUsernameResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.GetMemberRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.GetMemberResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.GetMemberResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.ListMembersRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.ListMembersRequest.Search", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.ListMembersResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.ListMembersResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.UpdateMemberForStateRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.UpdateMemberForStateResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.UpdateMemberRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.UpdateMemberResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member.UpdateMemberResponse.Result", + null, + global +); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.CreateMemberRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member.CreateMemberRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.CreateMemberRequest.displayName = + "proto.bet.beteran.c2se.member.CreateMemberRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.displayName = + "proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.CreateMemberResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member.CreateMemberResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.CreateMemberResponse.displayName = + "proto.bet.beteran.c2se.member.CreateMemberResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.Result = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member.CreateMemberResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.CreateMemberResponse.Result.displayName = + "proto.bet.beteran.c2se.member.CreateMemberResponse.Result"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.ListMembersRequest = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.member.ListMembersRequest.repeatedFields_, + null + ); +}; +goog.inherits(proto.bet.beteran.c2se.member.ListMembersRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.ListMembersRequest.displayName = + "proto.bet.beteran.c2se.member.ListMembersRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member.ListMembersRequest.Search, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.ListMembersRequest.Search.displayName = + "proto.bet.beteran.c2se.member.ListMembersRequest.Search"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.ListMembersResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member.ListMembersResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.ListMembersResponse.displayName = + "proto.bet.beteran.c2se.member.ListMembersResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.ListMembersResponse.Result = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.member.ListMembersResponse.Result.repeatedFields_, + null + ); +}; +goog.inherits( + proto.bet.beteran.c2se.member.ListMembersResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.ListMembersResponse.Result.displayName = + "proto.bet.beteran.c2se.member.ListMembersResponse.Result"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.GetMemberRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member.GetMemberRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.GetMemberRequest.displayName = + "proto.bet.beteran.c2se.member.GetMemberRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.GetMemberResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member.GetMemberResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.GetMemberResponse.displayName = + "proto.bet.beteran.c2se.member.GetMemberResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.GetMemberResponse.Result = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member.GetMemberResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.GetMemberResponse.Result.displayName = + "proto.bet.beteran.c2se.member.GetMemberResponse.Result"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member.GetMemberByUsernameRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.GetMemberByUsernameRequest.displayName = + "proto.bet.beteran.c2se.member.GetMemberByUsernameRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member.GetMemberByUsernameResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.displayName = + "proto.bet.beteran.c2se.member.GetMemberByUsernameResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result.displayName = + "proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member.UpdateMemberRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.UpdateMemberRequest.displayName = + "proto.bet.beteran.c2se.member.UpdateMemberRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.displayName = + "proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member.UpdateMemberResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.UpdateMemberResponse.displayName = + "proto.bet.beteran.c2se.member.UpdateMemberResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.Result = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member.UpdateMemberResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.UpdateMemberResponse.Result.displayName = + "proto.bet.beteran.c2se.member.UpdateMemberResponse.Result"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateRequest = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member.UpdateMemberForStateRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.UpdateMemberForStateRequest.displayName = + "proto.bet.beteran.c2se.member.UpdateMemberForStateRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member.UpdateMemberForStateResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.displayName = + "proto.bet.beteran.c2se.member.UpdateMemberForStateResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result.displayName = + "proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.DeleteMemberRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member.DeleteMemberRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.DeleteMemberRequest.displayName = + "proto.bet.beteran.c2se.member.DeleteMemberRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.DeleteMemberResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.member.DeleteMemberResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.DeleteMemberResponse.displayName = + "proto.bet.beteran.c2se.member.DeleteMemberResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member.DeleteMemberResponse.Result = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member.DeleteMemberResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member.DeleteMemberResponse.Result.displayName = + "proto.bet.beteran.c2se.member.DeleteMemberResponse.Result"; +} + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.CreateMemberRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.CreateMemberRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.CreateMemberRequest.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + siteId: jspb.Message.getFieldWithDefault(msg, 1, ""), + memberClassId: jspb.Message.getFieldWithDefault(msg, 2, ""), + memberLevelId: jspb.Message.getFieldWithDefault(msg, 3, ""), + referrerMemberUsername: jspb.Message.getFieldWithDefault(msg, 4, ""), + username: jspb.Message.getFieldWithDefault(msg, 5, ""), + password: jspb.Message.getFieldWithDefault(msg, 6, ""), + nickname: jspb.Message.getFieldWithDefault(msg, 7, ""), + mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 8, ""), + bankAccount: + (f = msg.getBankAccount()) && + proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.deserializeBinary = function ( + bytes +) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.CreateMemberRequest(); + return proto.bet.beteran.c2se.member.CreateMemberRequest.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.CreateMemberRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSiteId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberClassId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberLevelId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setReferrerMemberUsername(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setUsername(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setPassword(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setNickname(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setMobilePhoneNumber(value); + break; + case 9: + var value = + new proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount + .deserializeBinaryFromReader + ); + msg.setBankAccount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.CreateMemberRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.CreateMemberRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getSiteId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getMemberClassId(); + if (f.length > 0) { + writer.writeString(2, f); + } + f = message.getMemberLevelId(); + if (f.length > 0) { + writer.writeString(3, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString(4, f); + } + f = message.getUsername(); + if (f.length > 0) { + writer.writeString(5, f); + } + f = message.getPassword(); + if (f.length > 0) { + writer.writeString(6, f); + } + f = message.getNickname(); + if (f.length > 0) { + writer.writeString(7, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeString(8, f); + } + f = message.getBankAccount(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount + .serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.toObject = + function (includeInstance, msg) { + var f, + obj = { + bankId: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + accountNumber: jspb.Message.getFieldWithDefault(msg, 3, ""), + exchangePassword: jspb.Message.getFieldWithDefault(msg, 4, ""), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount(); + return proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setBankId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAccountNumber(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setExchangePassword(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getBankId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString(2, f); + } + f = message.getAccountNumber(); + if (f.length > 0) { + writer.writeString(3, f); + } + f = message.getExchangePassword(); + if (f.length > 0) { + writer.writeString(4, f); + } + }; + +/** + * optional string bank_id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.prototype.getBankId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.prototype.setBankId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional string name = 2; + * @return {string} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.prototype.getName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.prototype.setName = + function (value) { + return jspb.Message.setProto3StringField(this, 2, value); + }; + +/** + * optional string account_number = 3; + * @return {string} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.prototype.getAccountNumber = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.prototype.setAccountNumber = + function (value) { + return jspb.Message.setProto3StringField(this, 3, value); + }; + +/** + * optional string exchange_password = 4; + * @return {string} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.prototype.getExchangePassword = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount.prototype.setExchangePassword = + function (value) { + return jspb.Message.setProto3StringField(this, 4, value); + }; + +/** + * optional string site_id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.getSiteId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.setSiteId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional string member_class_id = 2; + * @return {string} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.getMemberClassId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.setMemberClassId = + function (value) { + return jspb.Message.setProto3StringField(this, 2, value); + }; + +/** + * optional string member_level_id = 3; + * @return {string} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.getMemberLevelId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.setMemberLevelId = + function (value) { + return jspb.Message.setProto3StringField(this, 3, value); + }; + +/** + * optional string referrer_member_username = 4; + * @return {string} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.getReferrerMemberUsername = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.setReferrerMemberUsername = + function (value) { + return jspb.Message.setField(this, 4, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.clearReferrerMemberUsername = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.hasReferrerMemberUsername = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional string username = 5; + * @return {string} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.getUsername = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.setUsername = + function (value) { + return jspb.Message.setProto3StringField(this, 5, value); + }; + +/** + * optional string password = 6; + * @return {string} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.getPassword = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 6, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.setPassword = + function (value) { + return jspb.Message.setProto3StringField(this, 6, value); + }; + +/** + * optional string nickname = 7; + * @return {string} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.getNickname = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 7, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.setNickname = + function (value) { + return jspb.Message.setProto3StringField(this, 7, value); + }; + +/** + * optional string mobile_phone_number = 8; + * @return {string} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.getMobilePhoneNumber = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 8, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.setMobilePhoneNumber = + function (value) { + return jspb.Message.setField(this, 8, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.clearMobilePhoneNumber = + function () { + return jspb.Message.setField(this, 8, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.hasMobilePhoneNumber = + function () { + return jspb.Message.getField(this, 8) != null; + }; + +/** + * optional BankAccount bank_account = 9; + * @return {?proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.getBankAccount = + function () { + return /** @type{?proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount, + 9 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member.CreateMemberRequest.BankAccount|undefined} value + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.setBankAccount = + function (value) { + return jspb.Message.setWrapperField(this, 9, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.clearBankAccount = + function () { + return this.setBankAccount(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.hasBankAccount = + function () { + return jspb.Message.getField(this, 9) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.CreateMemberResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.CreateMemberResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.CreateMemberResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.CreateMemberResponse.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member.CreateMemberResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.CreateMemberResponse} + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.CreateMemberResponse(); + return proto.bet.beteran.c2se.member.CreateMemberResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.CreateMemberResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.CreateMemberResponse} + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member.CreateMemberResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member.CreateMemberResponse.Result + .deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.CreateMemberResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.CreateMemberResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member.CreateMemberResponse.Result + .serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.CreateMemberResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.CreateMemberResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.CreateMemberResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.CreateMemberResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + member: + (f = msg.getMember()) && + models_member_pb.MemberModel.toObject(includeInstance, f), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.CreateMemberResponse.Result} + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.CreateMemberResponse.Result(); + return proto.bet.beteran.c2se.member.CreateMemberResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.CreateMemberResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.CreateMemberResponse.Result} + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_pb.MemberModel(); + reader.readMessage( + value, + models_member_pb.MemberModel.deserializeBinaryFromReader + ); + msg.setMember(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.CreateMemberResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.CreateMemberResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMember(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_pb.MemberModel.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member.MemberModel member = 1; + * @return {?proto.bet.beteran.member.MemberModel} + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.Result.prototype.getMember = + function () { + return /** @type{?proto.bet.beteran.member.MemberModel} */ ( + jspb.Message.getWrapperField(this, models_member_pb.MemberModel, 1) + ); + }; + +/** + * @param {?proto.bet.beteran.member.MemberModel|undefined} value + * @return {!proto.bet.beteran.c2se.member.CreateMemberResponse.Result} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.Result.prototype.setMember = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.CreateMemberResponse.Result} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.Result.prototype.clearMember = + function () { + return this.setMember(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.Result.prototype.hasMember = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member.CreateMemberResponse} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.CreateMemberResponse} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member.CreateMemberResponse.Result} + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member.CreateMemberResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member.CreateMemberResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member.CreateMemberResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member.CreateMemberResponse} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.CreateMemberResponse} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.CreateMemberResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member.ListMembersRequest.repeatedFields_ = [2]; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.ListMembersRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.ListMembersRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.ListMembersRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.ListMembersRequest.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + pagination: + (f = msg.getPagination()) && + protobuf_pagination_pb.Pagination.toObject(includeInstance, f), + sortsList: jspb.Message.toObjectList( + msg.getSortsList(), + protobuf_pagination_pb.Sort.toObject, + includeInstance + ), + search: + (f = msg.getSearch()) && + proto.bet.beteran.c2se.member.ListMembersRequest.Search.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.deserializeBinary = function ( + bytes +) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.ListMembersRequest(); + return proto.bet.beteran.c2se.member.ListMembersRequest.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.ListMembersRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_pagination_pb.Pagination(); + reader.readMessage( + value, + protobuf_pagination_pb.Pagination.deserializeBinaryFromReader + ); + msg.setPagination(value); + break; + case 2: + var value = new protobuf_pagination_pb.Sort(); + reader.readMessage( + value, + protobuf_pagination_pb.Sort.deserializeBinaryFromReader + ); + msg.addSorts(value); + break; + case 3: + var value = + new proto.bet.beteran.c2se.member.ListMembersRequest.Search(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member.ListMembersRequest.Search + .deserializeBinaryFromReader + ); + msg.setSearch(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.ListMembersRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.ListMembersRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.ListMembersRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_pagination_pb.Pagination.serializeBinaryToWriter + ); + } + f = message.getSortsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + protobuf_pagination_pb.Sort.serializeBinaryToWriter + ); + } + f = message.getSearch(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.bet.beteran.c2se.member.ListMembersRequest.Search + .serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.ListMembersRequest.Search.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.ListMembersRequest.Search.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + siteId: jspb.Message.getFieldWithDefault(msg, 1, ""), + memberClassId: jspb.Message.getFieldWithDefault(msg, 2, ""), + memberLevelId: jspb.Message.getFieldWithDefault(msg, 3, ""), + referrerMemberId: jspb.Message.getFieldWithDefault(msg, 4, ""), + usernameLike: jspb.Message.getFieldWithDefault(msg, 5, ""), + nicknameLike: jspb.Message.getFieldWithDefault(msg, 6, ""), + mobilePhoneNumberLike: jspb.Message.getFieldWithDefault(msg, 7, ""), + lastSigninedIp: jspb.Message.getFieldWithDefault(msg, 8, ""), + state: jspb.Message.getFieldWithDefault(msg, 9, 0), + deletedAt: jspb.Message.getFieldWithDefault(msg, 10, 0), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.ListMembersRequest.Search(); + return proto.bet.beteran.c2se.member.ListMembersRequest.Search.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSiteId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberClassId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberLevelId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setReferrerMemberId(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setUsernameLike(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setNicknameLike(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setMobilePhoneNumberLike(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setLastSigninedIp(value); + break; + case 9: + var value = /** @type {!proto.bet.beteran.member.MemberState} */ ( + reader.readEnum() + ); + msg.setState(value); + break; + case 10: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDeletedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.ListMembersRequest.Search.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString(1, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString(2, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString(3, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString(4, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeString(5, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeString(6, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeString(7, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeString(8, f); + } + f = /** @type {!proto.bet.beteran.member.MemberState} */ ( + jspb.Message.getField(message, 9) + ); + if (f != null) { + writer.writeEnum(9, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 10)); + if (f != null) { + writer.writeUint64(10, f); + } + }; + +/** + * optional string site_id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getSiteId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setSiteId = + function (value) { + return jspb.Message.setField(this, 1, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearSiteId = + function () { + return jspb.Message.setField(this, 1, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasSiteId = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional string member_class_id = 2; + * @return {string} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getMemberClassId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setMemberClassId = + function (value) { + return jspb.Message.setField(this, 2, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearMemberClassId = + function () { + return jspb.Message.setField(this, 2, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasMemberClassId = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +/** + * optional string member_level_id = 3; + * @return {string} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getMemberLevelId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setMemberLevelId = + function (value) { + return jspb.Message.setField(this, 3, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearMemberLevelId = + function () { + return jspb.Message.setField(this, 3, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasMemberLevelId = + function () { + return jspb.Message.getField(this, 3) != null; + }; + +/** + * optional string referrer_member_id = 4; + * @return {string} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getReferrerMemberId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setReferrerMemberId = + function (value) { + return jspb.Message.setField(this, 4, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearReferrerMemberId = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasReferrerMemberId = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional string username_like = 5; + * @return {string} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getUsernameLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setUsernameLike = + function (value) { + return jspb.Message.setField(this, 5, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearUsernameLike = + function () { + return jspb.Message.setField(this, 5, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasUsernameLike = + function () { + return jspb.Message.getField(this, 5) != null; + }; + +/** + * optional string nickname_like = 6; + * @return {string} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getNicknameLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 6, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setNicknameLike = + function (value) { + return jspb.Message.setField(this, 6, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearNicknameLike = + function () { + return jspb.Message.setField(this, 6, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasNicknameLike = + function () { + return jspb.Message.getField(this, 6) != null; + }; + +/** + * optional string mobile_phone_number_like = 7; + * @return {string} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getMobilePhoneNumberLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 7, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setMobilePhoneNumberLike = + function (value) { + return jspb.Message.setField(this, 7, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearMobilePhoneNumberLike = + function () { + return jspb.Message.setField(this, 7, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasMobilePhoneNumberLike = + function () { + return jspb.Message.getField(this, 7) != null; + }; + +/** + * optional string last_signined_ip = 8; + * @return {string} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getLastSigninedIp = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 8, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setLastSigninedIp = + function (value) { + return jspb.Message.setField(this, 8, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearLastSigninedIp = + function () { + return jspb.Message.setField(this, 8, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasLastSigninedIp = + function () { + return jspb.Message.getField(this, 8) != null; + }; + +/** + * optional bet.beteran.member.MemberState state = 9; + * @return {!proto.bet.beteran.member.MemberState} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getState = + function () { + return /** @type {!proto.bet.beteran.member.MemberState} */ ( + jspb.Message.getFieldWithDefault(this, 9, 0) + ); + }; + +/** + * @param {!proto.bet.beteran.member.MemberState} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setState = + function (value) { + return jspb.Message.setField(this, 9, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearState = + function () { + return jspb.Message.setField(this, 9, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasState = + function () { + return jspb.Message.getField(this, 9) != null; + }; + +/** + * optional uint64 deleted_at = 10; + * @return {number} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getDeletedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 10, 0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setDeletedAt = + function (value) { + return jspb.Message.setField(this, 10, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearDeletedAt = + function () { + return jspb.Message.setField(this, 10, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasDeletedAt = + function () { + return jspb.Message.getField(this, 10) != null; + }; + +/** + * optional bet.protobuf.pagination.Pagination pagination = 1; + * @return {?proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.prototype.getPagination = + function () { + return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( + jspb.Message.getWrapperField(this, protobuf_pagination_pb.Pagination, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.prototype.setPagination = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.prototype.clearPagination = + function () { + return this.setPagination(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.prototype.hasPagination = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * repeated bet.protobuf.pagination.Sort sorts = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.prototype.getSortsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, protobuf_pagination_pb.Sort, 2) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.prototype.setSortsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); + }; + +/** + * @param {!proto.bet.protobuf.pagination.Sort=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Sort} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.prototype.addSorts = function ( + opt_value, + opt_index +) { + return jspb.Message.addToRepeatedWrapperField( + this, + 2, + opt_value, + proto.bet.protobuf.pagination.Sort, + opt_index + ); +}; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.prototype.clearSortsList = + function () { + return this.setSortsList([]); + }; + +/** + * optional Search search = 3; + * @return {?proto.bet.beteran.c2se.member.ListMembersRequest.Search} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.prototype.getSearch = + function () { + return /** @type{?proto.bet.beteran.c2se.member.ListMembersRequest.Search} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member.ListMembersRequest.Search, + 3 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member.ListMembersRequest.Search|undefined} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.prototype.setSearch = + function (value) { + return jspb.Message.setWrapperField(this, 3, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.prototype.clearSearch = + function () { + return this.setSearch(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.prototype.hasSearch = + function () { + return jspb.Message.getField(this, 3) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.ListMembersResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.ListMembersResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.ListMembersResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.ListMembersResponse.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member.ListMembersResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.ListMembersResponse} + */ +proto.bet.beteran.c2se.member.ListMembersResponse.deserializeBinary = function ( + bytes +) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.ListMembersResponse(); + return proto.bet.beteran.c2se.member.ListMembersResponse.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.ListMembersResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.ListMembersResponse} + */ +proto.bet.beteran.c2se.member.ListMembersResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member.ListMembersResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member.ListMembersResponse.Result + .deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.ListMembersResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.ListMembersResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.ListMembersResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.ListMembersResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member.ListMembersResponse.Result + .serializeBinaryToWriter + ); + } + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member.ListMembersResponse.Result.repeatedFields_ = [1]; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.ListMembersResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.ListMembersResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.ListMembersResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.ListMembersResponse.Result.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + membersList: jspb.Message.toObjectList( + msg.getMembersList(), + models_member_pb.MemberModel.toObject, + includeInstance + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.ListMembersResponse.Result} + */ +proto.bet.beteran.c2se.member.ListMembersResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.ListMembersResponse.Result(); + return proto.bet.beteran.c2se.member.ListMembersResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.ListMembersResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.ListMembersResponse.Result} + */ +proto.bet.beteran.c2se.member.ListMembersResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_pb.MemberModel(); + reader.readMessage( + value, + models_member_pb.MemberModel.deserializeBinaryFromReader + ); + msg.addMembers(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.ListMembersResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.ListMembersResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.ListMembersResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.ListMembersResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMembersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + models_member_pb.MemberModel.serializeBinaryToWriter + ); + } + }; + +/** + * repeated bet.beteran.member.MemberModel members = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.member.ListMembersResponse.Result.prototype.getMembersList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + models_member_pb.MemberModel, + 1 + ) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member.ListMembersResponse.Result} returns this + */ +proto.bet.beteran.c2se.member.ListMembersResponse.Result.prototype.setMembersList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); + }; + +/** + * @param {!proto.bet.beteran.member.MemberModel=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.member.MemberModel} + */ +proto.bet.beteran.c2se.member.ListMembersResponse.Result.prototype.addMembers = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 1, + opt_value, + proto.bet.beteran.member.MemberModel, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member.ListMembersResponse.Result} returns this + */ +proto.bet.beteran.c2se.member.ListMembersResponse.Result.prototype.clearMembersList = + function () { + return this.setMembersList([]); + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member.ListMembersResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member.ListMembersResponse} returns this + */ +proto.bet.beteran.c2se.member.ListMembersResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersResponse} returns this + */ +proto.bet.beteran.c2se.member.ListMembersResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member.ListMembersResponse.Result} + */ +proto.bet.beteran.c2se.member.ListMembersResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member.ListMembersResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member.ListMembersResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member.ListMembersResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member.ListMembersResponse} returns this + */ +proto.bet.beteran.c2se.member.ListMembersResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersResponse} returns this + */ +proto.bet.beteran.c2se.member.ListMembersResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.GetMemberRequest.prototype.toObject = function ( + opt_includeInstance + ) { + return proto.bet.beteran.c2se.member.GetMemberRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.GetMemberRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.GetMemberRequest.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.GetMemberRequest} + */ +proto.bet.beteran.c2se.member.GetMemberRequest.deserializeBinary = function ( + bytes +) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.GetMemberRequest(); + return proto.bet.beteran.c2se.member.GetMemberRequest.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.GetMemberRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.GetMemberRequest} + */ +proto.bet.beteran.c2se.member.GetMemberRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.GetMemberRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.GetMemberRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.GetMemberRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.GetMemberRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member.GetMemberRequest.prototype.getId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.GetMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.GetMemberRequest.prototype.setId = function ( + value +) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.GetMemberResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.GetMemberResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.GetMemberResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.GetMemberResponse.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member.GetMemberResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.GetMemberResponse} + */ +proto.bet.beteran.c2se.member.GetMemberResponse.deserializeBinary = function ( + bytes +) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.GetMemberResponse(); + return proto.bet.beteran.c2se.member.GetMemberResponse.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.GetMemberResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.GetMemberResponse} + */ +proto.bet.beteran.c2se.member.GetMemberResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member.GetMemberResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member.GetMemberResponse.Result + .deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.GetMemberResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.GetMemberResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.GetMemberResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.GetMemberResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member.GetMemberResponse.Result + .serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.GetMemberResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.GetMemberResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.GetMemberResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.GetMemberResponse.Result.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + member: + (f = msg.getMember()) && + models_member_pb.MemberModel.toObject(includeInstance, f), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.GetMemberResponse.Result} + */ +proto.bet.beteran.c2se.member.GetMemberResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.GetMemberResponse.Result(); + return proto.bet.beteran.c2se.member.GetMemberResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.GetMemberResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.GetMemberResponse.Result} + */ +proto.bet.beteran.c2se.member.GetMemberResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_pb.MemberModel(); + reader.readMessage( + value, + models_member_pb.MemberModel.deserializeBinaryFromReader + ); + msg.setMember(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.GetMemberResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.GetMemberResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.GetMemberResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.GetMemberResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMember(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_pb.MemberModel.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member.MemberModel member = 1; + * @return {?proto.bet.beteran.member.MemberModel} + */ +proto.bet.beteran.c2se.member.GetMemberResponse.Result.prototype.getMember = + function () { + return /** @type{?proto.bet.beteran.member.MemberModel} */ ( + jspb.Message.getWrapperField(this, models_member_pb.MemberModel, 1) + ); + }; + +/** + * @param {?proto.bet.beteran.member.MemberModel|undefined} value + * @return {!proto.bet.beteran.c2se.member.GetMemberResponse.Result} returns this + */ +proto.bet.beteran.c2se.member.GetMemberResponse.Result.prototype.setMember = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.GetMemberResponse.Result} returns this + */ +proto.bet.beteran.c2se.member.GetMemberResponse.Result.prototype.clearMember = + function () { + return this.setMember(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.GetMemberResponse.Result.prototype.hasMember = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member.GetMemberResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member.GetMemberResponse} returns this + */ +proto.bet.beteran.c2se.member.GetMemberResponse.prototype.setError = function ( + value +) { + return jspb.Message.setWrapperField(this, 1, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.GetMemberResponse} returns this + */ +proto.bet.beteran.c2se.member.GetMemberResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.GetMemberResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member.GetMemberResponse.Result} + */ +proto.bet.beteran.c2se.member.GetMemberResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member.GetMemberResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member.GetMemberResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member.GetMemberResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member.GetMemberResponse} returns this + */ +proto.bet.beteran.c2se.member.GetMemberResponse.prototype.setResult = function ( + value +) { + return jspb.Message.setWrapperField(this, 2, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.GetMemberResponse} returns this + */ +proto.bet.beteran.c2se.member.GetMemberResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.GetMemberResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.GetMemberByUsernameRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.GetMemberByUsernameRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.GetMemberByUsernameRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.GetMemberByUsernameRequest.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + username: jspb.Message.getFieldWithDefault(msg, 1, ""), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.GetMemberByUsernameRequest} + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.GetMemberByUsernameRequest(); + return proto.bet.beteran.c2se.member.GetMemberByUsernameRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.GetMemberByUsernameRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.GetMemberByUsernameRequest} + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setUsername(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.GetMemberByUsernameRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.GetMemberByUsernameRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getUsername(); + if (f.length > 0) { + writer.writeString(1, f); + } + }; + +/** + * optional string username = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameRequest.prototype.getUsername = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.GetMemberByUsernameRequest} returns this + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameRequest.prototype.setUsername = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.GetMemberByUsernameResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.toObject = + function (includeInstance, msg) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.GetMemberByUsernameResponse} + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.GetMemberByUsernameResponse(); + return proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.GetMemberByUsernameResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.GetMemberByUsernameResponse} + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result + .deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.GetMemberByUsernameResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result + .serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + member: + (f = msg.getMember()) && + models_member_pb.MemberModel.toObject(includeInstance, f), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result} + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result(); + return proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result} + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_pb.MemberModel(); + reader.readMessage( + value, + models_member_pb.MemberModel.deserializeBinaryFromReader + ); + msg.setMember(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMember(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_pb.MemberModel.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member.MemberModel member = 1; + * @return {?proto.bet.beteran.member.MemberModel} + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result.prototype.getMember = + function () { + return /** @type{?proto.bet.beteran.member.MemberModel} */ ( + jspb.Message.getWrapperField(this, models_member_pb.MemberModel, 1) + ); + }; + +/** + * @param {?proto.bet.beteran.member.MemberModel|undefined} value + * @return {!proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result} returns this + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result.prototype.setMember = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result} returns this + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result.prototype.clearMember = + function () { + return this.setMember(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result.prototype.hasMember = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member.GetMemberByUsernameResponse} returns this + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.GetMemberByUsernameResponse} returns this + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result} + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member.GetMemberByUsernameResponse} returns this + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.GetMemberByUsernameResponse} returns this + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.GetMemberByUsernameResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.UpdateMemberRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.UpdateMemberRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.UpdateMemberRequest.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + siteId: jspb.Message.getFieldWithDefault(msg, 2, ""), + memberLevelId: jspb.Message.getFieldWithDefault(msg, 3, ""), + password: jspb.Message.getFieldWithDefault(msg, 4, ""), + mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 5, ""), + bankAccount: + (f = msg.getBankAccount()) && + proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.deserializeBinary = function ( + bytes +) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.UpdateMemberRequest(); + return proto.bet.beteran.c2se.member.UpdateMemberRequest.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.UpdateMemberRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setSiteId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberLevelId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setPassword(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setMobilePhoneNumber(value); + break; + case 6: + var value = + new proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount + .deserializeBinaryFromReader + ); + msg.setBankAccount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.UpdateMemberRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.UpdateMemberRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString(2, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString(3, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString(4, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeString(5, f); + } + f = message.getBankAccount(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount + .serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.toObject = + function (includeInstance, msg) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + bankId: jspb.Message.getFieldWithDefault(msg, 2, ""), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + accountNumber: jspb.Message.getFieldWithDefault(msg, 4, ""), + exchangePassword: jspb.Message.getFieldWithDefault(msg, 5, ""), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount(); + return proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setBankId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAccountNumber(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setExchangePassword(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getBankId(); + if (f.length > 0) { + writer.writeString(2, f); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString(3, f); + } + f = message.getAccountNumber(); + if (f.length > 0) { + writer.writeString(4, f); + } + f = message.getExchangePassword(); + if (f.length > 0) { + writer.writeString(5, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional string bank_id = 2; + * @return {string} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.prototype.getBankId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.prototype.setBankId = + function (value) { + return jspb.Message.setProto3StringField(this, 2, value); + }; + +/** + * optional string name = 3; + * @return {string} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.prototype.getName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.prototype.setName = + function (value) { + return jspb.Message.setProto3StringField(this, 3, value); + }; + +/** + * optional string account_number = 4; + * @return {string} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.prototype.getAccountNumber = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.prototype.setAccountNumber = + function (value) { + return jspb.Message.setProto3StringField(this, 4, value); + }; + +/** + * optional string exchange_password = 5; + * @return {string} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.prototype.getExchangePassword = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount.prototype.setExchangePassword = + function (value) { + return jspb.Message.setProto3StringField(this, 5, value); + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.setId = function ( + value +) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + +/** + * optional string site_id = 2; + * @return {string} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.getSiteId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.setSiteId = + function (value) { + return jspb.Message.setField(this, 2, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.clearSiteId = + function () { + return jspb.Message.setField(this, 2, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.hasSiteId = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +/** + * optional string member_level_id = 3; + * @return {string} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.getMemberLevelId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.setMemberLevelId = + function (value) { + return jspb.Message.setField(this, 3, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.clearMemberLevelId = + function () { + return jspb.Message.setField(this, 3, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.hasMemberLevelId = + function () { + return jspb.Message.getField(this, 3) != null; + }; + +/** + * optional string password = 4; + * @return {string} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.getPassword = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.setPassword = + function (value) { + return jspb.Message.setField(this, 4, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.clearPassword = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.hasPassword = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional string mobile_phone_number = 5; + * @return {string} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.getMobilePhoneNumber = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.setMobilePhoneNumber = + function (value) { + return jspb.Message.setField(this, 5, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.clearMobilePhoneNumber = + function () { + return jspb.Message.setField(this, 5, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.hasMobilePhoneNumber = + function () { + return jspb.Message.getField(this, 5) != null; + }; + +/** + * optional BankAccount bank_account = 6; + * @return {?proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.getBankAccount = + function () { + return /** @type{?proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount, + 6 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member.UpdateMemberRequest.BankAccount|undefined} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.setBankAccount = + function (value) { + return jspb.Message.setWrapperField(this, 6, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.clearBankAccount = + function () { + return this.setBankAccount(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.UpdateMemberRequest.prototype.hasBankAccount = + function () { + return jspb.Message.getField(this, 6) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.UpdateMemberResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.UpdateMemberResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.UpdateMemberResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.UpdateMemberResponse.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member.UpdateMemberResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberResponse} + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.UpdateMemberResponse(); + return proto.bet.beteran.c2se.member.UpdateMemberResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.UpdateMemberResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberResponse} + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member.UpdateMemberResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member.UpdateMemberResponse.Result + .deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.UpdateMemberResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.UpdateMemberResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member.UpdateMemberResponse.Result + .serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.UpdateMemberResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.UpdateMemberResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.UpdateMemberResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.UpdateMemberResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + member: + (f = msg.getMember()) && + models_member_pb.MemberModel.toObject(includeInstance, f), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberResponse.Result} + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.UpdateMemberResponse.Result(); + return proto.bet.beteran.c2se.member.UpdateMemberResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.UpdateMemberResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberResponse.Result} + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_pb.MemberModel(); + reader.readMessage( + value, + models_member_pb.MemberModel.deserializeBinaryFromReader + ); + msg.setMember(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.UpdateMemberResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.UpdateMemberResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMember(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_pb.MemberModel.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member.MemberModel member = 1; + * @return {?proto.bet.beteran.member.MemberModel} + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.Result.prototype.getMember = + function () { + return /** @type{?proto.bet.beteran.member.MemberModel} */ ( + jspb.Message.getWrapperField(this, models_member_pb.MemberModel, 1) + ); + }; + +/** + * @param {?proto.bet.beteran.member.MemberModel|undefined} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberResponse.Result} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.Result.prototype.setMember = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberResponse.Result} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.Result.prototype.clearMember = + function () { + return this.setMember(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.Result.prototype.hasMember = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberResponse} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberResponse} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member.UpdateMemberResponse.Result} + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member.UpdateMemberResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member.UpdateMemberResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member.UpdateMemberResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberResponse} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberResponse} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.UpdateMemberResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.UpdateMemberForStateRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.UpdateMemberForStateRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.UpdateMemberForStateRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.UpdateMemberForStateRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + state: jspb.Message.getFieldWithDefault(msg, 2, 0), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberForStateRequest} + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.UpdateMemberForStateRequest(); + return proto.bet.beteran.c2se.member.UpdateMemberForStateRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.UpdateMemberForStateRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberForStateRequest} + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {!proto.bet.beteran.member.MemberState} */ ( + reader.readEnum() + ); + msg.setState(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.UpdateMemberForStateRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.UpdateMemberForStateRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getState(); + if (f !== 0.0) { + writer.writeEnum(2, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberForStateRequest} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateRequest.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional bet.beteran.member.MemberState state = 2; + * @return {!proto.bet.beteran.member.MemberState} + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateRequest.prototype.getState = + function () { + return /** @type {!proto.bet.beteran.member.MemberState} */ ( + jspb.Message.getFieldWithDefault(this, 2, 0) + ); + }; + +/** + * @param {!proto.bet.beteran.member.MemberState} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberForStateRequest} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateRequest.prototype.setState = + function (value) { + return jspb.Message.setProto3EnumField(this, 2, value); + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.UpdateMemberForStateResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.toObject = + function (includeInstance, msg) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberForStateResponse} + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.UpdateMemberForStateResponse(); + return proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.UpdateMemberForStateResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberForStateResponse} + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result + .deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.UpdateMemberForStateResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result + .serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + member: + (f = msg.getMember()) && + models_member_pb.MemberModel.toObject(includeInstance, f), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result} + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result(); + return proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result} + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_pb.MemberModel(); + reader.readMessage( + value, + models_member_pb.MemberModel.deserializeBinaryFromReader + ); + msg.setMember(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMember(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_pb.MemberModel.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member.MemberModel member = 1; + * @return {?proto.bet.beteran.member.MemberModel} + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result.prototype.getMember = + function () { + return /** @type{?proto.bet.beteran.member.MemberModel} */ ( + jspb.Message.getWrapperField(this, models_member_pb.MemberModel, 1) + ); + }; + +/** + * @param {?proto.bet.beteran.member.MemberModel|undefined} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result.prototype.setMember = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result.prototype.clearMember = + function () { + return this.setMember(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result.prototype.hasMember = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberForStateResponse} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberForStateResponse} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result} + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member.UpdateMemberForStateResponse} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.UpdateMemberForStateResponse} returns this + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.UpdateMemberForStateResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.DeleteMemberRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.DeleteMemberRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.DeleteMemberRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.DeleteMemberRequest.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.DeleteMemberRequest} + */ +proto.bet.beteran.c2se.member.DeleteMemberRequest.deserializeBinary = function ( + bytes +) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.DeleteMemberRequest(); + return proto.bet.beteran.c2se.member.DeleteMemberRequest.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.DeleteMemberRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.DeleteMemberRequest} + */ +proto.bet.beteran.c2se.member.DeleteMemberRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.DeleteMemberRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.DeleteMemberRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.DeleteMemberRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.DeleteMemberRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member.DeleteMemberRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.DeleteMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.DeleteMemberRequest.prototype.setId = function ( + value +) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.DeleteMemberResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.DeleteMemberResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.DeleteMemberResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.DeleteMemberResponse.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member.DeleteMemberResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.DeleteMemberResponse} + */ +proto.bet.beteran.c2se.member.DeleteMemberResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.DeleteMemberResponse(); + return proto.bet.beteran.c2se.member.DeleteMemberResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.DeleteMemberResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.DeleteMemberResponse} + */ +proto.bet.beteran.c2se.member.DeleteMemberResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member.DeleteMemberResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member.DeleteMemberResponse.Result + .deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.DeleteMemberResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.DeleteMemberResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.DeleteMemberResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.DeleteMemberResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member.DeleteMemberResponse.Result + .serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member.DeleteMemberResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member.DeleteMemberResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member.DeleteMemberResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member.DeleteMemberResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = {}; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member.DeleteMemberResponse.Result} + */ +proto.bet.beteran.c2se.member.DeleteMemberResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.member.DeleteMemberResponse.Result(); + return proto.bet.beteran.c2se.member.DeleteMemberResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member.DeleteMemberResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member.DeleteMemberResponse.Result} + */ +proto.bet.beteran.c2se.member.DeleteMemberResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member.DeleteMemberResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member.DeleteMemberResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member.DeleteMemberResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member.DeleteMemberResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member.DeleteMemberResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member.DeleteMemberResponse} returns this + */ +proto.bet.beteran.c2se.member.DeleteMemberResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.DeleteMemberResponse} returns this + */ +proto.bet.beteran.c2se.member.DeleteMemberResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.DeleteMemberResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member.DeleteMemberResponse.Result} + */ +proto.bet.beteran.c2se.member.DeleteMemberResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member.DeleteMemberResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member.DeleteMemberResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member.DeleteMemberResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member.DeleteMemberResponse} returns this + */ +proto.bet.beteran.c2se.member.DeleteMemberResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member.DeleteMemberResponse} returns this + */ +proto.bet.beteran.c2se.member.DeleteMemberResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.DeleteMemberResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +goog.object.extend(exports, proto.bet.beteran.c2se.member); diff --git a/src/app/modules/proto/c2se/site_pb.d.ts b/src/app/modules/proto/c2se/site_pb.d.ts new file mode 100644 index 0000000..8ad3f6d --- /dev/null +++ b/src/app/modules/proto/c2se/site_pb.d.ts @@ -0,0 +1,486 @@ +// package: bet.beteran.c2se.site +// file: c2se/site.proto + +import * as jspb from "google-protobuf"; +import * as protobuf_rpc_pb from "../protobuf/rpc_pb"; +import * as protobuf_pagination_pb from "../protobuf/pagination_pb"; +import * as models_site_pb from "../models/site_pb"; + +export class CreateSiteRequest extends jspb.Message { + getUrl(): string; + setUrl(value: string): void; + + hasName(): boolean; + clearName(): void; + getName(): string; + setName(value: string): void; + + hasPath(): boolean; + clearPath(): void; + getPath(): string; + setPath(value: string): void; + + getShow(): boolean; + setShow(value: boolean): void; + + getCanUse(): boolean; + setCanUse(value: boolean): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + hasExpiresAt(): boolean; + clearExpiresAt(): void; + getExpiresAt(): number; + setExpiresAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateSiteRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateSiteRequest): CreateSiteRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateSiteRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateSiteRequest; + static deserializeBinaryFromReader(message: CreateSiteRequest, reader: jspb.BinaryReader): CreateSiteRequest; +} + +export namespace CreateSiteRequest { + export type AsObject = { + url: string, + name: string, + path: string, + show: boolean, + canUse: boolean, + memo: string, + expiresAt: number, + } +} + +export class CreateSiteResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): CreateSiteResponse.Result | undefined; + setResult(value?: CreateSiteResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateSiteResponse.AsObject; + static toObject(includeInstance: boolean, msg: CreateSiteResponse): CreateSiteResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateSiteResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateSiteResponse; + static deserializeBinaryFromReader(message: CreateSiteResponse, reader: jspb.BinaryReader): CreateSiteResponse; +} + +export namespace CreateSiteResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: CreateSiteResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasSite(): boolean; + clearSite(): void; + getSite(): models_site_pb.Site | undefined; + setSite(value?: models_site_pb.Site): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + site?: models_site_pb.Site.AsObject, + } + } +} + +export class ListSitesRequest extends jspb.Message { + hasPagination(): boolean; + clearPagination(): void; + getPagination(): protobuf_pagination_pb.Pagination | undefined; + setPagination(value?: protobuf_pagination_pb.Pagination): void; + + clearSortsList(): void; + getSortsList(): Array; + setSortsList(value: Array): void; + addSorts(value?: protobuf_pagination_pb.Sort, index?: number): protobuf_pagination_pb.Sort; + + hasSearch(): boolean; + clearSearch(): void; + getSearch(): ListSitesRequest.Search | undefined; + setSearch(value?: ListSitesRequest.Search): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListSitesRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListSitesRequest): ListSitesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListSitesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListSitesRequest; + static deserializeBinaryFromReader(message: ListSitesRequest, reader: jspb.BinaryReader): ListSitesRequest; +} + +export namespace ListSitesRequest { + export type AsObject = { + pagination?: protobuf_pagination_pb.Pagination.AsObject, + sortsList: Array, + search?: ListSitesRequest.Search.AsObject, + } + + export class Search extends jspb.Message { + hasUrlLike(): boolean; + clearUrlLike(): void; + getUrlLike(): string; + setUrlLike(value: string): void; + + hasNameLike(): boolean; + clearNameLike(): void; + getNameLike(): string; + setNameLike(value: string): void; + + hasPathLike(): boolean; + clearPathLike(): void; + getPathLike(): string; + setPathLike(value: string): void; + + hasShow(): boolean; + clearShow(): void; + getShow(): boolean; + setShow(value: boolean): void; + + hasCanUse(): boolean; + clearCanUse(): void; + getCanUse(): boolean; + setCanUse(value: boolean): void; + + hasMemoLike(): boolean; + clearMemoLike(): void; + getMemoLike(): string; + setMemoLike(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Search.AsObject; + static toObject(includeInstance: boolean, msg: Search): Search.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Search, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Search; + static deserializeBinaryFromReader(message: Search, reader: jspb.BinaryReader): Search; + } + + export namespace Search { + export type AsObject = { + urlLike: string, + nameLike: string, + pathLike: string, + show: boolean, + canUse: boolean, + memoLike: string, + } + } +} + +export class ListSitesResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): ListSitesResponse.Result | undefined; + setResult(value?: ListSitesResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListSitesResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListSitesResponse): ListSitesResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListSitesResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListSitesResponse; + static deserializeBinaryFromReader(message: ListSitesResponse, reader: jspb.BinaryReader): ListSitesResponse; +} + +export namespace ListSitesResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: ListSitesResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + clearSitesList(): void; + getSitesList(): Array; + setSitesList(value: Array): void; + addSites(value?: models_site_pb.Site, index?: number): models_site_pb.Site; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + sitesList: Array, + } + } +} + +export class GetSiteRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetSiteRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetSiteRequest): GetSiteRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetSiteRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetSiteRequest; + static deserializeBinaryFromReader(message: GetSiteRequest, reader: jspb.BinaryReader): GetSiteRequest; +} + +export namespace GetSiteRequest { + export type AsObject = { + id: string, + } +} + +export class GetSiteResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): GetSiteResponse.Result | undefined; + setResult(value?: GetSiteResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetSiteResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetSiteResponse): GetSiteResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetSiteResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetSiteResponse; + static deserializeBinaryFromReader(message: GetSiteResponse, reader: jspb.BinaryReader): GetSiteResponse; +} + +export namespace GetSiteResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: GetSiteResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasSite(): boolean; + clearSite(): void; + getSite(): models_site_pb.Site | undefined; + setSite(value?: models_site_pb.Site): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + site?: models_site_pb.Site.AsObject, + } + } +} + +export class UpdateSiteRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getUrl(): string; + setUrl(value: string): void; + + hasName(): boolean; + clearName(): void; + getName(): string; + setName(value: string): void; + + hasPath(): boolean; + clearPath(): void; + getPath(): string; + setPath(value: string): void; + + getShow(): boolean; + setShow(value: boolean): void; + + getCanUse(): boolean; + setCanUse(value: boolean): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + hasExpiresAt(): boolean; + clearExpiresAt(): void; + getExpiresAt(): number; + setExpiresAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateSiteRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateSiteRequest): UpdateSiteRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateSiteRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateSiteRequest; + static deserializeBinaryFromReader(message: UpdateSiteRequest, reader: jspb.BinaryReader): UpdateSiteRequest; +} + +export namespace UpdateSiteRequest { + export type AsObject = { + id: string, + url: string, + name: string, + path: string, + show: boolean, + canUse: boolean, + memo: string, + expiresAt: number, + } +} + +export class UpdateSiteResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): UpdateSiteResponse.Result | undefined; + setResult(value?: UpdateSiteResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateSiteResponse.AsObject; + static toObject(includeInstance: boolean, msg: UpdateSiteResponse): UpdateSiteResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateSiteResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateSiteResponse; + static deserializeBinaryFromReader(message: UpdateSiteResponse, reader: jspb.BinaryReader): UpdateSiteResponse; +} + +export namespace UpdateSiteResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: UpdateSiteResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + hasSite(): boolean; + clearSite(): void; + getSite(): models_site_pb.Site | undefined; + setSite(value?: models_site_pb.Site): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + site?: models_site_pb.Site.AsObject, + } + } +} + +export class DeleteSiteRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteSiteRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteSiteRequest): DeleteSiteRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteSiteRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteSiteRequest; + static deserializeBinaryFromReader(message: DeleteSiteRequest, reader: jspb.BinaryReader): DeleteSiteRequest; +} + +export namespace DeleteSiteRequest { + export type AsObject = { + id: string, + } +} + +export class DeleteSiteResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): DeleteSiteResponse.Result | undefined; + setResult(value?: DeleteSiteResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteSiteResponse.AsObject; + static toObject(includeInstance: boolean, msg: DeleteSiteResponse): DeleteSiteResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteSiteResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteSiteResponse; + static deserializeBinaryFromReader(message: DeleteSiteResponse, reader: jspb.BinaryReader): DeleteSiteResponse; +} + +export namespace DeleteSiteResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject, + result?: DeleteSiteResponse.Result.AsObject, + } + + export class Result extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Result, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader(message: Result, reader: jspb.BinaryReader): Result; + } + + export namespace Result { + export type AsObject = { + } + } +} + diff --git a/src/app/modules/proto/c2se/site_pb.js b/src/app/modules/proto/c2se/site_pb.js new file mode 100644 index 0000000..243bf29 --- /dev/null +++ b/src/app/modules/proto/c2se/site_pb.js @@ -0,0 +1,3804 @@ +// source: c2se/site.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +var protobuf_rpc_pb = require('../protobuf/rpc_pb.js'); +goog.object.extend(proto, protobuf_rpc_pb); +var protobuf_pagination_pb = require('../protobuf/pagination_pb.js'); +goog.object.extend(proto, protobuf_pagination_pb); +var models_site_pb = require('../models/site_pb.js'); +goog.object.extend(proto, models_site_pb); +goog.exportSymbol('proto.bet.beteran.c2se.site.CreateSiteRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.site.CreateSiteResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.site.CreateSiteResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.site.DeleteSiteRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.site.DeleteSiteResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.site.DeleteSiteResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.site.GetSiteRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.site.GetSiteResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.site.GetSiteResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.site.ListSitesRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.site.ListSitesRequest.Search', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.site.ListSitesResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.site.ListSitesResponse.Result', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.site.UpdateSiteRequest', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.site.UpdateSiteResponse', null, global); +goog.exportSymbol('proto.bet.beteran.c2se.site.UpdateSiteResponse.Result', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.site.CreateSiteRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.site.CreateSiteRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.site.CreateSiteRequest.displayName = 'proto.bet.beteran.c2se.site.CreateSiteRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.site.CreateSiteResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.site.CreateSiteResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.site.CreateSiteResponse.displayName = 'proto.bet.beteran.c2se.site.CreateSiteResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.site.CreateSiteResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.site.CreateSiteResponse.Result.displayName = 'proto.bet.beteran.c2se.site.CreateSiteResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.site.ListSitesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.beteran.c2se.site.ListSitesRequest.repeatedFields_, null); +}; +goog.inherits(proto.bet.beteran.c2se.site.ListSitesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.site.ListSitesRequest.displayName = 'proto.bet.beteran.c2se.site.ListSitesRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.site.ListSitesRequest.Search, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.site.ListSitesRequest.Search.displayName = 'proto.bet.beteran.c2se.site.ListSitesRequest.Search'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.site.ListSitesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.site.ListSitesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.site.ListSitesResponse.displayName = 'proto.bet.beteran.c2se.site.ListSitesResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.site.ListSitesResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.beteran.c2se.site.ListSitesResponse.Result.repeatedFields_, null); +}; +goog.inherits(proto.bet.beteran.c2se.site.ListSitesResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.site.ListSitesResponse.Result.displayName = 'proto.bet.beteran.c2se.site.ListSitesResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.site.GetSiteRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.site.GetSiteRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.site.GetSiteRequest.displayName = 'proto.bet.beteran.c2se.site.GetSiteRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.site.GetSiteResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.site.GetSiteResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.site.GetSiteResponse.displayName = 'proto.bet.beteran.c2se.site.GetSiteResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.site.GetSiteResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.site.GetSiteResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.site.GetSiteResponse.Result.displayName = 'proto.bet.beteran.c2se.site.GetSiteResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.site.UpdateSiteRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.site.UpdateSiteRequest.displayName = 'proto.bet.beteran.c2se.site.UpdateSiteRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.site.UpdateSiteResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.site.UpdateSiteResponse.displayName = 'proto.bet.beteran.c2se.site.UpdateSiteResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.site.UpdateSiteResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.site.UpdateSiteResponse.Result.displayName = 'proto.bet.beteran.c2se.site.UpdateSiteResponse.Result'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.site.DeleteSiteRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.site.DeleteSiteRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.site.DeleteSiteRequest.displayName = 'proto.bet.beteran.c2se.site.DeleteSiteRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.site.DeleteSiteResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.site.DeleteSiteResponse.displayName = 'proto.bet.beteran.c2se.site.DeleteSiteResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.Result = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.site.DeleteSiteResponse.Result, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.site.DeleteSiteResponse.Result.displayName = 'proto.bet.beteran.c2se.site.DeleteSiteResponse.Result'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.site.CreateSiteRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.site.CreateSiteRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.toObject = function(includeInstance, msg) { + var f, obj = { + url: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + path: jspb.Message.getFieldWithDefault(msg, 3, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + memo: jspb.Message.getFieldWithDefault(msg, 6, ""), + expiresAt: jspb.Message.getFieldWithDefault(msg, 7, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.site.CreateSiteRequest} + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.site.CreateSiteRequest; + return proto.bet.beteran.c2se.site.CreateSiteRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.site.CreateSiteRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.site.CreateSiteRequest} + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setUrl(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setPath(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCanUse(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setExpiresAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.site.CreateSiteRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.site.CreateSiteRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUrl(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString( + 3, + f + ); + } + f = message.getShow(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getCanUse(); + if (f) { + writer.writeBool( + 5, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeString( + 6, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeUint64( + 7, + f + ); + } +}; + + +/** + * optional string url = 1; + * @return {string} + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.getUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.site.CreateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.setUrl = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string name = 2; + * @return {string} + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.site.CreateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.setName = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.site.CreateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.clearName = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.hasName = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string path = 3; + * @return {string} + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.getPath = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.site.CreateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.setPath = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.site.CreateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.clearPath = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.hasPath = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional bool show = 4; + * @return {boolean} + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.site.CreateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.setShow = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * optional bool can_use = 5; + * @return {boolean} + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.getCanUse = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.site.CreateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.setCanUse = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + +/** + * optional string memo = 6; + * @return {string} + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.site.CreateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.setMemo = function(value) { + return jspb.Message.setField(this, 6, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.site.CreateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.clearMemo = function() { + return jspb.Message.setField(this, 6, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.hasMemo = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional uint64 expires_at = 7; + * @return {number} + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.getExpiresAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.site.CreateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.setExpiresAt = function(value) { + return jspb.Message.setField(this, 7, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.site.CreateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.clearExpiresAt = function() { + return jspb.Message.setField(this, 7, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.CreateSiteRequest.prototype.hasExpiresAt = function() { + return jspb.Message.getField(this, 7) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.site.CreateSiteResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.site.CreateSiteResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.site.CreateSiteResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.site.CreateSiteResponse} + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.site.CreateSiteResponse; + return proto.bet.beteran.c2se.site.CreateSiteResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.site.CreateSiteResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.site.CreateSiteResponse} + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.site.CreateSiteResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.site.CreateSiteResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.site.CreateSiteResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.site.CreateSiteResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.site.CreateSiteResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.site.CreateSiteResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.site.CreateSiteResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + site: (f = msg.getSite()) && models_site_pb.Site.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.site.CreateSiteResponse.Result} + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.site.CreateSiteResponse.Result; + return proto.bet.beteran.c2se.site.CreateSiteResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.site.CreateSiteResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.site.CreateSiteResponse.Result} + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_site_pb.Site; + reader.readMessage(value,models_site_pb.Site.deserializeBinaryFromReader); + msg.setSite(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.site.CreateSiteResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.site.CreateSiteResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSite(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_site_pb.Site.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.site.Site site = 1; + * @return {?proto.bet.beteran.site.Site} + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.Result.prototype.getSite = function() { + return /** @type{?proto.bet.beteran.site.Site} */ ( + jspb.Message.getWrapperField(this, models_site_pb.Site, 1)); +}; + + +/** + * @param {?proto.bet.beteran.site.Site|undefined} value + * @return {!proto.bet.beteran.c2se.site.CreateSiteResponse.Result} returns this +*/ +proto.bet.beteran.c2se.site.CreateSiteResponse.Result.prototype.setSite = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.site.CreateSiteResponse.Result} returns this + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.Result.prototype.clearSite = function() { + return this.setSite(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.Result.prototype.hasSite = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.site.CreateSiteResponse} returns this +*/ +proto.bet.beteran.c2se.site.CreateSiteResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.site.CreateSiteResponse} returns this + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.site.CreateSiteResponse.Result} + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.site.CreateSiteResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.site.CreateSiteResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.site.CreateSiteResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.site.CreateSiteResponse} returns this +*/ +proto.bet.beteran.c2se.site.CreateSiteResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.site.CreateSiteResponse} returns this + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.CreateSiteResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.site.ListSitesRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.site.ListSitesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.site.ListSitesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.ListSitesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + pagination: (f = msg.getPagination()) && protobuf_pagination_pb.Pagination.toObject(includeInstance, f), + sortsList: jspb.Message.toObjectList(msg.getSortsList(), + protobuf_pagination_pb.Sort.toObject, includeInstance), + search: (f = msg.getSearch()) && proto.bet.beteran.c2se.site.ListSitesRequest.Search.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.site.ListSitesRequest; + return proto.bet.beteran.c2se.site.ListSitesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.site.ListSitesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_pagination_pb.Pagination; + reader.readMessage(value,protobuf_pagination_pb.Pagination.deserializeBinaryFromReader); + msg.setPagination(value); + break; + case 2: + var value = new protobuf_pagination_pb.Sort; + reader.readMessage(value,protobuf_pagination_pb.Sort.deserializeBinaryFromReader); + msg.addSorts(value); + break; + case 3: + var value = new proto.bet.beteran.c2se.site.ListSitesRequest.Search; + reader.readMessage(value,proto.bet.beteran.c2se.site.ListSitesRequest.Search.deserializeBinaryFromReader); + msg.setSearch(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.site.ListSitesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.site.ListSitesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.ListSitesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_pagination_pb.Pagination.serializeBinaryToWriter + ); + } + f = message.getSortsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + protobuf_pagination_pb.Sort.serializeBinaryToWriter + ); + } + f = message.getSearch(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.bet.beteran.c2se.site.ListSitesRequest.Search.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.site.ListSitesRequest.Search.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.site.ListSitesRequest.Search} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.toObject = function(includeInstance, msg) { + var f, obj = { + urlLike: jspb.Message.getFieldWithDefault(msg, 1, ""), + nameLike: jspb.Message.getFieldWithDefault(msg, 2, ""), + pathLike: jspb.Message.getFieldWithDefault(msg, 3, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + memoLike: jspb.Message.getFieldWithDefault(msg, 6, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest.Search} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.site.ListSitesRequest.Search; + return proto.bet.beteran.c2se.site.ListSitesRequest.Search.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.site.ListSitesRequest.Search} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest.Search} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setUrlLike(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setNameLike(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setPathLike(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCanUse(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setMemoLike(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.site.ListSitesRequest.Search.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.site.ListSitesRequest.Search} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString( + 3, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeBool( + 4, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeBool( + 5, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeString( + 6, + f + ); + } +}; + + +/** + * optional string url_like = 1; + * @return {string} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.getUrlLike = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest.Search} returns this + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.setUrlLike = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest.Search} returns this + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.clearUrlLike = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.hasUrlLike = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string name_like = 2; + * @return {string} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.getNameLike = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest.Search} returns this + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.setNameLike = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest.Search} returns this + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.clearNameLike = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.hasNameLike = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string path_like = 3; + * @return {string} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.getPathLike = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest.Search} returns this + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.setPathLike = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest.Search} returns this + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.clearPathLike = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.hasPathLike = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional bool show = 4; + * @return {boolean} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest.Search} returns this + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.setShow = function(value) { + return jspb.Message.setField(this, 4, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest.Search} returns this + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.clearShow = function() { + return jspb.Message.setField(this, 4, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.hasShow = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional bool can_use = 5; + * @return {boolean} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.getCanUse = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest.Search} returns this + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.setCanUse = function(value) { + return jspb.Message.setField(this, 5, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest.Search} returns this + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.clearCanUse = function() { + return jspb.Message.setField(this, 5, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.hasCanUse = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional string memo_like = 6; + * @return {string} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.getMemoLike = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest.Search} returns this + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.setMemoLike = function(value) { + return jspb.Message.setField(this, 6, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest.Search} returns this + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.clearMemoLike = function() { + return jspb.Message.setField(this, 6, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.Search.prototype.hasMemoLike = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional bet.protobuf.pagination.Pagination pagination = 1; + * @return {?proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.prototype.getPagination = function() { + return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( + jspb.Message.getWrapperField(this, protobuf_pagination_pb.Pagination, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest} returns this +*/ +proto.bet.beteran.c2se.site.ListSitesRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.site.ListSitesRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated bet.protobuf.pagination.Sort sorts = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.prototype.getSortsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, protobuf_pagination_pb.Sort, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest} returns this +*/ +proto.bet.beteran.c2se.site.ListSitesRequest.prototype.setSortsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.bet.protobuf.pagination.Sort=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Sort} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.prototype.addSorts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.bet.protobuf.pagination.Sort, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.site.ListSitesRequest.prototype.clearSortsList = function() { + return this.setSortsList([]); +}; + + +/** + * optional Search search = 3; + * @return {?proto.bet.beteran.c2se.site.ListSitesRequest.Search} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.prototype.getSearch = function() { + return /** @type{?proto.bet.beteran.c2se.site.ListSitesRequest.Search} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.site.ListSitesRequest.Search, 3)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.site.ListSitesRequest.Search|undefined} value + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest} returns this +*/ +proto.bet.beteran.c2se.site.ListSitesRequest.prototype.setSearch = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.site.ListSitesRequest.prototype.clearSearch = function() { + return this.setSearch(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.ListSitesRequest.prototype.hasSearch = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.site.ListSitesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.site.ListSitesResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.site.ListSitesResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.ListSitesResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.site.ListSitesResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.site.ListSitesResponse} + */ +proto.bet.beteran.c2se.site.ListSitesResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.site.ListSitesResponse; + return proto.bet.beteran.c2se.site.ListSitesResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.site.ListSitesResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.site.ListSitesResponse} + */ +proto.bet.beteran.c2se.site.ListSitesResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.site.ListSitesResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.site.ListSitesResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.site.ListSitesResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.site.ListSitesResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.site.ListSitesResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.ListSitesResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.site.ListSitesResponse.Result.serializeBinaryToWriter + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.site.ListSitesResponse.Result.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.site.ListSitesResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.site.ListSitesResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.site.ListSitesResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.ListSitesResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + sitesList: jspb.Message.toObjectList(msg.getSitesList(), + models_site_pb.Site.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.site.ListSitesResponse.Result} + */ +proto.bet.beteran.c2se.site.ListSitesResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.site.ListSitesResponse.Result; + return proto.bet.beteran.c2se.site.ListSitesResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.site.ListSitesResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.site.ListSitesResponse.Result} + */ +proto.bet.beteran.c2se.site.ListSitesResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_site_pb.Site; + reader.readMessage(value,models_site_pb.Site.deserializeBinaryFromReader); + msg.addSites(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.site.ListSitesResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.site.ListSitesResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.site.ListSitesResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.ListSitesResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSitesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + models_site_pb.Site.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated bet.beteran.site.Site sites = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.site.ListSitesResponse.Result.prototype.getSitesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, models_site_pb.Site, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.site.ListSitesResponse.Result} returns this +*/ +proto.bet.beteran.c2se.site.ListSitesResponse.Result.prototype.setSitesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.bet.beteran.site.Site=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.site.Site} + */ +proto.bet.beteran.c2se.site.ListSitesResponse.Result.prototype.addSites = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bet.beteran.site.Site, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.site.ListSitesResponse.Result} returns this + */ +proto.bet.beteran.c2se.site.ListSitesResponse.Result.prototype.clearSitesList = function() { + return this.setSitesList([]); +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.site.ListSitesResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.site.ListSitesResponse} returns this +*/ +proto.bet.beteran.c2se.site.ListSitesResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.site.ListSitesResponse} returns this + */ +proto.bet.beteran.c2se.site.ListSitesResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.ListSitesResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.site.ListSitesResponse.Result} + */ +proto.bet.beteran.c2se.site.ListSitesResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.site.ListSitesResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.site.ListSitesResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.site.ListSitesResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.site.ListSitesResponse} returns this +*/ +proto.bet.beteran.c2se.site.ListSitesResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.site.ListSitesResponse} returns this + */ +proto.bet.beteran.c2se.site.ListSitesResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.ListSitesResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.site.GetSiteRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.site.GetSiteRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.site.GetSiteRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.GetSiteRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.site.GetSiteRequest} + */ +proto.bet.beteran.c2se.site.GetSiteRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.site.GetSiteRequest; + return proto.bet.beteran.c2se.site.GetSiteRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.site.GetSiteRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.site.GetSiteRequest} + */ +proto.bet.beteran.c2se.site.GetSiteRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.site.GetSiteRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.site.GetSiteRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.site.GetSiteRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.GetSiteRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.site.GetSiteRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.site.GetSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.GetSiteRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.site.GetSiteResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.site.GetSiteResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.site.GetSiteResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.GetSiteResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.site.GetSiteResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.site.GetSiteResponse} + */ +proto.bet.beteran.c2se.site.GetSiteResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.site.GetSiteResponse; + return proto.bet.beteran.c2se.site.GetSiteResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.site.GetSiteResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.site.GetSiteResponse} + */ +proto.bet.beteran.c2se.site.GetSiteResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.site.GetSiteResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.site.GetSiteResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.site.GetSiteResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.site.GetSiteResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.site.GetSiteResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.GetSiteResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.site.GetSiteResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.site.GetSiteResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.site.GetSiteResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.site.GetSiteResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.GetSiteResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + site: (f = msg.getSite()) && models_site_pb.Site.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.site.GetSiteResponse.Result} + */ +proto.bet.beteran.c2se.site.GetSiteResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.site.GetSiteResponse.Result; + return proto.bet.beteran.c2se.site.GetSiteResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.site.GetSiteResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.site.GetSiteResponse.Result} + */ +proto.bet.beteran.c2se.site.GetSiteResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_site_pb.Site; + reader.readMessage(value,models_site_pb.Site.deserializeBinaryFromReader); + msg.setSite(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.site.GetSiteResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.site.GetSiteResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.site.GetSiteResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.GetSiteResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSite(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_site_pb.Site.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.site.Site site = 1; + * @return {?proto.bet.beteran.site.Site} + */ +proto.bet.beteran.c2se.site.GetSiteResponse.Result.prototype.getSite = function() { + return /** @type{?proto.bet.beteran.site.Site} */ ( + jspb.Message.getWrapperField(this, models_site_pb.Site, 1)); +}; + + +/** + * @param {?proto.bet.beteran.site.Site|undefined} value + * @return {!proto.bet.beteran.c2se.site.GetSiteResponse.Result} returns this +*/ +proto.bet.beteran.c2se.site.GetSiteResponse.Result.prototype.setSite = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.site.GetSiteResponse.Result} returns this + */ +proto.bet.beteran.c2se.site.GetSiteResponse.Result.prototype.clearSite = function() { + return this.setSite(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.GetSiteResponse.Result.prototype.hasSite = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.site.GetSiteResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.site.GetSiteResponse} returns this +*/ +proto.bet.beteran.c2se.site.GetSiteResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.site.GetSiteResponse} returns this + */ +proto.bet.beteran.c2se.site.GetSiteResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.GetSiteResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.site.GetSiteResponse.Result} + */ +proto.bet.beteran.c2se.site.GetSiteResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.site.GetSiteResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.site.GetSiteResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.site.GetSiteResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.site.GetSiteResponse} returns this +*/ +proto.bet.beteran.c2se.site.GetSiteResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.site.GetSiteResponse} returns this + */ +proto.bet.beteran.c2se.site.GetSiteResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.GetSiteResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.site.UpdateSiteRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.site.UpdateSiteRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + url: jspb.Message.getFieldWithDefault(msg, 2, ""), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + path: jspb.Message.getFieldWithDefault(msg, 4, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + memo: jspb.Message.getFieldWithDefault(msg, 7, ""), + expiresAt: jspb.Message.getFieldWithDefault(msg, 8, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.site.UpdateSiteRequest} + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.site.UpdateSiteRequest; + return proto.bet.beteran.c2se.site.UpdateSiteRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.site.UpdateSiteRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.site.UpdateSiteRequest} + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setUrl(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setPath(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCanUse(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setExpiresAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.site.UpdateSiteRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.site.UpdateSiteRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getUrl(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString( + 3, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString( + 4, + f + ); + } + f = message.getShow(); + if (f) { + writer.writeBool( + 5, + f + ); + } + f = message.getCanUse(); + if (f) { + writer.writeBool( + 6, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeString( + 7, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeUint64( + 8, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.site.UpdateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string url = 2; + * @return {string} + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.getUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.site.UpdateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.setUrl = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string name = 3; + * @return {string} + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.site.UpdateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.setName = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.site.UpdateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.clearName = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.hasName = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string path = 4; + * @return {string} + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.getPath = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.site.UpdateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.setPath = function(value) { + return jspb.Message.setField(this, 4, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.site.UpdateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.clearPath = function() { + return jspb.Message.setField(this, 4, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.hasPath = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional bool show = 5; + * @return {boolean} + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.site.UpdateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.setShow = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + +/** + * optional bool can_use = 6; + * @return {boolean} + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.getCanUse = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.site.UpdateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.setCanUse = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); +}; + + +/** + * optional string memo = 7; + * @return {string} + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.site.UpdateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.setMemo = function(value) { + return jspb.Message.setField(this, 7, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.site.UpdateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.clearMemo = function() { + return jspb.Message.setField(this, 7, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.hasMemo = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional uint64 expires_at = 8; + * @return {number} + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.getExpiresAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.site.UpdateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.setExpiresAt = function(value) { + return jspb.Message.setField(this, 8, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.site.UpdateSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.clearExpiresAt = function() { + return jspb.Message.setField(this, 8, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.UpdateSiteRequest.prototype.hasExpiresAt = function() { + return jspb.Message.getField(this, 8) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.site.UpdateSiteResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.site.UpdateSiteResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.site.UpdateSiteResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.site.UpdateSiteResponse} + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.site.UpdateSiteResponse; + return proto.bet.beteran.c2se.site.UpdateSiteResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.site.UpdateSiteResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.site.UpdateSiteResponse} + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.site.UpdateSiteResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.site.UpdateSiteResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.site.UpdateSiteResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.site.UpdateSiteResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.site.UpdateSiteResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.site.UpdateSiteResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.site.UpdateSiteResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + site: (f = msg.getSite()) && models_site_pb.Site.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.site.UpdateSiteResponse.Result} + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.site.UpdateSiteResponse.Result; + return proto.bet.beteran.c2se.site.UpdateSiteResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.site.UpdateSiteResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.site.UpdateSiteResponse.Result} + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_site_pb.Site; + reader.readMessage(value,models_site_pb.Site.deserializeBinaryFromReader); + msg.setSite(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.site.UpdateSiteResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.site.UpdateSiteResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSite(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_site_pb.Site.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bet.beteran.site.Site site = 1; + * @return {?proto.bet.beteran.site.Site} + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.Result.prototype.getSite = function() { + return /** @type{?proto.bet.beteran.site.Site} */ ( + jspb.Message.getWrapperField(this, models_site_pb.Site, 1)); +}; + + +/** + * @param {?proto.bet.beteran.site.Site|undefined} value + * @return {!proto.bet.beteran.c2se.site.UpdateSiteResponse.Result} returns this +*/ +proto.bet.beteran.c2se.site.UpdateSiteResponse.Result.prototype.setSite = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.site.UpdateSiteResponse.Result} returns this + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.Result.prototype.clearSite = function() { + return this.setSite(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.Result.prototype.hasSite = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.site.UpdateSiteResponse} returns this +*/ +proto.bet.beteran.c2se.site.UpdateSiteResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.site.UpdateSiteResponse} returns this + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.site.UpdateSiteResponse.Result} + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.site.UpdateSiteResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.site.UpdateSiteResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.site.UpdateSiteResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.site.UpdateSiteResponse} returns this +*/ +proto.bet.beteran.c2se.site.UpdateSiteResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.site.UpdateSiteResponse} returns this + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.UpdateSiteResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.site.DeleteSiteRequest.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.site.DeleteSiteRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.site.DeleteSiteRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.DeleteSiteRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.site.DeleteSiteRequest} + */ +proto.bet.beteran.c2se.site.DeleteSiteRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.site.DeleteSiteRequest; + return proto.bet.beteran.c2se.site.DeleteSiteRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.site.DeleteSiteRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.site.DeleteSiteRequest} + */ +proto.bet.beteran.c2se.site.DeleteSiteRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.site.DeleteSiteRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.site.DeleteSiteRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.site.DeleteSiteRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.DeleteSiteRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.site.DeleteSiteRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.site.DeleteSiteRequest} returns this + */ +proto.bet.beteran.c2se.site.DeleteSiteRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.site.DeleteSiteResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.site.DeleteSiteResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: (f = msg.getResult()) && proto.bet.beteran.c2se.site.DeleteSiteResponse.Result.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.site.DeleteSiteResponse} + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.site.DeleteSiteResponse; + return proto.bet.beteran.c2se.site.DeleteSiteResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.site.DeleteSiteResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.site.DeleteSiteResponse} + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error; + reader.readMessage(value,protobuf_rpc_pb.Error.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.bet.beteran.c2se.site.DeleteSiteResponse.Result; + reader.readMessage(value,proto.bet.beteran.c2se.site.DeleteSiteResponse.Result.deserializeBinaryFromReader); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.site.DeleteSiteResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.site.DeleteSiteResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.site.DeleteSiteResponse.Result.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.Result.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.c2se.site.DeleteSiteResponse.Result.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.site.DeleteSiteResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.Result.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.site.DeleteSiteResponse.Result} + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.Result.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.site.DeleteSiteResponse.Result; + return proto.bet.beteran.c2se.site.DeleteSiteResponse.Result.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.site.DeleteSiteResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.site.DeleteSiteResponse.Result} + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.Result.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.Result.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.site.DeleteSiteResponse.Result.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.site.DeleteSiteResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.Result.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.prototype.getError = function() { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1)); +}; + + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.site.DeleteSiteResponse} returns this +*/ +proto.bet.beteran.c2se.site.DeleteSiteResponse.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.site.DeleteSiteResponse} returns this + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.site.DeleteSiteResponse.Result} + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.prototype.getResult = function() { + return /** @type{?proto.bet.beteran.c2se.site.DeleteSiteResponse.Result} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.site.DeleteSiteResponse.Result, 2)); +}; + + +/** + * @param {?proto.bet.beteran.c2se.site.DeleteSiteResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.site.DeleteSiteResponse} returns this +*/ +proto.bet.beteran.c2se.site.DeleteSiteResponse.prototype.setResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.site.DeleteSiteResponse} returns this + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.prototype.clearResult = function() { + return this.setResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.site.DeleteSiteResponse.prototype.hasResult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +goog.object.extend(exports, proto.bet.beteran.c2se.site); diff --git a/src/app/modules/proto/models/api/vendor_pb.d.ts b/src/app/modules/proto/models/api/vendor_pb.d.ts new file mode 100644 index 0000000..0db403b --- /dev/null +++ b/src/app/modules/proto/models/api/vendor_pb.d.ts @@ -0,0 +1,76 @@ +// package: bet.beteran.api.vendor +// file: models/api/vendor.proto + +import * as jspb from 'google-protobuf'; + +export class Vendor extends jspb.Message { + getId(): number; + setId(value: number): void; + + getCompanyId(): number; + setCompanyId(value: number): void; + + getVendorId(): number; + setVendorId(value: number): void; + + getKey(): string; + setKey(value: string): void; + + getName(): string; + setName(value: string): void; + + getCategory(): string; + setCategory(value: string): void; + + getMaxBetCasino(): number; + setMaxBetCasino(value: number): void; + + getMaxBetSlot(): number; + setMaxBetSlot(value: number): void; + + getIsEnable(): string; + setIsEnable(value: string): void; + + getBetCount(): number; + setBetCount(value: number): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Vendor.AsObject; + static toObject(includeInstance: boolean, msg: Vendor): Vendor.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Vendor, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Vendor; + static deserializeBinaryFromReader( + message: Vendor, + reader: jspb.BinaryReader + ): Vendor; +} + +export namespace Vendor { + export type AsObject = { + id: number; + companyId: number; + vendorId: number; + key: string; + name: string; + category: string; + maxBetCasino: number; + maxBetSlot: number; + isEnable: string; + betCount: number; + createdAt: number; + updatedAt: number; + }; +} diff --git a/src/app/modules/proto/models/api/vendor_pb.js b/src/app/modules/proto/models/api/vendor_pb.js new file mode 100644 index 0000000..7a7acfc --- /dev/null +++ b/src/app/modules/proto/models/api/vendor_pb.js @@ -0,0 +1,455 @@ +// source: models/api/vendor.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +goog.exportSymbol("proto.bet.beteran.api.vendor.Vendor", null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.api.vendor.Vendor = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.api.vendor.Vendor, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.api.vendor.Vendor.displayName = + "proto.bet.beteran.api.vendor.Vendor"; +} + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.api.vendor.Vendor.prototype.toObject = function ( + opt_includeInstance + ) { + return proto.bet.beteran.api.vendor.Vendor.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.api.vendor.Vendor} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.api.vendor.Vendor.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, 0), + companyId: jspb.Message.getFieldWithDefault(msg, 2, 0), + vendorId: jspb.Message.getFieldWithDefault(msg, 3, 0), + key: jspb.Message.getFieldWithDefault(msg, 4, ""), + name: jspb.Message.getFieldWithDefault(msg, 5, ""), + category: jspb.Message.getFieldWithDefault(msg, 6, ""), + maxBetCasino: jspb.Message.getFieldWithDefault(msg, 7, 0), + maxBetSlot: jspb.Message.getFieldWithDefault(msg, 8, 0), + isEnable: jspb.Message.getFieldWithDefault(msg, 9, ""), + betCount: jspb.Message.getFieldWithDefault(msg, 10, 0), + createdAt: jspb.Message.getFieldWithDefault(msg, 11, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 12, 0), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.api.vendor.Vendor} + */ +proto.bet.beteran.api.vendor.Vendor.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.api.vendor.Vendor(); + return proto.bet.beteran.api.vendor.Vendor.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.api.vendor.Vendor} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.api.vendor.Vendor} + */ +proto.bet.beteran.api.vendor.Vendor.deserializeBinaryFromReader = function ( + msg, + reader +) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCompanyId(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setVendorId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setKey(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setCategory(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMaxBetCasino(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMaxBetSlot(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setIsEnable(value); + break; + case 10: + var value = /** @type {number} */ (reader.readUint64()); + msg.setBetCount(value); + break; + case 11: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 12: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.api.vendor.Vendor.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.api.vendor.Vendor} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.api.vendor.Vendor.serializeBinaryToWriter = function ( + message, + writer +) { + var f = undefined; + f = message.getId(); + if (f !== 0) { + writer.writeUint64(1, f); + } + f = message.getCompanyId(); + if (f !== 0) { + writer.writeUint64(2, f); + } + f = message.getVendorId(); + if (f !== 0) { + writer.writeUint64(3, f); + } + f = message.getKey(); + if (f.length > 0) { + writer.writeString(4, f); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString(5, f); + } + f = message.getCategory(); + if (f.length > 0) { + writer.writeString(6, f); + } + f = message.getMaxBetCasino(); + if (f !== 0) { + writer.writeUint64(7, f); + } + f = message.getMaxBetSlot(); + if (f !== 0) { + writer.writeUint64(8, f); + } + f = message.getIsEnable(); + if (f.length > 0) { + writer.writeString(9, f); + } + f = message.getBetCount(); + if (f !== 0) { + writer.writeUint64(10, f); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64(11, f); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64(12, f); + } +}; + +/** + * optional uint64 id = 1; + * @return {number} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setId = function (value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + +/** + * optional uint64 company_id = 2; + * @return {number} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getCompanyId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setCompanyId = function (value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + +/** + * optional uint64 vendor_id = 3; + * @return {number} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getVendorId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setVendorId = function (value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + +/** + * optional string key = 4; + * @return {string} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getKey = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setKey = function (value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + +/** + * optional string name = 5; + * @return {string} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getName = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setName = function (value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + +/** + * optional string category = 6; + * @return {string} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getCategory = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setCategory = function (value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + +/** + * optional uint64 max_bet_casino = 7; + * @return {number} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getMaxBetCasino = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setMaxBetCasino = function ( + value +) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + +/** + * optional uint64 max_bet_slot = 8; + * @return {number} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getMaxBetSlot = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setMaxBetSlot = function (value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + +/** + * optional string is_enable = 9; + * @return {string} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getIsEnable = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setIsEnable = function (value) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + +/** + * optional uint64 bet_count = 10; + * @return {number} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getBetCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setBetCount = function (value) { + return jspb.Message.setProto3IntField(this, 10, value); +}; + +/** + * optional uint64 created_at = 11; + * @return {number} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getCreatedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setCreatedAt = function (value) { + return jspb.Message.setProto3IntField(this, 11, value); +}; + +/** + * optional uint64 updated_at = 12; + * @return {number} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getUpdatedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setUpdatedAt = function (value) { + return jspb.Message.setProto3IntField(this, 12, value); +}; + +goog.object.extend(exports, proto.bet.beteran.api.vendor); diff --git a/src/app/modules/proto/models/bank_pb.d.ts b/src/app/modules/proto/models/bank_pb.d.ts new file mode 100644 index 0000000..3a18785 --- /dev/null +++ b/src/app/modules/proto/models/bank_pb.d.ts @@ -0,0 +1,55 @@ +// package: bet.beteran.bank +// file: models/bank.proto + +import * as jspb from "google-protobuf"; + +export class Bank extends jspb.Message { + getId(): string; + setId(value: string): void; + + getName(): string; + setName(value: string): void; + + getSortOrder(): number; + setSortOrder(value: number): void; + + getShow(): boolean; + setShow(value: boolean): void; + + getCanUse(): boolean; + setCanUse(value: boolean): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Bank.AsObject; + static toObject(includeInstance: boolean, msg: Bank): Bank.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Bank, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Bank; + static deserializeBinaryFromReader(message: Bank, reader: jspb.BinaryReader): Bank; +} + +export namespace Bank { + export type AsObject = { + id: string, + name: string, + sortOrder: number, + show: boolean, + canUse: boolean, + memo: string, + createdAt: number, + updatedAt: number, + } +} + diff --git a/src/app/modules/proto/models/bank_pb.js b/src/app/modules/proto/models/bank_pb.js new file mode 100644 index 0000000..9f0f56f --- /dev/null +++ b/src/app/modules/proto/models/bank_pb.js @@ -0,0 +1,398 @@ +// source: models/bank.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +goog.exportSymbol('proto.bet.beteran.bank.Bank', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.bank.Bank = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.bank.Bank, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.bank.Bank.displayName = 'proto.bet.beteran.bank.Bank'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.bank.Bank.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.bank.Bank.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.bank.Bank} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.bank.Bank.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + sortOrder: jspb.Message.getFieldWithDefault(msg, 3, 0), + show: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + memo: jspb.Message.getFieldWithDefault(msg, 6, ""), + createdAt: jspb.Message.getFieldWithDefault(msg, 7, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 8, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.bank.Bank} + */ +proto.bet.beteran.bank.Bank.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.bank.Bank; + return proto.bet.beteran.bank.Bank.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.bank.Bank} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.bank.Bank} + */ +proto.bet.beteran.bank.Bank.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setSortOrder(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCanUse(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.bank.Bank.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.bank.Bank.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.bank.Bank} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.bank.Bank.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getSortOrder(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getShow(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getCanUse(); + if (f) { + writer.writeBool( + 5, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeString( + 6, + f + ); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64( + 7, + f + ); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.bank.Bank.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.bank.Bank} returns this + */ +proto.bet.beteran.bank.Bank.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string name = 2; + * @return {string} + */ +proto.bet.beteran.bank.Bank.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.bank.Bank} returns this + */ +proto.bet.beteran.bank.Bank.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional uint32 sort_order = 3; + * @return {number} + */ +proto.bet.beteran.bank.Bank.prototype.getSortOrder = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.bank.Bank} returns this + */ +proto.bet.beteran.bank.Bank.prototype.setSortOrder = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional bool show = 4; + * @return {boolean} + */ +proto.bet.beteran.bank.Bank.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.bank.Bank} returns this + */ +proto.bet.beteran.bank.Bank.prototype.setShow = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * optional bool can_use = 5; + * @return {boolean} + */ +proto.bet.beteran.bank.Bank.prototype.getCanUse = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.bank.Bank} returns this + */ +proto.bet.beteran.bank.Bank.prototype.setCanUse = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + +/** + * optional string memo = 6; + * @return {string} + */ +proto.bet.beteran.bank.Bank.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.bank.Bank} returns this + */ +proto.bet.beteran.bank.Bank.prototype.setMemo = function(value) { + return jspb.Message.setField(this, 6, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.bank.Bank} returns this + */ +proto.bet.beteran.bank.Bank.prototype.clearMemo = function() { + return jspb.Message.setField(this, 6, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.bank.Bank.prototype.hasMemo = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional uint64 created_at = 7; + * @return {number} + */ +proto.bet.beteran.bank.Bank.prototype.getCreatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.bank.Bank} returns this + */ +proto.bet.beteran.bank.Bank.prototype.setCreatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional uint64 updated_at = 8; + * @return {number} + */ +proto.bet.beteran.bank.Bank.prototype.getUpdatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.bank.Bank} returns this + */ +proto.bet.beteran.bank.Bank.prototype.setUpdatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +goog.object.extend(exports, proto.bet.beteran.bank); diff --git a/src/app/modules/proto/models/core/network_pb.d.ts b/src/app/modules/proto/models/core/network_pb.d.ts new file mode 100644 index 0000000..6cec68f --- /dev/null +++ b/src/app/modules/proto/models/core/network_pb.d.ts @@ -0,0 +1,37 @@ +// package: bet.beteran.core.network +// file: models/core/network.proto + +import * as jspb from "google-protobuf"; + +export class Client extends jspb.Message { + getClientIp(): string; + setClientIp(value: string): void; + + hasSiteUrl(): boolean; + clearSiteUrl(): void; + getSiteUrl(): string; + setSiteUrl(value: string): void; + + hasAccessToken(): boolean; + clearAccessToken(): void; + getAccessToken(): string; + setAccessToken(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Client.AsObject; + static toObject(includeInstance: boolean, msg: Client): Client.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Client, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Client; + static deserializeBinaryFromReader(message: Client, reader: jspb.BinaryReader): Client; +} + +export namespace Client { + export type AsObject = { + clientIp: string, + siteUrl: string, + accessToken: string, + } +} + diff --git a/src/app/modules/proto/models/core/network_pb.js b/src/app/modules/proto/models/core/network_pb.js new file mode 100644 index 0000000..69a1d81 --- /dev/null +++ b/src/app/modules/proto/models/core/network_pb.js @@ -0,0 +1,266 @@ +// source: models/core/network.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +goog.exportSymbol('proto.bet.beteran.core.network.Client', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.core.network.Client = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.core.network.Client, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.core.network.Client.displayName = 'proto.bet.beteran.core.network.Client'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.core.network.Client.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.core.network.Client.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.core.network.Client} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.core.network.Client.toObject = function(includeInstance, msg) { + var f, obj = { + clientIp: jspb.Message.getFieldWithDefault(msg, 1, ""), + siteUrl: jspb.Message.getFieldWithDefault(msg, 2, ""), + accessToken: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.core.network.Client} + */ +proto.bet.beteran.core.network.Client.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.core.network.Client; + return proto.bet.beteran.core.network.Client.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.core.network.Client} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.core.network.Client} + */ +proto.bet.beteran.core.network.Client.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setClientIp(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setSiteUrl(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAccessToken(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.core.network.Client.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.core.network.Client.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.core.network.Client} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.core.network.Client.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getClientIp(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string client_ip = 1; + * @return {string} + */ +proto.bet.beteran.core.network.Client.prototype.getClientIp = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.core.network.Client} returns this + */ +proto.bet.beteran.core.network.Client.prototype.setClientIp = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string site_url = 2; + * @return {string} + */ +proto.bet.beteran.core.network.Client.prototype.getSiteUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.core.network.Client} returns this + */ +proto.bet.beteran.core.network.Client.prototype.setSiteUrl = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.core.network.Client} returns this + */ +proto.bet.beteran.core.network.Client.prototype.clearSiteUrl = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.core.network.Client.prototype.hasSiteUrl = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string access_token = 3; + * @return {string} + */ +proto.bet.beteran.core.network.Client.prototype.getAccessToken = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.core.network.Client} returns this + */ +proto.bet.beteran.core.network.Client.prototype.setAccessToken = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.core.network.Client} returns this + */ +proto.bet.beteran.core.network.Client.prototype.clearAccessToken = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.core.network.Client.prototype.hasAccessToken = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +goog.object.extend(exports, proto.bet.beteran.core.network); diff --git a/src/app/modules/proto/models/member_bank_account_pb.d.ts b/src/app/modules/proto/models/member_bank_account_pb.d.ts new file mode 100644 index 0000000..44bf70b --- /dev/null +++ b/src/app/modules/proto/models/member_bank_account_pb.d.ts @@ -0,0 +1,137 @@ +// package: bet.beteran.member_bank_account +// file: models/member_bank_account.proto + +import * as jspb from 'google-protobuf'; +import * as models_bank_pb from '../models/bank_pb'; + +export class MemberBankAccount extends jspb.Message { + getId(): string; + setId(value: string): void; + + getMemberId(): string; + setMemberId(value: string): void; + + getBankId(): string; + setBankId(value: string): void; + + getName(): string; + setName(value: string): void; + + getAccountNumber(): string; + setAccountNumber(value: string): void; + + getExchangePassword(): string; + setExchangePassword(value: string): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MemberBankAccount.AsObject; + static toObject( + includeInstance: boolean, + msg: MemberBankAccount + ): MemberBankAccount.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: MemberBankAccount, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): MemberBankAccount; + static deserializeBinaryFromReader( + message: MemberBankAccount, + reader: jspb.BinaryReader + ): MemberBankAccount; +} + +export namespace MemberBankAccount { + export type AsObject = { + id: string; + memberId: string; + bankId: string; + name: string; + accountNumber: string; + exchangePassword: string; + memo: string; + createdAt: number; + updatedAt: number; + }; +} + +export class MemberBankAccountModel extends jspb.Message { + getId(): string; + setId(value: string): void; + + getMemberId(): string; + setMemberId(value: string): void; + + hasBank(): boolean; + clearBank(): void; + getBank(): models_bank_pb.Bank | undefined; + setBank(value?: models_bank_pb.Bank): void; + + getName(): string; + setName(value: string): void; + + getAccountNumber(): string; + setAccountNumber(value: string): void; + + getExchangePassword(): string; + setExchangePassword(value: string): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MemberBankAccountModel.AsObject; + static toObject( + includeInstance: boolean, + msg: MemberBankAccountModel + ): MemberBankAccountModel.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: MemberBankAccountModel, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): MemberBankAccountModel; + static deserializeBinaryFromReader( + message: MemberBankAccountModel, + reader: jspb.BinaryReader + ): MemberBankAccountModel; +} + +export namespace MemberBankAccountModel { + export type AsObject = { + id: string; + memberId: string; + bank?: models_bank_pb.Bank.AsObject; + name: string; + accountNumber: string; + exchangePassword: string; + memo: string; + createdAt: number; + updatedAt: number; + }; +} diff --git a/src/app/modules/proto/models/member_bank_account_pb.js b/src/app/modules/proto/models/member_bank_account_pb.js new file mode 100644 index 0000000..c83864b --- /dev/null +++ b/src/app/modules/proto/models/member_bank_account_pb.js @@ -0,0 +1,876 @@ +// source: models/member_bank_account.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +var models_bank_pb = require("../models/bank_pb.js"); +goog.object.extend(proto, models_bank_pb); +goog.exportSymbol( + "proto.bet.beteran.member_bank_account.MemberBankAccount", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.member_bank_account.MemberBankAccountModel", + null, + global +); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.member_bank_account.MemberBankAccount = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.member_bank_account.MemberBankAccount, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.member_bank_account.MemberBankAccount.displayName = + "proto.bet.beteran.member_bank_account.MemberBankAccount"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.member_bank_account.MemberBankAccountModel, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.member_bank_account.MemberBankAccountModel.displayName = + "proto.bet.beteran.member_bank_account.MemberBankAccountModel"; +} + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.member_bank_account.MemberBankAccount.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.member_bank_account.MemberBankAccount} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.member_bank_account.MemberBankAccount.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + memberId: jspb.Message.getFieldWithDefault(msg, 2, ""), + bankId: jspb.Message.getFieldWithDefault(msg, 3, ""), + name: jspb.Message.getFieldWithDefault(msg, 4, ""), + accountNumber: jspb.Message.getFieldWithDefault(msg, 5, ""), + exchangePassword: jspb.Message.getFieldWithDefault(msg, 6, ""), + memo: jspb.Message.getFieldWithDefault(msg, 7, ""), + createdAt: jspb.Message.getFieldWithDefault(msg, 8, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 9, 0), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccount} + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.member_bank_account.MemberBankAccount(); + return proto.bet.beteran.member_bank_account.MemberBankAccount.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.member_bank_account.MemberBankAccount} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccount} + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setBankId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setAccountNumber(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setExchangePassword(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.member_bank_account.MemberBankAccount.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.member_bank_account.MemberBankAccount} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getMemberId(); + if (f.length > 0) { + writer.writeString(2, f); + } + f = message.getBankId(); + if (f.length > 0) { + writer.writeString(3, f); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString(4, f); + } + f = message.getAccountNumber(); + if (f.length > 0) { + writer.writeString(5, f); + } + f = message.getExchangePassword(); + if (f.length > 0) { + writer.writeString(6, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeString(7, f); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64(8, f); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64(9, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccount} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional string member_id = 2; + * @return {string} + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.getMemberId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccount} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.setMemberId = + function (value) { + return jspb.Message.setProto3StringField(this, 2, value); + }; + +/** + * optional string bank_id = 3; + * @return {string} + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.getBankId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccount} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.setBankId = + function (value) { + return jspb.Message.setProto3StringField(this, 3, value); + }; + +/** + * optional string name = 4; + * @return {string} + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.getName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccount} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.setName = + function (value) { + return jspb.Message.setProto3StringField(this, 4, value); + }; + +/** + * optional string account_number = 5; + * @return {string} + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.getAccountNumber = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccount} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.setAccountNumber = + function (value) { + return jspb.Message.setProto3StringField(this, 5, value); + }; + +/** + * optional string exchange_password = 6; + * @return {string} + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.getExchangePassword = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 6, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccount} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.setExchangePassword = + function (value) { + return jspb.Message.setProto3StringField(this, 6, value); + }; + +/** + * optional string memo = 7; + * @return {string} + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.getMemo = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 7, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccount} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.setMemo = + function (value) { + return jspb.Message.setField(this, 7, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccount} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.clearMemo = + function () { + return jspb.Message.setField(this, 7, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.hasMemo = + function () { + return jspb.Message.getField(this, 7) != null; + }; + +/** + * optional uint64 created_at = 8; + * @return {number} + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.getCreatedAt = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccount} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.setCreatedAt = + function (value) { + return jspb.Message.setProto3IntField(this, 8, value); + }; + +/** + * optional uint64 updated_at = 9; + * @return {number} + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.getUpdatedAt = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccount} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.setUpdatedAt = + function (value) { + return jspb.Message.setProto3IntField(this, 9, value); + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.member_bank_account.MemberBankAccountModel.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.member_bank_account.MemberBankAccountModel} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.member_bank_account.MemberBankAccountModel.toObject = + function (includeInstance, msg) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + memberId: jspb.Message.getFieldWithDefault(msg, 2, ""), + bank: + (f = msg.getBank()) && + models_bank_pb.Bank.toObject(includeInstance, f), + name: jspb.Message.getFieldWithDefault(msg, 4, ""), + accountNumber: jspb.Message.getFieldWithDefault(msg, 5, ""), + exchangePassword: jspb.Message.getFieldWithDefault(msg, 6, ""), + memo: jspb.Message.getFieldWithDefault(msg, 7, ""), + createdAt: jspb.Message.getFieldWithDefault(msg, 8, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 9, 0), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccountModel} + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.member_bank_account.MemberBankAccountModel(); + return proto.bet.beteran.member_bank_account.MemberBankAccountModel.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.member_bank_account.MemberBankAccountModel} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccountModel} + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberId(value); + break; + case 3: + var value = new models_bank_pb.Bank(); + reader.readMessage( + value, + models_bank_pb.Bank.deserializeBinaryFromReader + ); + msg.setBank(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setAccountNumber(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setExchangePassword(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.member_bank_account.MemberBankAccountModel.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.member_bank_account.MemberBankAccountModel} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getMemberId(); + if (f.length > 0) { + writer.writeString(2, f); + } + f = message.getBank(); + if (f != null) { + writer.writeMessage(3, f, models_bank_pb.Bank.serializeBinaryToWriter); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString(4, f); + } + f = message.getAccountNumber(); + if (f.length > 0) { + writer.writeString(5, f); + } + f = message.getExchangePassword(); + if (f.length > 0) { + writer.writeString(6, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeString(7, f); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64(8, f); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64(9, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccountModel} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional string member_id = 2; + * @return {string} + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.getMemberId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccountModel} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.setMemberId = + function (value) { + return jspb.Message.setProto3StringField(this, 2, value); + }; + +/** + * optional bet.beteran.bank.Bank bank = 3; + * @return {?proto.bet.beteran.bank.Bank} + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.getBank = + function () { + return /** @type{?proto.bet.beteran.bank.Bank} */ ( + jspb.Message.getWrapperField(this, models_bank_pb.Bank, 3) + ); + }; + +/** + * @param {?proto.bet.beteran.bank.Bank|undefined} value + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccountModel} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.setBank = + function (value) { + return jspb.Message.setWrapperField(this, 3, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccountModel} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.clearBank = + function () { + return this.setBank(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.hasBank = + function () { + return jspb.Message.getField(this, 3) != null; + }; + +/** + * optional string name = 4; + * @return {string} + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.getName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccountModel} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.setName = + function (value) { + return jspb.Message.setProto3StringField(this, 4, value); + }; + +/** + * optional string account_number = 5; + * @return {string} + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.getAccountNumber = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccountModel} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.setAccountNumber = + function (value) { + return jspb.Message.setProto3StringField(this, 5, value); + }; + +/** + * optional string exchange_password = 6; + * @return {string} + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.getExchangePassword = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 6, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccountModel} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.setExchangePassword = + function (value) { + return jspb.Message.setProto3StringField(this, 6, value); + }; + +/** + * optional string memo = 7; + * @return {string} + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.getMemo = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 7, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccountModel} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.setMemo = + function (value) { + return jspb.Message.setField(this, 7, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccountModel} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.clearMemo = + function () { + return jspb.Message.setField(this, 7, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.hasMemo = + function () { + return jspb.Message.getField(this, 7) != null; + }; + +/** + * optional uint64 created_at = 8; + * @return {number} + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.getCreatedAt = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccountModel} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.setCreatedAt = + function (value) { + return jspb.Message.setProto3IntField(this, 8, value); + }; + +/** + * optional uint64 updated_at = 9; + * @return {number} + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.getUpdatedAt = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_bank_account.MemberBankAccountModel} returns this + */ +proto.bet.beteran.member_bank_account.MemberBankAccountModel.prototype.setUpdatedAt = + function (value) { + return jspb.Message.setProto3IntField(this, 9, value); + }; + +goog.object.extend(exports, proto.bet.beteran.member_bank_account); diff --git a/src/app/modules/proto/models/member_bank_deposit_pb.d.ts b/src/app/modules/proto/models/member_bank_deposit_pb.d.ts new file mode 100644 index 0000000..f4c0547 --- /dev/null +++ b/src/app/modules/proto/models/member_bank_deposit_pb.d.ts @@ -0,0 +1,67 @@ +// package: bet.beteran.member_bank_deposit +// file: models/member_bank_deposit.proto + +import * as jspb from "google-protobuf"; + +export class MemberBankDeposit extends jspb.Message { + getId(): string; + setId(value: string): void; + + getMemberId(): string; + setMemberId(value: string): void; + + getName(): string; + setName(value: string): void; + + getAmount(): number; + setAmount(value: number): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + getState(): MemberBankDepositStateMap[keyof MemberBankDepositStateMap]; + setState(value: MemberBankDepositStateMap[keyof MemberBankDepositStateMap]): void; + + getStateChangedAt(): number; + setStateChangedAt(value: number): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MemberBankDeposit.AsObject; + static toObject(includeInstance: boolean, msg: MemberBankDeposit): MemberBankDeposit.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MemberBankDeposit, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MemberBankDeposit; + static deserializeBinaryFromReader(message: MemberBankDeposit, reader: jspb.BinaryReader): MemberBankDeposit; +} + +export namespace MemberBankDeposit { + export type AsObject = { + id: string, + memberId: string, + name: string, + amount: number, + memo: string, + state: MemberBankDepositStateMap[keyof MemberBankDepositStateMap], + stateChangedAt: number, + createdAt: number, + updatedAt: number, + } +} + +export interface MemberBankDepositStateMap { + NONE: 0; + APPLICATION: 1; + COMPLETE: 2; +} + +export const MemberBankDepositState: MemberBankDepositStateMap; + diff --git a/src/app/modules/proto/models/member_bank_deposit_pb.js b/src/app/modules/proto/models/member_bank_deposit_pb.js new file mode 100644 index 0000000..2036f44 --- /dev/null +++ b/src/app/modules/proto/models/member_bank_deposit_pb.js @@ -0,0 +1,438 @@ +// source: models/member_bank_deposit.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +goog.exportSymbol('proto.bet.beteran.member_bank_deposit.MemberBankDeposit', null, global); +goog.exportSymbol('proto.bet.beteran.member_bank_deposit.MemberBankDepositState', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.member_bank_deposit.MemberBankDeposit, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.member_bank_deposit.MemberBankDeposit.displayName = 'proto.bet.beteran.member_bank_deposit.MemberBankDeposit'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.member_bank_deposit.MemberBankDeposit.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.member_bank_deposit.MemberBankDeposit} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + memberId: jspb.Message.getFieldWithDefault(msg, 2, ""), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + amount: jspb.Message.getFieldWithDefault(msg, 4, 0), + memo: jspb.Message.getFieldWithDefault(msg, 5, ""), + state: jspb.Message.getFieldWithDefault(msg, 6, 0), + stateChangedAt: jspb.Message.getFieldWithDefault(msg, 7, 0), + createdAt: jspb.Message.getFieldWithDefault(msg, 8, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 9, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.member_bank_deposit.MemberBankDeposit} + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.member_bank_deposit.MemberBankDeposit; + return proto.bet.beteran.member_bank_deposit.MemberBankDeposit.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.member_bank_deposit.MemberBankDeposit} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.member_bank_deposit.MemberBankDeposit} + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setAmount(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + case 6: + var value = /** @type {!proto.bet.beteran.member_bank_deposit.MemberBankDepositState} */ (reader.readEnum()); + msg.setState(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setStateChangedAt(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.member_bank_deposit.MemberBankDeposit.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.member_bank_deposit.MemberBankDeposit} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getMemberId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getAmount(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeString( + 5, + f + ); + } + f = message.getState(); + if (f !== 0.0) { + writer.writeEnum( + 6, + f + ); + } + f = message.getStateChangedAt(); + if (f !== 0) { + writer.writeUint64( + 7, + f + ); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64( + 9, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_deposit.MemberBankDeposit} returns this + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string member_id = 2; + * @return {string} + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.getMemberId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_deposit.MemberBankDeposit} returns this + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.setMemberId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string name = 3; + * @return {string} + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_deposit.MemberBankDeposit} returns this + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional uint32 amount = 4; + * @return {number} + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_bank_deposit.MemberBankDeposit} returns this + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.setAmount = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional string memo = 5; + * @return {string} + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_deposit.MemberBankDeposit} returns this + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.setMemo = function(value) { + return jspb.Message.setField(this, 5, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member_bank_deposit.MemberBankDeposit} returns this + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.clearMemo = function() { + return jspb.Message.setField(this, 5, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.hasMemo = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional MemberBankDepositState state = 6; + * @return {!proto.bet.beteran.member_bank_deposit.MemberBankDepositState} + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.getState = function() { + return /** @type {!proto.bet.beteran.member_bank_deposit.MemberBankDepositState} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {!proto.bet.beteran.member_bank_deposit.MemberBankDepositState} value + * @return {!proto.bet.beteran.member_bank_deposit.MemberBankDeposit} returns this + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.setState = function(value) { + return jspb.Message.setProto3EnumField(this, 6, value); +}; + + +/** + * optional uint64 state_changed_at = 7; + * @return {number} + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.getStateChangedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_bank_deposit.MemberBankDeposit} returns this + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.setStateChangedAt = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional uint64 created_at = 8; + * @return {number} + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.getCreatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_bank_deposit.MemberBankDeposit} returns this + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.setCreatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional uint64 updated_at = 9; + * @return {number} + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.getUpdatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_bank_deposit.MemberBankDeposit} returns this + */ +proto.bet.beteran.member_bank_deposit.MemberBankDeposit.prototype.setUpdatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); +}; + + +/** + * @enum {number} + */ +proto.bet.beteran.member_bank_deposit.MemberBankDepositState = { + NONE: 0, + APPLICATION: 1, + COMPLETE: 2 +}; + +goog.object.extend(exports, proto.bet.beteran.member_bank_deposit); diff --git a/src/app/modules/proto/models/member_bank_withdraw_pb.d.ts b/src/app/modules/proto/models/member_bank_withdraw_pb.d.ts new file mode 100644 index 0000000..3787d43 --- /dev/null +++ b/src/app/modules/proto/models/member_bank_withdraw_pb.d.ts @@ -0,0 +1,79 @@ +// package: bet.beteran.member_bank_withdraw +// file: models/member_bank_withdraw.proto + +import * as jspb from "google-protobuf"; + +export class MemberBankWithdraw extends jspb.Message { + getId(): string; + setId(value: string): void; + + getMemberId(): string; + setMemberId(value: string): void; + + getBankName(): string; + setBankName(value: string): void; + + getName(): string; + setName(value: string): void; + + getAccountNumber(): string; + setAccountNumber(value: string): void; + + getAmount(): number; + setAmount(value: number): void; + + getPassword(): string; + setPassword(value: string): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + getState(): MemberBankWithdrawStateMap[keyof MemberBankWithdrawStateMap]; + setState(value: MemberBankWithdrawStateMap[keyof MemberBankWithdrawStateMap]): void; + + getStateChangedAt(): number; + setStateChangedAt(value: number): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MemberBankWithdraw.AsObject; + static toObject(includeInstance: boolean, msg: MemberBankWithdraw): MemberBankWithdraw.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MemberBankWithdraw, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MemberBankWithdraw; + static deserializeBinaryFromReader(message: MemberBankWithdraw, reader: jspb.BinaryReader): MemberBankWithdraw; +} + +export namespace MemberBankWithdraw { + export type AsObject = { + id: string, + memberId: string, + bankName: string, + name: string, + accountNumber: string, + amount: number, + password: string, + memo: string, + state: MemberBankWithdrawStateMap[keyof MemberBankWithdrawStateMap], + stateChangedAt: number, + createdAt: number, + updatedAt: number, + } +} + +export interface MemberBankWithdrawStateMap { + NONE: 0; + APPLICATION: 1; + COMPLETE: 2; +} + +export const MemberBankWithdrawState: MemberBankWithdrawStateMap; + diff --git a/src/app/modules/proto/models/member_bank_withdraw_pb.js b/src/app/modules/proto/models/member_bank_withdraw_pb.js new file mode 100644 index 0000000..c1fc948 --- /dev/null +++ b/src/app/modules/proto/models/member_bank_withdraw_pb.js @@ -0,0 +1,528 @@ +// source: models/member_bank_withdraw.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +goog.exportSymbol('proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw', null, global); +goog.exportSymbol('proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.displayName = 'proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + memberId: jspb.Message.getFieldWithDefault(msg, 2, ""), + bankName: jspb.Message.getFieldWithDefault(msg, 3, ""), + name: jspb.Message.getFieldWithDefault(msg, 4, ""), + accountNumber: jspb.Message.getFieldWithDefault(msg, 5, ""), + amount: jspb.Message.getFieldWithDefault(msg, 6, 0), + password: jspb.Message.getFieldWithDefault(msg, 7, ""), + memo: jspb.Message.getFieldWithDefault(msg, 8, ""), + state: jspb.Message.getFieldWithDefault(msg, 9, 0), + stateChangedAt: jspb.Message.getFieldWithDefault(msg, 10, 0), + createdAt: jspb.Message.getFieldWithDefault(msg, 11, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 12, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw; + return proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setBankName(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setAccountNumber(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint32()); + msg.setAmount(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setPassword(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + case 9: + var value = /** @type {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState} */ (reader.readEnum()); + msg.setState(value); + break; + case 10: + var value = /** @type {number} */ (reader.readUint64()); + msg.setStateChangedAt(value); + break; + case 11: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 12: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getMemberId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getBankName(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getAccountNumber(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getAmount(); + if (f !== 0) { + writer.writeUint32( + 6, + f + ); + } + f = message.getPassword(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeString( + 8, + f + ); + } + f = message.getState(); + if (f !== 0.0) { + writer.writeEnum( + 9, + f + ); + } + f = message.getStateChangedAt(); + if (f !== 0) { + writer.writeUint64( + 10, + f + ); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64( + 11, + f + ); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64( + 12, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} returns this + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string member_id = 2; + * @return {string} + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.getMemberId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} returns this + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.setMemberId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string bank_name = 3; + * @return {string} + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.getBankName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} returns this + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.setBankName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string name = 4; + * @return {string} + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} returns this + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string account_number = 5; + * @return {string} + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.getAccountNumber = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} returns this + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.setAccountNumber = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional uint32 amount = 6; + * @return {number} + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} returns this + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.setAmount = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional string password = 7; + * @return {string} + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.getPassword = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} returns this + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.setPassword = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * optional string memo = 8; + * @return {string} + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} returns this + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.setMemo = function(value) { + return jspb.Message.setField(this, 8, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} returns this + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.clearMemo = function() { + return jspb.Message.setField(this, 8, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.hasMemo = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional MemberBankWithdrawState state = 9; + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState} + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.getState = function() { + return /** @type {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState} value + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} returns this + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.setState = function(value) { + return jspb.Message.setProto3EnumField(this, 9, value); +}; + + +/** + * optional uint64 state_changed_at = 10; + * @return {number} + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.getStateChangedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} returns this + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.setStateChangedAt = function(value) { + return jspb.Message.setProto3IntField(this, 10, value); +}; + + +/** + * optional uint64 created_at = 11; + * @return {number} + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.getCreatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} returns this + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.setCreatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 11, value); +}; + + +/** + * optional uint64 updated_at = 12; + * @return {number} + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.getUpdatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw} returns this + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdraw.prototype.setUpdatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 12, value); +}; + + +/** + * @enum {number} + */ +proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState = { + NONE: 0, + APPLICATION: 1, + COMPLETE: 2 +}; + +goog.object.extend(exports, proto.bet.beteran.member_bank_withdraw); diff --git a/src/app/modules/proto/models/member_class_pb.d.ts b/src/app/modules/proto/models/member_class_pb.d.ts new file mode 100644 index 0000000..c597b6b --- /dev/null +++ b/src/app/modules/proto/models/member_class_pb.d.ts @@ -0,0 +1,47 @@ +// package: bet.beteran.member_class +// file: models/member_class.proto + +import * as jspb from "google-protobuf"; + +export class MemberClass extends jspb.Message { + getId(): string; + setId(value: string): void; + + hasParentId(): boolean; + clearParentId(): void; + getParentId(): string; + setParentId(value: string): void; + + getName(): string; + setName(value: string): void; + + getShow(): boolean; + setShow(value: boolean): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MemberClass.AsObject; + static toObject(includeInstance: boolean, msg: MemberClass): MemberClass.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MemberClass, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MemberClass; + static deserializeBinaryFromReader(message: MemberClass, reader: jspb.BinaryReader): MemberClass; +} + +export namespace MemberClass { + export type AsObject = { + id: string, + parentId: string, + name: string, + show: boolean, + createdAt: number, + updatedAt: number, + } +} + diff --git a/src/app/modules/proto/models/member_class_pb.js b/src/app/modules/proto/models/member_class_pb.js new file mode 100644 index 0000000..e005ad3 --- /dev/null +++ b/src/app/modules/proto/models/member_class_pb.js @@ -0,0 +1,338 @@ +// source: models/member_class.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +goog.exportSymbol('proto.bet.beteran.member_class.MemberClass', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.member_class.MemberClass = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.member_class.MemberClass, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.member_class.MemberClass.displayName = 'proto.bet.beteran.member_class.MemberClass'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.member_class.MemberClass.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.member_class.MemberClass.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.member_class.MemberClass} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member_class.MemberClass.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + parentId: jspb.Message.getFieldWithDefault(msg, 2, ""), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + createdAt: jspb.Message.getFieldWithDefault(msg, 5, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 6, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.member_class.MemberClass} + */ +proto.bet.beteran.member_class.MemberClass.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.member_class.MemberClass; + return proto.bet.beteran.member_class.MemberClass.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.member_class.MemberClass} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.member_class.MemberClass} + */ +proto.bet.beteran.member_class.MemberClass.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setParentId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.member_class.MemberClass.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.member_class.MemberClass.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.member_class.MemberClass} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member_class.MemberClass.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getShow(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64( + 6, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.member_class.MemberClass.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_class.MemberClass} returns this + */ +proto.bet.beteran.member_class.MemberClass.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string parent_id = 2; + * @return {string} + */ +proto.bet.beteran.member_class.MemberClass.prototype.getParentId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_class.MemberClass} returns this + */ +proto.bet.beteran.member_class.MemberClass.prototype.setParentId = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member_class.MemberClass} returns this + */ +proto.bet.beteran.member_class.MemberClass.prototype.clearParentId = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member_class.MemberClass.prototype.hasParentId = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string name = 3; + * @return {string} + */ +proto.bet.beteran.member_class.MemberClass.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_class.MemberClass} returns this + */ +proto.bet.beteran.member_class.MemberClass.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional bool show = 4; + * @return {boolean} + */ +proto.bet.beteran.member_class.MemberClass.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.member_class.MemberClass} returns this + */ +proto.bet.beteran.member_class.MemberClass.prototype.setShow = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * optional uint64 created_at = 5; + * @return {number} + */ +proto.bet.beteran.member_class.MemberClass.prototype.getCreatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_class.MemberClass} returns this + */ +proto.bet.beteran.member_class.MemberClass.prototype.setCreatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional uint64 updated_at = 6; + * @return {number} + */ +proto.bet.beteran.member_class.MemberClass.prototype.getUpdatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_class.MemberClass} returns this + */ +proto.bet.beteran.member_class.MemberClass.prototype.setUpdatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +goog.object.extend(exports, proto.bet.beteran.member_class); diff --git a/src/app/modules/proto/models/member_level_pb.d.ts b/src/app/modules/proto/models/member_level_pb.d.ts new file mode 100644 index 0000000..90b4eb3 --- /dev/null +++ b/src/app/modules/proto/models/member_level_pb.d.ts @@ -0,0 +1,45 @@ +// package: bet.beteran.member_level +// file: models/member_level.proto + +import * as jspb from "google-protobuf"; + +export class MemberLevel extends jspb.Message { + getId(): string; + setId(value: string): void; + + getName(): string; + setName(value: string): void; + + getShow(): boolean; + setShow(value: boolean): void; + + getSortOrder(): number; + setSortOrder(value: number): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MemberLevel.AsObject; + static toObject(includeInstance: boolean, msg: MemberLevel): MemberLevel.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MemberLevel, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MemberLevel; + static deserializeBinaryFromReader(message: MemberLevel, reader: jspb.BinaryReader): MemberLevel; +} + +export namespace MemberLevel { + export type AsObject = { + id: string, + name: string, + show: boolean, + sortOrder: number, + createdAt: number, + updatedAt: number, + } +} + diff --git a/src/app/modules/proto/models/member_level_pb.js b/src/app/modules/proto/models/member_level_pb.js new file mode 100644 index 0000000..cd4bc7b --- /dev/null +++ b/src/app/modules/proto/models/member_level_pb.js @@ -0,0 +1,320 @@ +// source: models/member_level.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +goog.exportSymbol('proto.bet.beteran.member_level.MemberLevel', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.member_level.MemberLevel = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.member_level.MemberLevel, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.member_level.MemberLevel.displayName = 'proto.bet.beteran.member_level.MemberLevel'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.member_level.MemberLevel.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.member_level.MemberLevel.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.member_level.MemberLevel} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member_level.MemberLevel.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + sortOrder: jspb.Message.getFieldWithDefault(msg, 4, 0), + createdAt: jspb.Message.getFieldWithDefault(msg, 5, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 6, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.member_level.MemberLevel} + */ +proto.bet.beteran.member_level.MemberLevel.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.member_level.MemberLevel; + return proto.bet.beteran.member_level.MemberLevel.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.member_level.MemberLevel} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.member_level.MemberLevel} + */ +proto.bet.beteran.member_level.MemberLevel.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setSortOrder(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.member_level.MemberLevel.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.member_level.MemberLevel.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.member_level.MemberLevel} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member_level.MemberLevel.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getShow(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getSortOrder(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64( + 6, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.member_level.MemberLevel.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_level.MemberLevel} returns this + */ +proto.bet.beteran.member_level.MemberLevel.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string name = 2; + * @return {string} + */ +proto.bet.beteran.member_level.MemberLevel.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_level.MemberLevel} returns this + */ +proto.bet.beteran.member_level.MemberLevel.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional bool show = 3; + * @return {boolean} + */ +proto.bet.beteran.member_level.MemberLevel.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.member_level.MemberLevel} returns this + */ +proto.bet.beteran.member_level.MemberLevel.prototype.setShow = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional uint32 sort_order = 4; + * @return {number} + */ +proto.bet.beteran.member_level.MemberLevel.prototype.getSortOrder = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_level.MemberLevel} returns this + */ +proto.bet.beteran.member_level.MemberLevel.prototype.setSortOrder = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional uint64 created_at = 5; + * @return {number} + */ +proto.bet.beteran.member_level.MemberLevel.prototype.getCreatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_level.MemberLevel} returns this + */ +proto.bet.beteran.member_level.MemberLevel.prototype.setCreatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional uint64 updated_at = 6; + * @return {number} + */ +proto.bet.beteran.member_level.MemberLevel.prototype.getUpdatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_level.MemberLevel} returns this + */ +proto.bet.beteran.member_level.MemberLevel.prototype.setUpdatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +goog.object.extend(exports, proto.bet.beteran.member_level); diff --git a/src/app/modules/proto/models/member_pb.d.ts b/src/app/modules/proto/models/member_pb.d.ts new file mode 100644 index 0000000..98b2528 --- /dev/null +++ b/src/app/modules/proto/models/member_pb.d.ts @@ -0,0 +1,239 @@ +// package: bet.beteran.member +// file: models/member.proto + +import * as jspb from 'google-protobuf'; +import * as models_site_pb from '../models/site_pb'; +import * as models_member_bank_account_pb from '../models/member_bank_account_pb'; +import * as models_member_class_pb from '../models/member_class_pb'; +import * as models_member_level_pb from '../models/member_level_pb'; + +export class Member extends jspb.Message { + getId(): string; + setId(value: string): void; + + getSiteId(): string; + setSiteId(value: string): void; + + getMemberClassId(): string; + setMemberClassId(value: string): void; + + getMemberLevelId(): string; + setMemberLevelId(value: string): void; + + hasReferrerMemberId(): boolean; + clearReferrerMemberId(): void; + getReferrerMemberId(): string; + setReferrerMemberId(value: string): void; + + getReferredCount(): number; + setReferredCount(value: number): void; + + getUsername(): string; + setUsername(value: string): void; + + getNickname(): string; + setNickname(value: string): void; + + hasMobilePhoneNumber(): boolean; + clearMobilePhoneNumber(): void; + getMobilePhoneNumber(): string; + setMobilePhoneNumber(value: string): void; + + getState(): MemberStateMap[keyof MemberStateMap]; + setState(value: MemberStateMap[keyof MemberStateMap]): void; + + hasStateChangedAt(): boolean; + clearStateChangedAt(): void; + getStateChangedAt(): number; + setStateChangedAt(value: number): void; + + hasLastSigninedIp(): boolean; + clearLastSigninedIp(): void; + getLastSigninedIp(): string; + setLastSigninedIp(value: string): void; + + hasLastSigninedAt(): boolean; + clearLastSigninedAt(): void; + getLastSigninedAt(): number; + setLastSigninedAt(value: number): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + hasDeletedAt(): boolean; + clearDeletedAt(): void; + getDeletedAt(): number; + setDeletedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Member.AsObject; + static toObject(includeInstance: boolean, msg: Member): Member.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Member, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Member; + static deserializeBinaryFromReader( + message: Member, + reader: jspb.BinaryReader + ): Member; +} + +export namespace Member { + export type AsObject = { + id: string; + siteId: string; + memberClassId: string; + memberLevelId: string; + referrerMemberId: string; + referredCount: number; + username: string; + nickname: string; + mobilePhoneNumber: string; + state: MemberStateMap[keyof MemberStateMap]; + stateChangedAt: number; + lastSigninedIp: string; + lastSigninedAt: number; + createdAt: number; + updatedAt: number; + deletedAt: number; + }; +} + +export class MemberModel extends jspb.Message { + getId(): string; + setId(value: string): void; + + hasSite(): boolean; + clearSite(): void; + getSite(): models_site_pb.Site | undefined; + setSite(value?: models_site_pb.Site): void; + + hasMemberClass(): boolean; + clearMemberClass(): void; + getMemberClass(): models_member_class_pb.MemberClass | undefined; + setMemberClass(value?: models_member_class_pb.MemberClass): void; + + hasMemberLevel(): boolean; + clearMemberLevel(): void; + getMemberLevel(): models_member_level_pb.MemberLevel | undefined; + setMemberLevel(value?: models_member_level_pb.MemberLevel): void; + + hasBankAccount(): boolean; + clearBankAccount(): void; + getBankAccount(): + | models_member_bank_account_pb.MemberBankAccountModel + | undefined; + setBankAccount( + value?: models_member_bank_account_pb.MemberBankAccountModel + ): void; + + hasReferrerMember(): boolean; + clearReferrerMember(): void; + getReferrerMember(): Member | undefined; + setReferrerMember(value?: Member): void; + + getReferredCount(): number; + setReferredCount(value: number): void; + + getUsername(): string; + setUsername(value: string): void; + + getNickname(): string; + setNickname(value: string): void; + + hasMobilePhoneNumber(): boolean; + clearMobilePhoneNumber(): void; + getMobilePhoneNumber(): string; + setMobilePhoneNumber(value: string): void; + + getState(): MemberStateMap[keyof MemberStateMap]; + setState(value: MemberStateMap[keyof MemberStateMap]): void; + + hasStateChangedAt(): boolean; + clearStateChangedAt(): void; + getStateChangedAt(): number; + setStateChangedAt(value: number): void; + + hasLastSigninedIp(): boolean; + clearLastSigninedIp(): void; + getLastSigninedIp(): string; + setLastSigninedIp(value: string): void; + + hasLastSigninedAt(): boolean; + clearLastSigninedAt(): void; + getLastSigninedAt(): number; + setLastSigninedAt(value: number): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + hasDeletedAt(): boolean; + clearDeletedAt(): void; + getDeletedAt(): number; + setDeletedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MemberModel.AsObject; + static toObject( + includeInstance: boolean, + msg: MemberModel + ): MemberModel.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: MemberModel, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): MemberModel; + static deserializeBinaryFromReader( + message: MemberModel, + reader: jspb.BinaryReader + ): MemberModel; +} + +export namespace MemberModel { + export type AsObject = { + id: string; + site?: models_site_pb.Site.AsObject; + memberClass?: models_member_class_pb.MemberClass.AsObject; + memberLevel?: models_member_level_pb.MemberLevel.AsObject; + bankAccount?: models_member_bank_account_pb.MemberBankAccountModel.AsObject; + referrerMember?: Member.AsObject; + referredCount: number; + username: string; + nickname: string; + mobilePhoneNumber: string; + state: MemberStateMap[keyof MemberStateMap]; + stateChangedAt: number; + lastSigninedIp: string; + lastSigninedAt: number; + createdAt: number; + updatedAt: number; + deletedAt: number; + }; +} + +export interface MemberStateMap { + NONE: 0; + NORMAL: 1; + PENDING: 2; + WITHDRAWAL: 3; + DORMANCY: 4; + BLACKLIST: 5; + SUSPENDED: 6; +} + +export const MemberState: MemberStateMap; diff --git a/src/app/modules/proto/models/member_pb.js b/src/app/modules/proto/models/member_pb.js new file mode 100644 index 0000000..a02c0e7 --- /dev/null +++ b/src/app/modules/proto/models/member_pb.js @@ -0,0 +1,1486 @@ +// source: models/member.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +var models_site_pb = require("../models/site_pb.js"); +goog.object.extend(proto, models_site_pb); +var models_member_bank_account_pb = require("../models/member_bank_account_pb.js"); +goog.object.extend(proto, models_member_bank_account_pb); +var models_member_class_pb = require("../models/member_class_pb.js"); +goog.object.extend(proto, models_member_class_pb); +var models_member_level_pb = require("../models/member_level_pb.js"); +goog.object.extend(proto, models_member_level_pb); +goog.exportSymbol("proto.bet.beteran.member.Member", null, global); +goog.exportSymbol("proto.bet.beteran.member.MemberModel", null, global); +goog.exportSymbol("proto.bet.beteran.member.MemberState", null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.member.Member = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.member.Member, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.member.Member.displayName = + "proto.bet.beteran.member.Member"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.member.MemberModel = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.member.MemberModel, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.member.MemberModel.displayName = + "proto.bet.beteran.member.MemberModel"; +} + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.member.Member.prototype.toObject = function ( + opt_includeInstance + ) { + return proto.bet.beteran.member.Member.toObject(opt_includeInstance, this); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.member.Member} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.member.Member.toObject = function (includeInstance, msg) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + siteId: jspb.Message.getFieldWithDefault(msg, 2, ""), + memberClassId: jspb.Message.getFieldWithDefault(msg, 3, ""), + memberLevelId: jspb.Message.getFieldWithDefault(msg, 4, ""), + referrerMemberId: jspb.Message.getFieldWithDefault(msg, 5, ""), + referredCount: jspb.Message.getFieldWithDefault(msg, 6, 0), + username: jspb.Message.getFieldWithDefault(msg, 7, ""), + nickname: jspb.Message.getFieldWithDefault(msg, 8, ""), + mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 9, ""), + state: jspb.Message.getFieldWithDefault(msg, 10, 0), + stateChangedAt: jspb.Message.getFieldWithDefault(msg, 11, 0), + lastSigninedIp: jspb.Message.getFieldWithDefault(msg, 12, ""), + lastSigninedAt: jspb.Message.getFieldWithDefault(msg, 13, 0), + createdAt: jspb.Message.getFieldWithDefault(msg, 14, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 15, 0), + deletedAt: jspb.Message.getFieldWithDefault(msg, 16, 0), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.member.Member} + */ +proto.bet.beteran.member.Member.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.member.Member(); + return proto.bet.beteran.member.Member.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.member.Member} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.member.Member} + */ +proto.bet.beteran.member.Member.deserializeBinaryFromReader = function ( + msg, + reader +) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setSiteId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberClassId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberLevelId(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setReferrerMemberId(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setReferredCount(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setUsername(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setNickname(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setMobilePhoneNumber(value); + break; + case 10: + var value = /** @type {!proto.bet.beteran.member.MemberState} */ ( + reader.readEnum() + ); + msg.setState(value); + break; + case 11: + var value = /** @type {number} */ (reader.readUint64()); + msg.setStateChangedAt(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setLastSigninedIp(value); + break; + case 13: + var value = /** @type {number} */ (reader.readUint64()); + msg.setLastSigninedAt(value); + break; + case 14: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 15: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + case 16: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDeletedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.member.Member.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.member.Member.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.member.Member} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member.Member.serializeBinaryToWriter = function ( + message, + writer +) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getSiteId(); + if (f.length > 0) { + writer.writeString(2, f); + } + f = message.getMemberClassId(); + if (f.length > 0) { + writer.writeString(3, f); + } + f = message.getMemberLevelId(); + if (f.length > 0) { + writer.writeString(4, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeString(5, f); + } + f = message.getReferredCount(); + if (f !== 0) { + writer.writeUint64(6, f); + } + f = message.getUsername(); + if (f.length > 0) { + writer.writeString(7, f); + } + f = message.getNickname(); + if (f.length > 0) { + writer.writeString(8, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 9)); + if (f != null) { + writer.writeString(9, f); + } + f = message.getState(); + if (f !== 0.0) { + writer.writeEnum(10, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 11)); + if (f != null) { + writer.writeUint64(11, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 12)); + if (f != null) { + writer.writeString(12, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 13)); + if (f != null) { + writer.writeUint64(13, f); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64(14, f); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64(15, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 16)); + if (f != null) { + writer.writeUint64(16, f); + } +}; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.member.Member.prototype.getId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.setId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + +/** + * optional string site_id = 2; + * @return {string} + */ +proto.bet.beteran.member.Member.prototype.getSiteId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.setSiteId = function (value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + +/** + * optional string member_class_id = 3; + * @return {string} + */ +proto.bet.beteran.member.Member.prototype.getMemberClassId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.setMemberClassId = function (value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + +/** + * optional string member_level_id = 4; + * @return {string} + */ +proto.bet.beteran.member.Member.prototype.getMemberLevelId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.setMemberLevelId = function (value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + +/** + * optional string referrer_member_id = 5; + * @return {string} + */ +proto.bet.beteran.member.Member.prototype.getReferrerMemberId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.setReferrerMemberId = function ( + value +) { + return jspb.Message.setField(this, 5, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.clearReferrerMemberId = function () { + return jspb.Message.setField(this, 5, undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.Member.prototype.hasReferrerMemberId = function () { + return jspb.Message.getField(this, 5) != null; +}; + +/** + * optional uint64 referred_count = 6; + * @return {number} + */ +proto.bet.beteran.member.Member.prototype.getReferredCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.setReferredCount = function (value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + +/** + * optional string username = 7; + * @return {string} + */ +proto.bet.beteran.member.Member.prototype.getUsername = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.setUsername = function (value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + +/** + * optional string nickname = 8; + * @return {string} + */ +proto.bet.beteran.member.Member.prototype.getNickname = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.setNickname = function (value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + +/** + * optional string mobile_phone_number = 9; + * @return {string} + */ +proto.bet.beteran.member.Member.prototype.getMobilePhoneNumber = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.setMobilePhoneNumber = function ( + value +) { + return jspb.Message.setField(this, 9, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.clearMobilePhoneNumber = function () { + return jspb.Message.setField(this, 9, undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.Member.prototype.hasMobilePhoneNumber = function () { + return jspb.Message.getField(this, 9) != null; +}; + +/** + * optional MemberState state = 10; + * @return {!proto.bet.beteran.member.MemberState} + */ +proto.bet.beteran.member.Member.prototype.getState = function () { + return /** @type {!proto.bet.beteran.member.MemberState} */ ( + jspb.Message.getFieldWithDefault(this, 10, 0) + ); +}; + +/** + * @param {!proto.bet.beteran.member.MemberState} value + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.setState = function (value) { + return jspb.Message.setProto3EnumField(this, 10, value); +}; + +/** + * optional uint64 state_changed_at = 11; + * @return {number} + */ +proto.bet.beteran.member.Member.prototype.getStateChangedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.setStateChangedAt = function (value) { + return jspb.Message.setField(this, 11, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.clearStateChangedAt = function () { + return jspb.Message.setField(this, 11, undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.Member.prototype.hasStateChangedAt = function () { + return jspb.Message.getField(this, 11) != null; +}; + +/** + * optional string last_signined_ip = 12; + * @return {string} + */ +proto.bet.beteran.member.Member.prototype.getLastSigninedIp = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.setLastSigninedIp = function (value) { + return jspb.Message.setField(this, 12, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.clearLastSigninedIp = function () { + return jspb.Message.setField(this, 12, undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.Member.prototype.hasLastSigninedIp = function () { + return jspb.Message.getField(this, 12) != null; +}; + +/** + * optional uint64 last_signined_at = 13; + * @return {number} + */ +proto.bet.beteran.member.Member.prototype.getLastSigninedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.setLastSigninedAt = function (value) { + return jspb.Message.setField(this, 13, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.clearLastSigninedAt = function () { + return jspb.Message.setField(this, 13, undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.Member.prototype.hasLastSigninedAt = function () { + return jspb.Message.getField(this, 13) != null; +}; + +/** + * optional uint64 created_at = 14; + * @return {number} + */ +proto.bet.beteran.member.Member.prototype.getCreatedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.setCreatedAt = function (value) { + return jspb.Message.setProto3IntField(this, 14, value); +}; + +/** + * optional uint64 updated_at = 15; + * @return {number} + */ +proto.bet.beteran.member.Member.prototype.getUpdatedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.setUpdatedAt = function (value) { + return jspb.Message.setProto3IntField(this, 15, value); +}; + +/** + * optional uint64 deleted_at = 16; + * @return {number} + */ +proto.bet.beteran.member.Member.prototype.getDeletedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.setDeletedAt = function (value) { + return jspb.Message.setField(this, 16, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.clearDeletedAt = function () { + return jspb.Message.setField(this, 16, undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.Member.prototype.hasDeletedAt = function () { + return jspb.Message.getField(this, 16) != null; +}; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.member.MemberModel.prototype.toObject = function ( + opt_includeInstance + ) { + return proto.bet.beteran.member.MemberModel.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.member.MemberModel} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.member.MemberModel.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + site: + (f = msg.getSite()) && + models_site_pb.Site.toObject(includeInstance, f), + memberClass: + (f = msg.getMemberClass()) && + models_member_class_pb.MemberClass.toObject(includeInstance, f), + memberLevel: + (f = msg.getMemberLevel()) && + models_member_level_pb.MemberLevel.toObject(includeInstance, f), + bankAccount: + (f = msg.getBankAccount()) && + models_member_bank_account_pb.MemberBankAccountModel.toObject( + includeInstance, + f + ), + referrerMember: + (f = msg.getReferrerMember()) && + proto.bet.beteran.member.Member.toObject(includeInstance, f), + referredCount: jspb.Message.getFieldWithDefault(msg, 7, 0), + username: jspb.Message.getFieldWithDefault(msg, 8, ""), + nickname: jspb.Message.getFieldWithDefault(msg, 9, ""), + mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 10, ""), + state: jspb.Message.getFieldWithDefault(msg, 11, 0), + stateChangedAt: jspb.Message.getFieldWithDefault(msg, 12, 0), + lastSigninedIp: jspb.Message.getFieldWithDefault(msg, 13, ""), + lastSigninedAt: jspb.Message.getFieldWithDefault(msg, 14, 0), + createdAt: jspb.Message.getFieldWithDefault(msg, 15, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 16, 0), + deletedAt: jspb.Message.getFieldWithDefault(msg, 17, 0), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.member.MemberModel} + */ +proto.bet.beteran.member.MemberModel.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.member.MemberModel(); + return proto.bet.beteran.member.MemberModel.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.member.MemberModel} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.member.MemberModel} + */ +proto.bet.beteran.member.MemberModel.deserializeBinaryFromReader = function ( + msg, + reader +) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new models_site_pb.Site(); + reader.readMessage( + value, + models_site_pb.Site.deserializeBinaryFromReader + ); + msg.setSite(value); + break; + case 3: + var value = new models_member_class_pb.MemberClass(); + reader.readMessage( + value, + models_member_class_pb.MemberClass.deserializeBinaryFromReader + ); + msg.setMemberClass(value); + break; + case 4: + var value = new models_member_level_pb.MemberLevel(); + reader.readMessage( + value, + models_member_level_pb.MemberLevel.deserializeBinaryFromReader + ); + msg.setMemberLevel(value); + break; + case 5: + var value = new models_member_bank_account_pb.MemberBankAccountModel(); + reader.readMessage( + value, + models_member_bank_account_pb.MemberBankAccountModel + .deserializeBinaryFromReader + ); + msg.setBankAccount(value); + break; + case 6: + var value = new proto.bet.beteran.member.Member(); + reader.readMessage( + value, + proto.bet.beteran.member.Member.deserializeBinaryFromReader + ); + msg.setReferrerMember(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setReferredCount(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setUsername(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setNickname(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setMobilePhoneNumber(value); + break; + case 11: + var value = /** @type {!proto.bet.beteran.member.MemberState} */ ( + reader.readEnum() + ); + msg.setState(value); + break; + case 12: + var value = /** @type {number} */ (reader.readUint64()); + msg.setStateChangedAt(value); + break; + case 13: + var value = /** @type {string} */ (reader.readString()); + msg.setLastSigninedIp(value); + break; + case 14: + var value = /** @type {number} */ (reader.readUint64()); + msg.setLastSigninedAt(value); + break; + case 15: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 16: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + case 17: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDeletedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.member.MemberModel.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.member.MemberModel.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.member.MemberModel} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member.MemberModel.serializeBinaryToWriter = function ( + message, + writer +) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getSite(); + if (f != null) { + writer.writeMessage(2, f, models_site_pb.Site.serializeBinaryToWriter); + } + f = message.getMemberClass(); + if (f != null) { + writer.writeMessage( + 3, + f, + models_member_class_pb.MemberClass.serializeBinaryToWriter + ); + } + f = message.getMemberLevel(); + if (f != null) { + writer.writeMessage( + 4, + f, + models_member_level_pb.MemberLevel.serializeBinaryToWriter + ); + } + f = message.getBankAccount(); + if (f != null) { + writer.writeMessage( + 5, + f, + models_member_bank_account_pb.MemberBankAccountModel + .serializeBinaryToWriter + ); + } + f = message.getReferrerMember(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.bet.beteran.member.Member.serializeBinaryToWriter + ); + } + f = message.getReferredCount(); + if (f !== 0) { + writer.writeUint64(7, f); + } + f = message.getUsername(); + if (f.length > 0) { + writer.writeString(8, f); + } + f = message.getNickname(); + if (f.length > 0) { + writer.writeString(9, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 10)); + if (f != null) { + writer.writeString(10, f); + } + f = message.getState(); + if (f !== 0.0) { + writer.writeEnum(11, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 12)); + if (f != null) { + writer.writeUint64(12, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 13)); + if (f != null) { + writer.writeString(13, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 14)); + if (f != null) { + writer.writeUint64(14, f); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64(15, f); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64(16, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 17)); + if (f != null) { + writer.writeUint64(17, f); + } +}; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.member.MemberModel.prototype.getId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + +/** + * optional bet.beteran.site.Site site = 2; + * @return {?proto.bet.beteran.site.Site} + */ +proto.bet.beteran.member.MemberModel.prototype.getSite = function () { + return /** @type{?proto.bet.beteran.site.Site} */ ( + jspb.Message.getWrapperField(this, models_site_pb.Site, 2) + ); +}; + +/** + * @param {?proto.bet.beteran.site.Site|undefined} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setSite = function (value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearSite = function () { + return this.setSite(undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasSite = function () { + return jspb.Message.getField(this, 2) != null; +}; + +/** + * optional bet.beteran.member_class.MemberClass member_class = 3; + * @return {?proto.bet.beteran.member_class.MemberClass} + */ +proto.bet.beteran.member.MemberModel.prototype.getMemberClass = function () { + return /** @type{?proto.bet.beteran.member_class.MemberClass} */ ( + jspb.Message.getWrapperField(this, models_member_class_pb.MemberClass, 3) + ); +}; + +/** + * @param {?proto.bet.beteran.member_class.MemberClass|undefined} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setMemberClass = function ( + value +) { + return jspb.Message.setWrapperField(this, 3, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearMemberClass = function () { + return this.setMemberClass(undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasMemberClass = function () { + return jspb.Message.getField(this, 3) != null; +}; + +/** + * optional bet.beteran.member_level.MemberLevel member_level = 4; + * @return {?proto.bet.beteran.member_level.MemberLevel} + */ +proto.bet.beteran.member.MemberModel.prototype.getMemberLevel = function () { + return /** @type{?proto.bet.beteran.member_level.MemberLevel} */ ( + jspb.Message.getWrapperField(this, models_member_level_pb.MemberLevel, 4) + ); +}; + +/** + * @param {?proto.bet.beteran.member_level.MemberLevel|undefined} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setMemberLevel = function ( + value +) { + return jspb.Message.setWrapperField(this, 4, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearMemberLevel = function () { + return this.setMemberLevel(undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasMemberLevel = function () { + return jspb.Message.getField(this, 4) != null; +}; + +/** + * optional bet.beteran.member_bank_account.MemberBankAccountModel bank_account = 5; + * @return {?proto.bet.beteran.member_bank_account.MemberBankAccountModel} + */ +proto.bet.beteran.member.MemberModel.prototype.getBankAccount = function () { + return /** @type{?proto.bet.beteran.member_bank_account.MemberBankAccountModel} */ ( + jspb.Message.getWrapperField( + this, + models_member_bank_account_pb.MemberBankAccountModel, + 5 + ) + ); +}; + +/** + * @param {?proto.bet.beteran.member_bank_account.MemberBankAccountModel|undefined} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setBankAccount = function ( + value +) { + return jspb.Message.setWrapperField(this, 5, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearBankAccount = function () { + return this.setBankAccount(undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasBankAccount = function () { + return jspb.Message.getField(this, 5) != null; +}; + +/** + * optional Member referrer_member = 6; + * @return {?proto.bet.beteran.member.Member} + */ +proto.bet.beteran.member.MemberModel.prototype.getReferrerMember = function () { + return /** @type{?proto.bet.beteran.member.Member} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.member.Member, 6) + ); +}; + +/** + * @param {?proto.bet.beteran.member.Member|undefined} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setReferrerMember = function ( + value +) { + return jspb.Message.setWrapperField(this, 6, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearReferrerMember = + function () { + return this.setReferrerMember(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasReferrerMember = function () { + return jspb.Message.getField(this, 6) != null; +}; + +/** + * optional uint64 referred_count = 7; + * @return {number} + */ +proto.bet.beteran.member.MemberModel.prototype.getReferredCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setReferredCount = function ( + value +) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + +/** + * optional string username = 8; + * @return {string} + */ +proto.bet.beteran.member.MemberModel.prototype.getUsername = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setUsername = function (value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + +/** + * optional string nickname = 9; + * @return {string} + */ +proto.bet.beteran.member.MemberModel.prototype.getNickname = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setNickname = function (value) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + +/** + * optional string mobile_phone_number = 10; + * @return {string} + */ +proto.bet.beteran.member.MemberModel.prototype.getMobilePhoneNumber = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 10, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setMobilePhoneNumber = function ( + value +) { + return jspb.Message.setField(this, 10, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearMobilePhoneNumber = + function () { + return jspb.Message.setField(this, 10, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasMobilePhoneNumber = + function () { + return jspb.Message.getField(this, 10) != null; + }; + +/** + * optional MemberState state = 11; + * @return {!proto.bet.beteran.member.MemberState} + */ +proto.bet.beteran.member.MemberModel.prototype.getState = function () { + return /** @type {!proto.bet.beteran.member.MemberState} */ ( + jspb.Message.getFieldWithDefault(this, 11, 0) + ); +}; + +/** + * @param {!proto.bet.beteran.member.MemberState} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setState = function (value) { + return jspb.Message.setProto3EnumField(this, 11, value); +}; + +/** + * optional uint64 state_changed_at = 12; + * @return {number} + */ +proto.bet.beteran.member.MemberModel.prototype.getStateChangedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setStateChangedAt = function ( + value +) { + return jspb.Message.setField(this, 12, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearStateChangedAt = + function () { + return jspb.Message.setField(this, 12, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasStateChangedAt = function () { + return jspb.Message.getField(this, 12) != null; +}; + +/** + * optional string last_signined_ip = 13; + * @return {string} + */ +proto.bet.beteran.member.MemberModel.prototype.getLastSigninedIp = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setLastSigninedIp = function ( + value +) { + return jspb.Message.setField(this, 13, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearLastSigninedIp = + function () { + return jspb.Message.setField(this, 13, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasLastSigninedIp = function () { + return jspb.Message.getField(this, 13) != null; +}; + +/** + * optional uint64 last_signined_at = 14; + * @return {number} + */ +proto.bet.beteran.member.MemberModel.prototype.getLastSigninedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setLastSigninedAt = function ( + value +) { + return jspb.Message.setField(this, 14, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearLastSigninedAt = + function () { + return jspb.Message.setField(this, 14, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasLastSigninedAt = function () { + return jspb.Message.getField(this, 14) != null; +}; + +/** + * optional uint64 created_at = 15; + * @return {number} + */ +proto.bet.beteran.member.MemberModel.prototype.getCreatedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setCreatedAt = function (value) { + return jspb.Message.setProto3IntField(this, 15, value); +}; + +/** + * optional uint64 updated_at = 16; + * @return {number} + */ +proto.bet.beteran.member.MemberModel.prototype.getUpdatedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setUpdatedAt = function (value) { + return jspb.Message.setProto3IntField(this, 16, value); +}; + +/** + * optional uint64 deleted_at = 17; + * @return {number} + */ +proto.bet.beteran.member.MemberModel.prototype.getDeletedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setDeletedAt = function (value) { + return jspb.Message.setField(this, 17, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearDeletedAt = function () { + return jspb.Message.setField(this, 17, undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasDeletedAt = function () { + return jspb.Message.getField(this, 17) != null; +}; + +/** + * @enum {number} + */ +proto.bet.beteran.member.MemberState = { + NONE: 0, + NORMAL: 1, + PENDING: 2, + WITHDRAWAL: 3, + DORMANCY: 4, + BLACKLIST: 5, + SUSPENDED: 6, +}; + +goog.object.extend(exports, proto.bet.beteran.member); diff --git a/src/app/modules/proto/models/member_permission_pb.d.ts b/src/app/modules/proto/models/member_permission_pb.d.ts new file mode 100644 index 0000000..9f3e06a --- /dev/null +++ b/src/app/modules/proto/models/member_permission_pb.d.ts @@ -0,0 +1,5 @@ +// package: bet.beteran.member_permission +// file: models/member_permission.proto + +import * as jspb from "google-protobuf"; + diff --git a/src/app/modules/proto/models/member_permission_pb.js b/src/app/modules/proto/models/member_permission_pb.js new file mode 100644 index 0000000..f3f2c81 --- /dev/null +++ b/src/app/modules/proto/models/member_permission_pb.js @@ -0,0 +1,17 @@ +// source: models/member_permission.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + diff --git a/src/app/modules/proto/models/member_role_pb.d.ts b/src/app/modules/proto/models/member_role_pb.d.ts new file mode 100644 index 0000000..f5e529d --- /dev/null +++ b/src/app/modules/proto/models/member_role_pb.d.ts @@ -0,0 +1,5 @@ +// package: bet.beteran.member_role +// file: models/member_role.proto + +import * as jspb from "google-protobuf"; + diff --git a/src/app/modules/proto/models/member_role_pb.js b/src/app/modules/proto/models/member_role_pb.js new file mode 100644 index 0000000..253390a --- /dev/null +++ b/src/app/modules/proto/models/member_role_pb.js @@ -0,0 +1,17 @@ +// source: models/member_role.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + diff --git a/src/app/modules/proto/models/member_session_pb.d.ts b/src/app/modules/proto/models/member_session_pb.d.ts new file mode 100644 index 0000000..301fdc0 --- /dev/null +++ b/src/app/modules/proto/models/member_session_pb.d.ts @@ -0,0 +1,48 @@ +// package: bet.beteran.member_session +// file: models/member_session.proto + +import * as jspb from "google-protobuf"; +import * as models_member_pb from "../models/member_pb"; + +export class MemberSession extends jspb.Message { + getId(): string; + setId(value: string): void; + + hasMember(): boolean; + clearMember(): void; + getMember(): models_member_pb.Member | undefined; + setMember(value?: models_member_pb.Member): void; + + getData(): string; + setData(value: string): void; + + getLastAccessedAt(): number; + setLastAccessedAt(value: number): void; + + getExpiresAt(): number; + setExpiresAt(value: number): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MemberSession.AsObject; + static toObject(includeInstance: boolean, msg: MemberSession): MemberSession.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MemberSession, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MemberSession; + static deserializeBinaryFromReader(message: MemberSession, reader: jspb.BinaryReader): MemberSession; +} + +export namespace MemberSession { + export type AsObject = { + id: string, + member?: models_member_pb.Member.AsObject, + data: string, + lastAccessedAt: number, + expiresAt: number, + createdAt: number, + } +} + diff --git a/src/app/modules/proto/models/member_session_pb.js b/src/app/modules/proto/models/member_session_pb.js new file mode 100644 index 0000000..36a092c --- /dev/null +++ b/src/app/modules/proto/models/member_session_pb.js @@ -0,0 +1,343 @@ +// source: models/member_session.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +var models_member_pb = require('../models/member_pb.js'); +goog.object.extend(proto, models_member_pb); +goog.exportSymbol('proto.bet.beteran.member_session.MemberSession', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.member_session.MemberSession = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.member_session.MemberSession, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.member_session.MemberSession.displayName = 'proto.bet.beteran.member_session.MemberSession'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.member_session.MemberSession.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.member_session.MemberSession.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.member_session.MemberSession} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member_session.MemberSession.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + member: (f = msg.getMember()) && models_member_pb.Member.toObject(includeInstance, f), + data: jspb.Message.getFieldWithDefault(msg, 3, ""), + lastAccessedAt: jspb.Message.getFieldWithDefault(msg, 4, 0), + expiresAt: jspb.Message.getFieldWithDefault(msg, 5, 0), + createdAt: jspb.Message.getFieldWithDefault(msg, 6, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.member_session.MemberSession} + */ +proto.bet.beteran.member_session.MemberSession.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.member_session.MemberSession; + return proto.bet.beteran.member_session.MemberSession.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.member_session.MemberSession} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.member_session.MemberSession} + */ +proto.bet.beteran.member_session.MemberSession.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new models_member_pb.Member; + reader.readMessage(value,models_member_pb.Member.deserializeBinaryFromReader); + msg.setMember(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setData(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setLastAccessedAt(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setExpiresAt(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.member_session.MemberSession.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.member_session.MemberSession.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.member_session.MemberSession} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member_session.MemberSession.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getMember(); + if (f != null) { + writer.writeMessage( + 2, + f, + models_member_pb.Member.serializeBinaryToWriter + ); + } + f = message.getData(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getLastAccessedAt(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } + f = message.getExpiresAt(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64( + 6, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.member_session.MemberSession.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_session.MemberSession} returns this + */ +proto.bet.beteran.member_session.MemberSession.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bet.beteran.member.Member member = 2; + * @return {?proto.bet.beteran.member.Member} + */ +proto.bet.beteran.member_session.MemberSession.prototype.getMember = function() { + return /** @type{?proto.bet.beteran.member.Member} */ ( + jspb.Message.getWrapperField(this, models_member_pb.Member, 2)); +}; + + +/** + * @param {?proto.bet.beteran.member.Member|undefined} value + * @return {!proto.bet.beteran.member_session.MemberSession} returns this +*/ +proto.bet.beteran.member_session.MemberSession.prototype.setMember = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member_session.MemberSession} returns this + */ +proto.bet.beteran.member_session.MemberSession.prototype.clearMember = function() { + return this.setMember(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member_session.MemberSession.prototype.hasMember = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string data = 3; + * @return {string} + */ +proto.bet.beteran.member_session.MemberSession.prototype.getData = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_session.MemberSession} returns this + */ +proto.bet.beteran.member_session.MemberSession.prototype.setData = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional uint64 last_accessed_at = 4; + * @return {number} + */ +proto.bet.beteran.member_session.MemberSession.prototype.getLastAccessedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_session.MemberSession} returns this + */ +proto.bet.beteran.member_session.MemberSession.prototype.setLastAccessedAt = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional uint64 expires_at = 5; + * @return {number} + */ +proto.bet.beteran.member_session.MemberSession.prototype.getExpiresAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_session.MemberSession} returns this + */ +proto.bet.beteran.member_session.MemberSession.prototype.setExpiresAt = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional uint64 created_at = 6; + * @return {number} + */ +proto.bet.beteran.member_session.MemberSession.prototype.getCreatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_session.MemberSession} returns this + */ +proto.bet.beteran.member_session.MemberSession.prototype.setCreatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +goog.object.extend(exports, proto.bet.beteran.member_session); diff --git a/src/app/modules/proto/models/resource_action_pb.d.ts b/src/app/modules/proto/models/resource_action_pb.d.ts new file mode 100644 index 0000000..601075b --- /dev/null +++ b/src/app/modules/proto/models/resource_action_pb.d.ts @@ -0,0 +1,56 @@ +// package: bet.beteran.resource_action +// file: models/resource_action.proto + +import * as jspb from "google-protobuf"; +import * as models_resource_pb from "../models/resource_pb"; + +export class ResourceAction extends jspb.Message { + getId(): string; + setId(value: string): void; + + hasResource(): boolean; + clearResource(): void; + getResource(): models_resource_pb.Resource | undefined; + setResource(value?: models_resource_pb.Resource): void; + + getName(): string; + setName(value: string): void; + + getKey(): string; + setKey(value: string): void; + + getDescription(): string; + setDescription(value: string): void; + + getCanUse(): boolean; + setCanUse(value: boolean): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ResourceAction.AsObject; + static toObject(includeInstance: boolean, msg: ResourceAction): ResourceAction.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ResourceAction, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ResourceAction; + static deserializeBinaryFromReader(message: ResourceAction, reader: jspb.BinaryReader): ResourceAction; +} + +export namespace ResourceAction { + export type AsObject = { + id: string, + resource?: models_resource_pb.Resource.AsObject, + name: string, + key: string, + description: string, + canUse: boolean, + createdAt: number, + updatedAt: number, + } +} + diff --git a/src/app/modules/proto/models/resource_action_pb.js b/src/app/modules/proto/models/resource_action_pb.js new file mode 100644 index 0000000..5158a6e --- /dev/null +++ b/src/app/modules/proto/models/resource_action_pb.js @@ -0,0 +1,403 @@ +// source: models/resource_action.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +var models_resource_pb = require('../models/resource_pb.js'); +goog.object.extend(proto, models_resource_pb); +goog.exportSymbol('proto.bet.beteran.resource_action.ResourceAction', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.resource_action.ResourceAction = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.resource_action.ResourceAction, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.resource_action.ResourceAction.displayName = 'proto.bet.beteran.resource_action.ResourceAction'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.resource_action.ResourceAction.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.resource_action.ResourceAction} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.resource_action.ResourceAction.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + resource: (f = msg.getResource()) && models_resource_pb.Resource.toObject(includeInstance, f), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + key: jspb.Message.getFieldWithDefault(msg, 4, ""), + description: jspb.Message.getFieldWithDefault(msg, 5, ""), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + createdAt: jspb.Message.getFieldWithDefault(msg, 7, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 8, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.resource_action.ResourceAction} + */ +proto.bet.beteran.resource_action.ResourceAction.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.resource_action.ResourceAction; + return proto.bet.beteran.resource_action.ResourceAction.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.resource_action.ResourceAction} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.resource_action.ResourceAction} + */ +proto.bet.beteran.resource_action.ResourceAction.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new models_resource_pb.Resource; + reader.readMessage(value,models_resource_pb.Resource.deserializeBinaryFromReader); + msg.setResource(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setKey(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCanUse(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.resource_action.ResourceAction.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.resource_action.ResourceAction} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.resource_action.ResourceAction.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getResource(); + if (f != null) { + writer.writeMessage( + 2, + f, + models_resource_pb.Resource.serializeBinaryToWriter + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getKey(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getCanUse(); + if (f) { + writer.writeBool( + 6, + f + ); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64( + 7, + f + ); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.resource_action.ResourceAction} returns this + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bet.beteran.resource.Resource resource = 2; + * @return {?proto.bet.beteran.resource.Resource} + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.getResource = function() { + return /** @type{?proto.bet.beteran.resource.Resource} */ ( + jspb.Message.getWrapperField(this, models_resource_pb.Resource, 2)); +}; + + +/** + * @param {?proto.bet.beteran.resource.Resource|undefined} value + * @return {!proto.bet.beteran.resource_action.ResourceAction} returns this +*/ +proto.bet.beteran.resource_action.ResourceAction.prototype.setResource = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.resource_action.ResourceAction} returns this + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.clearResource = function() { + return this.setResource(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.hasResource = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string name = 3; + * @return {string} + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.resource_action.ResourceAction} returns this + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string key = 4; + * @return {string} + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.getKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.resource_action.ResourceAction} returns this + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.setKey = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string description = 5; + * @return {string} + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.resource_action.ResourceAction} returns this + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional bool can_use = 6; + * @return {boolean} + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.getCanUse = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.resource_action.ResourceAction} returns this + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.setCanUse = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); +}; + + +/** + * optional uint64 created_at = 7; + * @return {number} + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.getCreatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.resource_action.ResourceAction} returns this + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.setCreatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional uint64 updated_at = 8; + * @return {number} + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.getUpdatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.resource_action.ResourceAction} returns this + */ +proto.bet.beteran.resource_action.ResourceAction.prototype.setUpdatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +goog.object.extend(exports, proto.bet.beteran.resource_action); diff --git a/src/app/modules/proto/models/resource_pb.d.ts b/src/app/modules/proto/models/resource_pb.d.ts new file mode 100644 index 0000000..eb82368 --- /dev/null +++ b/src/app/modules/proto/models/resource_pb.d.ts @@ -0,0 +1,55 @@ +// package: bet.beteran.resource +// file: models/resource.proto + +import * as jspb from "google-protobuf"; + +export class Resource extends jspb.Message { + getId(): string; + setId(value: string): void; + + hasParent(): boolean; + clearParent(): void; + getParent(): Resource | undefined; + setParent(value?: Resource): void; + + getName(): string; + setName(value: string): void; + + getKey(): string; + setKey(value: string): void; + + getDescription(): string; + setDescription(value: string): void; + + getCanUse(): boolean; + setCanUse(value: boolean): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Resource.AsObject; + static toObject(includeInstance: boolean, msg: Resource): Resource.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Resource, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Resource; + static deserializeBinaryFromReader(message: Resource, reader: jspb.BinaryReader): Resource; +} + +export namespace Resource { + export type AsObject = { + id: string, + parent?: Resource.AsObject, + name: string, + key: string, + description: string, + canUse: boolean, + createdAt: number, + updatedAt: number, + } +} + diff --git a/src/app/modules/proto/models/resource_pb.js b/src/app/modules/proto/models/resource_pb.js new file mode 100644 index 0000000..a289c9d --- /dev/null +++ b/src/app/modules/proto/models/resource_pb.js @@ -0,0 +1,401 @@ +// source: models/resource.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +goog.exportSymbol('proto.bet.beteran.resource.Resource', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.resource.Resource = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.resource.Resource, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.resource.Resource.displayName = 'proto.bet.beteran.resource.Resource'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.resource.Resource.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.resource.Resource.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.resource.Resource} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.resource.Resource.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + parent: (f = msg.getParent()) && proto.bet.beteran.resource.Resource.toObject(includeInstance, f), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + key: jspb.Message.getFieldWithDefault(msg, 4, ""), + description: jspb.Message.getFieldWithDefault(msg, 5, ""), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + createdAt: jspb.Message.getFieldWithDefault(msg, 7, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 8, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.resource.Resource} + */ +proto.bet.beteran.resource.Resource.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.resource.Resource; + return proto.bet.beteran.resource.Resource.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.resource.Resource} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.resource.Resource} + */ +proto.bet.beteran.resource.Resource.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new proto.bet.beteran.resource.Resource; + reader.readMessage(value,proto.bet.beteran.resource.Resource.deserializeBinaryFromReader); + msg.setParent(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setKey(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCanUse(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.resource.Resource.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.resource.Resource.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.resource.Resource} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.resource.Resource.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getParent(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.resource.Resource.serializeBinaryToWriter + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getKey(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getCanUse(); + if (f) { + writer.writeBool( + 6, + f + ); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64( + 7, + f + ); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.resource.Resource.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.resource.Resource} returns this + */ +proto.bet.beteran.resource.Resource.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional Resource parent = 2; + * @return {?proto.bet.beteran.resource.Resource} + */ +proto.bet.beteran.resource.Resource.prototype.getParent = function() { + return /** @type{?proto.bet.beteran.resource.Resource} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.resource.Resource, 2)); +}; + + +/** + * @param {?proto.bet.beteran.resource.Resource|undefined} value + * @return {!proto.bet.beteran.resource.Resource} returns this +*/ +proto.bet.beteran.resource.Resource.prototype.setParent = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.resource.Resource} returns this + */ +proto.bet.beteran.resource.Resource.prototype.clearParent = function() { + return this.setParent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.resource.Resource.prototype.hasParent = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string name = 3; + * @return {string} + */ +proto.bet.beteran.resource.Resource.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.resource.Resource} returns this + */ +proto.bet.beteran.resource.Resource.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string key = 4; + * @return {string} + */ +proto.bet.beteran.resource.Resource.prototype.getKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.resource.Resource} returns this + */ +proto.bet.beteran.resource.Resource.prototype.setKey = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string description = 5; + * @return {string} + */ +proto.bet.beteran.resource.Resource.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.resource.Resource} returns this + */ +proto.bet.beteran.resource.Resource.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional bool can_use = 6; + * @return {boolean} + */ +proto.bet.beteran.resource.Resource.prototype.getCanUse = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.resource.Resource} returns this + */ +proto.bet.beteran.resource.Resource.prototype.setCanUse = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); +}; + + +/** + * optional uint64 created_at = 7; + * @return {number} + */ +proto.bet.beteran.resource.Resource.prototype.getCreatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.resource.Resource} returns this + */ +proto.bet.beteran.resource.Resource.prototype.setCreatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional uint64 updated_at = 8; + * @return {number} + */ +proto.bet.beteran.resource.Resource.prototype.getUpdatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.resource.Resource} returns this + */ +proto.bet.beteran.resource.Resource.prototype.setUpdatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +goog.object.extend(exports, proto.bet.beteran.resource); diff --git a/src/app/modules/proto/models/role_pb.d.ts b/src/app/modules/proto/models/role_pb.d.ts new file mode 100644 index 0000000..c2f9fa7 --- /dev/null +++ b/src/app/modules/proto/models/role_pb.d.ts @@ -0,0 +1,55 @@ +// package: bet.beteran.role +// file: models/role.proto + +import * as jspb from "google-protobuf"; + +export class Role extends jspb.Message { + getId(): string; + setId(value: string): void; + + hasParent(): boolean; + clearParent(): void; + getParent(): Role | undefined; + setParent(value?: Role): void; + + getName(): string; + setName(value: string): void; + + getKey(): string; + setKey(value: string): void; + + getDescription(): string; + setDescription(value: string): void; + + getCanUse(): boolean; + setCanUse(value: boolean): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Role.AsObject; + static toObject(includeInstance: boolean, msg: Role): Role.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Role, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Role; + static deserializeBinaryFromReader(message: Role, reader: jspb.BinaryReader): Role; +} + +export namespace Role { + export type AsObject = { + id: string, + parent?: Role.AsObject, + name: string, + key: string, + description: string, + canUse: boolean, + createdAt: number, + updatedAt: number, + } +} + diff --git a/src/app/modules/proto/models/role_pb.js b/src/app/modules/proto/models/role_pb.js new file mode 100644 index 0000000..8d2aa35 --- /dev/null +++ b/src/app/modules/proto/models/role_pb.js @@ -0,0 +1,401 @@ +// source: models/role.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +goog.exportSymbol('proto.bet.beteran.role.Role', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.role.Role = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.role.Role, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.role.Role.displayName = 'proto.bet.beteran.role.Role'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.role.Role.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.role.Role.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.role.Role} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.role.Role.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + parent: (f = msg.getParent()) && proto.bet.beteran.role.Role.toObject(includeInstance, f), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + key: jspb.Message.getFieldWithDefault(msg, 4, ""), + description: jspb.Message.getFieldWithDefault(msg, 5, ""), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + createdAt: jspb.Message.getFieldWithDefault(msg, 7, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 8, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.role.Role} + */ +proto.bet.beteran.role.Role.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.role.Role; + return proto.bet.beteran.role.Role.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.role.Role} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.role.Role} + */ +proto.bet.beteran.role.Role.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new proto.bet.beteran.role.Role; + reader.readMessage(value,proto.bet.beteran.role.Role.deserializeBinaryFromReader); + msg.setParent(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setKey(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCanUse(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.role.Role.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.role.Role.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.role.Role} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.role.Role.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getParent(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.role.Role.serializeBinaryToWriter + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getKey(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getCanUse(); + if (f) { + writer.writeBool( + 6, + f + ); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64( + 7, + f + ); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.role.Role.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.role.Role} returns this + */ +proto.bet.beteran.role.Role.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional Role parent = 2; + * @return {?proto.bet.beteran.role.Role} + */ +proto.bet.beteran.role.Role.prototype.getParent = function() { + return /** @type{?proto.bet.beteran.role.Role} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.role.Role, 2)); +}; + + +/** + * @param {?proto.bet.beteran.role.Role|undefined} value + * @return {!proto.bet.beteran.role.Role} returns this +*/ +proto.bet.beteran.role.Role.prototype.setParent = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.role.Role} returns this + */ +proto.bet.beteran.role.Role.prototype.clearParent = function() { + return this.setParent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.role.Role.prototype.hasParent = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string name = 3; + * @return {string} + */ +proto.bet.beteran.role.Role.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.role.Role} returns this + */ +proto.bet.beteran.role.Role.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string key = 4; + * @return {string} + */ +proto.bet.beteran.role.Role.prototype.getKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.role.Role} returns this + */ +proto.bet.beteran.role.Role.prototype.setKey = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string description = 5; + * @return {string} + */ +proto.bet.beteran.role.Role.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.role.Role} returns this + */ +proto.bet.beteran.role.Role.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional bool can_use = 6; + * @return {boolean} + */ +proto.bet.beteran.role.Role.prototype.getCanUse = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.role.Role} returns this + */ +proto.bet.beteran.role.Role.prototype.setCanUse = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); +}; + + +/** + * optional uint64 created_at = 7; + * @return {number} + */ +proto.bet.beteran.role.Role.prototype.getCreatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.role.Role} returns this + */ +proto.bet.beteran.role.Role.prototype.setCreatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional uint64 updated_at = 8; + * @return {number} + */ +proto.bet.beteran.role.Role.prototype.getUpdatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.role.Role} returns this + */ +proto.bet.beteran.role.Role.prototype.setUpdatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +goog.object.extend(exports, proto.bet.beteran.role); diff --git a/src/app/modules/proto/models/site_pb.d.ts b/src/app/modules/proto/models/site_pb.d.ts new file mode 100644 index 0000000..a3a5560 --- /dev/null +++ b/src/app/modules/proto/models/site_pb.d.ts @@ -0,0 +1,69 @@ +// package: bet.beteran.site +// file: models/site.proto + +import * as jspb from "google-protobuf"; + +export class Site extends jspb.Message { + getId(): string; + setId(value: string): void; + + getUrl(): string; + setUrl(value: string): void; + + hasName(): boolean; + clearName(): void; + getName(): string; + setName(value: string): void; + + hasPath(): boolean; + clearPath(): void; + getPath(): string; + setPath(value: string): void; + + getShow(): boolean; + setShow(value: boolean): void; + + getCanUse(): boolean; + setCanUse(value: boolean): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + hasExpiresAt(): boolean; + clearExpiresAt(): void; + getExpiresAt(): number; + setExpiresAt(value: number): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Site.AsObject; + static toObject(includeInstance: boolean, msg: Site): Site.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Site, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Site; + static deserializeBinaryFromReader(message: Site, reader: jspb.BinaryReader): Site; +} + +export namespace Site { + export type AsObject = { + id: string, + url: string, + name: string, + path: string, + show: boolean, + canUse: boolean, + memo: string, + expiresAt: number, + createdAt: number, + updatedAt: number, + } +} + diff --git a/src/app/modules/proto/models/site_pb.js b/src/app/modules/proto/models/site_pb.js new file mode 100644 index 0000000..5c7066a --- /dev/null +++ b/src/app/modules/proto/models/site_pb.js @@ -0,0 +1,512 @@ +// source: models/site.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +goog.exportSymbol('proto.bet.beteran.site.Site', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.site.Site = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.site.Site, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.site.Site.displayName = 'proto.bet.beteran.site.Site'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.beteran.site.Site.prototype.toObject = function(opt_includeInstance) { + return proto.bet.beteran.site.Site.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.site.Site} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.site.Site.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + url: jspb.Message.getFieldWithDefault(msg, 2, ""), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + path: jspb.Message.getFieldWithDefault(msg, 4, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + memo: jspb.Message.getFieldWithDefault(msg, 7, ""), + expiresAt: jspb.Message.getFieldWithDefault(msg, 8, 0), + createdAt: jspb.Message.getFieldWithDefault(msg, 9, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 10, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.site.Site} + */ +proto.bet.beteran.site.Site.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.site.Site; + return proto.bet.beteran.site.Site.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.site.Site} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.site.Site} + */ +proto.bet.beteran.site.Site.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setUrl(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setPath(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCanUse(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setExpiresAt(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 10: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.site.Site.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.site.Site.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.site.Site} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.site.Site.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getUrl(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString( + 3, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString( + 4, + f + ); + } + f = message.getShow(); + if (f) { + writer.writeBool( + 5, + f + ); + } + f = message.getCanUse(); + if (f) { + writer.writeBool( + 6, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeString( + 7, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeUint64( + 8, + f + ); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64( + 9, + f + ); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64( + 10, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.site.Site.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.site.Site} returns this + */ +proto.bet.beteran.site.Site.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string url = 2; + * @return {string} + */ +proto.bet.beteran.site.Site.prototype.getUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.site.Site} returns this + */ +proto.bet.beteran.site.Site.prototype.setUrl = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string name = 3; + * @return {string} + */ +proto.bet.beteran.site.Site.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.site.Site} returns this + */ +proto.bet.beteran.site.Site.prototype.setName = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.site.Site} returns this + */ +proto.bet.beteran.site.Site.prototype.clearName = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.site.Site.prototype.hasName = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string path = 4; + * @return {string} + */ +proto.bet.beteran.site.Site.prototype.getPath = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.site.Site} returns this + */ +proto.bet.beteran.site.Site.prototype.setPath = function(value) { + return jspb.Message.setField(this, 4, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.site.Site} returns this + */ +proto.bet.beteran.site.Site.prototype.clearPath = function() { + return jspb.Message.setField(this, 4, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.site.Site.prototype.hasPath = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional bool show = 5; + * @return {boolean} + */ +proto.bet.beteran.site.Site.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.site.Site} returns this + */ +proto.bet.beteran.site.Site.prototype.setShow = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + +/** + * optional bool can_use = 6; + * @return {boolean} + */ +proto.bet.beteran.site.Site.prototype.getCanUse = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.site.Site} returns this + */ +proto.bet.beteran.site.Site.prototype.setCanUse = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); +}; + + +/** + * optional string memo = 7; + * @return {string} + */ +proto.bet.beteran.site.Site.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.beteran.site.Site} returns this + */ +proto.bet.beteran.site.Site.prototype.setMemo = function(value) { + return jspb.Message.setField(this, 7, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.site.Site} returns this + */ +proto.bet.beteran.site.Site.prototype.clearMemo = function() { + return jspb.Message.setField(this, 7, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.site.Site.prototype.hasMemo = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional uint64 expires_at = 8; + * @return {number} + */ +proto.bet.beteran.site.Site.prototype.getExpiresAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.site.Site} returns this + */ +proto.bet.beteran.site.Site.prototype.setExpiresAt = function(value) { + return jspb.Message.setField(this, 8, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.site.Site} returns this + */ +proto.bet.beteran.site.Site.prototype.clearExpiresAt = function() { + return jspb.Message.setField(this, 8, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.site.Site.prototype.hasExpiresAt = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional uint64 created_at = 9; + * @return {number} + */ +proto.bet.beteran.site.Site.prototype.getCreatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.site.Site} returns this + */ +proto.bet.beteran.site.Site.prototype.setCreatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); +}; + + +/** + * optional uint64 updated_at = 10; + * @return {number} + */ +proto.bet.beteran.site.Site.prototype.getUpdatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.site.Site} returns this + */ +proto.bet.beteran.site.Site.prototype.setUpdatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 10, value); +}; + + +goog.object.extend(exports, proto.bet.beteran.site); diff --git a/src/app/modules/proto/protobuf/pagination_pb.d.ts b/src/app/modules/proto/protobuf/pagination_pb.d.ts new file mode 100644 index 0000000..030e64b --- /dev/null +++ b/src/app/modules/proto/protobuf/pagination_pb.d.ts @@ -0,0 +1,64 @@ +// package: bet.protobuf.pagination +// file: protobuf/pagination.proto + +import * as jspb from "google-protobuf"; + +export class Pagination extends jspb.Message { + hasPage(): boolean; + clearPage(): void; + getPage(): number; + setPage(value: number): void; + + hasPageSize(): boolean; + clearPageSize(): void; + getPageSize(): number; + setPageSize(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Pagination.AsObject; + static toObject(includeInstance: boolean, msg: Pagination): Pagination.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Pagination, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Pagination; + static deserializeBinaryFromReader(message: Pagination, reader: jspb.BinaryReader): Pagination; +} + +export namespace Pagination { + export type AsObject = { + page: number, + pageSize: number, + } +} + +export class Sort extends jspb.Message { + getBy(): string; + setBy(value: string): void; + + getOrder(): SortOrderMap[keyof SortOrderMap]; + setOrder(value: SortOrderMap[keyof SortOrderMap]): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Sort.AsObject; + static toObject(includeInstance: boolean, msg: Sort): Sort.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Sort, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Sort; + static deserializeBinaryFromReader(message: Sort, reader: jspb.BinaryReader): Sort; +} + +export namespace Sort { + export type AsObject = { + by: string, + order: SortOrderMap[keyof SortOrderMap], + } +} + +export interface SortOrderMap { + ASC: 0; + DESC: 1; +} + +export const SortOrder: SortOrderMap; + diff --git a/src/app/modules/proto/protobuf/pagination_pb.js b/src/app/modules/proto/protobuf/pagination_pb.js new file mode 100644 index 0000000..f00f9d1 --- /dev/null +++ b/src/app/modules/proto/protobuf/pagination_pb.js @@ -0,0 +1,427 @@ +// source: protobuf/pagination.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +goog.exportSymbol('proto.bet.protobuf.pagination.Pagination', null, global); +goog.exportSymbol('proto.bet.protobuf.pagination.Sort', null, global); +goog.exportSymbol('proto.bet.protobuf.pagination.SortOrder', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.protobuf.pagination.Pagination = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.protobuf.pagination.Pagination, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.protobuf.pagination.Pagination.displayName = 'proto.bet.protobuf.pagination.Pagination'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.protobuf.pagination.Sort = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.protobuf.pagination.Sort, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.protobuf.pagination.Sort.displayName = 'proto.bet.protobuf.pagination.Sort'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.protobuf.pagination.Pagination.prototype.toObject = function(opt_includeInstance) { + return proto.bet.protobuf.pagination.Pagination.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.protobuf.pagination.Pagination} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.protobuf.pagination.Pagination.toObject = function(includeInstance, msg) { + var f, obj = { + page: jspb.Message.getFieldWithDefault(msg, 1, 0), + pageSize: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.protobuf.pagination.Pagination.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.protobuf.pagination.Pagination; + return proto.bet.protobuf.pagination.Pagination.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.protobuf.pagination.Pagination} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.protobuf.pagination.Pagination.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPageSize(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.protobuf.pagination.Pagination.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.protobuf.pagination.Pagination.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.protobuf.pagination.Pagination} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.protobuf.pagination.Pagination.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {number} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeUint32( + 1, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeUint32( + 2, + f + ); + } +}; + + +/** + * optional uint32 page = 1; + * @return {number} + */ +proto.bet.protobuf.pagination.Pagination.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.protobuf.pagination.Pagination} returns this + */ +proto.bet.protobuf.pagination.Pagination.prototype.setPage = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.protobuf.pagination.Pagination} returns this + */ +proto.bet.protobuf.pagination.Pagination.prototype.clearPage = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.protobuf.pagination.Pagination.prototype.hasPage = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint32 page_size = 2; + * @return {number} + */ +proto.bet.protobuf.pagination.Pagination.prototype.getPageSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.protobuf.pagination.Pagination} returns this + */ +proto.bet.protobuf.pagination.Pagination.prototype.setPageSize = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.protobuf.pagination.Pagination} returns this + */ +proto.bet.protobuf.pagination.Pagination.prototype.clearPageSize = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.protobuf.pagination.Pagination.prototype.hasPageSize = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.protobuf.pagination.Sort.prototype.toObject = function(opt_includeInstance) { + return proto.bet.protobuf.pagination.Sort.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.protobuf.pagination.Sort} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.protobuf.pagination.Sort.toObject = function(includeInstance, msg) { + var f, obj = { + by: jspb.Message.getFieldWithDefault(msg, 1, ""), + order: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.protobuf.pagination.Sort} + */ +proto.bet.protobuf.pagination.Sort.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.protobuf.pagination.Sort; + return proto.bet.protobuf.pagination.Sort.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.protobuf.pagination.Sort} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.protobuf.pagination.Sort} + */ +proto.bet.protobuf.pagination.Sort.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setBy(value); + break; + case 2: + var value = /** @type {!proto.bet.protobuf.pagination.SortOrder} */ (reader.readEnum()); + msg.setOrder(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.protobuf.pagination.Sort.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.protobuf.pagination.Sort.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.protobuf.pagination.Sort} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.protobuf.pagination.Sort.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBy(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getOrder(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } +}; + + +/** + * optional string by = 1; + * @return {string} + */ +proto.bet.protobuf.pagination.Sort.prototype.getBy = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.protobuf.pagination.Sort} returns this + */ +proto.bet.protobuf.pagination.Sort.prototype.setBy = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional SortOrder order = 2; + * @return {!proto.bet.protobuf.pagination.SortOrder} + */ +proto.bet.protobuf.pagination.Sort.prototype.getOrder = function() { + return /** @type {!proto.bet.protobuf.pagination.SortOrder} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.bet.protobuf.pagination.SortOrder} value + * @return {!proto.bet.protobuf.pagination.Sort} returns this + */ +proto.bet.protobuf.pagination.Sort.prototype.setOrder = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * @enum {number} + */ +proto.bet.protobuf.pagination.SortOrder = { + ASC: 0, + DESC: 1 +}; + +goog.object.extend(exports, proto.bet.protobuf.pagination); diff --git a/src/app/modules/proto/protobuf/rpc_pb.d.ts b/src/app/modules/proto/protobuf/rpc_pb.d.ts new file mode 100644 index 0000000..a54594b --- /dev/null +++ b/src/app/modules/proto/protobuf/rpc_pb.d.ts @@ -0,0 +1,89 @@ +// package: bet.protobuf.rpc +// file: protobuf/rpc.proto + +import * as jspb from "google-protobuf"; + +export class Error extends jspb.Message { + getCode(): number; + setCode(value: number): void; + + getMessage(): string; + setMessage(value: string): void; + + hasData(): boolean; + clearData(): void; + getData(): Uint8Array | string; + getData_asU8(): Uint8Array; + getData_asB64(): string; + setData(value: Uint8Array | string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Error.AsObject; + static toObject(includeInstance: boolean, msg: Error): Error.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Error, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Error; + static deserializeBinaryFromReader(message: Error, reader: jspb.BinaryReader): Error; +} + +export namespace Error { + export type AsObject = { + code: number, + message: string, + data: Uint8Array | string, + } +} + +export class InvalidParamsDetail extends jspb.Message { + getLocation(): string; + setLocation(value: string): void; + + getParam(): string; + setParam(value: string): void; + + getValue(): string; + setValue(value: string): void; + + getErrorType(): InvalidParamsTypeMap[keyof InvalidParamsTypeMap]; + setErrorType(value: InvalidParamsTypeMap[keyof InvalidParamsTypeMap]): void; + + getMessage(): string; + setMessage(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InvalidParamsDetail.AsObject; + static toObject(includeInstance: boolean, msg: InvalidParamsDetail): InvalidParamsDetail.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: InvalidParamsDetail, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InvalidParamsDetail; + static deserializeBinaryFromReader(message: InvalidParamsDetail, reader: jspb.BinaryReader): InvalidParamsDetail; +} + +export namespace InvalidParamsDetail { + export type AsObject = { + location: string, + param: string, + value: string, + errorType: InvalidParamsTypeMap[keyof InvalidParamsTypeMap], + message: string, + } +} + +export interface InvalidParamsTypeMap { + NONE: 0; + DATE_TIME: 1; + DECIMAL: 2; + EQUALS_TO: 3; + FLOAT: 4; + INTEGER: 5; + RANGE: 6; + REG_EX: 7; + REQUIRED: 8; + STRING_LENGTH: 9; + URL: 10; +} + +export const InvalidParamsType: InvalidParamsTypeMap; + diff --git a/src/app/modules/proto/protobuf/rpc_pb.js b/src/app/modules/proto/protobuf/rpc_pb.js new file mode 100644 index 0000000..3c1c868 --- /dev/null +++ b/src/app/modules/proto/protobuf/rpc_pb.js @@ -0,0 +1,562 @@ +// source: protobuf/rpc.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +goog.exportSymbol('proto.bet.protobuf.rpc.Error', null, global); +goog.exportSymbol('proto.bet.protobuf.rpc.InvalidParamsDetail', null, global); +goog.exportSymbol('proto.bet.protobuf.rpc.InvalidParamsType', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.protobuf.rpc.Error = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.protobuf.rpc.Error, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.protobuf.rpc.Error.displayName = 'proto.bet.protobuf.rpc.Error'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.protobuf.rpc.InvalidParamsDetail = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.protobuf.rpc.InvalidParamsDetail, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.protobuf.rpc.InvalidParamsDetail.displayName = 'proto.bet.protobuf.rpc.InvalidParamsDetail'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.protobuf.rpc.Error.prototype.toObject = function(opt_includeInstance) { + return proto.bet.protobuf.rpc.Error.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.protobuf.rpc.Error} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.protobuf.rpc.Error.toObject = function(includeInstance, msg) { + var f, obj = { + code: jspb.Message.getFieldWithDefault(msg, 1, 0), + message: jspb.Message.getFieldWithDefault(msg, 2, ""), + data: msg.getData_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.protobuf.rpc.Error} + */ +proto.bet.protobuf.rpc.Error.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.protobuf.rpc.Error; + return proto.bet.protobuf.rpc.Error.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.protobuf.rpc.Error} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.protobuf.rpc.Error} + */ +proto.bet.protobuf.rpc.Error.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCode(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setMessage(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setData(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.protobuf.rpc.Error.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.protobuf.rpc.Error.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.protobuf.rpc.Error} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.protobuf.rpc.Error.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCode(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getMessage(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeBytes( + 3, + f + ); + } +}; + + +/** + * optional int32 code = 1; + * @return {number} + */ +proto.bet.protobuf.rpc.Error.prototype.getCode = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.protobuf.rpc.Error} returns this + */ +proto.bet.protobuf.rpc.Error.prototype.setCode = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string message = 2; + * @return {string} + */ +proto.bet.protobuf.rpc.Error.prototype.getMessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.protobuf.rpc.Error} returns this + */ +proto.bet.protobuf.rpc.Error.prototype.setMessage = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional bytes data = 3; + * @return {!(string|Uint8Array)} + */ +proto.bet.protobuf.rpc.Error.prototype.getData = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes data = 3; + * This is a type-conversion wrapper around `getData()` + * @return {string} + */ +proto.bet.protobuf.rpc.Error.prototype.getData_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getData())); +}; + + +/** + * optional bytes data = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getData()` + * @return {!Uint8Array} + */ +proto.bet.protobuf.rpc.Error.prototype.getData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getData())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.bet.protobuf.rpc.Error} returns this + */ +proto.bet.protobuf.rpc.Error.prototype.setData = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.protobuf.rpc.Error} returns this + */ +proto.bet.protobuf.rpc.Error.prototype.clearData = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.protobuf.rpc.Error.prototype.hasData = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.toObject = function(opt_includeInstance) { + return proto.bet.protobuf.rpc.InvalidParamsDetail.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.protobuf.rpc.InvalidParamsDetail} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.protobuf.rpc.InvalidParamsDetail.toObject = function(includeInstance, msg) { + var f, obj = { + location: jspb.Message.getFieldWithDefault(msg, 1, ""), + param: jspb.Message.getFieldWithDefault(msg, 2, ""), + value: jspb.Message.getFieldWithDefault(msg, 3, ""), + errorType: jspb.Message.getFieldWithDefault(msg, 4, 0), + message: jspb.Message.getFieldWithDefault(msg, 5, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.protobuf.rpc.InvalidParamsDetail} + */ +proto.bet.protobuf.rpc.InvalidParamsDetail.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.protobuf.rpc.InvalidParamsDetail; + return proto.bet.protobuf.rpc.InvalidParamsDetail.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.protobuf.rpc.InvalidParamsDetail} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.protobuf.rpc.InvalidParamsDetail} + */ +proto.bet.protobuf.rpc.InvalidParamsDetail.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setLocation(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setParam(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setValue(value); + break; + case 4: + var value = /** @type {!proto.bet.protobuf.rpc.InvalidParamsType} */ (reader.readEnum()); + msg.setErrorType(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setMessage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.bet.protobuf.rpc.InvalidParamsDetail.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.protobuf.rpc.InvalidParamsDetail} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.protobuf.rpc.InvalidParamsDetail.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLocation(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getParam(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getValue(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getErrorType(); + if (f !== 0.0) { + writer.writeEnum( + 4, + f + ); + } + f = message.getMessage(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } +}; + + +/** + * optional string location = 1; + * @return {string} + */ +proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.getLocation = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.protobuf.rpc.InvalidParamsDetail} returns this + */ +proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.setLocation = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string param = 2; + * @return {string} + */ +proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.getParam = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.protobuf.rpc.InvalidParamsDetail} returns this + */ +proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.setParam = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string value = 3; + * @return {string} + */ +proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.getValue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.protobuf.rpc.InvalidParamsDetail} returns this + */ +proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.setValue = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional InvalidParamsType error_type = 4; + * @return {!proto.bet.protobuf.rpc.InvalidParamsType} + */ +proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.getErrorType = function() { + return /** @type {!proto.bet.protobuf.rpc.InvalidParamsType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {!proto.bet.protobuf.rpc.InvalidParamsType} value + * @return {!proto.bet.protobuf.rpc.InvalidParamsDetail} returns this + */ +proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.setErrorType = function(value) { + return jspb.Message.setProto3EnumField(this, 4, value); +}; + + +/** + * optional string message = 5; + * @return {string} + */ +proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.getMessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.bet.protobuf.rpc.InvalidParamsDetail} returns this + */ +proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.setMessage = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * @enum {number} + */ +proto.bet.protobuf.rpc.InvalidParamsType = { + NONE: 0, + DATE_TIME: 1, + DECIMAL: 2, + EQUALS_TO: 3, + FLOAT: 4, + INTEGER: 5, + RANGE: 6, + REG_EX: 7, + REQUIRED: 8, + STRING_LENGTH: 9, + URL: 10 +}; + +goog.object.extend(exports, proto.bet.protobuf.rpc);