From efdcec27bbdfd96185777167272722f35352a556 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Sat, 13 Aug 2022 20:15:48 +0000 Subject: [PATCH] refactoring --- src/app/app.module.ts | 18 +- src/app/core/auth/auth.service.ts | 2 +- src/app/core/nats/services/nats.service.ts | 4 +- .../partner/components/list.component.ts | 15 +- .../partner/compose/cash-compose.component.ts | 6 +- .../compose/commission-compose.component.ts | 6 +- .../compose/regist-compose.component.ts | 12 +- .../partner/resolvers/partner.resolver.ts | 9 +- .../member/user/components/list.component.ts | 2 +- .../member/user/components/view.component.ts | 4 +- .../member/user/resolvers/user.resolver.ts | 2 +- .../domain/components/list.component.ts | 4 +- .../domain/resolvers/site.resolver.ts | 4 +- .../sign-in/components/sign-in.component.ts | 2 +- .../sign-in/resolvers/sign-in.resolver.ts | 4 +- .../domain.module.ts => bank/bank.module.ts} | 8 +- .../polyglot/bank/services/bank.service.ts | 148 + .../modules/polyglot/bank/services/index.ts | 5 + .../polyglot/identity/identity.module.ts | 16 + .../services/identity.service.ts | 10 +- .../polyglot/identity/services/index.ts | 5 + .../modules/polyglot/member/services/index.ts | 3 +- .../member/services/member.service.ts | 17 +- .../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 + .../{domain => site}/services/index.ts | 0 .../{domain => site}/services/site.service.ts | 7 +- src/app/modules/polyglot/site/site.module.ts | 16 + .../c2se/backend/bank_pb.d.ts} | 5 +- 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 ++++++++++++ .../c2se/core/network_pb.d.ts | 2 +- .../c2se/core/network_pb.js | 0 .../modules/proto/c2se/frontend/bank_pb.d.ts | 7 + .../c2se/frontend/bank_pb.js} | 14 +- .../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 | 448 ++ .../proto/c2se/member_bank_account_pb.js | 3498 ++++++++++++ .../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 | 404 ++ src/app/modules/proto/c2se/member_class_pb.js | 3156 ++++++++++ .../modules/proto/c2se/member_level_pb.d.ts | 400 ++ src/app/modules/proto/c2se/member_level_pb.js | 3120 ++++++++++ src/app/modules/proto/c2se/member_pb.d.ts | 646 +++ src/app/modules/proto/c2se/member_pb.js | 5058 +++++++++++++++++ src/app/modules/proto/c2se/site_pb.d.ts | 486 ++ src/app/modules/proto/c2se/site_pb.js | 3804 +++++++++++++ .../account => proto/models}/bank_pb.d.ts | 43 +- src/app/modules/proto/models/bank_pb.js | 398 ++ .../models/core/network_pb.d.ts | 27 +- .../models/core/network_pb.js | 198 +- .../proto/models/member_bank_account_pb.d.ts | 55 + .../proto/models/member_bank_account_pb.js | 398 ++ .../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 | 43 + .../modules/proto/models/member_class_pb.js | 308 + .../modules/proto/models/member_level_pb.d.ts | 41 + .../modules/proto/models/member_level_pb.js | 290 + .../member => proto/models}/member_pb.d.ts | 128 +- .../member => proto/models}/member_pb.js | 1170 ++-- .../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 ++ .../rbac => proto/models}/resource_pb.d.ts | 41 +- src/app/modules/proto/models/resource_pb.js | 401 ++ .../models/rbac => proto/models}/role_pb.d.ts | 42 +- src/app/modules/proto/models/role_pb.js | 401 ++ .../domain => proto/models}/site_pb.d.ts | 45 +- 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 ++ .../protobuf/c2se/backend/account_pb.js | 33 - .../protobuf/c2se/backend/identity_pb.d.ts | 123 - .../protobuf/c2se/backend/identity_pb.js | 723 --- .../c2se/backend/member_class_pb.d.ts | 555 -- .../protobuf/c2se/backend/member_class_pb.js | 3543 ------------ .../c2se/backend/member_level_pb.d.ts | 551 -- .../protobuf/c2se/backend/member_level_pb.js | 3504 ------------ .../protobuf/c2se/backend/member_pb.d.ts | 764 --- .../protobuf/c2se/backend/member_pb.js | 4961 ---------------- .../protobuf/c2se/backend/site_pb.d.ts | 534 -- .../modules/protobuf/c2se/backend/site_pb.js | 3510 ------------ .../modules/protobuf/c2se/common/bank_pb.d.ts | 487 -- .../modules/protobuf/c2se/common/bank_pb.js | 3171 ----------- .../protobuf/c2se/common/identity_pb.d.ts | 314 - .../protobuf/c2se/common/identity_pb.js | 1826 ------ .../protobuf/c2se/frontend/account_pb.d.ts | 6 - .../protobuf/c2se/frontend/identity_pb.d.ts | 123 - .../protobuf/c2se/frontend/identity_pb.js | 723 --- .../protobuf/models/account/bank_pb.js | 345 -- .../modules/protobuf/models/domain/site_pb.js | 461 -- .../models/member/member_class_pb.d.ts | 53 - .../protobuf/models/member/member_class_pb.js | 294 - .../models/member/member_level_pb.d.ts | 51 - .../protobuf/models/member/member_level_pb.js | 278 - .../models/member/member_session_pb.d.ts | 58 - .../models/member/member_session_pb.js | 340 -- .../models/rbac/resource_action_pb.d.ts | 66 - .../models/rbac/resource_action_pb.js | 391 -- .../protobuf/models/rbac/resource_pb.js | 377 -- .../modules/protobuf/models/rbac/role_pb.js | 375 -- .../protobuf/pagination/pagination_pb.d.ts | 43 - .../protobuf/pagination/pagination_pb.js | 239 - .../protobuf/pagination/search_pb.d.ts | 36 - .../protobuf/protobuf/pagination/search_pb.js | 203 - .../protobuf/protobuf/pagination/sort_pb.d.ts | 43 - .../protobuf/protobuf/pagination/sort_pb.js | 216 - .../protobuf/protobuf/rpc/error_pb.d.ts | 212 - .../modules/protobuf/protobuf/rpc/error_pb.js | 655 --- 155 files changed, 45288 insertions(+), 31083 deletions(-) rename src/app/modules/polyglot/{domain/domain.module.ts => bank/bank.module.ts} (54%) 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 rename src/app/modules/polyglot/{member => identity}/services/identity.service.ts (95%) create mode 100644 src/app/modules/polyglot/identity/services/index.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 rename src/app/modules/polyglot/{domain => site}/services/index.ts (100%) rename src/app/modules/polyglot/{domain => site}/services/site.service.ts (92%) create mode 100644 src/app/modules/polyglot/site/site.module.ts rename src/app/modules/{protobuf/c2se/backend/account_pb.d.ts => proto/c2se/backend/bank_pb.d.ts} (64%) 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 rename src/app/modules/{protobuf => proto}/c2se/core/network_pb.d.ts (72%) rename src/app/modules/{protobuf => proto}/c2se/core/network_pb.js (100%) create mode 100644 src/app/modules/proto/c2se/frontend/bank_pb.d.ts rename src/app/modules/{protobuf/c2se/frontend/account_pb.js => proto/c2se/frontend/bank_pb.js} (55%) 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 rename src/app/modules/{protobuf/models/account => proto/models}/bank_pb.d.ts (53%) create mode 100644 src/app/modules/proto/models/bank_pb.js rename src/app/modules/{protobuf => proto}/models/core/network_pb.d.ts (58%) rename src/app/modules/{protobuf => proto}/models/core/network_pb.js (63%) 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 rename src/app/modules/{protobuf/models/member => proto/models}/member_pb.d.ts (59%) rename src/app/modules/{protobuf/models/member => proto/models}/member_pb.js (61%) 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 rename src/app/modules/{protobuf/models/rbac => proto/models}/resource_pb.d.ts (56%) create mode 100644 src/app/modules/proto/models/resource_pb.js rename src/app/modules/{protobuf/models/rbac => proto/models}/role_pb.d.ts (53%) create mode 100644 src/app/modules/proto/models/role_pb.js rename src/app/modules/{protobuf/models/domain => proto/models}/site_pb.d.ts (61%) 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 delete mode 100644 src/app/modules/protobuf/c2se/backend/account_pb.js delete mode 100644 src/app/modules/protobuf/c2se/backend/identity_pb.d.ts delete mode 100644 src/app/modules/protobuf/c2se/backend/identity_pb.js delete mode 100644 src/app/modules/protobuf/c2se/backend/member_class_pb.d.ts delete mode 100644 src/app/modules/protobuf/c2se/backend/member_class_pb.js delete mode 100644 src/app/modules/protobuf/c2se/backend/member_level_pb.d.ts delete mode 100644 src/app/modules/protobuf/c2se/backend/member_level_pb.js delete mode 100644 src/app/modules/protobuf/c2se/backend/member_pb.d.ts delete mode 100644 src/app/modules/protobuf/c2se/backend/member_pb.js delete mode 100644 src/app/modules/protobuf/c2se/backend/site_pb.d.ts delete mode 100644 src/app/modules/protobuf/c2se/backend/site_pb.js delete mode 100644 src/app/modules/protobuf/c2se/common/bank_pb.d.ts delete mode 100644 src/app/modules/protobuf/c2se/common/bank_pb.js delete mode 100644 src/app/modules/protobuf/c2se/common/identity_pb.d.ts delete mode 100644 src/app/modules/protobuf/c2se/common/identity_pb.js delete mode 100644 src/app/modules/protobuf/c2se/frontend/account_pb.d.ts delete mode 100644 src/app/modules/protobuf/c2se/frontend/identity_pb.d.ts delete mode 100644 src/app/modules/protobuf/c2se/frontend/identity_pb.js delete mode 100644 src/app/modules/protobuf/models/account/bank_pb.js delete mode 100644 src/app/modules/protobuf/models/domain/site_pb.js delete mode 100644 src/app/modules/protobuf/models/member/member_class_pb.d.ts delete mode 100644 src/app/modules/protobuf/models/member/member_class_pb.js delete mode 100644 src/app/modules/protobuf/models/member/member_level_pb.d.ts delete mode 100644 src/app/modules/protobuf/models/member/member_level_pb.js delete mode 100644 src/app/modules/protobuf/models/member/member_session_pb.d.ts delete mode 100644 src/app/modules/protobuf/models/member/member_session_pb.js delete mode 100644 src/app/modules/protobuf/models/rbac/resource_action_pb.d.ts delete mode 100644 src/app/modules/protobuf/models/rbac/resource_action_pb.js delete mode 100644 src/app/modules/protobuf/models/rbac/resource_pb.js delete mode 100644 src/app/modules/protobuf/models/rbac/role_pb.js delete mode 100644 src/app/modules/protobuf/protobuf/pagination/pagination_pb.d.ts delete mode 100644 src/app/modules/protobuf/protobuf/pagination/pagination_pb.js delete mode 100644 src/app/modules/protobuf/protobuf/pagination/search_pb.d.ts delete mode 100644 src/app/modules/protobuf/protobuf/pagination/search_pb.js delete mode 100644 src/app/modules/protobuf/protobuf/pagination/sort_pb.d.ts delete mode 100644 src/app/modules/protobuf/protobuf/pagination/sort_pb.js delete mode 100644 src/app/modules/protobuf/protobuf/rpc/error_pb.d.ts delete mode 100644 src/app/modules/protobuf/protobuf/rpc/error_pb.js diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 9b74490..cd71169 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -21,8 +21,15 @@ import { WebStorageModule } from 'app/core/web-storage/web-storage.module'; import { environment } from 'environments/environment'; -import { DomainModule } from 'app/modules/polyglot/domain/domain.module'; +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'; const routerConfig: ExtraOptions = { preloadingStrategy: PreloadAllModules, @@ -54,8 +61,15 @@ const routerConfig: ExtraOptions = { NatsModule.forRoot(environment.nats), WebStorageModule.forRoot({}), - DomainModule.forRoot(), + BankModule.forRoot(), + IdentityModule.forRoot(), + MemberBankAccountModule.forRoot(), + MemberBankDepositModule.forRoot(), + MemberBankWithdrawModule.forRoot(), + MemberClassModule.forRoot(), + MemberLevelModule.forRoot(), MemberModule.forRoot(), + SiteModule.forRoot(), ], bootstrap: [AppComponent], }) diff --git a/src/app/core/auth/auth.service.ts b/src/app/core/auth/auth.service.ts index 4cdfe4c..f177a7a 100644 --- a/src/app/core/auth/auth.service.ts +++ b/src/app/core/auth/auth.service.ts @@ -3,7 +3,7 @@ import { HttpClient } from '@angular/common/http'; import { catchError, Observable, of, switchMap, throwError } from 'rxjs'; import { AuthUtils } from 'app/core/auth/auth.utils'; import { WebSessionStorageService } from 'app/core/web-storage/services/web-session-storage.service'; -import { IdentityService } from 'app/modules/polyglot/member/services/identity.service'; +import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service'; @Injectable() export class AuthService { diff --git a/src/app/core/nats/services/nats.service.ts b/src/app/core/nats/services/nats.service.ts index 09cceb3..d4f434e 100644 --- a/src/app/core/nats/services/nats.service.ts +++ b/src/app/core/nats/services/nats.service.ts @@ -5,8 +5,8 @@ import * as jspb from 'google-protobuf'; import * as nats from 'nats.ws'; import { Base64 } from 'js-base64'; -import { HEADER_CLIENT } from 'app/modules/protobuf/c2se/core/network_pb'; -import { Client } from 'app/modules/protobuf/models/core/network_pb'; +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'; diff --git a/src/app/modules/admin/member/partner/components/list.component.ts b/src/app/modules/admin/member/partner/components/list.component.ts index fddc3fe..5c6b5fa 100644 --- a/src/app/modules/admin/member/partner/components/list.component.ts +++ b/src/app/modules/admin/member/partner/components/list.component.ts @@ -41,15 +41,15 @@ import { CashComposeComponent } from '../compose/cash-compose.component'; import { CommissionComposeComponent } from '../compose/commission-compose.component'; import { MatDialog } from '@angular/material/dialog'; -import { SiteService } from 'app/modules/polyglot/domain/services/site.service'; -import { Site } from 'app/modules/protobuf/models/domain/site_pb'; +import { SiteService } from 'app/modules/polyglot/site/services/site.service'; +import { Site } from 'app/modules/proto/models/site_pb'; import { MemberService } from 'app/modules/polyglot/member/services/member.service'; -import { MemberModel } from 'app/modules/protobuf/models/member/member_pb'; +import { MemberModel } from 'app/modules/proto/models/member_pb'; import { ListMembersRequest, ListMembersResponse, -} from 'app/modules/protobuf/c2se/backend/member_pb'; -import { Pagination } from 'app/modules/protobuf/protobuf/pagination/pagination_pb'; +} from 'app/modules/proto/c2se/member_pb'; +import { Pagination } from 'app/modules/proto/protobuf/pagination_pb'; @Component({ selector: 'partner-list', templateUrl: './list.component.html', @@ -189,7 +189,10 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { paging.setPageSize(this._paginator.pageSize); req.setPagination(paging); - req.setMemberClassId('4b014ef5-3bab-4413-aaf9-b0040a70ec77'); + let search = new ListMembersRequest.Search(); + search.setMemberClassId('4b014ef5-3bab-4413-aaf9-b0040a70ec77'); + req.setSearch(search); + return of(this.__memberService.listMembers(req)); }), map(() => { diff --git a/src/app/modules/admin/member/partner/compose/cash-compose.component.ts b/src/app/modules/admin/member/partner/compose/cash-compose.component.ts index da7965b..21b0dda 100644 --- a/src/app/modules/admin/member/partner/compose/cash-compose.component.ts +++ b/src/app/modules/admin/member/partner/compose/cash-compose.component.ts @@ -7,9 +7,9 @@ import { } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; -import { SiteService } from 'app/modules/polyglot/domain/services/site.service'; -import { IdentityService } from 'app/modules/polyglot/member/services/identity.service'; -import { Site } from 'app/modules/protobuf/models/domain/site_pb'; +import { SiteService } from 'app/modules/polyglot/site/services/site.service'; +import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service'; +import { Site } from 'app/modules/proto/models/site_pb'; export interface CashComposeData { price: string; diff --git a/src/app/modules/admin/member/partner/compose/commission-compose.component.ts b/src/app/modules/admin/member/partner/compose/commission-compose.component.ts index 02c47df..f40d22b 100644 --- a/src/app/modules/admin/member/partner/compose/commission-compose.component.ts +++ b/src/app/modules/admin/member/partner/compose/commission-compose.component.ts @@ -7,9 +7,9 @@ import { } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; -import { SiteService } from 'app/modules/polyglot/domain/services/site.service'; -import { IdentityService } from 'app/modules/polyglot/member/services/identity.service'; -import { Site } from 'app/modules/protobuf/models/domain/site_pb'; +import { SiteService } from 'app/modules/polyglot/site/services/site.service'; +import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service'; +import { Site } from 'app/modules/proto/models/site_pb'; export interface CommissionComposeData { price: string; diff --git a/src/app/modules/admin/member/partner/compose/regist-compose.component.ts b/src/app/modules/admin/member/partner/compose/regist-compose.component.ts index d860139..2c9b083 100644 --- a/src/app/modules/admin/member/partner/compose/regist-compose.component.ts +++ b/src/app/modules/admin/member/partner/compose/regist-compose.component.ts @@ -8,16 +8,16 @@ import { import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; import { FuseAlertType } from '@fuse/components/alert'; -import { SiteService } from 'app/modules/polyglot/domain/services/site.service'; -import { IdentityService } from 'app/modules/polyglot/member/services/identity.service'; +import { SiteService } from 'app/modules/polyglot/site/services/site.service'; +import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service'; import { MemberService } from 'app/modules/polyglot/member/services/member.service'; import { CreateMemberRequest, CreateMemberResponse, -} from 'app/modules/protobuf/c2se/backend/member_pb'; -import { Bank } from 'app/modules/protobuf/models/account/bank_pb'; -import { Site } from 'app/modules/protobuf/models/domain/site_pb'; -import { MemberModel } from 'app/modules/protobuf/models/member/member_pb'; +} from 'app/modules/proto/c2se/member_pb'; +import { Bank } from 'app/modules/proto/models/bank_pb'; +import { Site } from 'app/modules/proto/models/site_pb'; +import { MemberModel } from 'app/modules/proto/models/member_pb'; import { fuseAnimations } from '@fuse/animations'; export interface RegistComposeData { diff --git a/src/app/modules/admin/member/partner/resolvers/partner.resolver.ts b/src/app/modules/admin/member/partner/resolvers/partner.resolver.ts index be8fc94..89f65d2 100644 --- a/src/app/modules/admin/member/partner/resolvers/partner.resolver.ts +++ b/src/app/modules/admin/member/partner/resolvers/partner.resolver.ts @@ -9,8 +9,8 @@ import { MemberService } from 'app/modules/polyglot/member/services/member.servi import { ListMembersRequest, ListMembersResponse, -} from 'app/modules/protobuf/c2se/backend/member_pb'; -import { Pagination } from 'app/modules/protobuf/protobuf/pagination/pagination_pb'; +} from 'app/modules/proto/c2se/member_pb'; +import { Pagination } from 'app/modules/proto/protobuf/pagination_pb'; import { catchError, Observable, throwError } from 'rxjs'; import { Partner } from '../models/partner'; @@ -121,8 +121,9 @@ export class PartnerListResolver implements Resolve { | Promise | ListMembersResponse.Result { let req = new ListMembersRequest(); - - req.setMemberClassId('4b014ef5-3bab-4413-aaf9-b0040a70ec77'); + let search = new ListMembersRequest.Search(); + search.setMemberClassId('4b014ef5-3bab-4413-aaf9-b0040a70ec77'); + req.setSearch(search); return this.__memberService.listMembers(req); } diff --git a/src/app/modules/admin/member/user/components/list.component.ts b/src/app/modules/admin/member/user/components/list.component.ts index d7c2c27..8146510 100644 --- a/src/app/modules/admin/member/user/components/list.component.ts +++ b/src/app/modules/admin/member/user/components/list.component.ts @@ -19,7 +19,7 @@ import { User } from '../models/user'; import { UserPagination } from '../models/user-pagination'; import { UserService } from '../services/user.service'; import { Router } from '@angular/router'; -import { IdentityService } from 'app/modules/polyglot/member/services/identity.service'; +import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service'; @Component({ selector: 'user-list', diff --git a/src/app/modules/admin/member/user/components/view.component.ts b/src/app/modules/admin/member/user/components/view.component.ts index f4aee34..9175472 100644 --- a/src/app/modules/admin/member/user/components/view.component.ts +++ b/src/app/modules/admin/member/user/components/view.component.ts @@ -32,8 +32,8 @@ import { FuseConfirmationService } from '@fuse/services/confirmation'; import { User } from '../models/user'; import { UserService } from '../services/user.service'; import { ActivatedRoute } from '@angular/router'; -import { GetMemberResponse } from 'app/modules/protobuf/c2se/backend/member_pb'; -import { MemberModel } from 'app/modules/protobuf/models/member/member_pb'; +import { GetMemberResponse } from 'app/modules/proto/c2se/member_pb'; +import { MemberModel } from 'app/modules/proto/models/member_pb'; import { MemberService } from 'app/modules/polyglot/member/services/member.service'; @Component({ diff --git a/src/app/modules/admin/member/user/resolvers/user.resolver.ts b/src/app/modules/admin/member/user/resolvers/user.resolver.ts index 578c6b8..db93d1d 100644 --- a/src/app/modules/admin/member/user/resolvers/user.resolver.ts +++ b/src/app/modules/admin/member/user/resolvers/user.resolver.ts @@ -6,7 +6,7 @@ import { RouterStateSnapshot, } from '@angular/router'; import { MemberService } from 'app/modules/polyglot/member/services/member.service'; -import { GetMemberResponse } from 'app/modules/protobuf/c2se/backend/member_pb'; +import { GetMemberResponse } from 'app/modules/proto/c2se/member_pb'; import { catchError, Observable, throwError } from 'rxjs'; import { User } from '../models/user'; diff --git a/src/app/modules/admin/settings/domain/components/list.component.ts b/src/app/modules/admin/settings/domain/components/list.component.ts index 536dd5e..1caa9e4 100644 --- a/src/app/modules/admin/settings/domain/components/list.component.ts +++ b/src/app/modules/admin/settings/domain/components/list.component.ts @@ -31,9 +31,9 @@ import { fuseAnimations } from '@fuse/animations'; import { FuseConfirmationService } from '@fuse/services/confirmation'; import { DomainService } from '../services/domain.service'; import { MatSelectChange } from '@angular/material/select'; -import { SiteService } from 'app/modules/polyglot/domain/services/site.service'; +import { SiteService } from 'app/modules/polyglot/site/services/site.service'; import { ActivatedRoute } from '@angular/router'; -import { ListSitesResponse } from 'app/modules/protobuf/c2se/backend/site_pb'; +import { ListSitesResponse } from 'app/modules/proto/c2se/site_pb'; @Component({ selector: 'settings-domain-list', diff --git a/src/app/modules/admin/settings/domain/resolvers/site.resolver.ts b/src/app/modules/admin/settings/domain/resolvers/site.resolver.ts index c01e508..1e1fb43 100644 --- a/src/app/modules/admin/settings/domain/resolvers/site.resolver.ts +++ b/src/app/modules/admin/settings/domain/resolvers/site.resolver.ts @@ -5,8 +5,8 @@ import { Router, RouterStateSnapshot, } from '@angular/router'; -import { SiteService } from 'app/modules/polyglot/domain/services/site.service'; -import { ListSitesResponse } from 'app/modules/protobuf/c2se/backend/site_pb'; +import { SiteService } from 'app/modules/polyglot/site/services/site.service'; +import { ListSitesResponse } from 'app/modules/proto/c2se/site_pb'; import { catchError, Observable, throwError } from 'rxjs'; @Injectable({ diff --git a/src/app/modules/auth/sign-in/components/sign-in.component.ts b/src/app/modules/auth/sign-in/components/sign-in.component.ts index bd1ea18..2109234 100644 --- a/src/app/modules/auth/sign-in/components/sign-in.component.ts +++ b/src/app/modules/auth/sign-in/components/sign-in.component.ts @@ -5,7 +5,7 @@ import { ActivatedRoute, Router } from '@angular/router'; import { fuseAnimations } from '@fuse/animations'; import { FuseAlertType } from '@fuse/components/alert'; import { AuthService } from 'app/core/auth/auth.service'; -import { CaptchaResponse } from 'app/modules/protobuf/c2se/common/identity_pb'; +import { CaptchaResponse } from 'app/modules/proto/c2se/identity_pb'; @Component({ selector: 'auth-sign-in', diff --git a/src/app/modules/auth/sign-in/resolvers/sign-in.resolver.ts b/src/app/modules/auth/sign-in/resolvers/sign-in.resolver.ts index 9ccdd24..aac348e 100644 --- a/src/app/modules/auth/sign-in/resolvers/sign-in.resolver.ts +++ b/src/app/modules/auth/sign-in/resolvers/sign-in.resolver.ts @@ -7,8 +7,8 @@ import { } from '@angular/router'; import { Observable } from 'rxjs'; -import { IdentityService } from 'app/modules/polyglot/member/services/identity.service'; -import { CaptchaResponse } from 'app/modules/protobuf/c2se/common/identity_pb'; +import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service'; +import { CaptchaResponse } from 'app/modules/proto/c2se/identity_pb'; @Injectable({ providedIn: 'root', diff --git a/src/app/modules/polyglot/domain/domain.module.ts b/src/app/modules/polyglot/bank/bank.module.ts similarity index 54% rename from src/app/modules/polyglot/domain/domain.module.ts rename to src/app/modules/polyglot/bank/bank.module.ts index 208755c..f82543a 100644 --- a/src/app/modules/polyglot/domain/domain.module.ts +++ b/src/app/modules/polyglot/bank/bank.module.ts @@ -3,13 +3,13 @@ import { ModuleWithProviders, NgModule } from '@angular/core'; import { SERVICES } from './services'; @NgModule({}) -export class DomainRootModule {} +export class BankRootModule {} @NgModule({}) -export class DomainModule { - public static forRoot(): ModuleWithProviders { +export class BankModule { + public static forRoot(): ModuleWithProviders { return { - ngModule: DomainRootModule, + 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/member/services/identity.service.ts b/src/app/modules/polyglot/identity/services/identity.service.ts similarity index 95% rename from src/app/modules/polyglot/member/services/identity.service.ts rename to src/app/modules/polyglot/identity/services/identity.service.ts index e85f539..2b5d64f 100644 --- a/src/app/modules/polyglot/member/services/identity.service.ts +++ b/src/app/modules/polyglot/identity/services/identity.service.ts @@ -2,7 +2,7 @@ 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/protobuf/protobuf/rpc/error_pb'; +import { Error } from 'app/modules/proto/protobuf/rpc_pb'; import { CheckUsernameForDuplicationRequest, @@ -11,15 +11,15 @@ import { CheckNicknameForDuplicationResponse, CaptchaRequest, CaptchaResponse, -} from 'app/modules/protobuf/c2se/common/identity_pb'; + SigninRequest, + SigninResponse, +} from 'app/modules/proto/c2se/identity_pb'; import { SUBJECT_CHECK_USERNAME_FOR_DUPLICATION, SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION, SUBJECT_CAPTCHA, SUBJECT_SIGNIN, - SigninRequest, - SigninResponse, -} from 'app/modules/protobuf/c2se/backend/identity_pb'; +} from 'app/modules/proto/c2se/backend/identity_pb'; @Injectable({ providedIn: 'root', 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/services/index.ts b/src/app/modules/polyglot/member/services/index.ts index 35f890a..b2b6f9a 100644 --- a/src/app/modules/polyglot/member/services/index.ts +++ b/src/app/modules/polyglot/member/services/index.ts @@ -1,6 +1,5 @@ import { Type } from '@angular/core'; -import { IdentityService } from './identity.service'; import { MemberService } from './member.service'; -export const SERVICES: Type[] = [IdentityService, MemberService]; +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 index ac31f64..307cf46 100644 --- a/src/app/modules/polyglot/member/services/member.service.ts +++ b/src/app/modules/polyglot/member/services/member.service.ts @@ -2,7 +2,7 @@ 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/protobuf/protobuf/rpc/error_pb'; +import { Error } from 'app/modules/proto/protobuf/rpc_pb'; import { ListMembersRequest, @@ -11,18 +11,19 @@ import { 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, - UpdateMemberRequest, - UpdateMemberResponse, SUBJECT_UPDATE_MEMBER, - CreateMemberResponse, - CreateMemberRequest, SUBJECT_CREATE_MEMBER, -} from 'app/modules/protobuf/c2se/backend/member_pb'; -import { Pagination } from 'app/modules/protobuf/protobuf/pagination/pagination_pb'; -import { MemberModel } from 'app/modules/protobuf/models/member/member_pb'; +} from 'app/modules/proto/c2se/backend/member_pb'; +import { Pagination } from 'app/modules/proto/protobuf/pagination_pb'; @Injectable({ providedIn: 'root', 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/domain/services/index.ts b/src/app/modules/polyglot/site/services/index.ts similarity index 100% rename from src/app/modules/polyglot/domain/services/index.ts rename to src/app/modules/polyglot/site/services/index.ts diff --git a/src/app/modules/polyglot/domain/services/site.service.ts b/src/app/modules/polyglot/site/services/site.service.ts similarity index 92% rename from src/app/modules/polyglot/domain/services/site.service.ts rename to src/app/modules/polyglot/site/services/site.service.ts index 2c5fb98..da0f7d8 100644 --- a/src/app/modules/polyglot/domain/services/site.service.ts +++ b/src/app/modules/polyglot/site/services/site.service.ts @@ -2,7 +2,7 @@ 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/protobuf/protobuf/rpc/error_pb'; +import { Error } from 'app/modules/proto/protobuf/rpc_pb'; import { ListSitesRequest, @@ -13,12 +13,13 @@ import { 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/protobuf/c2se/backend/site_pb'; -import { Site } from 'app/modules/protobuf/models/domain/site_pb'; +} from 'app/modules/proto/c2se/backend/site_pb'; @Injectable({ providedIn: 'root', 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/protobuf/c2se/backend/account_pb.d.ts b/src/app/modules/proto/c2se/backend/bank_pb.d.ts similarity index 64% rename from src/app/modules/protobuf/c2se/backend/account_pb.d.ts rename to src/app/modules/proto/c2se/backend/bank_pb.d.ts index 93cfc3b..2d2d4a0 100644 --- a/src/app/modules/protobuf/c2se/backend/account_pb.d.ts +++ b/src/app/modules/proto/c2se/backend/bank_pb.d.ts @@ -1,9 +1,10 @@ -// package: -// file: c2se/backend/account.proto +// 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..27463b2 --- /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.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..e1d512c --- /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.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..e83fc1c --- /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.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..ac85475 --- /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.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..3d9cf85 --- /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.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..6719f30 --- /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.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..d750972 --- /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.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..3c337c2 --- /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.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..fbc6ec8 --- /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.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/protobuf/c2se/core/network_pb.d.ts b/src/app/modules/proto/c2se/core/network_pb.d.ts similarity index 72% rename from src/app/modules/protobuf/c2se/core/network_pb.d.ts rename to src/app/modules/proto/c2se/core/network_pb.d.ts index a43dd6a..03edd1f 100644 --- a/src/app/modules/protobuf/c2se/core/network_pb.d.ts +++ b/src/app/modules/proto/c2se/core/network_pb.d.ts @@ -1,4 +1,4 @@ -// package: +// package: bet.beteran.c2se.core.network // file: c2se/core/network.proto import * as jspb from 'google-protobuf'; diff --git a/src/app/modules/protobuf/c2se/core/network_pb.js b/src/app/modules/proto/c2se/core/network_pb.js similarity index 100% rename from src/app/modules/protobuf/c2se/core/network_pb.js rename to src/app/modules/proto/c2se/core/network_pb.js 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/protobuf/c2se/frontend/account_pb.js b/src/app/modules/proto/c2se/frontend/bank_pb.js similarity index 55% rename from src/app/modules/protobuf/c2se/frontend/account_pb.js rename to src/app/modules/proto/c2se/frontend/bank_pb.js index 2c09b38..c002c17 100644 --- a/src/app/modules/protobuf/c2se/frontend/account_pb.js +++ b/src/app/modules/proto/c2se/frontend/bank_pb.js @@ -1,4 +1,4 @@ -// source: c2se/frontend/account.proto +// source: c2se/frontend/bank.proto /** * @fileoverview * @enhanceable @@ -17,11 +17,13 @@ var global = function () { return this || window || global || self || Function("return this")(); }.call(null); -goog.exportSymbol("bet.beteran.c2se.frontend.bank", null, global); +goog.exportSymbol("proto.bet.beteran.c2se.frontend.bank", null, global); -bet.beteran.c2se.frontend.bank = {}; +proto.bet.beteran.c2se.frontend.bank = {}; -bet.beteran.c2se.frontend.bank.SUBJECT_LIST_BANKS = - "bet.beteran.c2se.core.network.ListBanks"; +proto.bet.beteran.c2se.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, bet.beteran.c2se.frontend.bank); +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..62845ec --- /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.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..8fda66b --- /dev/null +++ b/src/app/modules/proto/c2se/member_bank_account_pb.d.ts @@ -0,0 +1,448 @@ +// 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; + + 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, + 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; + + 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, + 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..99e756f --- /dev/null +++ b/src/app/modules/proto/c2se/member_bank_account_pb.js @@ -0,0 +1,3498 @@ +// 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, ""), + 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.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.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 = /** @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.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 memo = 5; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.CreateMemberBankAccountRequest.prototype.getMemo = 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.setMemo = function(value) { + return jspb.Message.setField(this, 5, 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, 5, 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, 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.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, ""), + 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.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.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 = /** @type {string} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeString( + 5, + 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 memo = 5; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_account.UpdateMemberBankAccountRequest.prototype.getMemo = 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.setMemo = function(value) { + return jspb.Message.setField(this, 5, 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, 5, 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, 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.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..a6155a8 --- /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(): string; + setAmount(value: string): void; + + hasMemoLike(): boolean; + clearMemoLike(): void; + getMemoLike(): string; + setMemoLike(value: string): void; + + hasState(): boolean; + clearState(): void; + getState(): string; + setState(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, + nameLike: string, + amount: string, + memoLike: string, + state: string, + } + } +} + +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..e15e9d4 --- /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, ""), + memoLike: jspb.Message.getFieldWithDefault(msg, 4, ""), + state: 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_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 {string} */ (reader.readString()); + msg.setAmount(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setMemoLike(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + 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 {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_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 string amount = 3; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.getAmount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @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.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 string state = 5; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.getState = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @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.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..209b39b --- /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(): string; + setAmount(value: string): void; + + hasMemoLike(): boolean; + clearMemoLike(): void; + getMemoLike(): string; + setMemoLike(value: string): void; + + hasState(): boolean; + clearState(): void; + getState(): string; + setState(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, + bankNameLike: string, + nameLike: string, + accountNumberLike: string, + amount: string, + memoLike: string, + state: string, + } + } +} + +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..8db4207 --- /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, ""), + memoLike: jspb.Message.getFieldWithDefault(msg, 6, ""), + state: 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.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 {string} */ (reader.readString()); + msg.setAmount(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setMemoLike(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + 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 {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 + ); + } +}; + + +/** + * 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 string amount = 5; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.getAmount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @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.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 string state = 7; + * @return {string} + */ +proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.getState = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @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.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..394b960 --- /dev/null +++ b/src/app/modules/proto/c2se/member_class_pb.d.ts @@ -0,0 +1,404 @@ +// 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; + + 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, + } +} + +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; + + 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, + } + } +} + +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; + + 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, + } +} + +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..db1b91f --- /dev/null +++ b/src/app/modules/proto/c2se/member_class_pb.js @@ -0,0 +1,3156 @@ +// 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, "") + }; + + 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; + 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 + ); + } +}; + + +/** + * 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); +}; + + + + + +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, 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_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 4: + var value = /** @type {string} */ (reader.readString()); + msg.setNameLike(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, 4)); + if (f != null) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional string name_like = 4; + * @return {string} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.getNameLike = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @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, 4, 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, 4, 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, 4) != 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, "") + }; + + 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; + 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 + ); + } +}; + + +/** + * 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); +}; + + + + + +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..352c337 --- /dev/null +++ b/src/app/modules/proto/c2se/member_level_pb.d.ts @@ -0,0 +1,400 @@ +// 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; + + 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, + 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; + + 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, + } + } +} + +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; + + 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, + 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..12e91ec --- /dev/null +++ b/src/app/modules/proto/c2se/member_level_pb.js @@ -0,0 +1,3120 @@ +// 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, ""), + sortOrder: 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_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 {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.getSortOrder(); + if (f !== 0) { + writer.writeUint32( + 2, + 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 uint32 sort_order = 2; + * @return {number} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.prototype.getSortOrder = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 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, 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_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, "") + }; + + 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; + 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 + ); + } +}; + + +/** + * 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 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, ""), + 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.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 {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.getSortOrder(); + if (f !== 0) { + writer.writeUint32( + 3, + 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 uint32 sort_order = 3; + * @return {number} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.prototype.getSortOrder = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 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, 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.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..fea2abc --- /dev/null +++ b/src/app/modules/proto/c2se/member_pb.d.ts @@ -0,0 +1,646 @@ +// 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; + + 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): 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, + state: models_member_pb.MemberStateMap[keyof models_member_pb.MemberStateMap], + } +} + +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; + + 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, + } +} + +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..15d2fab --- /dev/null +++ b/src/app/modules/proto/c2se/member_pb.js @@ -0,0 +1,5058 @@ +// 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.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.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.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.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, ""), + state: 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.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 = /** @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.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.getState(); + if (f !== 0.0) { + writer.writeEnum( + 9, + f + ); + } +}; + + +/** + * 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 bet.beteran.member.MemberState state = 9; + * @return {!proto.bet.beteran.member.MemberState} + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.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.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.member.CreateMemberRequest.prototype.setState = function(value) { + return jspb.Message.setProto3EnumField(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.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, "") + }; + + 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; + 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 + ); + } +}; + + +/** + * 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; +}; + + + + + +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/protobuf/models/account/bank_pb.d.ts b/src/app/modules/proto/models/bank_pb.d.ts similarity index 53% rename from src/app/modules/protobuf/models/account/bank_pb.d.ts rename to src/app/modules/proto/models/bank_pb.d.ts index 7f49c78..6ef4f13 100644 --- a/src/app/modules/protobuf/models/account/bank_pb.d.ts +++ b/src/app/modules/proto/models/bank_pb.d.ts @@ -1,7 +1,7 @@ -// package: bet.beteran.account -// file: models/account/bank.proto +// package: bet.beteran.bank +// file: models/bank.proto -import * as jspb from 'google-protobuf'; +import * as jspb from "google-protobuf"; export class Bank extends jspb.Message { getId(): string; @@ -10,6 +10,9 @@ export class Bank extends jspb.Message { getName(): string; setName(value: string): void; + getSortOrder(): boolean; + setSortOrder(value: boolean): void; + getShow(): boolean; setShow(value: boolean): void; @@ -30,29 +33,23 @@ export class Bank extends jspb.Message { 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 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; + static deserializeBinaryFromReader(message: Bank, reader: jspb.BinaryReader): Bank; } export namespace Bank { export type AsObject = { - id: string; - name: string; - show: boolean; - canUse: boolean; - memo: string; - createdAt: number; - updatedAt: number; - }; + id: string, + name: string, + sortOrder: boolean, + 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..8b9877e --- /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.getBooleanFieldWithDefault(msg, 3, false), + 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 {boolean} */ (reader.readBool()); + 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) { + writer.writeBool( + 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 bool sort_order = 3; + * @return {boolean} + */ +proto.bet.beteran.bank.Bank.prototype.getSortOrder = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.bank.Bank} returns this + */ +proto.bet.beteran.bank.Bank.prototype.setSortOrder = function(value) { + return jspb.Message.setProto3BooleanField(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/protobuf/models/core/network_pb.d.ts b/src/app/modules/proto/models/core/network_pb.d.ts similarity index 58% rename from src/app/modules/protobuf/models/core/network_pb.d.ts rename to src/app/modules/proto/models/core/network_pb.d.ts index 7036afe..6cec68f 100644 --- a/src/app/modules/protobuf/models/core/network_pb.d.ts +++ b/src/app/modules/proto/models/core/network_pb.d.ts @@ -1,7 +1,7 @@ // package: bet.beteran.core.network // file: models/core/network.proto -import * as jspb from 'google-protobuf'; +import * as jspb from "google-protobuf"; export class Client extends jspb.Message { getClientIp(): string; @@ -20,25 +20,18 @@ export class Client extends jspb.Message { 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 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; + static deserializeBinaryFromReader(message: Client, reader: jspb.BinaryReader): Client; } export namespace Client { export type AsObject = { - clientIp: string; - siteUrl: string; - accessToken: string; - }; + clientIp: string, + siteUrl: string, + accessToken: string, + } } + diff --git a/src/app/modules/protobuf/models/core/network_pb.js b/src/app/modules/proto/models/core/network_pb.js similarity index 63% rename from src/app/modules/protobuf/models/core/network_pb.js rename to src/app/modules/proto/models/core/network_pb.js index e63eef2..69a1d81 100644 --- a/src/app/modules/protobuf/models/core/network_pb.js +++ b/src/app/modules/proto/models/core/network_pb.js @@ -11,13 +11,11 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require("google-protobuf"); +var jspb = require('google-protobuf'); var goog = jspb; -var global = function () { - return this || window || global || self || Function("return this")(); -}.call(null); +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); -goog.exportSymbol("proto.bet.beteran.core.network.Client", null, global); +goog.exportSymbol('proto.bet.beteran.core.network.Client', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -28,7 +26,7 @@ goog.exportSymbol("proto.bet.beteran.core.network.Client", null, global); * @extends {jspb.Message} * @constructor */ -proto.bet.beteran.core.network.Client = function (opt_data) { +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); @@ -37,73 +35,65 @@ if (goog.DEBUG && !COMPILED) { * @public * @override */ - proto.bet.beteran.core.network.Client.displayName = - "proto.bet.beteran.core.network.Client"; + 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 - ); +/** + * 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, "") }; - /** - * 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; - }; + 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) { +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 - ); + 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. @@ -111,46 +101,45 @@ proto.bet.beteran.core.network.Client.deserializeBinary = function (bytes) { * @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 -) { +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; + 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 () { +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. @@ -158,105 +147,120 @@ proto.bet.beteran.core.network.Client.prototype.serializeBinary = function () { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bet.beteran.core.network.Client.serializeBinaryToWriter = function ( - message, - writer -) { +proto.bet.beteran.core.network.Client.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getClientIp(); if (f.length > 0) { - writer.writeString(1, f); + writer.writeString( + 1, + f + ); } f = /** @type {string} */ (jspb.Message.getField(message, 2)); if (f != null) { - writer.writeString(2, f); + writer.writeString( + 2, + f + ); } f = /** @type {string} */ (jspb.Message.getField(message, 3)); if (f != null) { - writer.writeString(3, f); + writer.writeString( + 3, + f + ); } }; + /** * optional string client_ip = 1; * @return {string} */ -proto.bet.beteran.core.network.Client.prototype.getClientIp = function () { +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) { +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 () { +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) { +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 () { +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 () { +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 () { +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 -) { +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 () { +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 () { +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..7a5af5d --- /dev/null +++ b/src/app/modules/proto/models/member_bank_account_pb.d.ts @@ -0,0 +1,55 @@ +// package: bet.beteran.member_bank_account +// file: models/member_bank_account.proto + +import * as jspb from "google-protobuf"; + +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; + + 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, + 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..615a293 --- /dev/null +++ b/src/app/modules/proto/models/member_bank_account_pb.js @@ -0,0 +1,398 @@ +// 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); + +goog.exportSymbol('proto.bet.beteran.member_bank_account.MemberBankAccount', 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'; +} + + + +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, ""), + 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.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.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.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 = /** @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.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 memo = 6; + * @return {string} + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.getMemo = 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.setMemo = function(value) { + return jspb.Message.setField(this, 6, 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, 6, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.hasMemo = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional uint64 created_at = 7; + * @return {number} + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.getCreatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 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, 7, value); +}; + + +/** + * optional uint64 updated_at = 8; + * @return {number} + */ +proto.bet.beteran.member_bank_account.MemberBankAccount.prototype.getUpdatedAt = 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.setUpdatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 8, 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..936e1d3 --- /dev/null +++ b/src/app/modules/proto/models/member_class_pb.d.ts @@ -0,0 +1,43 @@ +// 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; + + 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, + 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..e345fce --- /dev/null +++ b/src/app/modules/proto/models/member_class_pb.js @@ -0,0 +1,308 @@ +// 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, ""), + createdAt: jspb.Message.getFieldWithDefault(msg, 4, 0), + updatedAt: 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.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 {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 5: + 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.getCreatedAt(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64( + 5, + 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 uint64 created_at = 4; + * @return {number} + */ +proto.bet.beteran.member_class.MemberClass.prototype.getCreatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 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, 4, value); +}; + + +/** + * optional uint64 updated_at = 5; + * @return {number} + */ +proto.bet.beteran.member_class.MemberClass.prototype.getUpdatedAt = 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.setUpdatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 5, 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..2266f1f --- /dev/null +++ b/src/app/modules/proto/models/member_level_pb.d.ts @@ -0,0 +1,41 @@ +// 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; + + 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, + 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..e16db42 --- /dev/null +++ b/src/app/modules/proto/models/member_level_pb.js @@ -0,0 +1,290 @@ +// 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, ""), + sortOrder: jspb.Message.getFieldWithDefault(msg, 3, 0), + createdAt: jspb.Message.getFieldWithDefault(msg, 4, 0), + updatedAt: 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.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 {number} */ (reader.readUint32()); + msg.setSortOrder(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 5: + 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.getSortOrder(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64( + 5, + 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 uint32 sort_order = 3; + * @return {number} + */ +proto.bet.beteran.member_level.MemberLevel.prototype.getSortOrder = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 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, 3, value); +}; + + +/** + * optional uint64 created_at = 4; + * @return {number} + */ +proto.bet.beteran.member_level.MemberLevel.prototype.getCreatedAt = 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.setCreatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional uint64 updated_at = 5; + * @return {number} + */ +proto.bet.beteran.member_level.MemberLevel.prototype.getUpdatedAt = 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.setUpdatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +goog.object.extend(exports, proto.bet.beteran.member_level); diff --git a/src/app/modules/protobuf/models/member/member_pb.d.ts b/src/app/modules/proto/models/member_pb.d.ts similarity index 59% rename from src/app/modules/protobuf/models/member/member_pb.d.ts rename to src/app/modules/proto/models/member_pb.d.ts index f11ac32..a3736af 100644 --- a/src/app/modules/protobuf/models/member/member_pb.d.ts +++ b/src/app/modules/proto/models/member_pb.d.ts @@ -1,10 +1,10 @@ // package: bet.beteran.member -// file: models/member/member.proto +// file: models/member.proto -import * as jspb from 'google-protobuf'; -import * as models_domain_site_pb from '../../models/domain/site_pb'; -import * as models_member_member_class_pb from '../../models/member/member_class_pb'; -import * as models_member_member_level_pb from '../../models/member/member_level_pb'; +import * as jspb from "google-protobuf"; +import * as models_site_pb from "../models/site_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; @@ -70,40 +70,32 @@ export class Member extends jspb.Message { 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 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; + 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; - }; + 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 { @@ -112,18 +104,18 @@ export class MemberModel extends jspb.Message { hasSite(): boolean; clearSite(): void; - getSite(): models_domain_site_pb.Site | undefined; - setSite(value?: models_domain_site_pb.Site): void; + getSite(): models_site_pb.Site | undefined; + setSite(value?: models_site_pb.Site): void; hasMemberClass(): boolean; clearMemberClass(): void; - getMemberClass(): models_member_member_class_pb.MemberClass | undefined; - setMemberClass(value?: models_member_member_class_pb.MemberClass): void; + getMemberClass(): models_member_class_pb.MemberClass | undefined; + setMemberClass(value?: models_member_class_pb.MemberClass): void; hasMemberLevel(): boolean; clearMemberLevel(): void; - getMemberLevel(): models_member_member_level_pb.MemberLevel | undefined; - setMemberLevel(value?: models_member_member_level_pb.MemberLevel): void; + getMemberLevel(): models_member_level_pb.MemberLevel | undefined; + setMemberLevel(value?: models_member_level_pb.MemberLevel): void; hasReferrerMember(): boolean; clearReferrerMember(): void; @@ -175,44 +167,33 @@ export class MemberModel extends jspb.Message { 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 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; + static deserializeBinaryFromReader(message: MemberModel, reader: jspb.BinaryReader): MemberModel; } export namespace MemberModel { export type AsObject = { - id: string; - site?: models_domain_site_pb.Site.AsObject; - memberClass?: models_member_member_class_pb.MemberClass.AsObject; - memberLevel?: models_member_member_level_pb.MemberLevel.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; - }; + id: string, + site?: models_site_pb.Site.AsObject, + memberClass?: models_member_class_pb.MemberClass.AsObject, + memberLevel?: models_member_level_pb.MemberLevel.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 { @@ -226,3 +207,4 @@ export interface MemberStateMap { } export const MemberState: MemberStateMap; + diff --git a/src/app/modules/protobuf/models/member/member_pb.js b/src/app/modules/proto/models/member_pb.js similarity index 61% rename from src/app/modules/protobuf/models/member/member_pb.js rename to src/app/modules/proto/models/member_pb.js index 4e9213c..9b21488 100644 --- a/src/app/modules/protobuf/models/member/member_pb.js +++ b/src/app/modules/proto/models/member_pb.js @@ -1,4 +1,4 @@ -// source: models/member/member.proto +// source: models/member.proto /** * @fileoverview * @enhanceable @@ -11,21 +11,19 @@ /* eslint-disable */ // @ts-nocheck -var jspb = require("google-protobuf"); +var jspb = require('google-protobuf'); var goog = jspb; -var global = function () { - return this || window || global || self || Function("return this")(); -}.call(null); +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); -var models_domain_site_pb = require("../../models/domain/site_pb.js"); -goog.object.extend(proto, models_domain_site_pb); -var models_member_member_class_pb = require("../../models/member/member_class_pb.js"); -goog.object.extend(proto, models_member_member_class_pb); -var models_member_member_level_pb = require("../../models/member/member_level_pb.js"); -goog.object.extend(proto, models_member_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); +var models_site_pb = require('../models/site_pb.js'); +goog.object.extend(proto, models_site_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 @@ -36,7 +34,7 @@ goog.exportSymbol("proto.bet.beteran.member.MemberState", null, global); * @extends {jspb.Message} * @constructor */ -proto.bet.beteran.member.Member = function (opt_data) { +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); @@ -45,8 +43,7 @@ if (goog.DEBUG && !COMPILED) { * @public * @override */ - proto.bet.beteran.member.Member.displayName = - "proto.bet.beteran.member.Member"; + proto.bet.beteran.member.Member.displayName = 'proto.bet.beteran.member.Member'; } /** * Generated by JsPbCodeGenerator. @@ -58,7 +55,7 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.bet.beteran.member.MemberModel = function (opt_data) { +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); @@ -67,80 +64,78 @@ if (goog.DEBUG && !COMPILED) { * @public * @override */ - proto.bet.beteran.member.MemberModel.displayName = - "proto.bet.beteran.member.MemberModel"; + 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); +/** + * 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) }; - /** - * 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; - }; + 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) { +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 - ); + 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. @@ -148,100 +143,97 @@ proto.bet.beteran.member.Member.deserializeBinary = function (bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bet.beteran.member.Member} */ -proto.bet.beteran.member.Member.deserializeBinaryFromReader = function ( - msg, - reader -) { +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; + 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 () { +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. @@ -249,525 +241,589 @@ proto.bet.beteran.member.Member.prototype.serializeBinary = function () { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bet.beteran.member.Member.serializeBinaryToWriter = function ( - message, - writer -) { +proto.bet.beteran.member.Member.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { - writer.writeString(1, f); + writer.writeString( + 1, + f + ); } f = message.getSiteId(); if (f.length > 0) { - writer.writeString(2, f); + writer.writeString( + 2, + f + ); } f = message.getMemberClassId(); if (f.length > 0) { - writer.writeString(3, f); + writer.writeString( + 3, + f + ); } f = message.getMemberLevelId(); if (f.length > 0) { - writer.writeString(4, f); + writer.writeString( + 4, + f + ); } f = /** @type {string} */ (jspb.Message.getField(message, 5)); if (f != null) { - writer.writeString(5, f); + writer.writeString( + 5, + f + ); } f = message.getReferredCount(); if (f !== 0) { - writer.writeUint64(6, f); + writer.writeUint64( + 6, + f + ); } f = message.getUsername(); if (f.length > 0) { - writer.writeString(7, f); + writer.writeString( + 7, + f + ); } f = message.getNickname(); if (f.length > 0) { - writer.writeString(8, f); + writer.writeString( + 8, + f + ); } f = /** @type {string} */ (jspb.Message.getField(message, 9)); if (f != null) { - writer.writeString(9, f); + writer.writeString( + 9, + f + ); } f = message.getState(); if (f !== 0.0) { - writer.writeEnum(10, f); + writer.writeEnum( + 10, + f + ); } f = /** @type {number} */ (jspb.Message.getField(message, 11)); if (f != null) { - writer.writeUint64(11, f); + writer.writeUint64( + 11, + f + ); } f = /** @type {string} */ (jspb.Message.getField(message, 12)); if (f != null) { - writer.writeString(12, f); + writer.writeString( + 12, + f + ); } f = /** @type {number} */ (jspb.Message.getField(message, 13)); if (f != null) { - writer.writeUint64(13, f); + writer.writeUint64( + 13, + f + ); } f = message.getCreatedAt(); if (f !== 0) { - writer.writeUint64(14, f); + writer.writeUint64( + 14, + f + ); } f = message.getUpdatedAt(); if (f !== 0) { - writer.writeUint64(15, f); + writer.writeUint64( + 15, + f + ); } f = /** @type {number} */ (jspb.Message.getField(message, 16)); if (f != null) { - writer.writeUint64(16, f); + writer.writeUint64( + 16, + f + ); } }; + /** * optional string id = 1; * @return {string} */ -proto.bet.beteran.member.Member.prototype.getId = function () { +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) { +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 () { +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) { +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 () { +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) { +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 () { +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) { +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 () { +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 -) { +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 () { +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 () { +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 () { +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) { +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 () { +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) { +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 () { +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) { +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 () { +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 -) { +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 () { +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 () { +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) - ); +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) { +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 () { +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) { +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 () { +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 () { +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 () { +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) { +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 () { +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 () { +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 () { +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) { +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 () { +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 () { +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 () { +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) { +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 () { +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) { +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 () { +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) { +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 () { +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 () { +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 - ); +/** + * 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), + referrerMember: (f = msg.getReferrerMember()) && proto.bet.beteran.member.Member.toObject(includeInstance, f), + 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) }; - /** - * 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_domain_site_pb.Site.toObject(includeInstance, f), - memberClass: - (f = msg.getMemberClass()) && - models_member_member_class_pb.MemberClass.toObject( - includeInstance, - f - ), - memberLevel: - (f = msg.getMemberLevel()) && - models_member_member_level_pb.MemberLevel.toObject( - includeInstance, - f - ), - referrerMember: - (f = msg.getReferrerMember()) && - proto.bet.beteran.member.Member.toObject(includeInstance, f), - 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; - }; + 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) { +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 - ); + 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. @@ -775,116 +831,101 @@ proto.bet.beteran.member.MemberModel.deserializeBinary = function (bytes) { * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bet.beteran.member.MemberModel} */ -proto.bet.beteran.member.MemberModel.deserializeBinaryFromReader = function ( - msg, - reader -) { +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_domain_site_pb.Site(); - reader.readMessage( - value, - models_domain_site_pb.Site.deserializeBinaryFromReader - ); - msg.setSite(value); - break; - case 3: - var value = new models_member_member_class_pb.MemberClass(); - reader.readMessage( - value, - models_member_member_class_pb.MemberClass.deserializeBinaryFromReader - ); - msg.setMemberClass(value); - break; - case 4: - var value = new models_member_member_level_pb.MemberLevel(); - reader.readMessage( - value, - models_member_member_level_pb.MemberLevel.deserializeBinaryFromReader - ); - msg.setMemberLevel(value); - break; - case 5: - var value = new proto.bet.beteran.member.Member(); - reader.readMessage( - value, - proto.bet.beteran.member.Member.deserializeBinaryFromReader - ); - msg.setReferrerMember(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; + 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 proto.bet.beteran.member.Member; + reader.readMessage(value,proto.bet.beteran.member.Member.deserializeBinaryFromReader); + msg.setReferrerMember(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.MemberModel.prototype.serializeBinary = function () { +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. @@ -892,21 +933,21 @@ proto.bet.beteran.member.MemberModel.prototype.serializeBinary = function () { * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.bet.beteran.member.MemberModel.serializeBinaryToWriter = function ( - message, - writer -) { +proto.bet.beteran.member.MemberModel.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { - writer.writeString(1, f); + writer.writeString( + 1, + f + ); } f = message.getSite(); if (f != null) { writer.writeMessage( 2, f, - models_domain_site_pb.Site.serializeBinaryToWriter + models_site_pb.Site.serializeBinaryToWriter ); } f = message.getMemberClass(); @@ -914,7 +955,7 @@ proto.bet.beteran.member.MemberModel.serializeBinaryToWriter = function ( writer.writeMessage( 3, f, - models_member_member_class_pb.MemberClass.serializeBinaryToWriter + models_member_class_pb.MemberClass.serializeBinaryToWriter ); } f = message.getMemberLevel(); @@ -922,7 +963,7 @@ proto.bet.beteran.member.MemberModel.serializeBinaryToWriter = function ( writer.writeMessage( 4, f, - models_member_member_level_pb.MemberLevel.serializeBinaryToWriter + models_member_level_pb.MemberLevel.serializeBinaryToWriter ); } f = message.getReferrerMember(); @@ -935,493 +976,538 @@ proto.bet.beteran.member.MemberModel.serializeBinaryToWriter = function ( } f = message.getReferredCount(); if (f !== 0) { - writer.writeUint64(6, f); + writer.writeUint64( + 6, + f + ); } f = message.getUsername(); if (f.length > 0) { - writer.writeString(7, f); + writer.writeString( + 7, + f + ); } f = message.getNickname(); if (f.length > 0) { - writer.writeString(8, f); + writer.writeString( + 8, + f + ); } f = /** @type {string} */ (jspb.Message.getField(message, 9)); if (f != null) { - writer.writeString(9, f); + writer.writeString( + 9, + f + ); } f = message.getState(); if (f !== 0.0) { - writer.writeEnum(10, f); + writer.writeEnum( + 10, + f + ); } f = /** @type {number} */ (jspb.Message.getField(message, 11)); if (f != null) { - writer.writeUint64(11, f); + writer.writeUint64( + 11, + f + ); } f = /** @type {string} */ (jspb.Message.getField(message, 12)); if (f != null) { - writer.writeString(12, f); + writer.writeString( + 12, + f + ); } f = /** @type {number} */ (jspb.Message.getField(message, 13)); if (f != null) { - writer.writeUint64(13, f); + writer.writeUint64( + 13, + f + ); } f = message.getCreatedAt(); if (f !== 0) { - writer.writeUint64(14, f); + writer.writeUint64( + 14, + f + ); } f = message.getUpdatedAt(); if (f !== 0) { - writer.writeUint64(15, f); + writer.writeUint64( + 15, + f + ); } f = /** @type {number} */ (jspb.Message.getField(message, 16)); if (f != null) { - writer.writeUint64(16, f); + writer.writeUint64( + 16, + f + ); } }; + /** * optional string id = 1; * @return {string} */ -proto.bet.beteran.member.MemberModel.prototype.getId = function () { +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) { +proto.bet.beteran.member.MemberModel.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * optional bet.beteran.domain.Site site = 2; - * @return {?proto.bet.beteran.domain.Site} - */ -proto.bet.beteran.member.MemberModel.prototype.getSite = function () { - return /** @type{?proto.bet.beteran.domain.Site} */ ( - jspb.Message.getWrapperField(this, models_domain_site_pb.Site, 2) - ); -}; /** - * @param {?proto.bet.beteran.domain.Site|undefined} value - * @return {!proto.bet.beteran.member.MemberModel} returns this + * optional bet.beteran.site.Site site = 2; + * @return {?proto.bet.beteran.site.Site} */ -proto.bet.beteran.member.MemberModel.prototype.setSite = function (value) { +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 () { +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 () { +proto.bet.beteran.member.MemberModel.prototype.hasSite = function() { return jspb.Message.getField(this, 2) != null; }; -/** - * optional MemberClass member_class = 3; - * @return {?proto.bet.beteran.member.MemberClass} - */ -proto.bet.beteran.member.MemberModel.prototype.getMemberClass = function () { - return /** @type{?proto.bet.beteran.member.MemberClass} */ ( - jspb.Message.getWrapperField( - this, - models_member_member_class_pb.MemberClass, - 3 - ) - ); -}; /** - * @param {?proto.bet.beteran.member.MemberClass|undefined} value - * @return {!proto.bet.beteran.member.MemberModel} returns this + * optional bet.beteran.member_class.MemberClass member_class = 3; + * @return {?proto.bet.beteran.member_class.MemberClass} */ -proto.bet.beteran.member.MemberModel.prototype.setMemberClass = function ( - value -) { +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 () { +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 () { +proto.bet.beteran.member.MemberModel.prototype.hasMemberClass = function() { return jspb.Message.getField(this, 3) != null; }; -/** - * optional MemberLevel member_level = 4; - * @return {?proto.bet.beteran.member.MemberLevel} - */ -proto.bet.beteran.member.MemberModel.prototype.getMemberLevel = function () { - return /** @type{?proto.bet.beteran.member.MemberLevel} */ ( - jspb.Message.getWrapperField( - this, - models_member_member_level_pb.MemberLevel, - 4 - ) - ); -}; /** - * @param {?proto.bet.beteran.member.MemberLevel|undefined} value - * @return {!proto.bet.beteran.member.MemberModel} returns this + * optional bet.beteran.member_level.MemberLevel member_level = 4; + * @return {?proto.bet.beteran.member_level.MemberLevel} */ -proto.bet.beteran.member.MemberModel.prototype.setMemberLevel = function ( - value -) { +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 () { +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 () { +proto.bet.beteran.member.MemberModel.prototype.hasMemberLevel = function() { return jspb.Message.getField(this, 4) != null; }; + /** * optional Member referrer_member = 5; * @return {?proto.bet.beteran.member.Member} */ -proto.bet.beteran.member.MemberModel.prototype.getReferrerMember = function () { +proto.bet.beteran.member.MemberModel.prototype.getReferrerMember = function() { return /** @type{?proto.bet.beteran.member.Member} */ ( - jspb.Message.getWrapperField(this, proto.bet.beteran.member.Member, 5) - ); + jspb.Message.getWrapperField(this, proto.bet.beteran.member.Member, 5)); }; + /** * @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 -) { +*/ +proto.bet.beteran.member.MemberModel.prototype.setReferrerMember = 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.clearReferrerMember = - function () { - return this.setReferrerMember(undefined); - }; +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 () { +proto.bet.beteran.member.MemberModel.prototype.hasReferrerMember = function() { return jspb.Message.getField(this, 5) != null; }; + /** * optional uint64 referred_count = 6; * @return {number} */ -proto.bet.beteran.member.MemberModel.prototype.getReferredCount = function () { +proto.bet.beteran.member.MemberModel.prototype.getReferredCount = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; + /** * @param {number} value * @return {!proto.bet.beteran.member.MemberModel} returns this */ -proto.bet.beteran.member.MemberModel.prototype.setReferredCount = function ( - value -) { +proto.bet.beteran.member.MemberModel.prototype.setReferredCount = function(value) { return jspb.Message.setProto3IntField(this, 6, value); }; + /** * optional string username = 7; * @return {string} */ -proto.bet.beteran.member.MemberModel.prototype.getUsername = function () { +proto.bet.beteran.member.MemberModel.prototype.getUsername = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; + /** * @param {string} value * @return {!proto.bet.beteran.member.MemberModel} returns this */ -proto.bet.beteran.member.MemberModel.prototype.setUsername = function (value) { +proto.bet.beteran.member.MemberModel.prototype.setUsername = function(value) { return jspb.Message.setProto3StringField(this, 7, value); }; + /** * optional string nickname = 8; * @return {string} */ -proto.bet.beteran.member.MemberModel.prototype.getNickname = function () { +proto.bet.beteran.member.MemberModel.prototype.getNickname = 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.setNickname = function (value) { +proto.bet.beteran.member.MemberModel.prototype.setNickname = function(value) { return jspb.Message.setProto3StringField(this, 8, value); }; + /** * optional string mobile_phone_number = 9; * @return {string} */ -proto.bet.beteran.member.MemberModel.prototype.getMobilePhoneNumber = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 9, "") - ); - }; +proto.bet.beteran.member.MemberModel.prototype.getMobilePhoneNumber = 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.setMobilePhoneNumber = function ( - value -) { +proto.bet.beteran.member.MemberModel.prototype.setMobilePhoneNumber = function(value) { return jspb.Message.setField(this, 9, 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, 9, undefined); - }; +proto.bet.beteran.member.MemberModel.prototype.clearMobilePhoneNumber = function() { + return jspb.Message.setField(this, 9, undefined); +}; + /** * Returns whether this field is set. * @return {boolean} */ -proto.bet.beteran.member.MemberModel.prototype.hasMobilePhoneNumber = - function () { - return jspb.Message.getField(this, 9) != null; - }; +proto.bet.beteran.member.MemberModel.prototype.hasMobilePhoneNumber = function() { + return jspb.Message.getField(this, 9) != null; +}; + /** * optional MemberState state = 10; * @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, 10, 0) - ); +proto.bet.beteran.member.MemberModel.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.MemberModel} returns this */ -proto.bet.beteran.member.MemberModel.prototype.setState = function (value) { +proto.bet.beteran.member.MemberModel.prototype.setState = function(value) { return jspb.Message.setProto3EnumField(this, 10, value); }; + /** * optional uint64 state_changed_at = 11; * @return {number} */ -proto.bet.beteran.member.MemberModel.prototype.getStateChangedAt = function () { +proto.bet.beteran.member.MemberModel.prototype.getStateChangedAt = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); }; + /** * @param {number} value * @return {!proto.bet.beteran.member.MemberModel} returns this */ -proto.bet.beteran.member.MemberModel.prototype.setStateChangedAt = function ( - value -) { +proto.bet.beteran.member.MemberModel.prototype.setStateChangedAt = function(value) { return jspb.Message.setField(this, 11, 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, 11, undefined); - }; +proto.bet.beteran.member.MemberModel.prototype.clearStateChangedAt = function() { + return jspb.Message.setField(this, 11, undefined); +}; + /** * Returns whether this field is set. * @return {boolean} */ -proto.bet.beteran.member.MemberModel.prototype.hasStateChangedAt = function () { +proto.bet.beteran.member.MemberModel.prototype.hasStateChangedAt = function() { return jspb.Message.getField(this, 11) != null; }; + /** * optional string last_signined_ip = 12; * @return {string} */ -proto.bet.beteran.member.MemberModel.prototype.getLastSigninedIp = function () { +proto.bet.beteran.member.MemberModel.prototype.getLastSigninedIp = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); }; + /** * @param {string} value * @return {!proto.bet.beteran.member.MemberModel} returns this */ -proto.bet.beteran.member.MemberModel.prototype.setLastSigninedIp = function ( - value -) { +proto.bet.beteran.member.MemberModel.prototype.setLastSigninedIp = 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.clearLastSigninedIp = - function () { - return jspb.Message.setField(this, 12, undefined); - }; +proto.bet.beteran.member.MemberModel.prototype.clearLastSigninedIp = function() { + return jspb.Message.setField(this, 12, undefined); +}; + /** * Returns whether this field is set. * @return {boolean} */ -proto.bet.beteran.member.MemberModel.prototype.hasLastSigninedIp = function () { +proto.bet.beteran.member.MemberModel.prototype.hasLastSigninedIp = function() { return jspb.Message.getField(this, 12) != null; }; + /** * optional uint64 last_signined_at = 13; * @return {number} */ -proto.bet.beteran.member.MemberModel.prototype.getLastSigninedAt = function () { +proto.bet.beteran.member.MemberModel.prototype.getLastSigninedAt = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); }; + /** * @param {number} value * @return {!proto.bet.beteran.member.MemberModel} returns this */ -proto.bet.beteran.member.MemberModel.prototype.setLastSigninedAt = function ( - value -) { +proto.bet.beteran.member.MemberModel.prototype.setLastSigninedAt = 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.clearLastSigninedAt = - function () { - return jspb.Message.setField(this, 13, undefined); - }; +proto.bet.beteran.member.MemberModel.prototype.clearLastSigninedAt = function() { + return jspb.Message.setField(this, 13, undefined); +}; + /** * Returns whether this field is set. * @return {boolean} */ -proto.bet.beteran.member.MemberModel.prototype.hasLastSigninedAt = function () { +proto.bet.beteran.member.MemberModel.prototype.hasLastSigninedAt = function() { return jspb.Message.getField(this, 13) != null; }; + /** * optional uint64 created_at = 14; * @return {number} */ -proto.bet.beteran.member.MemberModel.prototype.getCreatedAt = function () { +proto.bet.beteran.member.MemberModel.prototype.getCreatedAt = 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.setCreatedAt = function (value) { +proto.bet.beteran.member.MemberModel.prototype.setCreatedAt = function(value) { return jspb.Message.setProto3IntField(this, 14, value); }; + /** * optional uint64 updated_at = 15; * @return {number} */ -proto.bet.beteran.member.MemberModel.prototype.getUpdatedAt = function () { +proto.bet.beteran.member.MemberModel.prototype.getUpdatedAt = 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.setUpdatedAt = function (value) { +proto.bet.beteran.member.MemberModel.prototype.setUpdatedAt = function(value) { return jspb.Message.setProto3IntField(this, 15, value); }; + /** * optional uint64 deleted_at = 16; * @return {number} */ -proto.bet.beteran.member.MemberModel.prototype.getDeletedAt = function () { +proto.bet.beteran.member.MemberModel.prototype.getDeletedAt = 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.setDeletedAt = function (value) { +proto.bet.beteran.member.MemberModel.prototype.setDeletedAt = function(value) { return jspb.Message.setField(this, 16, value); }; + /** * Clears the field making it undefined. * @return {!proto.bet.beteran.member.MemberModel} returns this */ -proto.bet.beteran.member.MemberModel.prototype.clearDeletedAt = function () { +proto.bet.beteran.member.MemberModel.prototype.clearDeletedAt = function() { return jspb.Message.setField(this, 16, undefined); }; + /** * Returns whether this field is set. * @return {boolean} */ -proto.bet.beteran.member.MemberModel.prototype.hasDeletedAt = function () { +proto.bet.beteran.member.MemberModel.prototype.hasDeletedAt = function() { return jspb.Message.getField(this, 16) != null; }; + /** * @enum {number} */ @@ -1432,7 +1518,7 @@ proto.bet.beteran.member.MemberState = { WITHDRAWAL: 3, DORMANCY: 4, BLACKLIST: 5, - SUSPENDED: 6, + 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/protobuf/models/rbac/resource_pb.d.ts b/src/app/modules/proto/models/resource_pb.d.ts similarity index 56% rename from src/app/modules/protobuf/models/rbac/resource_pb.d.ts rename to src/app/modules/proto/models/resource_pb.d.ts index a17a0eb..eb82368 100644 --- a/src/app/modules/protobuf/models/rbac/resource_pb.d.ts +++ b/src/app/modules/proto/models/resource_pb.d.ts @@ -1,7 +1,7 @@ -// package: bet.beteran.rbac -// file: models/rbac/resource.proto +// package: bet.beteran.resource +// file: models/resource.proto -import * as jspb from 'google-protobuf'; +import * as jspb from "google-protobuf"; export class Resource extends jspb.Message { getId(): string; @@ -33,30 +33,23 @@ export class Resource extends jspb.Message { 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 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; + 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; - }; + 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/protobuf/models/rbac/role_pb.d.ts b/src/app/modules/proto/models/role_pb.d.ts similarity index 53% rename from src/app/modules/protobuf/models/rbac/role_pb.d.ts rename to src/app/modules/proto/models/role_pb.d.ts index c89e654..c2f9fa7 100644 --- a/src/app/modules/protobuf/models/rbac/role_pb.d.ts +++ b/src/app/modules/proto/models/role_pb.d.ts @@ -1,8 +1,7 @@ -// package: bet.beteran.rbac -// file: models/rbac/role.proto +// package: bet.beteran.role +// file: models/role.proto -import * as jspb from 'google-protobuf'; -import * as models_rbac_resource_pb from '../../models/rbac/resource_pb'; +import * as jspb from "google-protobuf"; export class Role extends jspb.Message { getId(): string; @@ -34,30 +33,23 @@ export class Role extends jspb.Message { 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 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; + 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; - }; + 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/protobuf/models/domain/site_pb.d.ts b/src/app/modules/proto/models/site_pb.d.ts similarity index 61% rename from src/app/modules/protobuf/models/domain/site_pb.d.ts rename to src/app/modules/proto/models/site_pb.d.ts index 9d090cf..a3a5560 100644 --- a/src/app/modules/protobuf/models/domain/site_pb.d.ts +++ b/src/app/modules/proto/models/site_pb.d.ts @@ -1,7 +1,7 @@ -// package: bet.beteran.domain -// file: models/domain/site.proto +// package: bet.beteran.site +// file: models/site.proto -import * as jspb from 'google-protobuf'; +import * as jspb from "google-protobuf"; export class Site extends jspb.Message { getId(): string; @@ -45,32 +45,25 @@ export class Site extends jspb.Message { 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 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; + 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; - }; + 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); diff --git a/src/app/modules/protobuf/c2se/backend/account_pb.js b/src/app/modules/protobuf/c2se/backend/account_pb.js deleted file mode 100644 index 018e75b..0000000 --- a/src/app/modules/protobuf/c2se/backend/account_pb.js +++ /dev/null @@ -1,33 +0,0 @@ -// source: c2se/backend/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("bet.beteran.c2se.backend.bank", null, global); - -bet.beteran.c2se.backend.bank = {}; - -bet.beteran.c2se.backend.bank.SUBJECT_CREATE_BANK = - "bet.beteran.c2se.core.network.CreateBank"; -bet.beteran.c2se.backend.bank.SUBJECT_LIST_BANKS = - "bet.beteran.c2se.core.network.ListBanks"; -bet.beteran.c2se.backend.bank.SUBJECT_UPDATE_BANK = - "bet.beteran.c2se.core.network.UpdateBank"; -bet.beteran.c2se.backend.bank.SUBJECT_DELETE_BANK = - "bet.beteran.c2se.core.network.DeleteBank"; - -goog.object.extend(exports, bet.beteran.c2se.backend.bank); diff --git a/src/app/modules/protobuf/c2se/backend/identity_pb.d.ts b/src/app/modules/protobuf/c2se/backend/identity_pb.d.ts deleted file mode 100644 index ba64192..0000000 --- a/src/app/modules/protobuf/c2se/backend/identity_pb.d.ts +++ /dev/null @@ -1,123 +0,0 @@ -// package: bet.beteran.c2se.backend.identity -// file: c2se/backend/identity.proto - -import * as jspb from 'google-protobuf'; -import * as protobuf_rpc_error_pb from '../../protobuf/rpc/error_pb'; - -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; - -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_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_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/protobuf/c2se/backend/identity_pb.js b/src/app/modules/protobuf/c2se/backend/identity_pb.js deleted file mode 100644 index 08fa815..0000000 --- a/src/app/modules/protobuf/c2se/backend/identity_pb.js +++ /dev/null @@ -1,723 +0,0 @@ -// 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); - -var protobuf_rpc_error_pb = require("../../protobuf/rpc/error_pb.js"); -goog.object.extend(proto, protobuf_rpc_error_pb); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.identity.SigninRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.identity.SigninResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.identity.SigninResponse.Result", - null, - global -); - -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"; - -/** - * 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.backend.identity.SigninRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.identity.SigninRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.identity.SigninRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.identity.SigninResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.identity.SigninResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.identity.SigninResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.identity.SigninResponse.Result = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.identity.SigninResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.identity.SigninResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.identity.SigninRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.identity.SigninRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.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.backend.identity.SigninRequest} - */ -proto.bet.beteran.c2se.backend.identity.SigninRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.identity.SigninRequest(); - return proto.bet.beteran.c2se.backend.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.backend.identity.SigninRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.identity.SigninRequest} - */ -proto.bet.beteran.c2se.backend.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.backend.identity.SigninRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.identity.SigninRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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 securityCodeHash = 1; - * @return {string} - */ -proto.bet.beteran.c2se.backend.identity.SigninRequest.prototype.getSecurityCodeHash = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.identity.SigninRequest} returns this - */ -proto.bet.beteran.c2se.backend.identity.SigninRequest.prototype.setSecurityCodeHash = - function (value) { - return jspb.Message.setProto3StringField(this, 1, value); - }; - -/** - * optional string security_code = 2; - * @return {string} - */ -proto.bet.beteran.c2se.backend.identity.SigninRequest.prototype.getSecurityCode = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 2, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.identity.SigninRequest} returns this - */ -proto.bet.beteran.c2se.backend.identity.SigninRequest.prototype.setSecurityCode = - function (value) { - return jspb.Message.setProto3StringField(this, 2, value); - }; - -/** - * optional string username = 3; - * @return {string} - */ -proto.bet.beteran.c2se.backend.identity.SigninRequest.prototype.getUsername = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 3, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.identity.SigninRequest} returns this - */ -proto.bet.beteran.c2se.backend.identity.SigninRequest.prototype.setUsername = - function (value) { - return jspb.Message.setProto3StringField(this, 3, value); - }; - -/** - * optional string password = 4; - * @return {string} - */ -proto.bet.beteran.c2se.backend.identity.SigninRequest.prototype.getPassword = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 4, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.identity.SigninRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.identity.SigninResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.identity.SigninResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.identity.SigninResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.identity.SigninResponse} - */ -proto.bet.beteran.c2se.backend.identity.SigninResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.identity.SigninResponse(); - return proto.bet.beteran.c2se.backend.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.backend.identity.SigninResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.identity.SigninResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.identity.SigninResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.identity.SigninResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.identity.SigninResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.identity.SigninResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.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.backend.identity.SigninResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.identity.SigninResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.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.backend.identity.SigninResponse.Result} - */ -proto.bet.beteran.c2se.backend.identity.SigninResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.identity.SigninResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.identity.SigninResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.identity.SigninResponse.Result} - */ -proto.bet.beteran.c2se.backend.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.backend.identity.SigninResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.identity.SigninResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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.backend.identity.SigninResponse.Result.prototype.getAccessToken = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.identity.SigninResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.identity.SigninResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.identity.SigninResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.identity.SigninResponse} returns this - */ -proto.bet.beteran.c2se.backend.identity.SigninResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.identity.SigninResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.identity.SigninResponse.Result} - */ -proto.bet.beteran.c2se.backend.identity.SigninResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.identity.SigninResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.identity.SigninResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.identity.SigninResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.identity.SigninResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.identity.SigninResponse} returns this - */ -proto.bet.beteran.c2se.backend.identity.SigninResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.identity.SigninResponse.prototype.hasResult = - function () { - return jspb.Message.getField(this, 2) != null; - }; - -goog.object.extend(exports, proto.bet.beteran.c2se.backend.identity); diff --git a/src/app/modules/protobuf/c2se/backend/member_class_pb.d.ts b/src/app/modules/protobuf/c2se/backend/member_class_pb.d.ts deleted file mode 100644 index ffb4c54..0000000 --- a/src/app/modules/protobuf/c2se/backend/member_class_pb.d.ts +++ /dev/null @@ -1,555 +0,0 @@ -// package: bet.beteran.c2se.backend.member_class -// file: c2se/backend/member_class.proto - -import * as jspb from 'google-protobuf'; -import * as protobuf_rpc_error_pb from '../../protobuf/rpc/error_pb'; -import * as protobuf_pagination_pagination_pb from '../../protobuf/pagination/pagination_pb'; -import * as protobuf_pagination_search_pb from '../../protobuf/pagination/search_pb'; -import * as protobuf_pagination_sort_pb from '../../protobuf/pagination/sort_pb'; -import * as models_member_member_class_pb from '../../models/member/member_class_pb'; - -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; - -export class CreateMemberClassRequest extends jspb.Message { - hasParentId(): boolean; - clearParentId(): void; - getParentId(): string; - setParentId(value: string): void; - - getName(): string; - setName(value: string): 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; - }; -} - -export class CreateMemberClassResponse extends jspb.Message { - hasError(): boolean; - clearError(): void; - getError(): protobuf_rpc_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_pb.Error.AsObject; - result?: CreateMemberClassResponse.Result.AsObject; - }; - - export class Result extends jspb.Message { - hasMemberClass(): boolean; - clearMemberClass(): void; - getMemberClass(): models_member_member_class_pb.MemberClass | undefined; - setMemberClass(value?: models_member_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_member_class_pb.MemberClass.AsObject; - }; - } -} - -export class ListMemberClassesRequest extends jspb.Message { - hasPagination(): boolean; - clearPagination(): void; - getPagination(): protobuf_pagination_pagination_pb.Pagination | undefined; - setPagination(value?: protobuf_pagination_pagination_pb.Pagination): void; - - clearSearchesList(): void; - getSearchesList(): Array; - setSearchesList(value: Array): void; - addSearches( - value?: protobuf_pagination_search_pb.Search, - index?: number - ): protobuf_pagination_search_pb.Search; - - clearSortsList(): void; - getSortsList(): Array; - setSortsList(value: Array): void; - addSorts( - value?: protobuf_pagination_sort_pb.Sort, - index?: number - ): protobuf_pagination_sort_pb.Sort; - - hasNameLike(): boolean; - clearNameLike(): void; - getNameLike(): string; - setNameLike(value: string): 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_pagination_pb.Pagination.AsObject; - searchesList: Array; - sortsList: Array; - nameLike: string; - }; -} - -export class ListMemberClassesResponse extends jspb.Message { - hasError(): boolean; - clearError(): void; - getError(): protobuf_rpc_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_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_member_class_pb.MemberClass, - index?: number - ): models_member_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_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_pb.Error.AsObject; - result?: GetMemberClassResponse.Result.AsObject; - }; - - export class Result extends jspb.Message { - hasMemberClass(): boolean; - clearMemberClass(): void; - getMemberClass(): models_member_member_class_pb.MemberClass | undefined; - setMemberClass(value?: models_member_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_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; - - 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; - }; -} - -export class UpdateMemberClassResponse extends jspb.Message { - hasError(): boolean; - clearError(): void; - getError(): protobuf_rpc_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_pb.Error.AsObject; - result?: UpdateMemberClassResponse.Result.AsObject; - }; - - export class Result extends jspb.Message { - hasMemberClass(): boolean; - clearMemberClass(): void; - getMemberClass(): models_member_member_class_pb.MemberClass | undefined; - setMemberClass(value?: models_member_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_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_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_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/protobuf/c2se/backend/member_class_pb.js b/src/app/modules/protobuf/c2se/backend/member_class_pb.js deleted file mode 100644 index 9bbc402..0000000 --- a/src/app/modules/protobuf/c2se/backend/member_class_pb.js +++ /dev/null @@ -1,3543 +0,0 @@ -// 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); - -var protobuf_rpc_error_pb = require("../../protobuf/rpc/error_pb.js"); -goog.object.extend(proto, protobuf_rpc_error_pb); -var protobuf_pagination_pagination_pb = require("../../protobuf/pagination/pagination_pb.js"); -goog.object.extend(proto, protobuf_pagination_pagination_pb); -var protobuf_pagination_search_pb = require("../../protobuf/pagination/search_pb.js"); -goog.object.extend(proto, protobuf_pagination_search_pb); -var protobuf_pagination_sort_pb = require("../../protobuf/pagination/sort_pb.js"); -goog.object.extend(proto, protobuf_pagination_sort_pb); -var models_member_member_class_pb = require("../../models/member/member_class_pb.js"); -goog.object.extend(proto, models_member_member_class_pb); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result", - null, - global -); - -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"; - -/** - * 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.backend.member_class.CreateMemberClassRequest = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassResponse = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassResponse.Result = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesRequest = - function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest - .repeatedFields_, - null - ); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesResponse = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesResponse.Result = - function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse - .Result.repeatedFields_, - null - ); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassRequest = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassResponse = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassResponse.Result = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassRequest = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassResponse = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassResponse.Result = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassRequest = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassResponse = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassResponse.Result = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.toObject = - function (includeInstance, msg) { - var f, - obj = { - parentId: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: 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.backend.member_class.CreateMemberClassRequest} - */ -proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest(); - return proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest} - */ -proto.bet.beteran.c2se.backend.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; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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); - } - }; - -/** - * optional string parent_id = 1; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.prototype.getParentId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassRequest.prototype.hasParentId = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional string name = 2; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.prototype.getName = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 2, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.prototype.setName = - function (value) { - return jspb.Message.setProto3StringField(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.backend.member_class.CreateMemberClassResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassResponse} - */ -proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse(); - return proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.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.backend.member_class.CreateMemberClassResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - memberClass: - (f = msg.getMemberClass()) && - models_member_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.backend.member_class.CreateMemberClassResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result} - */ -proto.bet.beteran.c2se.backend.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_member_class_pb.MemberClass(); - reader.readMessage( - value, - models_member_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.backend.member_class.CreateMemberClassResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getMemberClass(); - if (f != null) { - writer.writeMessage( - 1, - f, - models_member_member_class_pb.MemberClass.serializeBinaryToWriter - ); - } - }; - -/** - * optional bet.beteran.member.MemberClass member_class = 1; - * @return {?proto.bet.beteran.member.MemberClass} - */ -proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result.prototype.getMemberClass = - function () { - return /** @type{?proto.bet.beteran.member.MemberClass} */ ( - jspb.Message.getWrapperField( - this, - models_member_member_class_pb.MemberClass, - 1 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.member.MemberClass|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result.prototype.clearMemberClass = - function () { - return this.setMemberClass(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse - .Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.CreateMemberClassResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesRequest.repeatedFields_ = - [2, 3]; - -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.backend.member_class.ListMemberClassesRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.toObject = - function (includeInstance, msg) { - var f, - obj = { - pagination: - (f = msg.getPagination()) && - protobuf_pagination_pagination_pb.Pagination.toObject( - includeInstance, - f - ), - searchesList: jspb.Message.toObjectList( - msg.getSearchesList(), - protobuf_pagination_search_pb.Search.toObject, - includeInstance - ), - sortsList: jspb.Message.toObjectList( - msg.getSortsList(), - protobuf_pagination_sort_pb.Sort.toObject, - includeInstance - ), - nameLike: 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.backend.member_class.ListMemberClassesRequest} - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest(); - return proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest} - */ -proto.bet.beteran.c2se.backend.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_pagination_pb.Pagination(); - reader.readMessage( - value, - protobuf_pagination_pagination_pb.Pagination - .deserializeBinaryFromReader - ); - msg.setPagination(value); - break; - case 2: - var value = new protobuf_pagination_search_pb.Search(); - reader.readMessage( - value, - protobuf_pagination_search_pb.Search.deserializeBinaryFromReader - ); - msg.addSearches(value); - break; - case 3: - var value = new protobuf_pagination_sort_pb.Sort(); - reader.readMessage( - value, - protobuf_pagination_sort_pb.Sort.deserializeBinaryFromReader - ); - msg.addSorts(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setNameLike(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_pagination_pagination_pb.Pagination.serializeBinaryToWriter - ); - } - f = message.getSearchesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - protobuf_pagination_search_pb.Search.serializeBinaryToWriter - ); - } - f = message.getSortsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - protobuf_pagination_sort_pb.Sort.serializeBinaryToWriter - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeString(4, f); - } - }; - -/** - * optional bet.protobuf.pagination.Pagination pagination = 1; - * @return {?proto.bet.protobuf.pagination.Pagination} - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.getPagination = - function () { - return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( - jspb.Message.getWrapperField( - this, - protobuf_pagination_pagination_pb.Pagination, - 1 - ) - ); - }; - -/** - * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.clearPagination = - function () { - return this.setPagination(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.hasPagination = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * repeated bet.protobuf.pagination.Search searches = 2; - * @return {!Array} - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.getSearchesList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - protobuf_pagination_search_pb.Search, - 2 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.setSearchesList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); - }; - -/** - * @param {!proto.bet.protobuf.pagination.Search=} opt_value - * @param {number=} opt_index - * @return {!proto.bet.protobuf.pagination.Search} - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.addSearches = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 2, - opt_value, - proto.bet.protobuf.pagination.Search, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.clearSearchesList = - function () { - return this.setSearchesList([]); - }; - -/** - * repeated bet.protobuf.pagination.Sort sorts = 3; - * @return {!Array} - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.getSortsList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - protobuf_pagination_sort_pb.Sort, - 3 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.setSortsList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); - }; - -/** - * @param {!proto.bet.protobuf.pagination.Sort=} opt_value - * @param {number=} opt_index - * @return {!proto.bet.protobuf.pagination.Sort} - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.addSorts = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 3, - opt_value, - proto.bet.protobuf.pagination.Sort, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.clearSortsList = - function () { - return this.setSortsList([]); - }; - -/** - * optional string name_like = 4; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.getNameLike = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 4, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.setNameLike = - function (value) { - return jspb.Message.setField(this, 4, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.clearNameLike = - function () { - return jspb.Message.setField(this, 4, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.hasNameLike = - function () { - return jspb.Message.getField(this, 4) != 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.backend.member_class.ListMemberClassesResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesResponse} - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse(); - return proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse - .Result.serializeBinaryToWriter - ); - } - }; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.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.backend.member_class.ListMemberClassesResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - memberClassesList: jspb.Message.toObjectList( - msg.getMemberClassesList(), - models_member_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.backend.member_class.ListMemberClassesResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.Result} - */ -proto.bet.beteran.c2se.backend.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_member_class_pb.MemberClass(); - reader.readMessage( - value, - models_member_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.backend.member_class.ListMemberClassesResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getMemberClassesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - models_member_member_class_pb.MemberClass.serializeBinaryToWriter - ); - } - }; - -/** - * repeated bet.beteran.member.MemberClass member_classes = 1; - * @return {!Array} - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.Result.prototype.getMemberClassesList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - models_member_member_class_pb.MemberClass, - 1 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.Result.prototype.setMemberClassesList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); - }; - -/** - * @param {!proto.bet.beteran.member.MemberClass=} opt_value - * @param {number=} opt_index - * @return {!proto.bet.beteran.member.MemberClass} - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.Result.prototype.addMemberClasses = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.bet.beteran.member.MemberClass, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse - .Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.ListMemberClassesResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_class.ListMemberClassesResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassRequest} - */ -proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest(); - return proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest} - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassRequest.prototype.getId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassResponse} - */ -proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse(); - return proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.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.backend.member_class.GetMemberClassResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - memberClass: - (f = msg.getMemberClass()) && - models_member_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.backend.member_class.GetMemberClassResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result} - */ -proto.bet.beteran.c2se.backend.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_member_class_pb.MemberClass(); - reader.readMessage( - value, - models_member_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.backend.member_class.GetMemberClassResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getMemberClass(); - if (f != null) { - writer.writeMessage( - 1, - f, - models_member_member_class_pb.MemberClass.serializeBinaryToWriter - ); - } - }; - -/** - * optional bet.beteran.member.MemberClass member_class = 1; - * @return {?proto.bet.beteran.member.MemberClass} - */ -proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result.prototype.getMemberClass = - function () { - return /** @type{?proto.bet.beteran.member.MemberClass} */ ( - jspb.Message.getWrapperField( - this, - models_member_member_class_pb.MemberClass, - 1 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.member.MemberClass|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result.prototype.clearMemberClass = - function () { - return this.setMemberClass(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse - .Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.GetMemberClassResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.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, ""), - }; - - 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.backend.member_class.UpdateMemberClassRequest} - */ -proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest(); - return proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest} - */ -proto.bet.beteran.c2se.backend.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; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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); - } - }; - -/** - * optional string id = 1; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.prototype.getId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassRequest.prototype.getParentId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 2, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassRequest.prototype.hasParentId = - function () { - return jspb.Message.getField(this, 2) != null; - }; - -/** - * optional string name = 3; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.prototype.getName = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 3, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.prototype.setName = - function (value) { - return jspb.Message.setProto3StringField(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.backend.member_class.UpdateMemberClassResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassResponse} - */ -proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse(); - return proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.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.backend.member_class.UpdateMemberClassResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - memberClass: - (f = msg.getMemberClass()) && - models_member_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.backend.member_class.UpdateMemberClassResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result} - */ -proto.bet.beteran.c2se.backend.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_member_class_pb.MemberClass(); - reader.readMessage( - value, - models_member_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.backend.member_class.UpdateMemberClassResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getMemberClass(); - if (f != null) { - writer.writeMessage( - 1, - f, - models_member_member_class_pb.MemberClass.serializeBinaryToWriter - ); - } - }; - -/** - * optional bet.beteran.member.MemberClass member_class = 1; - * @return {?proto.bet.beteran.member.MemberClass} - */ -proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result.prototype.getMemberClass = - function () { - return /** @type{?proto.bet.beteran.member.MemberClass} */ ( - jspb.Message.getWrapperField( - this, - models_member_member_class_pb.MemberClass, - 1 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.member.MemberClass|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result.prototype.clearMemberClass = - function () { - return this.setMemberClass(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse - .Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.UpdateMemberClassResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassRequest} - */ -proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest(); - return proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest} - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassRequest.prototype.getId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassResponse} - */ -proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse(); - return proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.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.backend.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.backend.member_class.DeleteMemberClassResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result} - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse - .Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_class.DeleteMemberClassResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.prototype.hasResult = - function () { - return jspb.Message.getField(this, 2) != null; - }; - -goog.object.extend(exports, proto.bet.beteran.c2se.backend.member_class); diff --git a/src/app/modules/protobuf/c2se/backend/member_level_pb.d.ts b/src/app/modules/protobuf/c2se/backend/member_level_pb.d.ts deleted file mode 100644 index fa267d6..0000000 --- a/src/app/modules/protobuf/c2se/backend/member_level_pb.d.ts +++ /dev/null @@ -1,551 +0,0 @@ -// package: bet.beteran.c2se.backend.member_level -// file: c2se/backend/member_level.proto - -import * as jspb from 'google-protobuf'; -import * as protobuf_rpc_error_pb from '../../protobuf/rpc/error_pb'; -import * as protobuf_pagination_pagination_pb from '../../protobuf/pagination/pagination_pb'; -import * as protobuf_pagination_search_pb from '../../protobuf/pagination/search_pb'; -import * as protobuf_pagination_sort_pb from '../../protobuf/pagination/sort_pb'; -import * as models_member_member_level_pb from '../../models/member/member_level_pb'; - -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; - -export class CreateMemberLevelRequest extends jspb.Message { - getName(): string; - setName(value: string): 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; - sortOrder: number; - }; -} - -export class CreateMemberLevelResponse extends jspb.Message { - hasError(): boolean; - clearError(): void; - getError(): protobuf_rpc_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_pb.Error.AsObject; - result?: CreateMemberLevelResponse.Result.AsObject; - }; - - export class Result extends jspb.Message { - hasMemberLevel(): boolean; - clearMemberLevel(): void; - getMemberLevel(): models_member_member_level_pb.MemberLevel | undefined; - setMemberLevel(value?: models_member_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_member_level_pb.MemberLevel.AsObject; - }; - } -} - -export class ListMemberLevelsRequest extends jspb.Message { - hasPagination(): boolean; - clearPagination(): void; - getPagination(): protobuf_pagination_pagination_pb.Pagination | undefined; - setPagination(value?: protobuf_pagination_pagination_pb.Pagination): void; - - clearSearchesList(): void; - getSearchesList(): Array; - setSearchesList(value: Array): void; - addSearches( - value?: protobuf_pagination_search_pb.Search, - index?: number - ): protobuf_pagination_search_pb.Search; - - clearSortsList(): void; - getSortsList(): Array; - setSortsList(value: Array): void; - addSorts( - value?: protobuf_pagination_sort_pb.Sort, - index?: number - ): protobuf_pagination_sort_pb.Sort; - - hasNameLike(): boolean; - clearNameLike(): void; - getNameLike(): string; - setNameLike(value: string): 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_pagination_pb.Pagination.AsObject; - searchesList: Array; - sortsList: Array; - nameLike: string; - }; -} - -export class ListMemberLevelsResponse extends jspb.Message { - hasError(): boolean; - clearError(): void; - getError(): protobuf_rpc_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_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_member_level_pb.MemberLevel, - index?: number - ): models_member_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_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_pb.Error.AsObject; - result?: GetMemberLevelResponse.Result.AsObject; - }; - - export class Result extends jspb.Message { - hasMemberLevel(): boolean; - clearMemberLevel(): void; - getMemberLevel(): models_member_member_level_pb.MemberLevel | undefined; - setMemberLevel(value?: models_member_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_member_level_pb.MemberLevel.AsObject; - }; - } -} - -export class UpdateMemberLevelRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - getName(): string; - setName(value: string): 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; - sortOrder: number; - }; -} - -export class UpdateMemberLevelResponse extends jspb.Message { - hasError(): boolean; - clearError(): void; - getError(): protobuf_rpc_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_pb.Error.AsObject; - result?: UpdateMemberLevelResponse.Result.AsObject; - }; - - export class Result extends jspb.Message { - hasMemberLevel(): boolean; - clearMemberLevel(): void; - getMemberLevel(): models_member_member_level_pb.MemberLevel | undefined; - setMemberLevel(value?: models_member_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_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_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_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/protobuf/c2se/backend/member_level_pb.js b/src/app/modules/protobuf/c2se/backend/member_level_pb.js deleted file mode 100644 index 6e86165..0000000 --- a/src/app/modules/protobuf/c2se/backend/member_level_pb.js +++ /dev/null @@ -1,3504 +0,0 @@ -// 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); - -var protobuf_rpc_error_pb = require("../../protobuf/rpc/error_pb.js"); -goog.object.extend(proto, protobuf_rpc_error_pb); -var protobuf_pagination_pagination_pb = require("../../protobuf/pagination/pagination_pb.js"); -goog.object.extend(proto, protobuf_pagination_pagination_pb); -var protobuf_pagination_search_pb = require("../../protobuf/pagination/search_pb.js"); -goog.object.extend(proto, protobuf_pagination_search_pb); -var protobuf_pagination_sort_pb = require("../../protobuf/pagination/sort_pb.js"); -goog.object.extend(proto, protobuf_pagination_sort_pb); -var models_member_member_level_pb = require("../../models/member/member_level_pb.js"); -goog.object.extend(proto, models_member_member_level_pb); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result", - null, - global -); - -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"; - -/** - * 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.backend.member_level.CreateMemberLevelRequest = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_level.CreateMemberLevelResponse = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_level.CreateMemberLevelResponse.Result = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsRequest = function ( - opt_data -) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest - .repeatedFields_, - null - ); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsResponse = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsResponse.Result = - function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse - .Result.repeatedFields_, - null - ); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelRequest = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelResponse = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelResponse.Result = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelRequest = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelResponse = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelResponse.Result = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelRequest = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelResponse = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelResponse.Result = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member_level.CreateMemberLevelRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_level.CreateMemberLevelRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.toObject = - function (includeInstance, msg) { - var f, - obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - sortOrder: 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.backend.member_level.CreateMemberLevelRequest} - */ -proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest(); - return proto.bet.beteran.c2se.backend.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.backend.member_level.CreateMemberLevelRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest} - */ -proto.bet.beteran.c2se.backend.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 {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.backend.member_level.CreateMemberLevelRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_level.CreateMemberLevelRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.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); - } - }; - -/** - * optional string name = 1; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.prototype.getName = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.prototype.setName = - function (value) { - return jspb.Message.setProto3StringField(this, 1, value); - }; - -/** - * optional uint32 sort_order = 2; - * @return {number} - */ -proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.prototype.getSortOrder = - function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); - }; - -/** - * @param {number} value - * @return {!proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.prototype.setSortOrder = - function (value) { - return jspb.Message.setProto3IntField(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.backend.member_level.CreateMemberLevelResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_level.CreateMemberLevelResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.member_level.CreateMemberLevelResponse} - */ -proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse(); - return proto.bet.beteran.c2se.backend.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.backend.member_level.CreateMemberLevelResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.member_level.CreateMemberLevelResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_level.CreateMemberLevelResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.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.backend.member_level.CreateMemberLevelResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.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.backend.member_level.CreateMemberLevelResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - memberLevel: - (f = msg.getMemberLevel()) && - models_member_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.backend.member_level.CreateMemberLevelResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.member_level.CreateMemberLevelResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result} - */ -proto.bet.beteran.c2se.backend.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_member_level_pb.MemberLevel(); - reader.readMessage( - value, - models_member_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.backend.member_level.CreateMemberLevelResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_level.CreateMemberLevelResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getMemberLevel(); - if (f != null) { - writer.writeMessage( - 1, - f, - models_member_member_level_pb.MemberLevel.serializeBinaryToWriter - ); - } - }; - -/** - * optional bet.beteran.member.MemberLevel member_level = 1; - * @return {?proto.bet.beteran.member.MemberLevel} - */ -proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result.prototype.getMemberLevel = - function () { - return /** @type{?proto.bet.beteran.member.MemberLevel} */ ( - jspb.Message.getWrapperField( - this, - models_member_member_level_pb.MemberLevel, - 1 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.member.MemberLevel|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.CreateMemberLevelResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result.prototype.clearMemberLevel = - function () { - return this.setMemberLevel(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.CreateMemberLevelResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.CreateMemberLevelResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse - .Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.CreateMemberLevelResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsRequest.repeatedFields_ = - [2, 3]; - -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.backend.member_level.ListMemberLevelsRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.toObject = - function (includeInstance, msg) { - var f, - obj = { - pagination: - (f = msg.getPagination()) && - protobuf_pagination_pagination_pb.Pagination.toObject( - includeInstance, - f - ), - searchesList: jspb.Message.toObjectList( - msg.getSearchesList(), - protobuf_pagination_search_pb.Search.toObject, - includeInstance - ), - sortsList: jspb.Message.toObjectList( - msg.getSortsList(), - protobuf_pagination_sort_pb.Sort.toObject, - includeInstance - ), - nameLike: 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.backend.member_level.ListMemberLevelsRequest} - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest(); - return proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest} - */ -proto.bet.beteran.c2se.backend.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_pagination_pb.Pagination(); - reader.readMessage( - value, - protobuf_pagination_pagination_pb.Pagination - .deserializeBinaryFromReader - ); - msg.setPagination(value); - break; - case 2: - var value = new protobuf_pagination_search_pb.Search(); - reader.readMessage( - value, - protobuf_pagination_search_pb.Search.deserializeBinaryFromReader - ); - msg.addSearches(value); - break; - case 3: - var value = new protobuf_pagination_sort_pb.Sort(); - reader.readMessage( - value, - protobuf_pagination_sort_pb.Sort.deserializeBinaryFromReader - ); - msg.addSorts(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setNameLike(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_pagination_pagination_pb.Pagination.serializeBinaryToWriter - ); - } - f = message.getSearchesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - protobuf_pagination_search_pb.Search.serializeBinaryToWriter - ); - } - f = message.getSortsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - protobuf_pagination_sort_pb.Sort.serializeBinaryToWriter - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeString(4, f); - } - }; - -/** - * optional bet.protobuf.pagination.Pagination pagination = 1; - * @return {?proto.bet.protobuf.pagination.Pagination} - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.prototype.getPagination = - function () { - return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( - jspb.Message.getWrapperField( - this, - protobuf_pagination_pagination_pb.Pagination, - 1 - ) - ); - }; - -/** - * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.prototype.clearPagination = - function () { - return this.setPagination(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.prototype.hasPagination = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * repeated bet.protobuf.pagination.Search searches = 2; - * @return {!Array} - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.prototype.getSearchesList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - protobuf_pagination_search_pb.Search, - 2 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.prototype.setSearchesList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); - }; - -/** - * @param {!proto.bet.protobuf.pagination.Search=} opt_value - * @param {number=} opt_index - * @return {!proto.bet.protobuf.pagination.Search} - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.prototype.addSearches = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 2, - opt_value, - proto.bet.protobuf.pagination.Search, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.prototype.clearSearchesList = - function () { - return this.setSearchesList([]); - }; - -/** - * repeated bet.protobuf.pagination.Sort sorts = 3; - * @return {!Array} - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.prototype.getSortsList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - protobuf_pagination_sort_pb.Sort, - 3 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.prototype.setSortsList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); - }; - -/** - * @param {!proto.bet.protobuf.pagination.Sort=} opt_value - * @param {number=} opt_index - * @return {!proto.bet.protobuf.pagination.Sort} - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.prototype.addSorts = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 3, - opt_value, - proto.bet.protobuf.pagination.Sort, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.prototype.clearSortsList = - function () { - return this.setSortsList([]); - }; - -/** - * optional string name_like = 4; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.prototype.getNameLike = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 4, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.prototype.setNameLike = - function (value) { - return jspb.Message.setField(this, 4, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.prototype.clearNameLike = - function () { - return jspb.Message.setField(this, 4, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsRequest.prototype.hasNameLike = - function () { - return jspb.Message.getField(this, 4) != 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.backend.member_level.ListMemberLevelsResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsResponse} - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse(); - return proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse - .Result.serializeBinaryToWriter - ); - } - }; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.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.backend.member_level.ListMemberLevelsResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - memberLevelsList: jspb.Message.toObjectList( - msg.getMemberLevelsList(), - models_member_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.backend.member_level.ListMemberLevelsResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result} - */ -proto.bet.beteran.c2se.backend.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_member_level_pb.MemberLevel(); - reader.readMessage( - value, - models_member_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.backend.member_level.ListMemberLevelsResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getMemberLevelsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - models_member_member_level_pb.MemberLevel.serializeBinaryToWriter - ); - } - }; - -/** - * repeated bet.beteran.member.MemberLevel member_levels = 1; - * @return {!Array} - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result.prototype.getMemberLevelsList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - models_member_member_level_pb.MemberLevel, - 1 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result.prototype.setMemberLevelsList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); - }; - -/** - * @param {!proto.bet.beteran.member.MemberLevel=} opt_value - * @param {number=} opt_index - * @return {!proto.bet.beteran.member.MemberLevel} - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result.prototype.addMemberLevels = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.bet.beteran.member.MemberLevel, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse - .Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.ListMemberLevelsResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelRequest} - */ -proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest(); - return proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest} - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelRequest.prototype.getId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelResponse} - */ -proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse(); - return proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.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.backend.member_level.GetMemberLevelResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - memberLevel: - (f = msg.getMemberLevel()) && - models_member_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.backend.member_level.GetMemberLevelResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result} - */ -proto.bet.beteran.c2se.backend.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_member_level_pb.MemberLevel(); - reader.readMessage( - value, - models_member_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.backend.member_level.GetMemberLevelResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getMemberLevel(); - if (f != null) { - writer.writeMessage( - 1, - f, - models_member_member_level_pb.MemberLevel.serializeBinaryToWriter - ); - } - }; - -/** - * optional bet.beteran.member.MemberLevel member_level = 1; - * @return {?proto.bet.beteran.member.MemberLevel} - */ -proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result.prototype.getMemberLevel = - function () { - return /** @type{?proto.bet.beteran.member.MemberLevel} */ ( - jspb.Message.getWrapperField( - this, - models_member_member_level_pb.MemberLevel, - 1 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.member.MemberLevel|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result.prototype.clearMemberLevel = - function () { - return this.setMemberLevel(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse - .Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.GetMemberLevelResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.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), - }; - - 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.backend.member_level.UpdateMemberLevelRequest} - */ -proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest(); - return proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest} - */ -proto.bet.beteran.c2se.backend.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 {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.backend.member_level.UpdateMemberLevelRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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.getSortOrder(); - if (f !== 0) { - writer.writeUint32(3, f); - } - }; - -/** - * optional string id = 1; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.prototype.getId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.prototype.setId = - function (value) { - return jspb.Message.setProto3StringField(this, 1, value); - }; - -/** - * optional string name = 2; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.prototype.getName = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 2, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.prototype.setName = - function (value) { - return jspb.Message.setProto3StringField(this, 2, value); - }; - -/** - * optional uint32 sort_order = 3; - * @return {number} - */ -proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.prototype.getSortOrder = - function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); - }; - -/** - * @param {number} value - * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest} returns this - */ -proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.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.backend.member_level.UpdateMemberLevelResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelResponse} - */ -proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse(); - return proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.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.backend.member_level.UpdateMemberLevelResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - memberLevel: - (f = msg.getMemberLevel()) && - models_member_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.backend.member_level.UpdateMemberLevelResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result} - */ -proto.bet.beteran.c2se.backend.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_member_level_pb.MemberLevel(); - reader.readMessage( - value, - models_member_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.backend.member_level.UpdateMemberLevelResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getMemberLevel(); - if (f != null) { - writer.writeMessage( - 1, - f, - models_member_member_level_pb.MemberLevel.serializeBinaryToWriter - ); - } - }; - -/** - * optional bet.beteran.member.MemberLevel member_level = 1; - * @return {?proto.bet.beteran.member.MemberLevel} - */ -proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result.prototype.getMemberLevel = - function () { - return /** @type{?proto.bet.beteran.member.MemberLevel} */ ( - jspb.Message.getWrapperField( - this, - models_member_member_level_pb.MemberLevel, - 1 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.member.MemberLevel|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result.prototype.clearMemberLevel = - function () { - return this.setMemberLevel(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse - .Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.UpdateMemberLevelResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelRequest} - */ -proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest(); - return proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest} - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelRequest.prototype.getId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelResponse} - */ -proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse(); - return proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.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.backend.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.backend.member_level.DeleteMemberLevelResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result} - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result} - */ -proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse - .Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member_level.DeleteMemberLevelResponse} returns this - */ -proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.prototype.hasResult = - function () { - return jspb.Message.getField(this, 2) != null; - }; - -goog.object.extend(exports, proto.bet.beteran.c2se.backend.member_level); diff --git a/src/app/modules/protobuf/c2se/backend/member_pb.d.ts b/src/app/modules/protobuf/c2se/backend/member_pb.d.ts deleted file mode 100644 index a1d2cff..0000000 --- a/src/app/modules/protobuf/c2se/backend/member_pb.d.ts +++ /dev/null @@ -1,764 +0,0 @@ -// package: bet.beteran.c2se.backend.member -// file: c2se/backend/member.proto - -import * as jspb from 'google-protobuf'; -import * as protobuf_rpc_error_pb from '../../protobuf/rpc/error_pb'; -import * as protobuf_pagination_pagination_pb from '../../protobuf/pagination/pagination_pb'; -import * as protobuf_pagination_search_pb from '../../protobuf/pagination/search_pb'; -import * as protobuf_pagination_sort_pb from '../../protobuf/pagination/sort_pb'; -import * as models_member_member_pb from '../../models/member/member_pb'; - -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; - -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; - - getState(): models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap]; - setState( - value: models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap] - ): 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; - state: models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap]; - }; -} - -export class CreateMemberResponse extends jspb.Message { - hasError(): boolean; - clearError(): void; - getError(): protobuf_rpc_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_pb.Error.AsObject; - result?: CreateMemberResponse.Result.AsObject; - }; - - export class Result extends jspb.Message { - hasMember(): boolean; - clearMember(): void; - getMember(): models_member_member_pb.MemberModel | undefined; - setMember(value?: models_member_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_member_pb.MemberModel.AsObject; - }; - } -} - -export class ListMembersRequest extends jspb.Message { - hasPagination(): boolean; - clearPagination(): void; - getPagination(): protobuf_pagination_pagination_pb.Pagination | undefined; - setPagination(value?: protobuf_pagination_pagination_pb.Pagination): void; - - clearSearchesList(): void; - getSearchesList(): Array; - setSearchesList(value: Array): void; - addSearches( - value?: protobuf_pagination_search_pb.Search, - index?: number - ): protobuf_pagination_search_pb.Search; - - clearSortsList(): void; - getSortsList(): Array; - setSortsList(value: Array): void; - addSorts( - value?: protobuf_pagination_sort_pb.Sort, - index?: number - ): protobuf_pagination_sort_pb.Sort; - - 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_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap]; - setState( - value: models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap] - ): void; - - hasDeletedAt(): boolean; - clearDeletedAt(): void; - getDeletedAt(): number; - setDeletedAt(value: number): 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_pagination_pb.Pagination.AsObject; - searchesList: Array; - sortsList: Array; - siteId: string; - memberClassId: string; - memberLevelId: string; - referrerMemberId: string; - usernameLike: string; - nicknameLike: string; - mobilePhoneNumberLike: string; - lastSigninedIp: string; - state: models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap]; - deletedAt: number; - }; -} - -export class ListMembersResponse extends jspb.Message { - hasError(): boolean; - clearError(): void; - getError(): protobuf_rpc_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_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_member_pb.MemberModel, - index?: number - ): models_member_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_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_pb.Error.AsObject; - result?: GetMemberResponse.Result.AsObject; - }; - - export class Result extends jspb.Message { - hasMember(): boolean; - clearMember(): void; - getMember(): models_member_member_pb.MemberModel | undefined; - setMember(value?: models_member_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_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_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_pb.Error.AsObject; - result?: GetMemberByUsernameResponse.Result.AsObject; - }; - - export class Result extends jspb.Message { - hasMember(): boolean; - clearMember(): void; - getMember(): models_member_member_pb.MemberModel | undefined; - setMember(value?: models_member_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_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; - - hasState(): boolean; - clearState(): void; - getState(): models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap]; - setState( - value: models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap] - ): 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; - state: models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap]; - }; -} - -export class UpdateMemberResponse extends jspb.Message { - hasError(): boolean; - clearError(): void; - getError(): protobuf_rpc_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_pb.Error.AsObject; - result?: UpdateMemberResponse.Result.AsObject; - }; - - export class Result extends jspb.Message { - hasMember(): boolean; - clearMember(): void; - getMember(): models_member_member_pb.MemberModel | undefined; - setMember(value?: models_member_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_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_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_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/protobuf/c2se/backend/member_pb.js b/src/app/modules/protobuf/c2se/backend/member_pb.js deleted file mode 100644 index d27f0f7..0000000 --- a/src/app/modules/protobuf/c2se/backend/member_pb.js +++ /dev/null @@ -1,4961 +0,0 @@ -// 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); - -var protobuf_rpc_error_pb = require("../../protobuf/rpc/error_pb.js"); -goog.object.extend(proto, protobuf_rpc_error_pb); -var protobuf_pagination_pagination_pb = require("../../protobuf/pagination/pagination_pb.js"); -goog.object.extend(proto, protobuf_pagination_pagination_pb); -var protobuf_pagination_search_pb = require("../../protobuf/pagination/search_pb.js"); -goog.object.extend(proto, protobuf_pagination_search_pb); -var protobuf_pagination_sort_pb = require("../../protobuf/pagination/sort_pb.js"); -goog.object.extend(proto, protobuf_pagination_sort_pb); -var models_member_member_pb = require("../../models/member/member_pb.js"); -goog.object.extend(proto, models_member_member_pb); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member.CreateMemberRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member.CreateMemberResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member.DeleteMemberRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member.DeleteMemberResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member.GetMemberRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member.GetMemberResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member.ListMembersRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member.ListMembersResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member.UpdateMemberRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member.UpdateMemberResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result", - null, - global -); - -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"; - -/** - * 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.backend.member.CreateMemberRequest = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.CreateMemberRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.CreateMemberRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberResponse = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.CreateMemberResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.CreateMemberResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberResponse.Result = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member.ListMembersRequest = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.bet.beteran.c2se.backend.member.ListMembersRequest.repeatedFields_, - null - ); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.ListMembersRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.ListMembersRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member.ListMembersResponse = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.ListMembersResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.ListMembersResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member.ListMembersResponse.Result = function ( - opt_data -) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result - .repeatedFields_, - null - ); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member.GetMemberRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.GetMemberRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.GetMemberRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member.GetMemberResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.GetMemberResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.GetMemberResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member.GetMemberResponse.Result = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameRequest = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameResponse = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameResponse.Result = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberRequest = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.UpdateMemberRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberResponse = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.UpdateMemberResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberResponse.Result = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberRequest = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.DeleteMemberRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.DeleteMemberRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberResponse = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.DeleteMemberResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberResponse.Result = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.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, ""), - state: 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.c2se.backend.member.CreateMemberRequest} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.member.CreateMemberRequest(); - return proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} - */ -proto.bet.beteran.c2se.backend.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 = /** @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.backend.member.CreateMemberRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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.getState(); - if (f !== 0.0) { - writer.writeEnum(9, f); - } - }; - -/** - * optional string site_id = 1; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getSiteId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberRequest.prototype.getMemberClassId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 2, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberRequest.prototype.getMemberLevelId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 3, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberRequest.prototype.getReferrerMemberUsername = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 4, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setReferrerMemberUsername = - function (value) { - return jspb.Message.setField(this, 4, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.clearReferrerMemberUsername = - function () { - return jspb.Message.setField(this, 4, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.hasReferrerMemberUsername = - function () { - return jspb.Message.getField(this, 4) != null; - }; - -/** - * optional string username = 5; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getUsername = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 5, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setUsername = - function (value) { - return jspb.Message.setProto3StringField(this, 5, value); - }; - -/** - * optional string password = 6; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getPassword = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 6, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setPassword = - function (value) { - return jspb.Message.setProto3StringField(this, 6, value); - }; - -/** - * optional string nickname = 7; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getNickname = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 7, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberRequest.prototype.getMobilePhoneNumber = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 8, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setMobilePhoneNumber = - function (value) { - return jspb.Message.setField(this, 8, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.clearMobilePhoneNumber = - function () { - return jspb.Message.setField(this, 8, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.hasMobilePhoneNumber = - 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.backend.member.CreateMemberRequest.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.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setState = - function (value) { - return jspb.Message.setProto3EnumField(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.c2se.backend.member.CreateMemberResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member.CreateMemberResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberResponse} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.member.CreateMemberResponse(); - return proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - member: - (f = msg.getMember()) && - models_member_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.backend.member.CreateMemberResponse.Result} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} - */ -proto.bet.beteran.c2se.backend.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_member_pb.MemberModel(); - reader.readMessage( - value, - models_member_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.backend.member.CreateMemberResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getMember(); - if (f != null) { - writer.writeMessage( - 1, - f, - models_member_member_pb.MemberModel.serializeBinaryToWriter - ); - } - }; - -/** - * optional bet.beteran.member.MemberModel member = 1; - * @return {?proto.bet.beteran.member.MemberModel} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.prototype.getMember = - function () { - return /** @type{?proto.bet.beteran.member.MemberModel} */ ( - jspb.Message.getWrapperField(this, models_member_member_pb.MemberModel, 1) - ); - }; - -/** - * @param {?proto.bet.beteran.member.MemberModel|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.prototype.clearMember = - function () { - return this.setMember(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.CreateMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member.ListMembersRequest.repeatedFields_ = [ - 2, 3, -]; - -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.backend.member.ListMembersRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member.ListMembersRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member.ListMembersRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - pagination: - (f = msg.getPagination()) && - protobuf_pagination_pagination_pb.Pagination.toObject( - includeInstance, - f - ), - searchesList: jspb.Message.toObjectList( - msg.getSearchesList(), - protobuf_pagination_search_pb.Search.toObject, - includeInstance - ), - sortsList: jspb.Message.toObjectList( - msg.getSortsList(), - protobuf_pagination_sort_pb.Sort.toObject, - includeInstance - ), - siteId: jspb.Message.getFieldWithDefault(msg, 4, ""), - memberClassId: jspb.Message.getFieldWithDefault(msg, 5, ""), - memberLevelId: jspb.Message.getFieldWithDefault(msg, 6, ""), - referrerMemberId: jspb.Message.getFieldWithDefault(msg, 7, ""), - usernameLike: jspb.Message.getFieldWithDefault(msg, 8, ""), - nicknameLike: jspb.Message.getFieldWithDefault(msg, 9, ""), - mobilePhoneNumberLike: jspb.Message.getFieldWithDefault(msg, 10, ""), - lastSigninedIp: jspb.Message.getFieldWithDefault(msg, 11, ""), - state: jspb.Message.getFieldWithDefault(msg, 12, 0), - deletedAt: jspb.Message.getFieldWithDefault(msg, 13, 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.backend.member.ListMembersRequest} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.member.ListMembersRequest(); - return proto.bet.beteran.c2se.backend.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.backend.member.ListMembersRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} - */ -proto.bet.beteran.c2se.backend.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_pagination_pb.Pagination(); - reader.readMessage( - value, - protobuf_pagination_pagination_pb.Pagination - .deserializeBinaryFromReader - ); - msg.setPagination(value); - break; - case 2: - var value = new protobuf_pagination_search_pb.Search(); - reader.readMessage( - value, - protobuf_pagination_search_pb.Search.deserializeBinaryFromReader - ); - msg.addSearches(value); - break; - case 3: - var value = new protobuf_pagination_sort_pb.Sort(); - reader.readMessage( - value, - protobuf_pagination_sort_pb.Sort.deserializeBinaryFromReader - ); - msg.addSorts(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setSiteId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setMemberClassId(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setMemberLevelId(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setReferrerMemberId(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setUsernameLike(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setNicknameLike(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setMobilePhoneNumberLike(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setLastSigninedIp(value); - break; - case 12: - var value = /** @type {!proto.bet.beteran.member.MemberState} */ ( - reader.readEnum() - ); - msg.setState(value); - break; - case 13: - 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.backend.member.ListMembersRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member.ListMembersRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_pagination_pagination_pb.Pagination.serializeBinaryToWriter - ); - } - f = message.getSearchesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - protobuf_pagination_search_pb.Search.serializeBinaryToWriter - ); - } - f = message.getSortsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - protobuf_pagination_sort_pb.Sort.serializeBinaryToWriter - ); - } - 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 {string} */ (jspb.Message.getField(message, 9)); - if (f != null) { - writer.writeString(9, f); - } - f = /** @type {string} */ (jspb.Message.getField(message, 10)); - if (f != null) { - writer.writeString(10, f); - } - f = /** @type {string} */ (jspb.Message.getField(message, 11)); - if (f != null) { - writer.writeString(11, f); - } - f = /** @type {!proto.bet.beteran.member.MemberState} */ ( - jspb.Message.getField(message, 12) - ); - if (f != null) { - writer.writeEnum(12, f); - } - f = /** @type {number} */ (jspb.Message.getField(message, 13)); - if (f != null) { - writer.writeUint64(13, f); - } - }; - -/** - * optional bet.protobuf.pagination.Pagination pagination = 1; - * @return {?proto.bet.protobuf.pagination.Pagination} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getPagination = - function () { - return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( - jspb.Message.getWrapperField( - this, - protobuf_pagination_pagination_pb.Pagination, - 1 - ) - ); - }; - -/** - * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearPagination = - function () { - return this.setPagination(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasPagination = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * repeated bet.protobuf.pagination.Search searches = 2; - * @return {!Array} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getSearchesList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - protobuf_pagination_search_pb.Search, - 2 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setSearchesList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); - }; - -/** - * @param {!proto.bet.protobuf.pagination.Search=} opt_value - * @param {number=} opt_index - * @return {!proto.bet.protobuf.pagination.Search} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.addSearches = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 2, - opt_value, - proto.bet.protobuf.pagination.Search, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearSearchesList = - function () { - return this.setSearchesList([]); - }; - -/** - * repeated bet.protobuf.pagination.Sort sorts = 3; - * @return {!Array} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getSortsList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - protobuf_pagination_sort_pb.Sort, - 3 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setSortsList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); - }; - -/** - * @param {!proto.bet.protobuf.pagination.Sort=} opt_value - * @param {number=} opt_index - * @return {!proto.bet.protobuf.pagination.Sort} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.addSorts = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 3, - opt_value, - proto.bet.protobuf.pagination.Sort, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearSortsList = - function () { - return this.setSortsList([]); - }; - -/** - * optional string site_id = 4; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getSiteId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 4, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setSiteId = - function (value) { - return jspb.Message.setField(this, 4, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearSiteId = - function () { - return jspb.Message.setField(this, 4, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasSiteId = - function () { - return jspb.Message.getField(this, 4) != null; - }; - -/** - * optional string member_class_id = 5; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getMemberClassId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 5, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setMemberClassId = - function (value) { - return jspb.Message.setField(this, 5, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearMemberClassId = - function () { - return jspb.Message.setField(this, 5, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasMemberClassId = - function () { - return jspb.Message.getField(this, 5) != null; - }; - -/** - * optional string member_level_id = 6; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getMemberLevelId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 6, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setMemberLevelId = - function (value) { - return jspb.Message.setField(this, 6, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearMemberLevelId = - function () { - return jspb.Message.setField(this, 6, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasMemberLevelId = - function () { - return jspb.Message.getField(this, 6) != null; - }; - -/** - * optional string referrer_member_id = 7; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getReferrerMemberId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 7, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setReferrerMemberId = - function (value) { - return jspb.Message.setField(this, 7, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearReferrerMemberId = - function () { - return jspb.Message.setField(this, 7, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasReferrerMemberId = - function () { - return jspb.Message.getField(this, 7) != null; - }; - -/** - * optional string username_like = 8; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getUsernameLike = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 8, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setUsernameLike = - function (value) { - return jspb.Message.setField(this, 8, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearUsernameLike = - function () { - return jspb.Message.setField(this, 8, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasUsernameLike = - function () { - return jspb.Message.getField(this, 8) != null; - }; - -/** - * optional string nickname_like = 9; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getNicknameLike = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 9, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setNicknameLike = - function (value) { - return jspb.Message.setField(this, 9, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearNicknameLike = - function () { - return jspb.Message.setField(this, 9, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasNicknameLike = - function () { - return jspb.Message.getField(this, 9) != null; - }; - -/** - * optional string mobile_phone_number_like = 10; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getMobilePhoneNumberLike = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 10, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setMobilePhoneNumberLike = - function (value) { - return jspb.Message.setField(this, 10, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearMobilePhoneNumberLike = - function () { - return jspb.Message.setField(this, 10, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasMobilePhoneNumberLike = - function () { - return jspb.Message.getField(this, 10) != null; - }; - -/** - * optional string last_signined_ip = 11; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getLastSigninedIp = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 11, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setLastSigninedIp = - function (value) { - return jspb.Message.setField(this, 11, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearLastSigninedIp = - function () { - return jspb.Message.setField(this, 11, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasLastSigninedIp = - function () { - return jspb.Message.getField(this, 11) != null; - }; - -/** - * optional bet.beteran.member.MemberState state = 12; - * @return {!proto.bet.beteran.member.MemberState} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getState = - function () { - return /** @type {!proto.bet.beteran.member.MemberState} */ ( - jspb.Message.getFieldWithDefault(this, 12, 0) - ); - }; - -/** - * @param {!proto.bet.beteran.member.MemberState} value - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setState = - function (value) { - return jspb.Message.setField(this, 12, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearState = - function () { - return jspb.Message.setField(this, 12, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasState = - function () { - return jspb.Message.getField(this, 12) != null; - }; - -/** - * optional uint64 deleted_at = 13; - * @return {number} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getDeletedAt = - function () { - return /** @type {number} */ ( - jspb.Message.getFieldWithDefault(this, 13, 0) - ); - }; - -/** - * @param {number} value - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setDeletedAt = - function (value) { - return jspb.Message.setField(this, 13, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearDeletedAt = - function () { - return jspb.Message.setField(this, 13, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasDeletedAt = - function () { - return jspb.Message.getField(this, 13) != 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.backend.member.ListMembersResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member.ListMembersResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member.ListMembersResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.member.ListMembersResponse} - */ -proto.bet.beteran.c2se.backend.member.ListMembersResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.member.ListMembersResponse(); - return proto.bet.beteran.c2se.backend.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.backend.member.ListMembersResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.member.ListMembersResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member.ListMembersResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member.ListMembersResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result - .serializeBinaryToWriter - ); - } - }; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.bet.beteran.c2se.backend.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.backend.member.ListMembersResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member.ListMembersResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - membersList: jspb.Message.toObjectList( - msg.getMembersList(), - models_member_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.backend.member.ListMembersResponse.Result} - */ -proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.member.ListMembersResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result} - */ -proto.bet.beteran.c2se.backend.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_member_pb.MemberModel(); - reader.readMessage( - value, - models_member_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.backend.member.ListMembersResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member.ListMembersResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getMembersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - models_member_member_pb.MemberModel.serializeBinaryToWriter - ); - } - }; - -/** - * repeated bet.beteran.member.MemberModel members = 1; - * @return {!Array} - */ -proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.prototype.getMembersList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - models_member_member_pb.MemberModel, - 1 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.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.backend.member.ListMembersResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.ListMembersResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.ListMembersResponse} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.ListMembersResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result} - */ -proto.bet.beteran.c2se.backend.member.ListMembersResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.ListMembersResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.ListMembersResponse} returns this - */ -proto.bet.beteran.c2se.backend.member.ListMembersResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member.GetMemberRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member.GetMemberRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.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.backend.member.GetMemberRequest} - */ -proto.bet.beteran.c2se.backend.member.GetMemberRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.member.GetMemberRequest(); - return proto.bet.beteran.c2se.backend.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.backend.member.GetMemberRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.GetMemberRequest} - */ -proto.bet.beteran.c2se.backend.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.backend.member.GetMemberRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member.GetMemberRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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.backend.member.GetMemberRequest.prototype.getId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.GetMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.GetMemberResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member.GetMemberResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member.GetMemberResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.member.GetMemberResponse} - */ -proto.bet.beteran.c2se.backend.member.GetMemberResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.member.GetMemberResponse(); - return proto.bet.beteran.c2se.backend.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.backend.member.GetMemberResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.GetMemberResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.member.GetMemberResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member.GetMemberResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member.GetMemberResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.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.backend.member.GetMemberResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member.GetMemberResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - member: - (f = msg.getMember()) && - models_member_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.backend.member.GetMemberResponse.Result} - */ -proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.member.GetMemberResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result} - */ -proto.bet.beteran.c2se.backend.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_member_pb.MemberModel(); - reader.readMessage( - value, - models_member_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.backend.member.GetMemberResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member.GetMemberResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getMember(); - if (f != null) { - writer.writeMessage( - 1, - f, - models_member_member_pb.MemberModel.serializeBinaryToWriter - ); - } - }; - -/** - * optional bet.beteran.member.MemberModel member = 1; - * @return {?proto.bet.beteran.member.MemberModel} - */ -proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.prototype.getMember = - function () { - return /** @type{?proto.bet.beteran.member.MemberModel} */ ( - jspb.Message.getWrapperField(this, models_member_member_pb.MemberModel, 1) - ); - }; - -/** - * @param {?proto.bet.beteran.member.MemberModel|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.GetMemberResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.prototype.clearMember = - function () { - return this.setMember(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member.GetMemberResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.GetMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.GetMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.member.GetMemberResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.GetMemberResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result} - */ -proto.bet.beteran.c2se.backend.member.GetMemberResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.GetMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.GetMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.member.GetMemberResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameRequest} - */ -proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest(); - return proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest} - */ -proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameRequest.prototype.getUsername = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameResponse} - */ -proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse(); - return proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - member: - (f = msg.getMember()) && - models_member_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.backend.member.GetMemberByUsernameResponse.Result} - */ -proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result} - */ -proto.bet.beteran.c2se.backend.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_member_pb.MemberModel(); - reader.readMessage( - value, - models_member_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.backend.member.GetMemberByUsernameResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getMember(); - if (f != null) { - writer.writeMessage( - 1, - f, - models_member_member_pb.MemberModel.serializeBinaryToWriter - ); - } - }; - -/** - * optional bet.beteran.member.MemberModel member = 1; - * @return {?proto.bet.beteran.member.MemberModel} - */ -proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.prototype.getMember = - function () { - return /** @type{?proto.bet.beteran.member.MemberModel} */ ( - jspb.Message.getWrapperField(this, models_member_member_pb.MemberModel, 1) - ); - }; - -/** - * @param {?proto.bet.beteran.member.MemberModel|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.prototype.clearMember = - function () { - return this.setMember(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameResponse} returns this - */ -proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result} - */ -proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse - .Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.GetMemberByUsernameResponse} returns this - */ -proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.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, ""), - state: 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.c2se.backend.member.UpdateMemberRequest} - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.member.UpdateMemberRequest(); - return proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} - */ -proto.bet.beteran.c2se.backend.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 = /** @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.backend.member.UpdateMemberRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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 = /** @type {!proto.bet.beteran.member.MemberState} */ ( - jspb.Message.getField(message, 6) - ); - if (f != null) { - writer.writeEnum(6, f); - } - }; - -/** - * optional string id = 1; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.getId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.setId = - function (value) { - return jspb.Message.setProto3StringField(this, 1, value); - }; - -/** - * optional string site_id = 2; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.getSiteId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 2, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.setSiteId = - function (value) { - return jspb.Message.setField(this, 2, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.clearSiteId = - function () { - return jspb.Message.setField(this, 2, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.hasSiteId = - function () { - return jspb.Message.getField(this, 2) != null; - }; - -/** - * optional string member_level_id = 3; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.getMemberLevelId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 3, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.setMemberLevelId = - function (value) { - return jspb.Message.setField(this, 3, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.clearMemberLevelId = - function () { - return jspb.Message.setField(this, 3, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.hasMemberLevelId = - function () { - return jspb.Message.getField(this, 3) != null; - }; - -/** - * optional string password = 4; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.getPassword = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 4, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.setPassword = - function (value) { - return jspb.Message.setField(this, 4, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.clearPassword = - function () { - return jspb.Message.setField(this, 4, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.hasPassword = - function () { - return jspb.Message.getField(this, 4) != null; - }; - -/** - * optional string mobile_phone_number = 5; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.getMobilePhoneNumber = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 5, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.setMobilePhoneNumber = - function (value) { - return jspb.Message.setField(this, 5, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.clearMobilePhoneNumber = - function () { - return jspb.Message.setField(this, 5, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.hasMobilePhoneNumber = - function () { - return jspb.Message.getField(this, 5) != null; - }; - -/** - * optional bet.beteran.member.MemberState state = 6; - * @return {!proto.bet.beteran.member.MemberState} - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.getState = - function () { - return /** @type {!proto.bet.beteran.member.MemberState} */ ( - jspb.Message.getFieldWithDefault(this, 6, 0) - ); - }; - -/** - * @param {!proto.bet.beteran.member.MemberState} value - * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.setState = - function (value) { - return jspb.Message.setField(this, 6, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.clearState = - function () { - return jspb.Message.setField(this, 6, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.hasState = - 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.backend.member.UpdateMemberResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberResponse} - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.member.UpdateMemberResponse(); - return proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - member: - (f = msg.getMember()) && - models_member_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.backend.member.UpdateMemberResponse.Result} - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result} - */ -proto.bet.beteran.c2se.backend.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_member_pb.MemberModel(); - reader.readMessage( - value, - models_member_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.backend.member.UpdateMemberResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getMember(); - if (f != null) { - writer.writeMessage( - 1, - f, - models_member_member_pb.MemberModel.serializeBinaryToWriter - ); - } - }; - -/** - * optional bet.beteran.member.MemberModel member = 1; - * @return {?proto.bet.beteran.member.MemberModel} - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result.prototype.getMember = - function () { - return /** @type{?proto.bet.beteran.member.MemberModel} */ ( - jspb.Message.getWrapperField(this, models_member_member_pb.MemberModel, 1) - ); - }; - -/** - * @param {?proto.bet.beteran.member.MemberModel|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result.prototype.clearMember = - function () { - return this.setMember(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result} - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.UpdateMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberRequest} - */ -proto.bet.beteran.c2se.backend.member.DeleteMemberRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.member.DeleteMemberRequest(); - return proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.DeleteMemberRequest} - */ -proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberRequest.prototype.getId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.DeleteMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberResponse} - */ -proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.member.DeleteMemberResponse(); - return proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.DeleteMemberResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberResponse.Result} - */ -proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result} - */ -proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.DeleteMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result} - */ -proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.DeleteMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.member.DeleteMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.prototype.hasResult = - function () { - return jspb.Message.getField(this, 2) != null; - }; - -goog.object.extend(exports, proto.bet.beteran.c2se.backend.member); diff --git a/src/app/modules/protobuf/c2se/backend/site_pb.d.ts b/src/app/modules/protobuf/c2se/backend/site_pb.d.ts deleted file mode 100644 index 87c22eb..0000000 --- a/src/app/modules/protobuf/c2se/backend/site_pb.d.ts +++ /dev/null @@ -1,534 +0,0 @@ -// package: bet.beteran.c2se.backend.site -// file: c2se/backend/site.proto - -import * as jspb from 'google-protobuf'; -import * as protobuf_rpc_error_pb from '../../protobuf/rpc/error_pb'; -import * as protobuf_pagination_pagination_pb from '../../protobuf/pagination/pagination_pb'; -import * as protobuf_pagination_search_pb from '../../protobuf/pagination/search_pb'; -import * as protobuf_pagination_sort_pb from '../../protobuf/pagination/sort_pb'; -import * as models_domain_site_pb from '../../models/domain/site_pb'; - -export const SUBJECT_LIST_SITES: string; -export const SUBJECT_CREATE_SITE: string; -export const SUBJECT_UPDATE_SITE: string; -export const SUBJECT_DELETE_SITE: string; - -export class ListSitesRequest extends jspb.Message { - hasPagination(): boolean; - clearPagination(): void; - getPagination(): protobuf_pagination_pagination_pb.Pagination | undefined; - setPagination(value?: protobuf_pagination_pagination_pb.Pagination): void; - - clearSearchesList(): void; - getSearchesList(): Array; - setSearchesList(value: Array): void; - addSearches( - value?: protobuf_pagination_search_pb.Search, - index?: number - ): protobuf_pagination_search_pb.Search; - - clearSortsList(): void; - getSortsList(): Array; - setSortsList(value: Array): void; - addSorts( - value?: protobuf_pagination_sort_pb.Sort, - index?: number - ): protobuf_pagination_sort_pb.Sort; - - 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): 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_pagination_pb.Pagination.AsObject; - searchesList: Array; - sortsList: Array; - 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_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_pb.Error.AsObject; - result?: ListSitesResponse.Result.AsObject; - }; - - export class Result extends jspb.Message { - clearSitesList(): void; - getSitesList(): Array; - setSitesList(value: Array): void; - addSites( - value?: models_domain_site_pb.Site, - index?: number - ): models_domain_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 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_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_pb.Error.AsObject; - result?: CreateSiteResponse.Result.AsObject; - }; - - export class Result extends jspb.Message { - hasSite(): boolean; - clearSite(): void; - getSite(): models_domain_site_pb.Site | undefined; - setSite(value?: models_domain_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_domain_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_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_pb.Error.AsObject; - result?: UpdateSiteResponse.Result.AsObject; - }; - - export class Result extends jspb.Message { - hasSite(): boolean; - clearSite(): void; - getSite(): models_domain_site_pb.Site | undefined; - setSite(value?: models_domain_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_domain_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_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_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/protobuf/c2se/backend/site_pb.js b/src/app/modules/protobuf/c2se/backend/site_pb.js deleted file mode 100644 index d93e52c..0000000 --- a/src/app/modules/protobuf/c2se/backend/site_pb.js +++ /dev/null @@ -1,3510 +0,0 @@ -// 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); - -var protobuf_rpc_error_pb = require("../../protobuf/rpc/error_pb.js"); -goog.object.extend(proto, protobuf_rpc_error_pb); -var protobuf_pagination_pagination_pb = require("../../protobuf/pagination/pagination_pb.js"); -goog.object.extend(proto, protobuf_pagination_pagination_pb); -var protobuf_pagination_search_pb = require("../../protobuf/pagination/search_pb.js"); -goog.object.extend(proto, protobuf_pagination_search_pb); -var protobuf_pagination_sort_pb = require("../../protobuf/pagination/sort_pb.js"); -goog.object.extend(proto, protobuf_pagination_sort_pb); -var models_domain_site_pb = require("../../models/domain/site_pb.js"); -goog.object.extend(proto, models_domain_site_pb); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.site.CreateSiteRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.site.CreateSiteResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.site.DeleteSiteRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.site.DeleteSiteResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.site.ListSitesRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.site.ListSitesResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.site.UpdateSiteRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.site.UpdateSiteResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result", - null, - global -); - -proto.bet.beteran.c2se.backend.site.SUBJECT_LIST_SITES = - "bet.beteran.c2se.backend.site.ListSites"; -proto.bet.beteran.c2se.backend.site.SUBJECT_CREATE_SITE = - "bet.beteran.c2se.backend.site.CreateSite"; -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"; - -/** - * 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.backend.site.ListSitesRequest = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.bet.beteran.c2se.backend.site.ListSitesRequest.repeatedFields_, - null - ); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.site.ListSitesRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.site.ListSitesRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.site.ListSitesResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.site.ListSitesResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.site.ListSitesResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.site.ListSitesResponse.Result = function ( - opt_data -) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result - .repeatedFields_, - null - ); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.site.CreateSiteRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.site.CreateSiteRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.site.CreateSiteResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.site.CreateSiteResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteResponse.Result = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.site.UpdateSiteRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.site.UpdateSiteResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteResponse.Result = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.site.DeleteSiteRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.site.DeleteSiteRequest.displayName = - "proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.site.DeleteSiteResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.displayName = - "proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteResponse.Result = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result"; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.repeatedFields_ = [2, 3]; - -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.backend.site.ListSitesRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.site.ListSitesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.site.ListSitesRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - pagination: - (f = msg.getPagination()) && - protobuf_pagination_pagination_pb.Pagination.toObject( - includeInstance, - f - ), - searchesList: jspb.Message.toObjectList( - msg.getSearchesList(), - protobuf_pagination_search_pb.Search.toObject, - includeInstance - ), - sortsList: jspb.Message.toObjectList( - msg.getSortsList(), - protobuf_pagination_sort_pb.Sort.toObject, - includeInstance - ), - urlLike: jspb.Message.getFieldWithDefault(msg, 4, ""), - nameLike: jspb.Message.getFieldWithDefault(msg, 5, ""), - pathLike: jspb.Message.getFieldWithDefault(msg, 6, ""), - show: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - canUse: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - memoLike: jspb.Message.getFieldWithDefault(msg, 9, ""), - }; - - 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.backend.site.ListSitesRequest} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.site.ListSitesRequest(); - return proto.bet.beteran.c2se.backend.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.backend.site.ListSitesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} - */ -proto.bet.beteran.c2se.backend.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_pagination_pb.Pagination(); - reader.readMessage( - value, - protobuf_pagination_pagination_pb.Pagination - .deserializeBinaryFromReader - ); - msg.setPagination(value); - break; - case 2: - var value = new protobuf_pagination_search_pb.Search(); - reader.readMessage( - value, - protobuf_pagination_search_pb.Search.deserializeBinaryFromReader - ); - msg.addSearches(value); - break; - case 3: - var value = new protobuf_pagination_sort_pb.Sort(); - reader.readMessage( - value, - protobuf_pagination_sort_pb.Sort.deserializeBinaryFromReader - ); - msg.addSorts(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUrlLike(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setNameLike(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setPathLike(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setShow(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCanUse(value); - break; - case 9: - 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.backend.site.ListSitesRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.site.ListSitesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_pagination_pagination_pb.Pagination.serializeBinaryToWriter - ); - } - f = message.getSearchesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - protobuf_pagination_search_pb.Search.serializeBinaryToWriter - ); - } - f = message.getSortsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - protobuf_pagination_sort_pb.Sort.serializeBinaryToWriter - ); - } - 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 {boolean} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeBool(7, f); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 8)); - if (f != null) { - writer.writeBool(8, f); - } - f = /** @type {string} */ (jspb.Message.getField(message, 9)); - if (f != null) { - writer.writeString(9, f); - } - }; - -/** - * optional bet.protobuf.pagination.Pagination pagination = 1; - * @return {?proto.bet.protobuf.pagination.Pagination} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.getPagination = - function () { - return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( - jspb.Message.getWrapperField( - this, - protobuf_pagination_pagination_pb.Pagination, - 1 - ) - ); - }; - -/** - * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.site.ListSitesRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearPagination = - function () { - return this.setPagination(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.hasPagination = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * repeated bet.protobuf.pagination.Search searches = 2; - * @return {!Array} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.getSearchesList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - protobuf_pagination_search_pb.Search, - 2 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.setSearchesList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); - }; - -/** - * @param {!proto.bet.protobuf.pagination.Search=} opt_value - * @param {number=} opt_index - * @return {!proto.bet.protobuf.pagination.Search} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.addSearches = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 2, - opt_value, - proto.bet.protobuf.pagination.Search, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearSearchesList = - function () { - return this.setSearchesList([]); - }; - -/** - * repeated bet.protobuf.pagination.Sort sorts = 3; - * @return {!Array} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.getSortsList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - protobuf_pagination_sort_pb.Sort, - 3 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.setSortsList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); - }; - -/** - * @param {!proto.bet.protobuf.pagination.Sort=} opt_value - * @param {number=} opt_index - * @return {!proto.bet.protobuf.pagination.Sort} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.addSorts = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 3, - opt_value, - proto.bet.protobuf.pagination.Sort, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearSortsList = - function () { - return this.setSortsList([]); - }; - -/** - * optional string url_like = 4; - * @return {string} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.getUrlLike = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 4, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.setUrlLike = - function (value) { - return jspb.Message.setField(this, 4, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearUrlLike = - function () { - return jspb.Message.setField(this, 4, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.hasUrlLike = - function () { - return jspb.Message.getField(this, 4) != null; - }; - -/** - * optional string name_like = 5; - * @return {string} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.getNameLike = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 5, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.setNameLike = - function (value) { - return jspb.Message.setField(this, 5, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearNameLike = - function () { - return jspb.Message.setField(this, 5, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.hasNameLike = - function () { - return jspb.Message.getField(this, 5) != null; - }; - -/** - * optional string path_like = 6; - * @return {string} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.getPathLike = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 6, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.setPathLike = - function (value) { - return jspb.Message.setField(this, 6, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearPathLike = - function () { - return jspb.Message.setField(this, 6, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.hasPathLike = - function () { - return jspb.Message.getField(this, 6) != null; - }; - -/** - * optional bool show = 7; - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.getShow = - function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 7, false) - ); - }; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.setShow = - function (value) { - return jspb.Message.setField(this, 7, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearShow = - function () { - return jspb.Message.setField(this, 7, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.hasShow = - function () { - return jspb.Message.getField(this, 7) != null; - }; - -/** - * optional bool can_use = 8; - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.getCanUse = - function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 8, false) - ); - }; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.setCanUse = - function (value) { - return jspb.Message.setField(this, 8, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearCanUse = - function () { - return jspb.Message.setField(this, 8, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.hasCanUse = - function () { - return jspb.Message.getField(this, 8) != null; - }; - -/** - * optional string memo_like = 9; - * @return {string} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.getMemoLike = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 9, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.setMemoLike = - function (value) { - return jspb.Message.setField(this, 9, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearMemoLike = - function () { - return jspb.Message.setField(this, 9, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.hasMemoLike = - 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.backend.site.ListSitesResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.site.ListSitesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.site.ListSitesResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.site.ListSitesResponse} - */ -proto.bet.beteran.c2se.backend.site.ListSitesResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.site.ListSitesResponse(); - return proto.bet.beteran.c2se.backend.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.backend.site.ListSitesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.site.ListSitesResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.site.ListSitesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.site.ListSitesResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result - .serializeBinaryToWriter - ); - } - }; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.bet.beteran.c2se.backend.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.backend.site.ListSitesResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.site.ListSitesResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - sitesList: jspb.Message.toObjectList( - msg.getSitesList(), - models_domain_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.backend.site.ListSitesResponse.Result} - */ -proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.site.ListSitesResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result} - */ -proto.bet.beteran.c2se.backend.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_domain_site_pb.Site(); - reader.readMessage( - value, - models_domain_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.backend.site.ListSitesResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.site.ListSitesResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getSitesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - models_domain_site_pb.Site.serializeBinaryToWriter - ); - } - }; - -/** - * repeated bet.beteran.domain.Site sites = 1; - * @return {!Array} - */ -proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result.prototype.getSitesList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, models_domain_site_pb.Site, 1) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result.prototype.setSitesList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); - }; - -/** - * @param {!proto.bet.beteran.domain.Site=} opt_value - * @param {number=} opt_index - * @return {!proto.bet.beteran.domain.Site} - */ -proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result.prototype.addSites = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.bet.beteran.domain.Site, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.site.ListSitesResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.site.ListSitesResponse} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.ListSitesResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result} - */ -proto.bet.beteran.c2se.backend.site.ListSitesResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.site.ListSitesResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.site.ListSitesResponse} returns this - */ -proto.bet.beteran.c2se.backend.site.ListSitesResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteRequest} - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.site.CreateSiteRequest(); - return proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteRequest} - */ -proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteRequest.prototype.getUrl = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.setUrl = - function (value) { - return jspb.Message.setProto3StringField(this, 1, value); - }; - -/** - * optional string name = 2; - * @return {string} - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.getName = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 2, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.setName = - function (value) { - return jspb.Message.setField(this, 2, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.clearName = - function () { - return jspb.Message.setField(this, 2, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.hasName = - function () { - return jspb.Message.getField(this, 2) != null; - }; - -/** - * optional string path = 3; - * @return {string} - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.getPath = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 3, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.setPath = - function (value) { - return jspb.Message.setField(this, 3, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.clearPath = - function () { - return jspb.Message.setField(this, 3, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.hasPath = - function () { - return jspb.Message.getField(this, 3) != null; - }; - -/** - * optional bool show = 4; - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.getShow = - function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 4, false) - ); - }; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.setShow = - function (value) { - return jspb.Message.setProto3BooleanField(this, 4, value); - }; - -/** - * optional bool can_use = 5; - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.getCanUse = - function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 5, false) - ); - }; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.setCanUse = - function (value) { - return jspb.Message.setProto3BooleanField(this, 5, value); - }; - -/** - * optional string memo = 6; - * @return {string} - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.getMemo = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 6, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.setMemo = - function (value) { - return jspb.Message.setField(this, 6, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.clearMemo = - function () { - return jspb.Message.setField(this, 6, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.hasMemo = - function () { - return jspb.Message.getField(this, 6) != null; - }; - -/** - * optional uint64 expires_at = 7; - * @return {number} - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.getExpiresAt = - function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); - }; - -/** - * @param {number} value - * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.setExpiresAt = - function (value) { - return jspb.Message.setField(this, 7, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.clearExpiresAt = - function () { - return jspb.Message.setField(this, 7, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.site.CreateSiteResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteResponse} - */ -proto.bet.beteran.c2se.backend.site.CreateSiteResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.site.CreateSiteResponse(); - return proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.site.CreateSiteResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - site: - (f = msg.getSite()) && - models_domain_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.backend.site.CreateSiteResponse.Result} - */ -proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result} - */ -proto.bet.beteran.c2se.backend.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_domain_site_pb.Site(); - reader.readMessage( - value, - models_domain_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.backend.site.CreateSiteResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getSite(); - if (f != null) { - writer.writeMessage( - 1, - f, - models_domain_site_pb.Site.serializeBinaryToWriter - ); - } - }; - -/** - * optional bet.beteran.domain.Site site = 1; - * @return {?proto.bet.beteran.domain.Site} - */ -proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result.prototype.getSite = - function () { - return /** @type{?proto.bet.beteran.domain.Site} */ ( - jspb.Message.getWrapperField(this, models_domain_site_pb.Site, 1) - ); - }; - -/** - * @param {?proto.bet.beteran.domain.Site|undefined} value - * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result.prototype.clearSite = - function () { - return this.setSite(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteResponse} returns this - */ -proto.bet.beteran.c2se.backend.site.CreateSiteResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.CreateSiteResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result} - */ -proto.bet.beteran.c2se.backend.site.CreateSiteResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.site.CreateSiteResponse} returns this - */ -proto.bet.beteran.c2se.backend.site.CreateSiteResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.CreateSiteResponse.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.backend.site.UpdateSiteRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteRequest} - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.site.UpdateSiteRequest(); - return proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteRequest} - */ -proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteRequest.prototype.getId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.setId = - function (value) { - return jspb.Message.setProto3StringField(this, 1, value); - }; - -/** - * optional string url = 2; - * @return {string} - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.getUrl = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 2, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.setUrl = - function (value) { - return jspb.Message.setProto3StringField(this, 2, value); - }; - -/** - * optional string name = 3; - * @return {string} - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.getName = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 3, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.setName = - function (value) { - return jspb.Message.setField(this, 3, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.clearName = - function () { - return jspb.Message.setField(this, 3, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.hasName = - function () { - return jspb.Message.getField(this, 3) != null; - }; - -/** - * optional string path = 4; - * @return {string} - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.getPath = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 4, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.setPath = - function (value) { - return jspb.Message.setField(this, 4, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.clearPath = - function () { - return jspb.Message.setField(this, 4, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.hasPath = - function () { - return jspb.Message.getField(this, 4) != null; - }; - -/** - * optional bool show = 5; - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.getShow = - function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 5, false) - ); - }; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.setShow = - function (value) { - return jspb.Message.setProto3BooleanField(this, 5, value); - }; - -/** - * optional bool can_use = 6; - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.getCanUse = - function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 6, false) - ); - }; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.setCanUse = - function (value) { - return jspb.Message.setProto3BooleanField(this, 6, value); - }; - -/** - * optional string memo = 7; - * @return {string} - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.getMemo = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 7, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.setMemo = - function (value) { - return jspb.Message.setField(this, 7, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.clearMemo = - function () { - return jspb.Message.setField(this, 7, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.hasMemo = - function () { - return jspb.Message.getField(this, 7) != null; - }; - -/** - * optional uint64 expires_at = 8; - * @return {number} - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.getExpiresAt = - function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); - }; - -/** - * @param {number} value - * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.setExpiresAt = - function (value) { - return jspb.Message.setField(this, 8, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.clearExpiresAt = - function () { - return jspb.Message.setField(this, 8, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteResponse} - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.site.UpdateSiteResponse(); - return proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - site: - (f = msg.getSite()) && - models_domain_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.backend.site.UpdateSiteResponse.Result} - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result} - */ -proto.bet.beteran.c2se.backend.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_domain_site_pb.Site(); - reader.readMessage( - value, - models_domain_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.backend.site.UpdateSiteResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getSite(); - if (f != null) { - writer.writeMessage( - 1, - f, - models_domain_site_pb.Site.serializeBinaryToWriter - ); - } - }; - -/** - * optional bet.beteran.domain.Site site = 1; - * @return {?proto.bet.beteran.domain.Site} - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result.prototype.getSite = - function () { - return /** @type{?proto.bet.beteran.domain.Site} */ ( - jspb.Message.getWrapperField(this, models_domain_site_pb.Site, 1) - ); - }; - -/** - * @param {?proto.bet.beteran.domain.Site|undefined} value - * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result.prototype.clearSite = - function () { - return this.setSite(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteResponse} returns this - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result} - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.site.UpdateSiteResponse} returns this - */ -proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteRequest} - */ -proto.bet.beteran.c2se.backend.site.DeleteSiteRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.site.DeleteSiteRequest(); - return proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.site.DeleteSiteRequest} - */ -proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteRequest.prototype.getId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.site.DeleteSiteRequest} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteResponse} - */ -proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.site.DeleteSiteResponse(); - return proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.site.DeleteSiteResponse} - */ -proto.bet.beteran.c2se.backend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteResponse.Result} - */ -proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result(); - return proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result} - */ -proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.site.DeleteSiteResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteResponse} returns this - */ -proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result} - */ -proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.site.DeleteSiteResponse} returns this - */ -proto.bet.beteran.c2se.backend.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.backend.site.DeleteSiteResponse} returns this - */ -proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.prototype.hasResult = - function () { - return jspb.Message.getField(this, 2) != null; - }; - -goog.object.extend(exports, proto.bet.beteran.c2se.backend.site); diff --git a/src/app/modules/protobuf/c2se/common/bank_pb.d.ts b/src/app/modules/protobuf/c2se/common/bank_pb.d.ts deleted file mode 100644 index ff00368..0000000 --- a/src/app/modules/protobuf/c2se/common/bank_pb.d.ts +++ /dev/null @@ -1,487 +0,0 @@ -// package: bet.beteran.c2se.common.bank -// file: c2se/common/bank.proto - -import * as jspb from 'google-protobuf'; -import * as protobuf_rpc_error_pb from '../../protobuf/rpc/error_pb'; -import * as protobuf_pagination_pagination_pb from '../../protobuf/pagination/pagination_pb'; -import * as protobuf_pagination_search_pb from '../../protobuf/pagination/search_pb'; -import * as protobuf_pagination_sort_pb from '../../protobuf/pagination/sort_pb'; -import * as models_account_bank_pb from '../../models/account/bank_pb'; - -export class ListBanksRequest extends jspb.Message { - hasPagination(): boolean; - clearPagination(): void; - getPagination(): protobuf_pagination_pagination_pb.Pagination | undefined; - setPagination(value?: protobuf_pagination_pagination_pb.Pagination): void; - - clearSearchesList(): void; - getSearchesList(): Array; - setSearchesList(value: Array): void; - addSearches( - value?: protobuf_pagination_search_pb.Search, - index?: number - ): protobuf_pagination_search_pb.Search; - - clearSortsList(): void; - getSortsList(): Array; - setSortsList(value: Array): void; - addSorts( - value?: protobuf_pagination_sort_pb.Sort, - index?: number - ): protobuf_pagination_sort_pb.Sort; - - 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): 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_pagination_pb.Pagination.AsObject; - searchesList: Array; - sortsList: Array; - nameLike: string; - show: boolean; - canUse: boolean; - memoLike: string; - }; -} - -export class ListBanksResponse extends jspb.Message { - hasError(): boolean; - clearError(): void; - getError(): protobuf_rpc_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_pb.Error.AsObject; - result?: ListBanksResponse.Result.AsObject; - }; - - export class Result extends jspb.Message { - clearBanksList(): void; - getBanksList(): Array; - setBanksList(value: Array): void; - addBanks( - value?: models_account_bank_pb.Bank, - index?: number - ): models_account_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 CreateBankRequest extends jspb.Message { - getName(): string; - setName(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): 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; - show: boolean; - canUse: boolean; - memo: string; - expiresAt: number; - }; -} - -export class CreateBankResponse extends jspb.Message { - hasError(): boolean; - clearError(): void; - getError(): protobuf_rpc_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_pb.Error.AsObject; - result?: CreateBankResponse.Result.AsObject; - }; - - export class Result extends jspb.Message { - hasBank(): boolean; - clearBank(): void; - getBank(): models_account_bank_pb.Bank | undefined; - setBank(value?: models_account_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_account_bank_pb.Bank.AsObject; - }; - } -} - -export class UpdateBankRequest extends jspb.Message { - getId(): string; - setId(value: string): void; - - getName(): string; - setName(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; - - 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; - show: boolean; - canUse: boolean; - memo: string; - }; -} - -export class UpdateBankResponse extends jspb.Message { - hasError(): boolean; - clearError(): void; - getError(): protobuf_rpc_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_pb.Error.AsObject; - result?: UpdateBankResponse.Result.AsObject; - }; - - export class Result extends jspb.Message { - hasBank(): boolean; - clearBank(): void; - getBank(): models_account_bank_pb.Bank | undefined; - setBank(value?: models_account_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_account_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_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_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/protobuf/c2se/common/bank_pb.js b/src/app/modules/protobuf/c2se/common/bank_pb.js deleted file mode 100644 index bf92396..0000000 --- a/src/app/modules/protobuf/c2se/common/bank_pb.js +++ /dev/null @@ -1,3171 +0,0 @@ -// source: c2se/common/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_error_pb = require("../../protobuf/rpc/error_pb.js"); -goog.object.extend(proto, protobuf_rpc_error_pb); -var protobuf_pagination_pagination_pb = require("../../protobuf/pagination/pagination_pb.js"); -goog.object.extend(proto, protobuf_pagination_pagination_pb); -var protobuf_pagination_search_pb = require("../../protobuf/pagination/search_pb.js"); -goog.object.extend(proto, protobuf_pagination_search_pb); -var protobuf_pagination_sort_pb = require("../../protobuf/pagination/sort_pb.js"); -goog.object.extend(proto, protobuf_pagination_sort_pb); -var models_account_bank_pb = require("../../models/account/bank_pb.js"); -goog.object.extend(proto, models_account_bank_pb); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.bank.CreateBankRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.bank.CreateBankResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.bank.DeleteBankRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.bank.DeleteBankResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.bank.ListBanksRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.bank.ListBanksResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.bank.UpdateBankRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.bank.UpdateBankResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.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.common.bank.ListBanksRequest = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.bet.beteran.c2se.common.bank.ListBanksRequest.repeatedFields_, - null - ); -}; -goog.inherits( - proto.bet.beteran.c2se.common.bank.ListBanksRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.bank.ListBanksRequest.displayName = - "proto.bet.beteran.c2se.common.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.common.bank.ListBanksResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.common.bank.ListBanksResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.bank.ListBanksResponse.displayName = - "proto.bet.beteran.c2se.common.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.common.bank.ListBanksResponse.Result = function ( - opt_data -) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.repeatedFields_, - null - ); -}; -goog.inherits( - proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.displayName = - "proto.bet.beteran.c2se.common.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.common.bank.CreateBankRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.common.bank.CreateBankRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.bank.CreateBankRequest.displayName = - "proto.bet.beteran.c2se.common.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.common.bank.CreateBankResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.common.bank.CreateBankResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.bank.CreateBankResponse.displayName = - "proto.bet.beteran.c2se.common.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.common.bank.CreateBankResponse.Result = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.displayName = - "proto.bet.beteran.c2se.common.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.common.bank.UpdateBankRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.common.bank.UpdateBankRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.bank.UpdateBankRequest.displayName = - "proto.bet.beteran.c2se.common.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.common.bank.UpdateBankResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.common.bank.UpdateBankResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.bank.UpdateBankResponse.displayName = - "proto.bet.beteran.c2se.common.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.common.bank.UpdateBankResponse.Result = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.displayName = - "proto.bet.beteran.c2se.common.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.common.bank.DeleteBankRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.common.bank.DeleteBankRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.bank.DeleteBankRequest.displayName = - "proto.bet.beteran.c2se.common.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.common.bank.DeleteBankResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.common.bank.DeleteBankResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.bank.DeleteBankResponse.displayName = - "proto.bet.beteran.c2se.common.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.common.bank.DeleteBankResponse.Result = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result.displayName = - "proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result"; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.repeatedFields_ = [2, 3]; - -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.common.bank.ListBanksRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.bank.ListBanksRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.bank.ListBanksRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - pagination: - (f = msg.getPagination()) && - protobuf_pagination_pagination_pb.Pagination.toObject( - includeInstance, - f - ), - searchesList: jspb.Message.toObjectList( - msg.getSearchesList(), - protobuf_pagination_search_pb.Search.toObject, - includeInstance - ), - sortsList: jspb.Message.toObjectList( - msg.getSortsList(), - protobuf_pagination_sort_pb.Sort.toObject, - includeInstance - ), - nameLike: jspb.Message.getFieldWithDefault(msg, 4, ""), - show: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - canUse: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - memoLike: 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.common.bank.ListBanksRequest} - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.common.bank.ListBanksRequest(); - return proto.bet.beteran.c2se.common.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.common.bank.ListBanksRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} - */ -proto.bet.beteran.c2se.common.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_pagination_pb.Pagination(); - reader.readMessage( - value, - protobuf_pagination_pagination_pb.Pagination - .deserializeBinaryFromReader - ); - msg.setPagination(value); - break; - case 2: - var value = new protobuf_pagination_search_pb.Search(); - reader.readMessage( - value, - protobuf_pagination_search_pb.Search.deserializeBinaryFromReader - ); - msg.addSearches(value); - break; - case 3: - var value = new protobuf_pagination_sort_pb.Sort(); - reader.readMessage( - value, - protobuf_pagination_sort_pb.Sort.deserializeBinaryFromReader - ); - msg.addSorts(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setNameLike(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.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.common.bank.ListBanksRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.bank.ListBanksRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_pagination_pagination_pb.Pagination.serializeBinaryToWriter - ); - } - f = message.getSearchesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - protobuf_pagination_search_pb.Search.serializeBinaryToWriter - ); - } - f = message.getSortsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - protobuf_pagination_sort_pb.Sort.serializeBinaryToWriter - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeString(4, f); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 5)); - if (f != null) { - writer.writeBool(5, f); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeBool(6, f); - } - f = /** @type {string} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeString(7, f); - } - }; - -/** - * optional bet.protobuf.pagination.Pagination pagination = 1; - * @return {?proto.bet.protobuf.pagination.Pagination} - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getPagination = - function () { - return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( - jspb.Message.getWrapperField( - this, - protobuf_pagination_pagination_pb.Pagination, - 1 - ) - ); - }; - -/** - * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this - */ -proto.bet.beteran.c2se.common.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.common.bank.ListBanksRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearPagination = - function () { - return this.setPagination(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.hasPagination = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * repeated bet.protobuf.pagination.Search searches = 2; - * @return {!Array} - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getSearchesList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - protobuf_pagination_search_pb.Search, - 2 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.setSearchesList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); - }; - -/** - * @param {!proto.bet.protobuf.pagination.Search=} opt_value - * @param {number=} opt_index - * @return {!proto.bet.protobuf.pagination.Search} - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.addSearches = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 2, - opt_value, - proto.bet.protobuf.pagination.Search, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearSearchesList = - function () { - return this.setSearchesList([]); - }; - -/** - * repeated bet.protobuf.pagination.Sort sorts = 3; - * @return {!Array} - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getSortsList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - protobuf_pagination_sort_pb.Sort, - 3 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.setSortsList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); - }; - -/** - * @param {!proto.bet.protobuf.pagination.Sort=} opt_value - * @param {number=} opt_index - * @return {!proto.bet.protobuf.pagination.Sort} - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.addSorts = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 3, - opt_value, - proto.bet.protobuf.pagination.Sort, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearSortsList = - function () { - return this.setSortsList([]); - }; - -/** - * optional string name_like = 4; - * @return {string} - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getNameLike = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 4, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.setNameLike = - function (value) { - return jspb.Message.setField(this, 4, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearNameLike = - function () { - return jspb.Message.setField(this, 4, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.hasNameLike = - function () { - return jspb.Message.getField(this, 4) != null; - }; - -/** - * optional bool show = 5; - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getShow = - function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 5, false) - ); - }; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.setShow = - function (value) { - return jspb.Message.setField(this, 5, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearShow = - function () { - return jspb.Message.setField(this, 5, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.hasShow = - function () { - return jspb.Message.getField(this, 5) != null; - }; - -/** - * optional bool can_use = 6; - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getCanUse = - function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 6, false) - ); - }; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.setCanUse = - function (value) { - return jspb.Message.setField(this, 6, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearCanUse = - function () { - return jspb.Message.setField(this, 6, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.hasCanUse = - function () { - return jspb.Message.getField(this, 6) != null; - }; - -/** - * optional string memo_like = 7; - * @return {string} - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getMemoLike = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 7, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.setMemoLike = - function (value) { - return jspb.Message.setField(this, 7, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearMemoLike = - function () { - return jspb.Message.setField(this, 7, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.hasMemoLike = - 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.common.bank.ListBanksResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.bank.ListBanksResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.bank.ListBanksResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.common.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.common.bank.ListBanksResponse} - */ -proto.bet.beteran.c2se.common.bank.ListBanksResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.common.bank.ListBanksResponse(); - return proto.bet.beteran.c2se.common.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.common.bank.ListBanksResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse} - */ -proto.bet.beteran.c2se.common.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.common.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.common.bank.ListBanksResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.bank.ListBanksResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.bank.ListBanksResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result - .serializeBinaryToWriter - ); - } - }; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.bet.beteran.c2se.common.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.common.bank.ListBanksResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.bank.ListBanksResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - banksList: jspb.Message.toObjectList( - msg.getBanksList(), - models_account_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.common.bank.ListBanksResponse.Result} - */ -proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result(); - return proto.bet.beteran.c2se.common.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.common.bank.ListBanksResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result} - */ -proto.bet.beteran.c2se.common.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_account_bank_pb.Bank(); - reader.readMessage( - value, - models_account_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.common.bank.ListBanksResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.bank.ListBanksResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getBanksList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - models_account_bank_pb.Bank.serializeBinaryToWriter - ); - } - }; - -/** - * repeated bet.beteran.account.Bank banks = 1; - * @return {!Array} - */ -proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.prototype.getBanksList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, models_account_bank_pb.Bank, 1) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result} returns this - */ -proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.prototype.setBanksList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); - }; - -/** - * @param {!proto.bet.beteran.account.Bank=} opt_value - * @param {number=} opt_index - * @return {!proto.bet.beteran.account.Bank} - */ -proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.prototype.addBanks = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.bet.beteran.account.Bank, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result} returns this - */ -proto.bet.beteran.c2se.common.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.common.bank.ListBanksResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse} returns this - */ -proto.bet.beteran.c2se.common.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.common.bank.ListBanksResponse} returns this - */ -proto.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result} - */ -proto.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse} returns this - */ -proto.bet.beteran.c2se.common.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.common.bank.ListBanksResponse} returns this - */ -proto.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.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.common.bank.CreateBankRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.bank.CreateBankRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.bank.CreateBankRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - show: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - canUse: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - memo: jspb.Message.getFieldWithDefault(msg, 4, ""), - expiresAt: 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.common.bank.CreateBankRequest} - */ -proto.bet.beteran.c2se.common.bank.CreateBankRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.common.bank.CreateBankRequest(); - return proto.bet.beteran.c2se.common.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.common.bank.CreateBankRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} - */ -proto.bet.beteran.c2se.common.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 {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.setMemo(value); - break; - case 5: - 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.common.bank.CreateBankRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.bank.CreateBankRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.bank.CreateBankRequest.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.getCanUse(); - if (f) { - writer.writeBool(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.writeUint64(5, f); - } - }; - -/** - * optional string name = 1; - * @return {string} - */ -proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.getName = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.setName = - function (value) { - return jspb.Message.setProto3StringField(this, 1, value); - }; - -/** - * optional bool show = 2; - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.getShow = - function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 2, false) - ); - }; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.setShow = - function (value) { - return jspb.Message.setProto3BooleanField(this, 2, value); - }; - -/** - * optional bool can_use = 3; - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.getCanUse = - function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 3, false) - ); - }; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.setCanUse = - function (value) { - return jspb.Message.setProto3BooleanField(this, 3, value); - }; - -/** - * optional string memo = 4; - * @return {string} - */ -proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.getMemo = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 4, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.setMemo = - function (value) { - return jspb.Message.setField(this, 4, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.clearMemo = - function () { - return jspb.Message.setField(this, 4, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.hasMemo = - function () { - return jspb.Message.getField(this, 4) != null; - }; - -/** - * optional uint64 expires_at = 5; - * @return {number} - */ -proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.getExpiresAt = - function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); - }; - -/** - * @param {number} value - * @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.setExpiresAt = - function (value) { - return jspb.Message.setField(this, 5, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.clearExpiresAt = - function () { - return jspb.Message.setField(this, 5, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.hasExpiresAt = - 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.common.bank.CreateBankResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.bank.CreateBankResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.bank.CreateBankResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.common.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.common.bank.CreateBankResponse} - */ -proto.bet.beteran.c2se.common.bank.CreateBankResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.common.bank.CreateBankResponse(); - return proto.bet.beteran.c2se.common.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.common.bank.CreateBankResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse} - */ -proto.bet.beteran.c2se.common.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.common.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.common.bank.CreateBankResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.bank.CreateBankResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.bank.CreateBankResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.common.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.common.bank.CreateBankResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.bank.CreateBankResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - bank: - (f = msg.getBank()) && - models_account_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.common.bank.CreateBankResponse.Result} - */ -proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result(); - return proto.bet.beteran.c2se.common.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.common.bank.CreateBankResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result} - */ -proto.bet.beteran.c2se.common.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_account_bank_pb.Bank(); - reader.readMessage( - value, - models_account_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.common.bank.CreateBankResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.bank.CreateBankResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getBank(); - if (f != null) { - writer.writeMessage( - 1, - f, - models_account_bank_pb.Bank.serializeBinaryToWriter - ); - } - }; - -/** - * optional bet.beteran.account.Bank bank = 1; - * @return {?proto.bet.beteran.account.Bank} - */ -proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.prototype.getBank = - function () { - return /** @type{?proto.bet.beteran.account.Bank} */ ( - jspb.Message.getWrapperField(this, models_account_bank_pb.Bank, 1) - ); - }; - -/** - * @param {?proto.bet.beteran.account.Bank|undefined} value - * @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result} returns this - */ -proto.bet.beteran.c2se.common.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.common.bank.CreateBankResponse.Result} returns this - */ -proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.prototype.clearBank = - function () { - return this.setBank(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.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.common.bank.CreateBankResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse} returns this - */ -proto.bet.beteran.c2se.common.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.common.bank.CreateBankResponse} returns this - */ -proto.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result} - */ -proto.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse} returns this - */ -proto.bet.beteran.c2se.common.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.common.bank.CreateBankResponse} returns this - */ -proto.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.common.bank.UpdateBankRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.bank.UpdateBankRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.bank.UpdateBankRequest.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), - 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.common.bank.UpdateBankRequest} - */ -proto.bet.beteran.c2se.common.bank.UpdateBankRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.common.bank.UpdateBankRequest(); - return proto.bet.beteran.c2se.common.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.common.bank.UpdateBankRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} - */ -proto.bet.beteran.c2se.common.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 {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.common.bank.UpdateBankRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.bank.UpdateBankRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.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.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 id = 1; - * @return {string} - */ -proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.getId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.setId = - function (value) { - return jspb.Message.setProto3StringField(this, 1, value); - }; - -/** - * optional string name = 2; - * @return {string} - */ -proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.getName = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 2, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.setName = - function (value) { - return jspb.Message.setProto3StringField(this, 2, value); - }; - -/** - * optional bool show = 3; - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.getShow = - function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 3, false) - ); - }; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.setShow = - function (value) { - return jspb.Message.setProto3BooleanField(this, 3, value); - }; - -/** - * optional bool can_use = 4; - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.getCanUse = - function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 4, false) - ); - }; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.setCanUse = - function (value) { - return jspb.Message.setProto3BooleanField(this, 4, value); - }; - -/** - * optional string memo = 5; - * @return {string} - */ -proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.getMemo = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 5, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.setMemo = - function (value) { - return jspb.Message.setField(this, 5, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} returns this - */ -proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.clearMemo = - function () { - return jspb.Message.setField(this, 5, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.UpdateBankRequest.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.common.bank.UpdateBankResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.bank.UpdateBankResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.bank.UpdateBankResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.common.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.common.bank.UpdateBankResponse} - */ -proto.bet.beteran.c2se.common.bank.UpdateBankResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.common.bank.UpdateBankResponse(); - return proto.bet.beteran.c2se.common.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.common.bank.UpdateBankResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse} - */ -proto.bet.beteran.c2se.common.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.common.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.common.bank.UpdateBankResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.bank.UpdateBankResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.bank.UpdateBankResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.common.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.common.bank.UpdateBankResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.bank.UpdateBankResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - bank: - (f = msg.getBank()) && - models_account_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.common.bank.UpdateBankResponse.Result} - */ -proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result(); - return proto.bet.beteran.c2se.common.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.common.bank.UpdateBankResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result} - */ -proto.bet.beteran.c2se.common.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_account_bank_pb.Bank(); - reader.readMessage( - value, - models_account_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.common.bank.UpdateBankResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.bank.UpdateBankResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getBank(); - if (f != null) { - writer.writeMessage( - 1, - f, - models_account_bank_pb.Bank.serializeBinaryToWriter - ); - } - }; - -/** - * optional bet.beteran.account.Bank bank = 1; - * @return {?proto.bet.beteran.account.Bank} - */ -proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.prototype.getBank = - function () { - return /** @type{?proto.bet.beteran.account.Bank} */ ( - jspb.Message.getWrapperField(this, models_account_bank_pb.Bank, 1) - ); - }; - -/** - * @param {?proto.bet.beteran.account.Bank|undefined} value - * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result} returns this - */ -proto.bet.beteran.c2se.common.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.common.bank.UpdateBankResponse.Result} returns this - */ -proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.prototype.clearBank = - function () { - return this.setBank(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.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.common.bank.UpdateBankResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse} returns this - */ -proto.bet.beteran.c2se.common.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.common.bank.UpdateBankResponse} returns this - */ -proto.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result} - */ -proto.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse} returns this - */ -proto.bet.beteran.c2se.common.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.common.bank.UpdateBankResponse} returns this - */ -proto.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.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.common.bank.DeleteBankRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.bank.DeleteBankRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.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.common.bank.DeleteBankRequest} - */ -proto.bet.beteran.c2se.common.bank.DeleteBankRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.common.bank.DeleteBankRequest(); - return proto.bet.beteran.c2se.common.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.common.bank.DeleteBankRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.bank.DeleteBankRequest} - */ -proto.bet.beteran.c2se.common.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.common.bank.DeleteBankRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.bank.DeleteBankRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.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.common.bank.DeleteBankRequest.prototype.getId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.common.bank.DeleteBankRequest} returns this - */ -proto.bet.beteran.c2se.common.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.common.bank.DeleteBankResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.bank.DeleteBankResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.bank.DeleteBankResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.common.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.common.bank.DeleteBankResponse} - */ -proto.bet.beteran.c2se.common.bank.DeleteBankResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.common.bank.DeleteBankResponse(); - return proto.bet.beteran.c2se.common.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.common.bank.DeleteBankResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse} - */ -proto.bet.beteran.c2se.common.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.common.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.common.bank.DeleteBankResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.bank.DeleteBankResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.bank.DeleteBankResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.common.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.common.bank.DeleteBankResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.bank.DeleteBankResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.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.common.bank.DeleteBankResponse.Result} - */ -proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result(); - return proto.bet.beteran.c2se.common.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.common.bank.DeleteBankResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result} - */ -proto.bet.beteran.c2se.common.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.common.bank.DeleteBankResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.bank.DeleteBankResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.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.common.bank.DeleteBankResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse} returns this - */ -proto.bet.beteran.c2se.common.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.common.bank.DeleteBankResponse} returns this - */ -proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result} - */ -proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse} returns this - */ -proto.bet.beteran.c2se.common.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.common.bank.DeleteBankResponse} returns this - */ -proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.hasResult = - function () { - return jspb.Message.getField(this, 2) != null; - }; - -goog.object.extend(exports, proto.bet.beteran.c2se.common.bank); diff --git a/src/app/modules/protobuf/c2se/common/identity_pb.d.ts b/src/app/modules/protobuf/c2se/common/identity_pb.d.ts deleted file mode 100644 index f60d16c..0000000 --- a/src/app/modules/protobuf/c2se/common/identity_pb.d.ts +++ /dev/null @@ -1,314 +0,0 @@ -// package: bet.beteran.c2se.common.identity -// file: c2se/common/identity.proto - -import * as jspb from 'google-protobuf'; -import * as protobuf_rpc_error_pb from '../../protobuf/rpc/error_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_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_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_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_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_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_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; - }; - } -} diff --git a/src/app/modules/protobuf/c2se/common/identity_pb.js b/src/app/modules/protobuf/c2se/common/identity_pb.js deleted file mode 100644 index 499e1d9..0000000 --- a/src/app/modules/protobuf/c2se/common/identity_pb.js +++ /dev/null @@ -1,1826 +0,0 @@ -// source: c2se/common/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_error_pb = require("../../protobuf/rpc/error_pb.js"); -goog.object.extend(proto, protobuf_rpc_error_pb); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.identity.CaptchaRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.identity.CaptchaResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.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.common.identity.CheckUsernameForDuplicationRequest = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationRequest.displayName = - "proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationResponse = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.displayName = - "proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationResponse.Result = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse - .Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result.displayName = - "proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationRequest = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationRequest.displayName = - "proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationResponse = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.displayName = - "proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationResponse.Result = - function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); - }; -goog.inherits( - proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse - .Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result.displayName = - "proto.bet.beteran.c2se.common.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.common.identity.CaptchaRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.common.identity.CaptchaRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.identity.CaptchaRequest.displayName = - "proto.bet.beteran.c2se.common.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.common.identity.CaptchaResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.common.identity.CaptchaResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.identity.CaptchaResponse.displayName = - "proto.bet.beteran.c2se.common.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.common.identity.CaptchaResponse.Result = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.displayName = - "proto.bet.beteran.c2se.common.identity.CaptchaResponse.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.common.identity.CheckUsernameForDuplicationRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationRequest} - */ -proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationRequest(); - return proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationRequest} - */ -proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationRequest.prototype.getUsername = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationRequest} returns this - */ -proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationResponse} - */ -proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse(); - return proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse} - */ -proto.bet.beteran.c2se.common.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationResponse.Result} - */ -proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result(); - return proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result} - */ -proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationResponse.Result.prototype.getDuplicated = - function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 1, false) - ); - }; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result} returns this - */ -proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse} returns this - */ -proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationResponse} returns this - */ -proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result} - */ -proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.common.identity - .CheckUsernameForDuplicationResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse} returns this - */ -proto.bet.beteran.c2se.common.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.common.identity.CheckUsernameForDuplicationResponse} returns this - */ -proto.bet.beteran.c2se.common.identity.CheckUsernameForDuplicationResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationRequest} - */ -proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationRequest(); - return proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationRequest} - */ -proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationRequest.prototype.getNickname = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationRequest} returns this - */ -proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationResponse} - */ -proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse(); - return proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse} - */ -proto.bet.beteran.c2se.common.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationResponse.Result} - */ -proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result(); - return proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result} - */ -proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationResponse.Result.prototype.getDuplicated = - function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 1, false) - ); - }; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result} returns this - */ -proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse} returns this - */ -proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationResponse} returns this - */ -proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result} - */ -proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.common.identity - .CheckNicknameForDuplicationResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse} returns this - */ -proto.bet.beteran.c2se.common.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.common.identity.CheckNicknameForDuplicationResponse} returns this - */ -proto.bet.beteran.c2se.common.identity.CheckNicknameForDuplicationResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.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.common.identity.CaptchaRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.identity.CaptchaRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.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.common.identity.CaptchaRequest} - */ -proto.bet.beteran.c2se.common.identity.CaptchaRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.common.identity.CaptchaRequest(); - return proto.bet.beteran.c2se.common.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.common.identity.CaptchaRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.identity.CaptchaRequest} - */ -proto.bet.beteran.c2se.common.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.common.identity.CaptchaRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.identity.CaptchaRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.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.common.identity.CaptchaResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.identity.CaptchaResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.identity.CaptchaResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.common.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.common.identity.CaptchaResponse} - */ -proto.bet.beteran.c2se.common.identity.CaptchaResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.common.identity.CaptchaResponse(); - return proto.bet.beteran.c2se.common.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.common.identity.CaptchaResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.identity.CaptchaResponse} - */ -proto.bet.beteran.c2se.common.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.common.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.common.identity.CaptchaResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.identity.CaptchaResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.identity.CaptchaResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.common.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.common.identity.CaptchaResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.common.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.common.identity.CaptchaResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.common.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.common.identity.CaptchaResponse.Result} - */ -proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result(); - return proto.bet.beteran.c2se.common.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.common.identity.CaptchaResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result} - */ -proto.bet.beteran.c2se.common.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.common.identity.CaptchaResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.common.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.common.identity.CaptchaResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.common.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 securityCodeHash = 1; - * @return {string} - */ -proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.prototype.getSecurityCodeHash = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result} returns this - */ -proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.prototype.setSecurityCodeHash = - function (value) { - return jspb.Message.setProto3StringField(this, 1, value); - }; - -/** - * optional string image = 2; - * @return {string} - */ -proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result.prototype.getImage = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 2, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result} returns this - */ -proto.bet.beteran.c2se.common.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.common.identity.CaptchaResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.common.identity.CaptchaResponse} returns this - */ -proto.bet.beteran.c2se.common.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.common.identity.CaptchaResponse} returns this - */ -proto.bet.beteran.c2se.common.identity.CaptchaResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.identity.CaptchaResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result} - */ -proto.bet.beteran.c2se.common.identity.CaptchaResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.common.identity.CaptchaResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.common.identity.CaptchaResponse} returns this - */ -proto.bet.beteran.c2se.common.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.common.identity.CaptchaResponse} returns this - */ -proto.bet.beteran.c2se.common.identity.CaptchaResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.common.identity.CaptchaResponse.prototype.hasResult = - function () { - return jspb.Message.getField(this, 2) != null; - }; - -goog.object.extend(exports, proto.bet.beteran.c2se.common.identity); diff --git a/src/app/modules/protobuf/c2se/frontend/account_pb.d.ts b/src/app/modules/protobuf/c2se/frontend/account_pb.d.ts deleted file mode 100644 index ebfe3d2..0000000 --- a/src/app/modules/protobuf/c2se/frontend/account_pb.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -// package: -// file: c2se/frontend/account.proto - -import * as jspb from 'google-protobuf'; - -export const SUBJECT_LIST_BANKS: string; diff --git a/src/app/modules/protobuf/c2se/frontend/identity_pb.d.ts b/src/app/modules/protobuf/c2se/frontend/identity_pb.d.ts deleted file mode 100644 index 68b97d9..0000000 --- a/src/app/modules/protobuf/c2se/frontend/identity_pb.d.ts +++ /dev/null @@ -1,123 +0,0 @@ -// package: bet.beteran.c2se.frontend.identity -// file: c2se/frontend/identity.proto - -import * as jspb from 'google-protobuf'; -import * as protobuf_rpc_error_pb from '../../protobuf/rpc/error_pb'; - -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; - -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_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_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_error_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/protobuf/c2se/frontend/identity_pb.js b/src/app/modules/protobuf/c2se/frontend/identity_pb.js deleted file mode 100644 index beaeec3..0000000 --- a/src/app/modules/protobuf/c2se/frontend/identity_pb.js +++ /dev/null @@ -1,723 +0,0 @@ -// 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); - -var protobuf_rpc_error_pb = require("../../protobuf/rpc/error_pb.js"); -goog.object.extend(proto, protobuf_rpc_error_pb); -goog.exportSymbol( - "proto.bet.beteran.c2se.frontend.identity.SigninRequest", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.frontend.identity.SigninResponse", - null, - global -); -goog.exportSymbol( - "proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result", - null, - global -); - -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"; - -/** - * 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.frontend.identity.SigninRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.frontend.identity.SigninRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.frontend.identity.SigninRequest.displayName = - "proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.frontend.identity.SigninResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.frontend.identity.SigninResponse.displayName = - "proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninResponse.Result = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result.displayName = - "proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninRequest} - */ -proto.bet.beteran.c2se.frontend.identity.SigninRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.frontend.identity.SigninRequest(); - return proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.frontend.identity.SigninRequest} - */ -proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.frontend.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 securityCodeHash = 1; - * @return {string} - */ -proto.bet.beteran.c2se.frontend.identity.SigninRequest.prototype.getSecurityCodeHash = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.frontend.identity.SigninRequest} returns this - */ -proto.bet.beteran.c2se.frontend.identity.SigninRequest.prototype.setSecurityCodeHash = - function (value) { - return jspb.Message.setProto3StringField(this, 1, value); - }; - -/** - * optional string security_code = 2; - * @return {string} - */ -proto.bet.beteran.c2se.frontend.identity.SigninRequest.prototype.getSecurityCode = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 2, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.frontend.identity.SigninRequest} returns this - */ -proto.bet.beteran.c2se.frontend.identity.SigninRequest.prototype.setSecurityCode = - function (value) { - return jspb.Message.setProto3StringField(this, 2, value); - }; - -/** - * optional string username = 3; - * @return {string} - */ -proto.bet.beteran.c2se.frontend.identity.SigninRequest.prototype.getUsername = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 3, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.frontend.identity.SigninRequest} returns this - */ -proto.bet.beteran.c2se.frontend.identity.SigninRequest.prototype.setUsername = - function (value) { - return jspb.Message.setProto3StringField(this, 3, value); - }; - -/** - * optional string password = 4; - * @return {string} - */ -proto.bet.beteran.c2se.frontend.identity.SigninRequest.prototype.getPassword = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 4, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.frontend.identity.SigninRequest} returns this - */ -proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.frontend.identity.SigninResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninResponse} - */ -proto.bet.beteran.c2se.frontend.identity.SigninResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.frontend.identity.SigninResponse(); - return proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.frontend.identity.SigninResponse} - */ -proto.bet.beteran.c2se.frontend.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_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.frontend.identity.SigninResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninResponse.Result} - */ -proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result(); - return proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result} - */ -proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninResponse.Result.prototype.getAccessToken = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result} returns this - */ -proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.frontend.identity.SigninResponse} returns this - */ -proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninResponse} returns this - */ -proto.bet.beteran.c2se.frontend.identity.SigninResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.frontend.identity.SigninResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result} - */ -proto.bet.beteran.c2se.frontend.identity.SigninResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.frontend.identity.SigninResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.frontend.identity.SigninResponse} returns this - */ -proto.bet.beteran.c2se.frontend.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.frontend.identity.SigninResponse} returns this - */ -proto.bet.beteran.c2se.frontend.identity.SigninResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.frontend.identity.SigninResponse.prototype.hasResult = - function () { - return jspb.Message.getField(this, 2) != null; - }; - -goog.object.extend(exports, proto.bet.beteran.c2se.frontend.identity); diff --git a/src/app/modules/protobuf/models/account/bank_pb.js b/src/app/modules/protobuf/models/account/bank_pb.js deleted file mode 100644 index ecc2cbf..0000000 --- a/src/app/modules/protobuf/models/account/bank_pb.js +++ /dev/null @@ -1,345 +0,0 @@ -// source: models/account/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.account.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.account.Bank = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bet.beteran.account.Bank, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.account.Bank.displayName = "proto.bet.beteran.account.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.account.Bank.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.bet.beteran.account.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.account.Bank} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.account.Bank.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), - canUse: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - memo: jspb.Message.getFieldWithDefault(msg, 5, ""), - createdAt: jspb.Message.getFieldWithDefault(msg, 6, 0), - updatedAt: 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.account.Bank} - */ -proto.bet.beteran.account.Bank.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.account.Bank(); - return proto.bet.beteran.account.Bank.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.bet.beteran.account.Bank} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.account.Bank} - */ -proto.bet.beteran.account.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 {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; - case 6: - var value = /** @type {number} */ reader.readUint64(); - msg.setCreatedAt(value); - break; - case 7: - 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.account.Bank.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.account.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.account.Bank} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.account.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.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); - } - f = message.getCreatedAt(); - if (f !== 0) { - writer.writeUint64(6, f); - } - f = message.getUpdatedAt(); - if (f !== 0) { - writer.writeUint64(7, f); - } -}; - -/** - * optional string id = 1; - * @return {string} - */ -proto.bet.beteran.account.Bank.prototype.getId = function () { - return /** @type {string} */ jspb.Message.getFieldWithDefault(this, 1, ""); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.account.Bank} returns this - */ -proto.bet.beteran.account.Bank.prototype.setId = function (value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - -/** - * optional string name = 2; - * @return {string} - */ -proto.bet.beteran.account.Bank.prototype.getName = function () { - return /** @type {string} */ jspb.Message.getFieldWithDefault(this, 2, ""); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.account.Bank} returns this - */ -proto.bet.beteran.account.Bank.prototype.setName = function (value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - -/** - * optional bool show = 3; - * @return {boolean} - */ -proto.bet.beteran.account.Bank.prototype.getShow = function () { - return /** @type {boolean} */ jspb.Message.getBooleanFieldWithDefault( - this, - 3, - false - ); -}; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.account.Bank} returns this - */ -proto.bet.beteran.account.Bank.prototype.setShow = function (value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - -/** - * optional bool can_use = 4; - * @return {boolean} - */ -proto.bet.beteran.account.Bank.prototype.getCanUse = function () { - return /** @type {boolean} */ jspb.Message.getBooleanFieldWithDefault( - this, - 4, - false - ); -}; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.account.Bank} returns this - */ -proto.bet.beteran.account.Bank.prototype.setCanUse = function (value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - -/** - * optional string memo = 5; - * @return {string} - */ -proto.bet.beteran.account.Bank.prototype.getMemo = function () { - return /** @type {string} */ jspb.Message.getFieldWithDefault(this, 5, ""); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.account.Bank} returns this - */ -proto.bet.beteran.account.Bank.prototype.setMemo = function (value) { - return jspb.Message.setField(this, 5, value); -}; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.account.Bank} returns this - */ -proto.bet.beteran.account.Bank.prototype.clearMemo = function () { - return jspb.Message.setField(this, 5, undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.account.Bank.prototype.hasMemo = function () { - return jspb.Message.getField(this, 5) != null; -}; - -/** - * optional uint64 created_at = 6; - * @return {number} - */ -proto.bet.beteran.account.Bank.prototype.getCreatedAt = function () { - return /** @type {number} */ jspb.Message.getFieldWithDefault(this, 6, 0); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.account.Bank} returns this - */ -proto.bet.beteran.account.Bank.prototype.setCreatedAt = function (value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - -/** - * optional uint64 updated_at = 7; - * @return {number} - */ -proto.bet.beteran.account.Bank.prototype.getUpdatedAt = function () { - return /** @type {number} */ jspb.Message.getFieldWithDefault(this, 7, 0); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.account.Bank} returns this - */ -proto.bet.beteran.account.Bank.prototype.setUpdatedAt = function (value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - -goog.object.extend(exports, proto.bet.beteran.account); diff --git a/src/app/modules/protobuf/models/domain/site_pb.js b/src/app/modules/protobuf/models/domain/site_pb.js deleted file mode 100644 index bf9aa6d..0000000 --- a/src/app/modules/protobuf/models/domain/site_pb.js +++ /dev/null @@ -1,461 +0,0 @@ -// source: models/domain/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.domain.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.domain.Site = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bet.beteran.domain.Site, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.domain.Site.displayName = "proto.bet.beteran.domain.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.domain.Site.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.bet.beteran.domain.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.domain.Site} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.domain.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.domain.Site} - */ -proto.bet.beteran.domain.Site.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.domain.Site(); - return proto.bet.beteran.domain.Site.deserializeBinaryFromReader(msg, reader); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.bet.beteran.domain.Site} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.domain.Site} - */ -proto.bet.beteran.domain.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.domain.Site.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.domain.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.domain.Site} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.domain.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.domain.Site.prototype.getId = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.domain.Site} returns this - */ -proto.bet.beteran.domain.Site.prototype.setId = function (value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - -/** - * optional string url = 2; - * @return {string} - */ -proto.bet.beteran.domain.Site.prototype.getUrl = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.domain.Site} returns this - */ -proto.bet.beteran.domain.Site.prototype.setUrl = function (value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - -/** - * optional string name = 3; - * @return {string} - */ -proto.bet.beteran.domain.Site.prototype.getName = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.domain.Site} returns this - */ -proto.bet.beteran.domain.Site.prototype.setName = function (value) { - return jspb.Message.setField(this, 3, value); -}; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.domain.Site} returns this - */ -proto.bet.beteran.domain.Site.prototype.clearName = function () { - return jspb.Message.setField(this, 3, undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.domain.Site.prototype.hasName = function () { - return jspb.Message.getField(this, 3) != null; -}; - -/** - * optional string path = 4; - * @return {string} - */ -proto.bet.beteran.domain.Site.prototype.getPath = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.domain.Site} returns this - */ -proto.bet.beteran.domain.Site.prototype.setPath = function (value) { - return jspb.Message.setField(this, 4, value); -}; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.domain.Site} returns this - */ -proto.bet.beteran.domain.Site.prototype.clearPath = function () { - return jspb.Message.setField(this, 4, undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.domain.Site.prototype.hasPath = function () { - return jspb.Message.getField(this, 4) != null; -}; - -/** - * optional bool show = 5; - * @return {boolean} - */ -proto.bet.beteran.domain.Site.prototype.getShow = function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 5, false) - ); -}; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.domain.Site} returns this - */ -proto.bet.beteran.domain.Site.prototype.setShow = function (value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - -/** - * optional bool can_use = 6; - * @return {boolean} - */ -proto.bet.beteran.domain.Site.prototype.getCanUse = function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 6, false) - ); -}; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.domain.Site} returns this - */ -proto.bet.beteran.domain.Site.prototype.setCanUse = function (value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - -/** - * optional string memo = 7; - * @return {string} - */ -proto.bet.beteran.domain.Site.prototype.getMemo = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.domain.Site} returns this - */ -proto.bet.beteran.domain.Site.prototype.setMemo = function (value) { - return jspb.Message.setField(this, 7, value); -}; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.domain.Site} returns this - */ -proto.bet.beteran.domain.Site.prototype.clearMemo = function () { - return jspb.Message.setField(this, 7, undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.domain.Site.prototype.hasMemo = function () { - return jspb.Message.getField(this, 7) != null; -}; - -/** - * optional uint64 expires_at = 8; - * @return {number} - */ -proto.bet.beteran.domain.Site.prototype.getExpiresAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.domain.Site} returns this - */ -proto.bet.beteran.domain.Site.prototype.setExpiresAt = function (value) { - return jspb.Message.setField(this, 8, value); -}; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.domain.Site} returns this - */ -proto.bet.beteran.domain.Site.prototype.clearExpiresAt = function () { - return jspb.Message.setField(this, 8, undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.domain.Site.prototype.hasExpiresAt = function () { - return jspb.Message.getField(this, 8) != null; -}; - -/** - * optional uint64 created_at = 9; - * @return {number} - */ -proto.bet.beteran.domain.Site.prototype.getCreatedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.domain.Site} returns this - */ -proto.bet.beteran.domain.Site.prototype.setCreatedAt = function (value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - -/** - * optional uint64 updated_at = 10; - * @return {number} - */ -proto.bet.beteran.domain.Site.prototype.getUpdatedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.domain.Site} returns this - */ -proto.bet.beteran.domain.Site.prototype.setUpdatedAt = function (value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - -goog.object.extend(exports, proto.bet.beteran.domain); diff --git a/src/app/modules/protobuf/models/member/member_class_pb.d.ts b/src/app/modules/protobuf/models/member/member_class_pb.d.ts deleted file mode 100644 index 12712cc..0000000 --- a/src/app/modules/protobuf/models/member/member_class_pb.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -// package: bet.beteran.member -// file: models/member/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; - - 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; - createdAt: number; - updatedAt: number; - }; -} diff --git a/src/app/modules/protobuf/models/member/member_class_pb.js b/src/app/modules/protobuf/models/member/member_class_pb.js deleted file mode 100644 index e166676..0000000 --- a/src/app/modules/protobuf/models/member/member_class_pb.js +++ /dev/null @@ -1,294 +0,0 @@ -// source: models/member/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.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.MemberClass = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bet.beteran.member.MemberClass, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.member.MemberClass.displayName = - "proto.bet.beteran.member.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.MemberClass.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.bet.beteran.member.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.MemberClass} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.member.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, ""), - createdAt: jspb.Message.getFieldWithDefault(msg, 4, 0), - updatedAt: 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.member.MemberClass} - */ -proto.bet.beteran.member.MemberClass.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.member.MemberClass(); - return proto.bet.beteran.member.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.MemberClass} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.member.MemberClass} - */ -proto.bet.beteran.member.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 {number} */ (reader.readUint64()); - msg.setCreatedAt(value); - break; - case 5: - 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.MemberClass.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.member.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.MemberClass} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.member.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.getCreatedAt(); - if (f !== 0) { - writer.writeUint64(4, f); - } - f = message.getUpdatedAt(); - if (f !== 0) { - writer.writeUint64(5, f); - } -}; - -/** - * optional string id = 1; - * @return {string} - */ -proto.bet.beteran.member.MemberClass.prototype.getId = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.member.MemberClass} returns this - */ -proto.bet.beteran.member.MemberClass.prototype.setId = function (value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - -/** - * optional string parent_id = 2; - * @return {string} - */ -proto.bet.beteran.member.MemberClass.prototype.getParentId = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.member.MemberClass} returns this - */ -proto.bet.beteran.member.MemberClass.prototype.setParentId = function (value) { - return jspb.Message.setField(this, 2, value); -}; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.member.MemberClass} returns this - */ -proto.bet.beteran.member.MemberClass.prototype.clearParentId = function () { - return jspb.Message.setField(this, 2, undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.member.MemberClass.prototype.hasParentId = function () { - return jspb.Message.getField(this, 2) != null; -}; - -/** - * optional string name = 3; - * @return {string} - */ -proto.bet.beteran.member.MemberClass.prototype.getName = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.member.MemberClass} returns this - */ -proto.bet.beteran.member.MemberClass.prototype.setName = function (value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - -/** - * optional uint64 created_at = 4; - * @return {number} - */ -proto.bet.beteran.member.MemberClass.prototype.getCreatedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.member.MemberClass} returns this - */ -proto.bet.beteran.member.MemberClass.prototype.setCreatedAt = function (value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - -/** - * optional uint64 updated_at = 5; - * @return {number} - */ -proto.bet.beteran.member.MemberClass.prototype.getUpdatedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.member.MemberClass} returns this - */ -proto.bet.beteran.member.MemberClass.prototype.setUpdatedAt = function (value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - -goog.object.extend(exports, proto.bet.beteran.member); diff --git a/src/app/modules/protobuf/models/member/member_level_pb.d.ts b/src/app/modules/protobuf/models/member/member_level_pb.d.ts deleted file mode 100644 index 454bb4d..0000000 --- a/src/app/modules/protobuf/models/member/member_level_pb.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -// package: bet.beteran.member -// file: models/member/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; - - 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; - sortOrder: number; - createdAt: number; - updatedAt: number; - }; -} diff --git a/src/app/modules/protobuf/models/member/member_level_pb.js b/src/app/modules/protobuf/models/member/member_level_pb.js deleted file mode 100644 index f2e09a4..0000000 --- a/src/app/modules/protobuf/models/member/member_level_pb.js +++ /dev/null @@ -1,278 +0,0 @@ -// source: models/member/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.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.MemberLevel = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bet.beteran.member.MemberLevel, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.member.MemberLevel.displayName = - "proto.bet.beteran.member.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.MemberLevel.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.bet.beteran.member.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.MemberLevel} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.member.MemberLevel.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), - createdAt: jspb.Message.getFieldWithDefault(msg, 4, 0), - updatedAt: 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.member.MemberLevel} - */ -proto.bet.beteran.member.MemberLevel.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.member.MemberLevel(); - return proto.bet.beteran.member.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.MemberLevel} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.member.MemberLevel} - */ -proto.bet.beteran.member.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 {number} */ (reader.readUint32()); - msg.setSortOrder(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setCreatedAt(value); - break; - case 5: - 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.MemberLevel.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.member.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.MemberLevel} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.member.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.getSortOrder(); - if (f !== 0) { - writer.writeUint32(3, f); - } - f = message.getCreatedAt(); - if (f !== 0) { - writer.writeUint64(4, f); - } - f = message.getUpdatedAt(); - if (f !== 0) { - writer.writeUint64(5, f); - } -}; - -/** - * optional string id = 1; - * @return {string} - */ -proto.bet.beteran.member.MemberLevel.prototype.getId = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.member.MemberLevel} returns this - */ -proto.bet.beteran.member.MemberLevel.prototype.setId = function (value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - -/** - * optional string name = 2; - * @return {string} - */ -proto.bet.beteran.member.MemberLevel.prototype.getName = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.member.MemberLevel} returns this - */ -proto.bet.beteran.member.MemberLevel.prototype.setName = function (value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - -/** - * optional uint32 sort_order = 3; - * @return {number} - */ -proto.bet.beteran.member.MemberLevel.prototype.getSortOrder = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.member.MemberLevel} returns this - */ -proto.bet.beteran.member.MemberLevel.prototype.setSortOrder = function (value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - -/** - * optional uint64 created_at = 4; - * @return {number} - */ -proto.bet.beteran.member.MemberLevel.prototype.getCreatedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.member.MemberLevel} returns this - */ -proto.bet.beteran.member.MemberLevel.prototype.setCreatedAt = function (value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - -/** - * optional uint64 updated_at = 5; - * @return {number} - */ -proto.bet.beteran.member.MemberLevel.prototype.getUpdatedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.member.MemberLevel} returns this - */ -proto.bet.beteran.member.MemberLevel.prototype.setUpdatedAt = function (value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - -goog.object.extend(exports, proto.bet.beteran.member); diff --git a/src/app/modules/protobuf/models/member/member_session_pb.d.ts b/src/app/modules/protobuf/models/member/member_session_pb.d.ts deleted file mode 100644 index 0ccfcf7..0000000 --- a/src/app/modules/protobuf/models/member/member_session_pb.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -// package: bet.beteran.member -// file: models/member/member_session.proto - -import * as jspb from 'google-protobuf'; -import * as models_member_member_pb from '../../models/member/member_pb'; - -export class MemberSession extends jspb.Message { - getId(): string; - setId(value: string): void; - - hasMember(): boolean; - clearMember(): void; - getMember(): models_member_member_pb.Member | undefined; - setMember(value?: models_member_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_member_pb.Member.AsObject; - data: string; - lastAccessedAt: number; - expiresAt: number; - createdAt: number; - }; -} diff --git a/src/app/modules/protobuf/models/member/member_session_pb.js b/src/app/modules/protobuf/models/member/member_session_pb.js deleted file mode 100644 index 7c8e3f0..0000000 --- a/src/app/modules/protobuf/models/member/member_session_pb.js +++ /dev/null @@ -1,340 +0,0 @@ -// source: models/member/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_member_pb = require("../../models/member/member_pb.js"); -goog.object.extend(proto, models_member_member_pb); -goog.exportSymbol("proto.bet.beteran.member.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.MemberSession = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bet.beteran.member.MemberSession, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.member.MemberSession.displayName = - "proto.bet.beteran.member.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.MemberSession.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.bet.beteran.member.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.MemberSession} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.member.MemberSession.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - member: - (f = msg.getMember()) && - models_member_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.MemberSession} - */ -proto.bet.beteran.member.MemberSession.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.member.MemberSession(); - return proto.bet.beteran.member.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.MemberSession} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.member.MemberSession} - */ -proto.bet.beteran.member.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_member_pb.Member(); - reader.readMessage( - value, - models_member_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.MemberSession.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.member.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.MemberSession} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.member.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_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.MemberSession.prototype.getId = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.member.MemberSession} returns this - */ -proto.bet.beteran.member.MemberSession.prototype.setId = function (value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - -/** - * optional Member member = 2; - * @return {?proto.bet.beteran.member.Member} - */ -proto.bet.beteran.member.MemberSession.prototype.getMember = function () { - return /** @type{?proto.bet.beteran.member.Member} */ ( - jspb.Message.getWrapperField(this, models_member_member_pb.Member, 2) - ); -}; - -/** - * @param {?proto.bet.beteran.member.Member|undefined} value - * @return {!proto.bet.beteran.member.MemberSession} returns this - */ -proto.bet.beteran.member.MemberSession.prototype.setMember = function (value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.bet.beteran.member.MemberSession} returns this - */ -proto.bet.beteran.member.MemberSession.prototype.clearMember = function () { - return this.setMember(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.member.MemberSession.prototype.hasMember = function () { - return jspb.Message.getField(this, 2) != null; -}; - -/** - * optional string data = 3; - * @return {string} - */ -proto.bet.beteran.member.MemberSession.prototype.getData = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.member.MemberSession} returns this - */ -proto.bet.beteran.member.MemberSession.prototype.setData = function (value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - -/** - * optional uint64 last_accessed_at = 4; - * @return {number} - */ -proto.bet.beteran.member.MemberSession.prototype.getLastAccessedAt = - function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); - }; - -/** - * @param {number} value - * @return {!proto.bet.beteran.member.MemberSession} returns this - */ -proto.bet.beteran.member.MemberSession.prototype.setLastAccessedAt = function ( - value -) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - -/** - * optional uint64 expires_at = 5; - * @return {number} - */ -proto.bet.beteran.member.MemberSession.prototype.getExpiresAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.member.MemberSession} returns this - */ -proto.bet.beteran.member.MemberSession.prototype.setExpiresAt = function ( - value -) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - -/** - * optional uint64 created_at = 6; - * @return {number} - */ -proto.bet.beteran.member.MemberSession.prototype.getCreatedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.member.MemberSession} returns this - */ -proto.bet.beteran.member.MemberSession.prototype.setCreatedAt = function ( - value -) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - -goog.object.extend(exports, proto.bet.beteran.member); diff --git a/src/app/modules/protobuf/models/rbac/resource_action_pb.d.ts b/src/app/modules/protobuf/models/rbac/resource_action_pb.d.ts deleted file mode 100644 index 4734e69..0000000 --- a/src/app/modules/protobuf/models/rbac/resource_action_pb.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -// package: bet.beteran.rbac -// file: models/rbac/resource_action.proto - -import * as jspb from 'google-protobuf'; -import * as models_rbac_resource_pb from '../../models/rbac/resource_pb'; - -export class ResourceAction extends jspb.Message { - getId(): string; - setId(value: string): void; - - hasResource(): boolean; - clearResource(): void; - getResource(): models_rbac_resource_pb.Resource | undefined; - setResource(value?: models_rbac_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_rbac_resource_pb.Resource.AsObject; - name: string; - key: string; - description: string; - canUse: boolean; - createdAt: number; - updatedAt: number; - }; -} diff --git a/src/app/modules/protobuf/models/rbac/resource_action_pb.js b/src/app/modules/protobuf/models/rbac/resource_action_pb.js deleted file mode 100644 index b646ac7..0000000 --- a/src/app/modules/protobuf/models/rbac/resource_action_pb.js +++ /dev/null @@ -1,391 +0,0 @@ -// source: models/rbac/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_rbac_resource_pb = require("../../models/rbac/resource_pb.js"); -goog.object.extend(proto, models_rbac_resource_pb); -goog.exportSymbol("proto.bet.beteran.rbac.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.rbac.ResourceAction = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bet.beteran.rbac.ResourceAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.rbac.ResourceAction.displayName = - "proto.bet.beteran.rbac.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.rbac.ResourceAction.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.bet.beteran.rbac.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.rbac.ResourceAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.rbac.ResourceAction.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - resource: - (f = msg.getResource()) && - models_rbac_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.rbac.ResourceAction} - */ -proto.bet.beteran.rbac.ResourceAction.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.rbac.ResourceAction(); - return proto.bet.beteran.rbac.ResourceAction.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.bet.beteran.rbac.ResourceAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.rbac.ResourceAction} - */ -proto.bet.beteran.rbac.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_rbac_resource_pb.Resource(); - reader.readMessage( - value, - models_rbac_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.rbac.ResourceAction.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.rbac.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.rbac.ResourceAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.rbac.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_rbac_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.rbac.ResourceAction.prototype.getId = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.rbac.ResourceAction} returns this - */ -proto.bet.beteran.rbac.ResourceAction.prototype.setId = function (value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - -/** - * optional Resource resource = 2; - * @return {?proto.bet.beteran.rbac.Resource} - */ -proto.bet.beteran.rbac.ResourceAction.prototype.getResource = function () { - return /** @type{?proto.bet.beteran.rbac.Resource} */ ( - jspb.Message.getWrapperField(this, models_rbac_resource_pb.Resource, 2) - ); -}; - -/** - * @param {?proto.bet.beteran.rbac.Resource|undefined} value - * @return {!proto.bet.beteran.rbac.ResourceAction} returns this - */ -proto.bet.beteran.rbac.ResourceAction.prototype.setResource = function (value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.bet.beteran.rbac.ResourceAction} returns this - */ -proto.bet.beteran.rbac.ResourceAction.prototype.clearResource = function () { - return this.setResource(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.rbac.ResourceAction.prototype.hasResource = function () { - return jspb.Message.getField(this, 2) != null; -}; - -/** - * optional string name = 3; - * @return {string} - */ -proto.bet.beteran.rbac.ResourceAction.prototype.getName = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.rbac.ResourceAction} returns this - */ -proto.bet.beteran.rbac.ResourceAction.prototype.setName = function (value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - -/** - * optional string key = 4; - * @return {string} - */ -proto.bet.beteran.rbac.ResourceAction.prototype.getKey = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.rbac.ResourceAction} returns this - */ -proto.bet.beteran.rbac.ResourceAction.prototype.setKey = function (value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - -/** - * optional string description = 5; - * @return {string} - */ -proto.bet.beteran.rbac.ResourceAction.prototype.getDescription = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.rbac.ResourceAction} returns this - */ -proto.bet.beteran.rbac.ResourceAction.prototype.setDescription = function ( - value -) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - -/** - * optional bool can_use = 6; - * @return {boolean} - */ -proto.bet.beteran.rbac.ResourceAction.prototype.getCanUse = function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 6, false) - ); -}; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.rbac.ResourceAction} returns this - */ -proto.bet.beteran.rbac.ResourceAction.prototype.setCanUse = function (value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - -/** - * optional uint64 created_at = 7; - * @return {number} - */ -proto.bet.beteran.rbac.ResourceAction.prototype.getCreatedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.rbac.ResourceAction} returns this - */ -proto.bet.beteran.rbac.ResourceAction.prototype.setCreatedAt = function ( - value -) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - -/** - * optional uint64 updated_at = 8; - * @return {number} - */ -proto.bet.beteran.rbac.ResourceAction.prototype.getUpdatedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.rbac.ResourceAction} returns this - */ -proto.bet.beteran.rbac.ResourceAction.prototype.setUpdatedAt = function ( - value -) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - -goog.object.extend(exports, proto.bet.beteran.rbac); diff --git a/src/app/modules/protobuf/models/rbac/resource_pb.js b/src/app/modules/protobuf/models/rbac/resource_pb.js deleted file mode 100644 index e79497f..0000000 --- a/src/app/modules/protobuf/models/rbac/resource_pb.js +++ /dev/null @@ -1,377 +0,0 @@ -// source: models/rbac/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.rbac.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.rbac.Resource = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bet.beteran.rbac.Resource, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.rbac.Resource.displayName = - "proto.bet.beteran.rbac.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.rbac.Resource.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.bet.beteran.rbac.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.rbac.Resource} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.rbac.Resource.toObject = function (includeInstance, msg) { - var f, - obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - parent: - (f = msg.getParent()) && - proto.bet.beteran.rbac.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.rbac.Resource} - */ -proto.bet.beteran.rbac.Resource.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.rbac.Resource(); - return proto.bet.beteran.rbac.Resource.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.bet.beteran.rbac.Resource} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.rbac.Resource} - */ -proto.bet.beteran.rbac.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.rbac.Resource(); - reader.readMessage( - value, - proto.bet.beteran.rbac.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.rbac.Resource.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.rbac.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.rbac.Resource} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.rbac.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.rbac.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.rbac.Resource.prototype.getId = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.rbac.Resource} returns this - */ -proto.bet.beteran.rbac.Resource.prototype.setId = function (value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - -/** - * optional Resource parent = 2; - * @return {?proto.bet.beteran.rbac.Resource} - */ -proto.bet.beteran.rbac.Resource.prototype.getParent = function () { - return /** @type{?proto.bet.beteran.rbac.Resource} */ ( - jspb.Message.getWrapperField(this, proto.bet.beteran.rbac.Resource, 2) - ); -}; - -/** - * @param {?proto.bet.beteran.rbac.Resource|undefined} value - * @return {!proto.bet.beteran.rbac.Resource} returns this - */ -proto.bet.beteran.rbac.Resource.prototype.setParent = function (value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.bet.beteran.rbac.Resource} returns this - */ -proto.bet.beteran.rbac.Resource.prototype.clearParent = function () { - return this.setParent(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.rbac.Resource.prototype.hasParent = function () { - return jspb.Message.getField(this, 2) != null; -}; - -/** - * optional string name = 3; - * @return {string} - */ -proto.bet.beteran.rbac.Resource.prototype.getName = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.rbac.Resource} returns this - */ -proto.bet.beteran.rbac.Resource.prototype.setName = function (value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - -/** - * optional string key = 4; - * @return {string} - */ -proto.bet.beteran.rbac.Resource.prototype.getKey = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.rbac.Resource} returns this - */ -proto.bet.beteran.rbac.Resource.prototype.setKey = function (value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - -/** - * optional string description = 5; - * @return {string} - */ -proto.bet.beteran.rbac.Resource.prototype.getDescription = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.rbac.Resource} returns this - */ -proto.bet.beteran.rbac.Resource.prototype.setDescription = function (value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - -/** - * optional bool can_use = 6; - * @return {boolean} - */ -proto.bet.beteran.rbac.Resource.prototype.getCanUse = function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 6, false) - ); -}; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.rbac.Resource} returns this - */ -proto.bet.beteran.rbac.Resource.prototype.setCanUse = function (value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - -/** - * optional uint64 created_at = 7; - * @return {number} - */ -proto.bet.beteran.rbac.Resource.prototype.getCreatedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.rbac.Resource} returns this - */ -proto.bet.beteran.rbac.Resource.prototype.setCreatedAt = function (value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - -/** - * optional uint64 updated_at = 8; - * @return {number} - */ -proto.bet.beteran.rbac.Resource.prototype.getUpdatedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.rbac.Resource} returns this - */ -proto.bet.beteran.rbac.Resource.prototype.setUpdatedAt = function (value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - -goog.object.extend(exports, proto.bet.beteran.rbac); diff --git a/src/app/modules/protobuf/models/rbac/role_pb.js b/src/app/modules/protobuf/models/rbac/role_pb.js deleted file mode 100644 index 648e4f7..0000000 --- a/src/app/modules/protobuf/models/rbac/role_pb.js +++ /dev/null @@ -1,375 +0,0 @@ -// source: models/rbac/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); - -var models_rbac_resource_pb = require("../../models/rbac/resource_pb.js"); -goog.object.extend(proto, models_rbac_resource_pb); -goog.exportSymbol("proto.bet.beteran.rbac.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.rbac.Role = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bet.beteran.rbac.Role, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.rbac.Role.displayName = "proto.bet.beteran.rbac.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.rbac.Role.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.bet.beteran.rbac.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.rbac.Role} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.rbac.Role.toObject = function (includeInstance, msg) { - var f, - obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - parent: - (f = msg.getParent()) && - proto.bet.beteran.rbac.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.rbac.Role} - */ -proto.bet.beteran.rbac.Role.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.rbac.Role(); - return proto.bet.beteran.rbac.Role.deserializeBinaryFromReader(msg, reader); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.bet.beteran.rbac.Role} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.rbac.Role} - */ -proto.bet.beteran.rbac.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.rbac.Role(); - reader.readMessage( - value, - proto.bet.beteran.rbac.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.rbac.Role.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.rbac.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.rbac.Role} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.rbac.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.rbac.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.rbac.Role.prototype.getId = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.rbac.Role} returns this - */ -proto.bet.beteran.rbac.Role.prototype.setId = function (value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - -/** - * optional Role parent = 2; - * @return {?proto.bet.beteran.rbac.Role} - */ -proto.bet.beteran.rbac.Role.prototype.getParent = function () { - return /** @type{?proto.bet.beteran.rbac.Role} */ ( - jspb.Message.getWrapperField(this, proto.bet.beteran.rbac.Role, 2) - ); -}; - -/** - * @param {?proto.bet.beteran.rbac.Role|undefined} value - * @return {!proto.bet.beteran.rbac.Role} returns this - */ -proto.bet.beteran.rbac.Role.prototype.setParent = function (value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.bet.beteran.rbac.Role} returns this - */ -proto.bet.beteran.rbac.Role.prototype.clearParent = function () { - return this.setParent(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.rbac.Role.prototype.hasParent = function () { - return jspb.Message.getField(this, 2) != null; -}; - -/** - * optional string name = 3; - * @return {string} - */ -proto.bet.beteran.rbac.Role.prototype.getName = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.rbac.Role} returns this - */ -proto.bet.beteran.rbac.Role.prototype.setName = function (value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - -/** - * optional string key = 4; - * @return {string} - */ -proto.bet.beteran.rbac.Role.prototype.getKey = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.rbac.Role} returns this - */ -proto.bet.beteran.rbac.Role.prototype.setKey = function (value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - -/** - * optional string description = 5; - * @return {string} - */ -proto.bet.beteran.rbac.Role.prototype.getDescription = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.rbac.Role} returns this - */ -proto.bet.beteran.rbac.Role.prototype.setDescription = function (value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - -/** - * optional bool can_use = 6; - * @return {boolean} - */ -proto.bet.beteran.rbac.Role.prototype.getCanUse = function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 6, false) - ); -}; - -/** - * @param {boolean} value - * @return {!proto.bet.beteran.rbac.Role} returns this - */ -proto.bet.beteran.rbac.Role.prototype.setCanUse = function (value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - -/** - * optional uint64 created_at = 7; - * @return {number} - */ -proto.bet.beteran.rbac.Role.prototype.getCreatedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.rbac.Role} returns this - */ -proto.bet.beteran.rbac.Role.prototype.setCreatedAt = function (value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - -/** - * optional uint64 updated_at = 8; - * @return {number} - */ -proto.bet.beteran.rbac.Role.prototype.getUpdatedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.rbac.Role} returns this - */ -proto.bet.beteran.rbac.Role.prototype.setUpdatedAt = function (value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - -goog.object.extend(exports, proto.bet.beteran.rbac); diff --git a/src/app/modules/protobuf/protobuf/pagination/pagination_pb.d.ts b/src/app/modules/protobuf/protobuf/pagination/pagination_pb.d.ts deleted file mode 100644 index 6c96ede..0000000 --- a/src/app/modules/protobuf/protobuf/pagination/pagination_pb.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -// package: bet.protobuf.pagination -// file: protobuf/pagination/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; - }; -} diff --git a/src/app/modules/protobuf/protobuf/pagination/pagination_pb.js b/src/app/modules/protobuf/protobuf/pagination/pagination_pb.js deleted file mode 100644 index a8319d3..0000000 --- a/src/app/modules/protobuf/protobuf/pagination/pagination_pb.js +++ /dev/null @@ -1,239 +0,0 @@ -// source: protobuf/pagination/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); -/** - * 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"; -} - -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; -}; - -goog.object.extend(exports, proto.bet.protobuf.pagination); diff --git a/src/app/modules/protobuf/protobuf/pagination/search_pb.d.ts b/src/app/modules/protobuf/protobuf/pagination/search_pb.d.ts deleted file mode 100644 index 8a5072b..0000000 --- a/src/app/modules/protobuf/protobuf/pagination/search_pb.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -// package: bet.protobuf.pagination -// file: protobuf/pagination/search.proto - -import * as jspb from 'google-protobuf'; - -export class Search extends jspb.Message { - getKey(): string; - setKey(value: string): void; - - getValue(): string; - setValue(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 = { - key: string; - value: string; - }; -} diff --git a/src/app/modules/protobuf/protobuf/pagination/search_pb.js b/src/app/modules/protobuf/protobuf/pagination/search_pb.js deleted file mode 100644 index e0a7259..0000000 --- a/src/app/modules/protobuf/protobuf/pagination/search_pb.js +++ /dev/null @@ -1,203 +0,0 @@ -// source: protobuf/pagination/search.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.Search", 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.Search = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.bet.protobuf.pagination.Search, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.protobuf.pagination.Search.displayName = - "proto.bet.protobuf.pagination.Search"; -} - -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.Search.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.bet.protobuf.pagination.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.protobuf.pagination.Search} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.protobuf.pagination.Search.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, ""), - value: 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.protobuf.pagination.Search} - */ -proto.bet.protobuf.pagination.Search.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.protobuf.pagination.Search(); - return proto.bet.protobuf.pagination.Search.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.bet.protobuf.pagination.Search} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.protobuf.pagination.Search} - */ -proto.bet.protobuf.pagination.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.setKey(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.bet.protobuf.pagination.Search.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.bet.protobuf.pagination.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.protobuf.pagination.Search} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.protobuf.pagination.Search.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getKey(); - if (f.length > 0) { - writer.writeString(1, f); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString(2, f); - } -}; - -/** - * optional string key = 1; - * @return {string} - */ -proto.bet.protobuf.pagination.Search.prototype.getKey = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.protobuf.pagination.Search} returns this - */ -proto.bet.protobuf.pagination.Search.prototype.setKey = function (value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - -/** - * optional string value = 2; - * @return {string} - */ -proto.bet.protobuf.pagination.Search.prototype.getValue = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.protobuf.pagination.Search} returns this - */ -proto.bet.protobuf.pagination.Search.prototype.setValue = function (value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - -goog.object.extend(exports, proto.bet.protobuf.pagination); diff --git a/src/app/modules/protobuf/protobuf/pagination/sort_pb.d.ts b/src/app/modules/protobuf/protobuf/pagination/sort_pb.d.ts deleted file mode 100644 index 1a8333e..0000000 --- a/src/app/modules/protobuf/protobuf/pagination/sort_pb.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -// package: bet.protobuf.pagination -// file: protobuf/pagination/sort.proto - -import * as jspb from 'google-protobuf'; - -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/protobuf/protobuf/pagination/sort_pb.js b/src/app/modules/protobuf/protobuf/pagination/sort_pb.js deleted file mode 100644 index 573dc58..0000000 --- a/src/app/modules/protobuf/protobuf/pagination/sort_pb.js +++ /dev/null @@ -1,216 +0,0 @@ -// source: protobuf/pagination/sort.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.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.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.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/protobuf/protobuf/rpc/error_pb.d.ts b/src/app/modules/protobuf/protobuf/rpc/error_pb.d.ts deleted file mode 100644 index 0946cd6..0000000 --- a/src/app/modules/protobuf/protobuf/rpc/error_pb.d.ts +++ /dev/null @@ -1,212 +0,0 @@ -// package: bet.protobuf.rpc -// file: protobuf/rpc/error.proto - -import * as jspb from 'google-protobuf'; - -export class Error extends jspb.Message { - static readonly PARSE: number; - static readonly INVALID_REQUEST: number; - static readonly INVALID_PARAMS: number; - static readonly INTERNAL: number; - static readonly SERVER_00: number; - static readonly SERVER_01: number; - static readonly SERVER_02: number; - static readonly SERVER_03: number; - static readonly SERVER_04: number; - static readonly SERVER_05: number; - static readonly SERVER_06: number; - static readonly SERVER_07: number; - static readonly SERVER_08: number; - static readonly SERVER_09: number; - static readonly SERVER_10: number; - static readonly SERVER_11: number; - static readonly SERVER_12: number; - static readonly SERVER_13: number; - static readonly SERVER_14: number; - static readonly SERVER_15: number; - static readonly SERVER_16: number; - static readonly SERVER_17: number; - static readonly SERVER_18: number; - static readonly SERVER_19: number; - static readonly SERVER_20: number; - static readonly SERVER_21: number; - static readonly SERVER_22: number; - static readonly SERVER_23: number; - static readonly SERVER_24: number; - static readonly SERVER_25: number; - static readonly SERVER_26: number; - static readonly SERVER_27: number; - static readonly SERVER_28: number; - static readonly SERVER_29: number; - static readonly SERVER_30: number; - static readonly SERVER_31: number; - static readonly SERVER_32: number; - static readonly SERVER_33: number; - static readonly SERVER_34: number; - static readonly SERVER_35: number; - static readonly SERVER_36: number; - static readonly SERVER_37: number; - static readonly SERVER_38: number; - static readonly SERVER_39: number; - static readonly SERVER_40: number; - static readonly SERVER_41: number; - static readonly SERVER_42: number; - static readonly SERVER_43: number; - static readonly SERVER_44: number; - static readonly SERVER_45: number; - static readonly SERVER_46: number; - static readonly SERVER_47: number; - static readonly SERVER_48: number; - static readonly SERVER_49: number; - static readonly SERVER_50: number; - static readonly SERVER_51: number; - static readonly SERVER_52: number; - static readonly SERVER_53: number; - static readonly SERVER_54: number; - static readonly SERVER_55: number; - static readonly SERVER_56: number; - static readonly SERVER_57: number; - static readonly SERVER_58: number; - static readonly SERVER_59: number; - static readonly SERVER_60: number; - static readonly SERVER_61: number; - static readonly SERVER_62: number; - static readonly SERVER_63: number; - static readonly SERVER_64: number; - static readonly SERVER_65: number; - static readonly SERVER_66: number; - static readonly SERVER_67: number; - static readonly SERVER_68: number; - static readonly SERVER_69: number; - static readonly SERVER_70: number; - static readonly SERVER_71: number; - static readonly SERVER_72: number; - static readonly SERVER_73: number; - static readonly SERVER_74: number; - static readonly SERVER_75: number; - static readonly SERVER_76: number; - static readonly SERVER_77: number; - static readonly SERVER_78: number; - static readonly SERVER_79: number; - static readonly SERVER_80: number; - static readonly SERVER_81: number; - static readonly SERVER_82: number; - static readonly SERVER_83: number; - static readonly SERVER_84: number; - static readonly SERVER_85: number; - static readonly SERVER_86: number; - static readonly SERVER_87: number; - static readonly SERVER_88: number; - static readonly SERVER_89: number; - static readonly SERVER_90: number; - static readonly SERVER_91: number; - static readonly SERVER_92: number; - static readonly SERVER_93: number; - static readonly SERVER_94: number; - static readonly SERVER_95: number; - static readonly SERVER_96: number; - static readonly SERVER_97: number; - static readonly SERVER_98: number; - static readonly SERVER_99: number; - - 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/protobuf/protobuf/rpc/error_pb.js b/src/app/modules/protobuf/protobuf/rpc/error_pb.js deleted file mode 100644 index 14aeef9..0000000 --- a/src/app/modules/protobuf/protobuf/rpc/error_pb.js +++ /dev/null @@ -1,655 +0,0 @@ -// source: protobuf/rpc/error.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; - }; -} - -proto.bet.protobuf.rpc.Error.PARSE = -32700; -proto.bet.protobuf.rpc.Error.INVALID_REQUEST = -32600; -proto.bet.protobuf.rpc.Error.INVALID_PARAMS = -32602; -proto.bet.protobuf.rpc.Error.INTERNAL = -32603; -proto.bet.protobuf.rpc.Error.SERVER_00 = -32000; -proto.bet.protobuf.rpc.Error.SERVER_01 = -32001; -proto.bet.protobuf.rpc.Error.SERVER_02 = -32002; -proto.bet.protobuf.rpc.Error.SERVER_03 = -32003; -proto.bet.protobuf.rpc.Error.SERVER_04 = -32004; -proto.bet.protobuf.rpc.Error.SERVER_05 = -32005; -proto.bet.protobuf.rpc.Error.SERVER_06 = -32006; -proto.bet.protobuf.rpc.Error.SERVER_07 = -32007; -proto.bet.protobuf.rpc.Error.SERVER_08 = -32008; -proto.bet.protobuf.rpc.Error.SERVER_09 = -32009; -proto.bet.protobuf.rpc.Error.SERVER_10 = -32010; -proto.bet.protobuf.rpc.Error.SERVER_11 = -32011; -proto.bet.protobuf.rpc.Error.SERVER_12 = -32012; -proto.bet.protobuf.rpc.Error.SERVER_13 = -32013; -proto.bet.protobuf.rpc.Error.SERVER_14 = -32014; -proto.bet.protobuf.rpc.Error.SERVER_15 = -32015; -proto.bet.protobuf.rpc.Error.SERVER_16 = -32016; -proto.bet.protobuf.rpc.Error.SERVER_17 = -32017; -proto.bet.protobuf.rpc.Error.SERVER_18 = -32018; -proto.bet.protobuf.rpc.Error.SERVER_19 = -32019; -proto.bet.protobuf.rpc.Error.SERVER_20 = -32020; -proto.bet.protobuf.rpc.Error.SERVER_21 = -32021; -proto.bet.protobuf.rpc.Error.SERVER_22 = -32022; -proto.bet.protobuf.rpc.Error.SERVER_23 = -32023; -proto.bet.protobuf.rpc.Error.SERVER_24 = -32024; -proto.bet.protobuf.rpc.Error.SERVER_25 = -32025; -proto.bet.protobuf.rpc.Error.SERVER_26 = -32026; -proto.bet.protobuf.rpc.Error.SERVER_27 = -32027; -proto.bet.protobuf.rpc.Error.SERVER_28 = -32028; -proto.bet.protobuf.rpc.Error.SERVER_29 = -32029; -proto.bet.protobuf.rpc.Error.SERVER_30 = -32030; -proto.bet.protobuf.rpc.Error.SERVER_31 = -32031; -proto.bet.protobuf.rpc.Error.SERVER_32 = -32032; -proto.bet.protobuf.rpc.Error.SERVER_33 = -32033; -proto.bet.protobuf.rpc.Error.SERVER_34 = -32034; -proto.bet.protobuf.rpc.Error.SERVER_35 = -32035; -proto.bet.protobuf.rpc.Error.SERVER_36 = -32036; -proto.bet.protobuf.rpc.Error.SERVER_37 = -32037; -proto.bet.protobuf.rpc.Error.SERVER_38 = -32038; -proto.bet.protobuf.rpc.Error.SERVER_39 = -32039; -proto.bet.protobuf.rpc.Error.SERVER_40 = -32040; -proto.bet.protobuf.rpc.Error.SERVER_41 = -32041; -proto.bet.protobuf.rpc.Error.SERVER_42 = -32042; -proto.bet.protobuf.rpc.Error.SERVER_43 = -32043; -proto.bet.protobuf.rpc.Error.SERVER_44 = -32044; -proto.bet.protobuf.rpc.Error.SERVER_45 = -32045; -proto.bet.protobuf.rpc.Error.SERVER_46 = -32046; -proto.bet.protobuf.rpc.Error.SERVER_47 = -32047; -proto.bet.protobuf.rpc.Error.SERVER_48 = -32048; -proto.bet.protobuf.rpc.Error.SERVER_49 = -32049; -proto.bet.protobuf.rpc.Error.SERVER_50 = -32050; -proto.bet.protobuf.rpc.Error.SERVER_51 = -32051; -proto.bet.protobuf.rpc.Error.SERVER_52 = -32052; -proto.bet.protobuf.rpc.Error.SERVER_53 = -32053; -proto.bet.protobuf.rpc.Error.SERVER_54 = -32054; -proto.bet.protobuf.rpc.Error.SERVER_55 = -32055; -proto.bet.protobuf.rpc.Error.SERVER_56 = -32056; -proto.bet.protobuf.rpc.Error.SERVER_57 = -32057; -proto.bet.protobuf.rpc.Error.SERVER_58 = -32058; -proto.bet.protobuf.rpc.Error.SERVER_59 = -32059; -proto.bet.protobuf.rpc.Error.SERVER_60 = -32060; -proto.bet.protobuf.rpc.Error.SERVER_61 = -32061; -proto.bet.protobuf.rpc.Error.SERVER_62 = -32062; -proto.bet.protobuf.rpc.Error.SERVER_63 = -32063; -proto.bet.protobuf.rpc.Error.SERVER_64 = -32064; -proto.bet.protobuf.rpc.Error.SERVER_65 = -32065; -proto.bet.protobuf.rpc.Error.SERVER_66 = -32066; -proto.bet.protobuf.rpc.Error.SERVER_67 = -32067; -proto.bet.protobuf.rpc.Error.SERVER_68 = -32068; -proto.bet.protobuf.rpc.Error.SERVER_69 = -32069; -proto.bet.protobuf.rpc.Error.SERVER_70 = -32070; -proto.bet.protobuf.rpc.Error.SERVER_71 = -32071; -proto.bet.protobuf.rpc.Error.SERVER_72 = -32072; -proto.bet.protobuf.rpc.Error.SERVER_73 = -32073; -proto.bet.protobuf.rpc.Error.SERVER_74 = -32074; -proto.bet.protobuf.rpc.Error.SERVER_75 = -32075; -proto.bet.protobuf.rpc.Error.SERVER_76 = -32076; -proto.bet.protobuf.rpc.Error.SERVER_77 = -32077; -proto.bet.protobuf.rpc.Error.SERVER_78 = -32078; -proto.bet.protobuf.rpc.Error.SERVER_79 = -32079; -proto.bet.protobuf.rpc.Error.SERVER_80 = -32080; -proto.bet.protobuf.rpc.Error.SERVER_81 = -32081; -proto.bet.protobuf.rpc.Error.SERVER_82 = -32082; -proto.bet.protobuf.rpc.Error.SERVER_83 = -32083; -proto.bet.protobuf.rpc.Error.SERVER_84 = -32084; -proto.bet.protobuf.rpc.Error.SERVER_85 = -32085; -proto.bet.protobuf.rpc.Error.SERVER_86 = -32086; -proto.bet.protobuf.rpc.Error.SERVER_87 = -32087; -proto.bet.protobuf.rpc.Error.SERVER_88 = -32088; -proto.bet.protobuf.rpc.Error.SERVER_89 = -32089; -proto.bet.protobuf.rpc.Error.SERVER_90 = -32090; -proto.bet.protobuf.rpc.Error.SERVER_91 = -32091; -proto.bet.protobuf.rpc.Error.SERVER_92 = -32092; -proto.bet.protobuf.rpc.Error.SERVER_93 = -32093; -proto.bet.protobuf.rpc.Error.SERVER_94 = -32094; -proto.bet.protobuf.rpc.Error.SERVER_95 = -32095; -proto.bet.protobuf.rpc.Error.SERVER_96 = -32096; -proto.bet.protobuf.rpc.Error.SERVER_97 = -32097; -proto.bet.protobuf.rpc.Error.SERVER_98 = -32098; -proto.bet.protobuf.rpc.Error.SERVER_99 = -32099; - -/** - * 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);